-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql api updates #8756
sql api updates #8756
Conversation
@@ -19,7 +19,7 @@ The `CREATE MODEL` statement creates and trains a machine learning (ML) model. | |||
Here is the full syntax: | |||
|
|||
```sql | |||
CREATE MODEL [IF NOT EXISTS] project_name.predictor_name | |||
CREATE [OR REPLACE] MODEL project_name.predictor_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If not exists is also works, so it is possible to use:
CREATE or replace MODEL if not exists predictor_name
docs/mindsdb_sql/sql/create/jobs.mdx
Outdated
| `[START <date>]` | Optional. The date when the job starts its periodical or one-time execution. If not set, it is the current system date. | | ||
| `[END <date>]` | Optional. The date when the job ends its periodical or one-time execution. If it is not set (and the repetition rules are set), then the job repeats forever. | | ||
| `[EVERY [number] <period>]` | Optional. The repetition rules for the job. If not set, the job runs once, not considering the end date value. If the `number` value is not set, it defaults to 1. | | ||
| `[EVERY [number] <period>]` | Optional. The repetition rules for the job. If not set, the job runs once, not considering the end date value. If the `number` value is not set, it defaults to 1. | | ||
| `[IF (<query_1>[; <query_2>][; ...])]` | Optional. If the query returns one or more rows, only then the job will execute. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one correction: only if the last query in sequence (<query_1>[; <query_2>][; ...]) returns >0 rows job will execute
Description
sql api updates: jobs and models
Fixes #issue_number
Type of change