Cheun99 commented on code in PR #8401:
URL: https://github.com/apache/seatunnel/pull/8401#discussion_r1906324929


##########
seatunnel-connectors-v2/connector-kafka/src/main/java/org/apache/seatunnel/connectors/seatunnel/kafka/source/KafkaSourceConfig.java:
##########
@@ -205,7 +205,8 @@ private ConsumerMetadata 
createConsumerMetadata(ReadonlyConfig readonlyConfig) {
     private CatalogTable createCatalogTable(ReadonlyConfig readonlyConfig) {
         Optional<Map<String, Object>> schemaOptions =
                 readonlyConfig.getOptional(TableSchemaOptions.SCHEMA);
-        TablePath tablePath = TablePath.of(readonlyConfig.get(TOPIC));
+        String topic = readonlyConfig.get(TOPIC).replace(".", "_");
+        TablePath tablePath = TablePath.of("kafka", topic);

Review Comment:
   
https://github.com/apache/seatunnel/blob/dev/seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/task/flow/SinkFlowLifeCycle.java#L132
   
   If the kafka topic name contains more than 3 points, when this line of code 
is executed, it will still be separated by points. If the element is greater 
than 3, IllegalArgumentException will still be thrown



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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to