wuchong commented on a change in pull request #12730: URL: https://github.com/apache/flink/pull/12730#discussion_r443304564
########## File path: docs/dev/table/connectors/datagen.zh.md ########## @@ -94,59 +94,59 @@ Connector Options <tbody> <tr> <td><h5>connector</h5></td> - <td>required</td> + <td>必须</td> <td style="word-wrap: break-word;">(none)</td> <td>String</td> - <td>Specify what connector to use, here should be 'datagen'.</td> + <td>指定要使用的连接器,这里是 'datagen'。</td> </tr> <tr> <td><h5>rows-per-second</h5></td> - <td>optional</td> + <td>可选</td> <td style="word-wrap: break-word;">10000</td> <td>Long</td> - <td>Rows per second to control the emit rate.</td> + <td>每秒生成的行数,用以控制数据发出速率。</td> </tr> <tr> <td><h5>fields.#.kind</h5></td> - <td>optional</td> + <td>可选</td> <td style="word-wrap: break-word;">random</td> <td>String</td> - <td>Generator of this '#' field. Can be 'sequence' or 'random'.</td> + <td>生成器的 '#' 字段。可以是 'sequence' 或 'random'。</td> Review comment: ```suggestion <td>指定 '#' 字段的生成器。可以是 'sequence' 或 'random'。</td> ``` ########## File path: docs/dev/table/connectors/datagen.zh.md ########## @@ -23,32 +23,31 @@ specific language governing permissions and limitations under the License. --> -<span class="label label-primary">Scan Source: Bounded</span> -<span class="label label-primary">Scan Source: UnBounded</span> +<span class="label label-primary">Scan Source: 有界</span> +<span class="label label-primary">Scan Source: 无界</span> * This will be replaced by the TOC {:toc} -The Datagen connector allows for reading by data generation rules. +Datagen 连接器允许按数据生成规则进行读取。 -The Datagen connector can work with [Computed Column syntax]({% link dev/table/sql/create.zh.md %}#create-table). -This allows you to generate records flexibly. +Datagen 连接器可以使用[计算列语法]({% link dev/table/sql/create.zh.md %}#create-table)。 +这使您可以灵活地生成记录。 -The Datagen connector is built-in. +Datagen 连接器是内置的。 -<span class="label label-danger">Attention</span> Complex types are not supported: Array, Map, Row. Please construct these types by computed column. +<span class="label label-danger">注意</span> 不支持复杂类型: Array,Map,Row。 请用计算列构造这些类型。 -How to create a Datagen table +怎么创建一个 Datagen 的表 ---------------- -The boundedness of table: when the generation of field data in the table is completed, the reading -is finished. So the boundedness of the table depends on the boundedness of fields. +表的有界性:表中字段的数据生成完成后,就读取完成。 因此,表的有界性取决于字段的有界性。 Review comment: ```suggestion 表的有界性:当表中字段的数据全部生成完成后,source 就结束了。 因此,表的有界性取决于字段的有界性。 ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org