JeremyXin commented on code in PR #9446:
URL: https://github.com/apache/seatunnel/pull/9446#discussion_r2184112087
##########
seatunnel-connectors-v2/connector-clickhouse/src/main/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/sink/file/ClickhouseTable.java:
##########
@@ -68,4 +68,24 @@ public String getLocalTableName() {
return tableName;
}
}
+
+ public String getLocalDatabase() {
+ if (distributedEngine != null) {
+ return distributedEngine.getDatabase();
+ } else {
+ return database;
+ }
+ }
+
+ public String getLocalTableIdentifier() {
+ if (distributedEngine != null) {
+ return String.format("%s.%s", getLocalDatabase(),
getLocalTableName());
+ } else {
+ return String.format("%s.%s", database, tableName);
Review Comment:
done.
--
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]