-
Notifications
You must be signed in to change notification settings - Fork 268
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix load job #2033
base: master
Are you sure you want to change the base?
fix load job #2033
Conversation
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.
- 语法章节参数缺少尖括号包裹
- 参数章节参数需要和语法章节对齐
- 缺少权限章节
|
||
grammar: | ||
## Syntax | ||
|
||
```sql | ||
CREATE SYNC [db.]job_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.
参数应该被尖括号包裹
CREATE SYNC [db.]job_name | |
CREATE SYNC [<db>.]<job_name> |
( | ||
channel_desc, | ||
channel_desc, | ||
... | ||
) |
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.
( | |
channel_desc, | |
channel_desc, | |
... | |
) | |
(<channel_desc> [, ... ]) |
channel_desc, | ||
channel_desc, | ||
... | ||
) | ||
binlog_desc |
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.
binlog_desc | |
<binlog_desc> |
> **Syntax:** | ||
> ```sql | ||
> FROM mysql_db.src_tbl INTO des_tbl [columns_mapping] | ||
> ``` |
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.
此部分应移动到语法章节使用
Where:
```sql
<channel_desc>
: FROM <mysql_db>.<src_tbl> INTO <des_tbl> [ <columns_mapping> ]
> **Syntax:** | ||
> ```sql | ||
> FROM BINLOG | ||
> ( | ||
> "key1" = "value1", | ||
> "key2" = "value2", | ||
> ... | ||
> ) |
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.
和 chaneel_desc 类似,移动到语法章节
> **Syntax:** | |
> ```sql | |
> FROM BINLOG | |
> ( | |
> "key1" = "value1", | |
> "key2" = "value2", | |
> ... | |
> ) | |
```sql | |
<binlog_desc> | |
: FROM BINLOG ("<key>" = "<value>" [, ... ]) | |
``` |
|
||
grammar: | ||
## Syntax | ||
|
||
```sql | ||
PAUSE SYNC JOB [db.]job_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.
PAUSE SYNC JOB [db.]job_name | |
PAUSE SYNC JOB [<db>.]<job_name> |
|
||
1. Pause the data sync job named `job_name`. | ||
**1. `job_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.
**1. `job_name`** | |
**1. `<job_name>`** |
|
||
grammar: | ||
## Syntax | ||
|
||
```sql | ||
RESUME SYNC JOB [db.]job_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.
类似的问题
- Only one synchronization job with the same `<job_name>` can run concurrently within a database. | ||
- The target table specified in `<channel_desc>` must have its batch delete function enabled. | ||
|
||
## Examples |
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.
Versions
Languages
Docs Checklist