Konstantin Knauf created FLINK-18185:
----------------------------------------

             Summary: Confusing ValidationExcetion in DataGenTableSourceFactory
                 Key: FLINK-18185
                 URL: https://issues.apache.org/jira/browse/FLINK-18185
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / API
    Affects Versions: 1.11.0
            Reporter: Konstantin Knauf


If you create a "datagen" connector with a squence data type and do not provide 
"start" and "end" you'll see a validation error like below. Instead of logging 
the property an `OptionBuilder` is logged instead.

```
Caused by: org.apache.flink.table.api.ValidationException: Could not find 
required property 
'org.apache.flink.configuration.ConfigOptions$OptionBuilder@5822fcdd'.
        at 
org.apache.flink.table.factories.DataGenTableSourceFactory.lambda$createSequenceGenerator$1(DataGenTableSourceFactory.java:181)
 ~[flink-table-api-java-bridge_2.11-1.11-SNAPSHOT.jar:1.11-SNAPSHOT]
        at java.base/java.util.Optional.orElseThrow(Unknown Source) ~[na:na]
        at 
org.apache.flink.table.factories.DataGenTableSourceFactory.createSequenceGenerator(DataGenTableSourceFactory.java:180)
 ~[flink-table-api-java-bridge_2.11-1.11-SNAPSHOT.jar:1.11-SNAPSHOT]
        at 
org.apache.flink.table.factories.DataGenTableSourceFactory.createDataGenerator(DataGenTableSourceFactory.java:118)
 ~[flink-table-api-java-bridge_2.11-1.11-SNAPSHOT.jar:1.11-SNAPSHOT]
        at 
org.apache.flink.table.factories.DataGenTableSourceFactory.createDynamicTableSource(DataGenTableSourceFactory.java:102)
 ~[flink-table-api-java-bridge_2.11-1.11-SNAPSHOT.jar:1.11-SNAPSHOT]
        at 
org.apache.flink.table.factories.FactoryUtil.createTableSource(FactoryUtil.java:122)
 ~[flink-table-common-1.11-SNAPSHOT.jar:1.11-SNAPSHOT]
        ... 142 common frames omitted
```



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

Reply via email to