ruanhang1993 commented on a change in pull request #17601: URL: https://github.com/apache/flink/pull/17601#discussion_r779278210
########## File path: flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/table/KafkaDynamicSource.java ########## @@ -393,7 +396,16 @@ public int hashCode() { kafkaSourceBuilder.setStartingOffsets(OffsetsInitializer.latest()); break; case GROUP_OFFSETS: - kafkaSourceBuilder.setStartingOffsets(OffsetsInitializer.committedOffsets()); + String offsetResetConfig = + properties.getProperty(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG); + if (offsetResetConfig == null) { Review comment: > Maybe you can get a default value `none` and avoid judging null. The properties for the Kafka client are not from fixed table options. So we have no way to set a default value. -- 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