hailin0 commented on code in PR #5663:
URL: https://github.com/apache/seatunnel/pull/5663#discussion_r1373160995
##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/sink/JdbcSinkFactory.java:
##########
@@ -89,38 +96,87 @@ private ReadonlyConfig
getCatalogOptions(TableSinkFactoryContext context) {
public TableSink createSink(TableSinkFactoryContext context) {
ReadonlyConfig config = context.getOptions();
CatalogTable catalogTable = context.getCatalogTable();
- ReadonlyConfig catalogOptions = getCatalogOptions(context);
+ Map<String, String> catalogOptions =
+ config.get(CatalogOptions.CATALOG_OPTIONS) == null
+ ? new HashMap<>()
+ : config.get(CatalogOptions.CATALOG_OPTIONS);
Review Comment:
Why change here
--
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]