danny0405 commented on code in PR #10840:
URL: https://github.com/apache/hudi/pull/10840#discussion_r1524073064


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/catalog/HoodieCatalog.java:
##########
@@ -345,7 +345,7 @@ public void createTable(ObjectPath tablePath, 
CatalogBaseTable catalogTable, boo
       options.put(TableOptionProperties.PARTITION_COLUMNS, partitions);
 
       final String[] pks = 
conf.getString(FlinkOptions.RECORD_KEY_FIELD).split(",");
-      boolean complexHoodieKey = pks.length > 1 || 
resolvedTable.getPartitionKeys().size() > 1;
+      boolean complexHoodieKey = pks.length > 1 || 
partitions.split(",").length > 1;

Review Comment:
   It should not be the case, otherwise code L343 ~ L345 does not work well.



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