YannByron commented on a change in pull request #4565: URL: https://github.com/apache/hudi/pull/4565#discussion_r785604585
########## File path: hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieMergeOnReadRDD.scala ########## @@ -54,15 +54,20 @@ class HoodieMergeOnReadRDD(@transient sc: SparkContext, private val preCombineField = tableState.preCombineField private val recordKeyFieldOpt = tableState.recordKeyFieldOpt private val payloadProps = if (preCombineField.isDefined) { - Some(HoodiePayloadConfig.newBuilder.withPayloadOrderingField(preCombineField.get).build.getProps) + val properties = HoodiePayloadConfig.newBuilder + .withPayloadOrderingField(preCombineField.get) + .withPayloadEventTimeField(preCombineField.get) Review comment: I think not. But I also have no idea about the exception when set `returnNullIfNotFound` true and call `getNestedFieldVal`. But if `PAYLOAD_ORDERING_FIELD_PROP_KEY` is set automatically when `preCombineField` is set, which we should have done this, it works 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org