voonhous commented on code in PR #6915:
URL: https://github.com/apache/hudi/pull/6915#discussion_r991885011
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableFactory.java:
##########
@@ -132,7 +133,7 @@ private void sanityCheck(Configuration conf, ResolvedSchema
schema) {
}
Arrays.stream(recordKeys)
- .filter(field -> !fields.contains(field))
+ .filter(field -> !fields.contains(getRootLevelFieldName(field)))
.findAny()
Review Comment:
Uhm, from what i understand, Spark-SQL supports nested primaryKey and
precombineField.
The changes I made here are to standardize the validations in Spark and
Flink.
https://issues.apache.org/jira/browse/HUDI-4051
https://github.com/apache/hudi/pull/5517/files
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableFactory.java:
##########
@@ -132,7 +133,7 @@ private void sanityCheck(Configuration conf, ResolvedSchema
schema) {
}
Arrays.stream(recordKeys)
- .filter(field -> !fields.contains(field))
+ .filter(field -> !fields.contains(getRootLevelFieldName(field)))
.findAny()
Review Comment:
Uhm, from what i understand, Spark-SQL supports nested primaryKey and
precombineField.
The changes I made here is to standardize the validations in Spark and Flink.
https://issues.apache.org/jira/browse/HUDI-4051
https://github.com/apache/hudi/pull/5517/files
--
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]