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


##########
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:
   `ResolvedTable. getPartitionKeys()` returns a list. `newArrayList ("par1, 
par2")`, where the length is actually 1 and the element is "par1, par2"



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