nsivabalan commented on code in PR #18132:
URL: https://github.com/apache/hudi/pull/18132#discussion_r3058840191


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/MergeOnReadSnapshotRelation.scala:
##########
@@ -115,8 +117,7 @@ abstract class BaseMergeOnReadSnapshotRelation(sqlContext: 
SQLContext,
     val optionalFilters = filters
     val readers = createBaseFileReaders(tableSchema, requiredSchema, 
requestedColumns, requiredFilters, optionalFilters)
 
-    jobConf.set(HoodieFileReader.ENABLE_LOGICAL_TIMESTAMP_REPAIR,
-      java.lang.Boolean.toString(hasTimestampMillisFieldInTableSchema))
+    AvroSchemaUtils.setLogicalTimestampRepairIfNotSet(jobConf, 
JFunction.toJavaSupplier(() => 
hasTimestampMillisFieldInTableSchema.asInstanceOf[java.lang.Boolean]))

Review Comment:
   do we need to check for mdt here?



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