Skip to content
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

Merged
merged 4 commits into from
Feb 8, 2024
Merged

sql api updates #8756

merged 4 commits into from
Feb 8, 2024

Conversation

martyna-mindsdb
Copy link
Contributor

Description

sql api updates: jobs and models

Fixes #issue_number

Type of change

  • 馃搫 This change is a documentation update

@@ -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
Copy link
Contributor

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

| `[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. |
Copy link
Contributor

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

@martyna-mindsdb martyna-mindsdb merged commit a8b8df0 into staging Feb 8, 2024
8 checks passed
@StpMax StpMax mentioned this pull request Feb 19, 2024
@hamishfagg hamishfagg deleted the sql-api-update branch June 10, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation needs to be added or changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants