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

[docs] Translate mysql cdc doc to Chinese #1398

Closed
wants to merge 82 commits into from
Closed

[docs] Translate mysql cdc doc to Chinese #1398

wants to merge 82 commits into from

Conversation

gtk96
Copy link
Contributor

@gtk96 gtk96 commented Jul 23, 2022

This PR Main solutions #1391

There may be inaccuracies or omissions in the translation of the first edition.

Copy link
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

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

Thanks @RookieGao for the great work, I left some comments.

docs/content/connectors/mysql-cdc(ZH).md Outdated Show resolved Hide resolved

### SQL Client JAR

```下载链接仅适用于稳定版本。```
Copy link
Contributor

Choose a reason for hiding this comment

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

下载链接仅在已发布版本可用,请在文档网站左下角选择浏览已发布的版本。

docs/content/connectors/mysql-cdc(ZH).md Outdated Show resolved Hide resolved
docs/content/connectors/mysql-cdc(ZH).md Outdated Show resolved Hide resolved
docs/content/connectors/mysql-cdc(ZH).md Outdated Show resolved Hide resolved
docs/content/connectors/mysql-cdc(ZH).md Outdated Show resolved Hide resolved
MySQL CDC 连接器是一个 Flink Source 连接器,它将首先读取表快照块,然后继续读取 binlog,
无论是在快照阶段还是读取 binlog 阶段,MySQL CDC 连接器都会在处理时**准确读取数据**,即使任务出现了故障。

### Startup Reading Position
Copy link
Contributor

Choose a reason for hiding this comment

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

启动模式

docs/content/connectors/mysql-cdc(ZH).md Outdated Show resolved Hide resolved

**Note:** 请参考 [Deserialization](../about.html#deserialization) 有关 JSON 反序列化的更多详细信息。

### 扫描新添加的表
Copy link
Contributor

Choose a reason for hiding this comment

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

扫描新添加的表 --》 动态加表

```
**Note:** 请参考文档 [Restore the job from previous savepoint](https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/cli/#command-line-interface) 了解更多详细信息。

Data Type Mapping
Copy link
Contributor

Choose a reason for hiding this comment

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

数据类型映射

@gtk96
Copy link
Contributor Author

gtk96 commented Jul 28, 2022

I will modify it according to the suggestions. Thank you for your review.

gtk96 and others added 19 commits July 28, 2022 21:34
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
Co-authored-by: Leonard Xu <leonard@apache.org>
docs/content/connectors/mysql-cdc(ZH).md Outdated Show resolved Hide resolved
|-----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
| [mysql-cdc](mysql-cdc.md) | <li> [MySQL](https://dev.mysql.com/doc): 5.6, 5.7, 8.0.x <li> [RDS MySQL](https://www.aliyun.com/product/rds/mysql): 5.6, 5.7, 8.0.x <li> [PolarDB MySQL](https://www.aliyun.com/product/polardb): 5.6, 5.7, 8.0.x <li> [Aurora MySQL](https://aws.amazon.com/cn/rds/aurora): 5.6, 5.7, 8.0.x <li> [MariaDB](https://mariadb.org): 10.x <li> [PolarDB X](https://github.com/ApsaraDB/galaxysql): 2.0.1 | JDBC Driver: 8.0.21 |

Dependencies
Copy link
Contributor

Choose a reason for hiding this comment

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

依赖

LONGBLOB<br>
</td>
<td>BYTES</td>
<td>Currently, for BLOB data type in MySQL, only the blob whose length isn't greater than 2,147,483,647(2 ** 31 - 1) is supported. </td>
Copy link
Contributor

Choose a reason for hiding this comment

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

这里漏拉

Comment on lines 785 to 812
<td>The JSON data type will be converted into STRING with JSON format in Flink.</td>
</tr>
<tr>
<td>
SET
</td>
<td>ARRAY&lt;STRING&gt;</td>
<td>As the SET data type in MySQL is a string object that can have zero or more values,
it should always be mapped to an array of string
</td>
</tr>
<tr>
<td>
GEOMETRY<br>
POINT<br>
LINESTRING<br>
POLYGON<br>
MULTIPOINT<br>
MULTILINESTRING<br>
MULTIPOLYGON<br>
GEOMETRYCOLLECTION<br>
</td>
<td>
STRING
</td>
<td>
The spatial data types in MySQL will be converted into STRING with a fixed Json format.
Please see <a href="#空间数据类型映射 ">空间数据类型映射</a> section for more detailed information.
Copy link
Contributor

Choose a reason for hiding this comment

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

这几个类型也翻译下吧

Comment on lines 820 to 838
The spatial data types except for `GEOMETRYCOLLECTION` in MySQL will be converted into Json String with a fixed format like:<br>
```json
{"srid": 0 , "type": "xxx", "coordinates": [0, 0]}
```
The field `srid` identifies the SRS in which the geometry is defined, SRID 0 is the default for new geometry values if no SRID is specified.
As only MySQL 8+ support to specific SRID when define spatial data type, the field `srid` will always be 0 in MySQL with a lower version.

The field `type` identifies the spatial data type, such as `POINT`/`LINESTRING`/`POLYGON`.

The field `coordinates` represents the `coordinates` of the spatial data.

For `GEOMETRYCOLLECTION`, it will be converted into Json String with a fixed format like:<br>
```json
{"srid": 0 , "type": "GeometryCollection", "geometries": [{"type":"Point","coordinates":[10,10]}]}
```

The field `geometries` is an array contains all spatial data.

The example for different spatial data types mapping is as follows:
Copy link
Contributor

Choose a reason for hiding this comment

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

这段可以翻译下

Co-authored-by: Leonard Xu <leonard@apache.org>
@gtk96
Copy link
Contributor Author

gtk96 commented Jul 29, 2022

It is in rebase. After completion, it will be modified according to the suggestions

@gtk96 gtk96 closed this Jul 29, 2022
@gtk96 gtk96 reopened this Jul 29, 2022
@gtk96
Copy link
Contributor Author

gtk96 commented Jul 29, 2022

I made a mess... I want to open a PR again

@gtk96 gtk96 reopened this Jul 31, 2022
@gtk96 gtk96 closed this Jul 31, 2022
@gtk96
Copy link
Contributor Author

gtk96 commented Jul 31, 2022

This PR content has been transferred to #1435

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.

7 participants