JingsongLi commented on a change in pull request #10468: [FLINK-14649][table 
sql / api] Flatten all the connector properties keys to make it easy to 
configure in DDL
URL: https://github.com/apache/flink/pull/10468#discussion_r355121850
 
 

 ##########
 File path: 
flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/table/descriptors/KafkaValidator.java
 ##########
 @@ -92,21 +96,36 @@ private void validateStartupMode(DescriptorProperties 
properties) {
                
startupModeValidation.put(CONNECTOR_STARTUP_MODE_VALUE_GROUP_OFFSETS, 
noValidation());
                
startupModeValidation.put(CONNECTOR_STARTUP_MODE_VALUE_EARLIEST, 
noValidation());
                startupModeValidation.put(CONNECTOR_STARTUP_MODE_VALUE_LATEST, 
noValidation());
-               startupModeValidation.put(
-                       CONNECTOR_STARTUP_MODE_VALUE_SPECIFIC_OFFSETS,
-                       key -> 
properties.validateFixedIndexedProperties(CONNECTOR_SPECIFIC_OFFSETS, false, 
specificOffsetValidators));
+
+               if (properties.containsKey(CONNECTOR_SPECIFIC_OFFSETS)) {
+                       validateAndGetSpecificOffsetsStr(properties);
 
 Review comment:
   Can you validate using validator style?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to