yihua commented on code in PR #5523:
URL: https://github.com/apache/hudi/pull/5523#discussion_r927763715
##########
hudi-kafka-connect/src/main/java/org/apache/hudi/connect/utils/KafkaConnectUtils.java:
##########
@@ -174,7 +174,9 @@ public static Configuration
getDefaultHadoopConf(KafkaConnectConfigs connectConf
* @return Returns the record key columns separated by comma.
*/
public static String getRecordKeyColumns(KeyGenerator keyGenerator) {
- return String.join(",", keyGenerator.getRecordKeyFieldNames());
+ return keyGenerator.getRecordKeyFieldNames().stream()
+ .map(HoodieAvroUtils::getRootLevelFieldName)
Review Comment:
Got it
--
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]