Hisoka-X commented on code in PR #7484:
URL: https://github.com/apache/seatunnel/pull/7484#discussion_r1729827042


##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/catalog/utils/CatalogUtils.java:
##########
@@ -290,7 +300,11 @@ public static CatalogTable getCatalogTable(
         }
         String catalogName = "jdbc_catalog";
         return CatalogTable.of(
-                TableIdentifier.of(catalogName, "default", "default", 
"default"),
+                TableIdentifier.of(
+                        catalogName,
+                        StringUtils.isBlank(databaseName) ? null : 
databaseName,
+                        StringUtils.isBlank(schemaName) ? null : schemaName,
+                        StringUtils.isBlank(tableName) ? "default" : 
tableName),

Review Comment:
   How about when `tableName` name is null, set tablepath to 
`default.default.default`? Otherwise keep as it is.



-- 
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