reswqa commented on code in PR #26455: URL: https://github.com/apache/flink/pull/26455#discussion_r2043354121
########## docs/content.zh/docs/connectors/table/datagen.md: ########## @@ -97,6 +97,21 @@ CREATE TABLE Orders ( ) ``` +And for collections it is possible to specify different sized collections. Review Comment: translation from myselft :) 对于集合类型,您可以指定集合的大小(元素个数)。 ########## docs/content/docs/connectors/table/datagen.md: ########## @@ -289,14 +304,14 @@ Connector Options <td>optional</td> <td style="word-wrap: break-word;">(Minimum value of type)</td> <td>(Type of field)</td> - <td>Minimum value of random generator, work for numeric types.</td> + <td>Minimum value of random generator, only works for numeric types.</td> </tr> <tr> <td><h5>fields.#.max</h5></td> <td>optional</td> <td style="word-wrap: break-word;">(Maximum value of type)</td> <td>(Type of field)</td> - <td>Maximum value of random generator, work for numeric types.</td> + <td>Maximum value of random generator, only works for numeric types.</td> Review Comment: 随机生成器的最大值,仅适用于数字类型。 ########## docs/content/docs/connectors/table/datagen.md: ########## @@ -308,21 +323,21 @@ Connector Options <tr> <td><h5>fields.#.length</h5></td> <td>optional</td> - <td style="word-wrap: break-word;">100</td> + <td style="word-wrap: break-word;">100 for string/bytes, 3 for array/map/multiset </td> Review Comment: 对于 string/bytes 类型为 100,对于 array/map/multiset 类型为 3 ########## docs/content/docs/connectors/table/datagen.md: ########## @@ -289,14 +304,14 @@ Connector Options <td>optional</td> <td style="word-wrap: break-word;">(Minimum value of type)</td> <td>(Type of field)</td> - <td>Minimum value of random generator, work for numeric types.</td> + <td>Minimum value of random generator, only works for numeric types.</td> Review Comment: Could you please put the changed translation to Chinese doc? 随机生成器的最小值,仅适用于数字类型。 ########## docs/content/docs/connectors/table/datagen.md: ########## @@ -308,21 +323,21 @@ Connector Options <tr> <td><h5>fields.#.length</h5></td> <td>optional</td> - <td style="word-wrap: break-word;">100</td> + <td style="word-wrap: break-word;">100 for string/bytes, 3 for array/map/multiset </td> <td>Integer</td> <td> Size or length of the collection for generating varchar/varbinary/string/bytes/array/map/multiset types. - Please notice that for variable-length fields (varchar/varbinary), the default length is defined by the schema and cannot be set to a length greater than it. - for super-long fields (string/bytes), the default length is 100 and can be set to a length less than 2^31. - for constructed fields (array/map/multiset), the default number of elements is 3 and can be customized. + Please note that for variable-length fields (varchar/varbinary), the default length is defined by the schema and cannot be set to a length greater than it. + For super-long fields (string/bytes), the default length is 100 and can be set to a length less than 2^31. + For constructed fields (array/map/multiset), the default number of elements is 3. </td> </tr> <tr> <td><h5>fields.#.var-len</h5></td> <td>optional</td> <td style="word-wrap: break-word;">false</td> <td>Boolean</td> - <td>Whether to generate a variable-length data, please notice that it should only be used for variable-length types (varchar, string, varbinary, bytes).</td> + <td>Whether to generate a variable-length data, only works for variable-length types (varchar, string, varbinary, bytes).</td> Review Comment: 是否生成变长数据,仅适用于变长数据类型(varchar、string、varbinary、bytes)。 -- 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. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org