[
https://issues.apache.org/jira/browse/FLINK-31084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17689030#comment-17689030
]
Weijie Guo commented on FLINK-31084:
------------------------------------
This document is really a bit confusing. `fields.#.start` is marked as
optional, but it is required in sequence mode. I can't infer this requirement
from the document at all. Perhaps the reason for this is that this param is not
required in random mode.
IIUC, you mean that intStart and intEnd should use `0` and `Integer.MAX_VALUE`
respectively as the default value?
> DataGen sequence generator requires the definition of start/end values
> ----------------------------------------------------------------------
>
> Key: FLINK-31084
> URL: https://issues.apache.org/jira/browse/FLINK-31084
> Project: Flink
> Issue Type: Improvement
> Components: Connectors / Common
> Affects Versions: 1.17.0, 1.15.3, 1.16.1
> Reporter: Matthias Pohl
> Priority: Major
> Labels: starter
>
> The [DataGen connector's
> parameters|https://nightlies.apache.org/flink/flink-docs-release-1.16/docs/connectors/table/datagen/#connector-options]
> are not precisely documented: The start/end parameters are labeled as
> required for the sequence generator even though they are (see
> [SequenceGeneratorVisitor:85ff|https://github.com/apache/flink/blob/ef9ce854a3169014001f39e0d5908c703453f2b8/flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/SequenceGeneratorVisitor.java#L85]).
> But instead of updating the documentation, we should just come up with
> reasonable default values. As a user, I would expect the positive integer
> values to be returned starting from 0 if I don't specify anything here.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)