-
Notifications
You must be signed in to change notification settings - Fork 1.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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Translate mysql cdc doc to Chinese #1398
Conversation
…anslate_mysql-cdc-doc # Conflicts: # docs/content/connectors/mysql-cdc(ZH).md
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.
Thanks @RookieGao for the great work, I left some comments.
|
||
### SQL Client JAR | ||
|
||
```下载链接仅适用于稳定版本。``` |
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.
下载链接仅在已发布版本可用,请在文档网站左下角选择浏览已发布的版本。
MySQL CDC 连接器是一个 Flink Source 连接器,它将首先读取表快照块,然后继续读取 binlog, | ||
无论是在快照阶段还是读取 binlog 阶段,MySQL CDC 连接器都会在处理时**准确读取数据**,即使任务出现了故障。 | ||
|
||
### Startup Reading Position |
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.
启动模式
|
||
**Note:** 请参考 [Deserialization](../about.html#deserialization) 有关 JSON 反序列化的更多详细信息。 | ||
|
||
### 扫描新添加的表 |
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.
扫描新添加的表 --》 动态加表
``` | ||
**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 |
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.
数据类型映射
I will modify it according to the suggestions. Thank you for your review. |
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>
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>
…o/flink-cdc-connectors into translate_mysql-cdc-doc rebase master
|-----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------| | ||
| [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 |
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.
依赖
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> |
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.
这里漏拉
<td>The JSON data type will be converted into STRING with JSON format in Flink.</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
SET | ||
</td> | ||
<td>ARRAY<STRING></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. |
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.
这几个类型也翻译下吧
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: |
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.
这段可以翻译下
Co-authored-by: Leonard Xu <leonard@apache.org>
It is in rebase. After completion, it will be modified according to the suggestions |
…o/flink-cdc-connectors into translate_mysql-cdc-doc megre
Co-authored-by: Leonard Xu <leonard@apache.org>
…anslate_mysql-cdc-doc
I made a mess... I want to open a PR again |
This PR content has been transferred to #1435 |
This PR Main solutions #1391
There may be inaccuracies or omissions in the translation of the first edition.