[ 
https://issues.apache.org/jira/browse/FLINK-22475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17342584#comment-17342584
 ] 

Ingo Bürk commented on FLINK-22475:
-----------------------------------

For datagen, specifically, this actually gets even trickier. Both the default 
values and the data types of the options depend on the type of the field for 
which it is defined, so this cannot be represented using ConfigOption currently.

> Datagen connector does not list its available options with placeholders
> -----------------------------------------------------------------------
>
>                 Key: FLINK-22475
>                 URL: https://issues.apache.org/jira/browse/FLINK-22475
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Ecosystem
>    Affects Versions: 1.12.2, 1.13.0
>            Reporter: Ingo Bürk
>            Priority: Minor
>
> The Datagen connector provides optional options like "field.#.max" which 
> contain placeholders as the option is to be set per-field. However, its 
> factory does not list these placeholder options at all.
> In order to generate connector documentation from code, the factory should 
> list these placeholder options.
> Additionally, we should "standardize" the usage of '#' as a placeholder, 
> document it on the Factory interface and possibly even extend the validation 
> helper to 1) ignore required properties containing a '#' and 2) reject 
> provided options containing a '#' in their key.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to