voonhous commented on code in PR #6915:
URL: https://github.com/apache/hudi/pull/6915#discussion_r1034344167


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/table/HoodieTableFactory.java:
##########
@@ -142,7 +143,7 @@ private void sanityCheck(Configuration conf, ResolvedSchema 
schema) {
 
     // validate pre_combine key
     String preCombineField = conf.get(FlinkOptions.PRECOMBINE_FIELD);
-    if (!fields.contains(preCombineField)) {
+    if (!fields.contains(getRootLevelFieldName(preCombineField))) {
       if (OptionsResolver.isDefaultHoodieRecordPayloadClazz(conf)) {

Review Comment:
   @danny0405 I have added the feature to validate nested fields for Flink. 
   
   Can you please help to review this PR again? 
   
   Thank you.



-- 
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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to