legendtkl commented on code in PR #1693:
URL: https://github.com/apache/incubator-paimon/pull/1693#discussion_r1287093690
##########
paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/LogSystemITCase.java:
##########
@@ -186,4 +190,93 @@ public void testReadFromLogWithOutSteamingReadMode()
throws Exception {
.hasMessage(
"File store continuous reading does not support the
log streaming read mode.");
}
+
+ @Test
+ @Timeout(60)
+ public void testLogSystemAutoRegister() throws TableNotExistException {
+ // enable log system auto registration
+ tEnv.executeSql(
+ String.format(
+ "CREATE CATALOG PAIMON_REGISTER WITH ("
+ + "'type'='paimon', 'warehouse'='%s',
'log.system.auto-register'='true')",
+ getTempDirPath()));
+ tEnv.useCatalog("PAIMON_REGISTER");
+
+ env.getCheckpointConfig().disableCheckpointing();
+ env.setParallelism(1);
+ tEnv.executeSql(
+ String.format(
+ "CREATE TABLE T (i INT, j INT) WITH ("
+ + "'log.system'='kafka', "
+ + "'log.system.partitions'='2', "
+ + "'write-mode'='append-only', "
+ + "'kafka.bootstrap.servers'='%s', "
+ + "'kafka.topic'='T')",
Review Comment:
Hi, @FangYongs , I think we should use the given topic name once users want
to manage kafka topics by self.
--
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]