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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix load job #2033

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix load job #2033

wants to merge 1 commit into from

Conversation

echo-hhj
Copy link
Contributor

@echo-hhj echo-hhj commented Feb 12, 2025

Versions

  • dev
  • 3.0
  • 2.1
  • 2.0

Languages

  • Chinese
  • English

Docs Checklist

  • Checked by AI
  • Test Cases Built

Copy link
Contributor

@morrySnow morrySnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 语法章节参数缺少尖括号包裹
  2. 参数章节参数需要和语法章节对齐
  3. 缺少权限章节


grammar:
## Syntax

```sql
CREATE SYNC [db.]job_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

参数应该被尖括号包裹

Suggested change
CREATE SYNC [db.]job_name
CREATE SYNC [<db>.]<job_name>

Comment on lines +38 to +42
(
channel_desc,
channel_desc,
...
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
(
channel_desc,
channel_desc,
...
)
(<channel_desc> [, ... ])

channel_desc,
channel_desc,
...
)
binlog_desc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
binlog_desc
<binlog_desc>

Comment on lines +56 to +59
> **Syntax:**
> ```sql
> FROM mysql_db.src_tbl INTO des_tbl [columns_mapping]
> ```
Copy link
Contributor

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> ]

Comment on lines +69 to +76
> **Syntax:**
> ```sql
> FROM BINLOG
> (
> "key1" = "value1",
> "key2" = "value2",
> ...
> )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

和 chaneel_desc 类似,移动到语法章节

Suggested change
> **Syntax:**
> ```sql
> FROM BINLOG
> (
> "key1" = "value1",
> "key2" = "value2",
> ...
> )
```sql
<binlog_desc>
: FROM BINLOG ("<key>" = "<value>" [, ... ])
```


grammar:
## Syntax

```sql
PAUSE SYNC JOB [db.]job_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
PAUSE SYNC JOB [db.]job_name
PAUSE SYNC JOB [<db>.]<job_name>


1. Pause the data sync job named `job_name`.
**1. `job_name`**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**1. `job_name`**
**1. `<job_name>`**


grammar:
## Syntax

```sql
RESUME SYNC JOB [db.]job_name
Copy link
Contributor

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants