YannByron commented on code in PR #6476:
URL: https://github.com/apache/hudi/pull/6476#discussion_r958082018


##########
hudi-spark-datasource/hudi-spark3.1.x/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/Spark31HoodieParquetFileFormat.scala:
##########
@@ -313,7 +313,7 @@ class Spark31HoodieParquetFileFormat(private val 
shouldAppendPartitionValues: Bo
           }).toAttributes ++ partitionSchema.toAttributes
           val castSchema = newFullSchema.zipWithIndex.map { case (attr, i) =>
             if (typeChangeInfos.containsKey(i)) {
-              Cast(attr, typeChangeInfos.get(i).getLeft)
+              Cast(attr, typeChangeInfos.get(i).getLeft, 
Option(sharedConf.get(SQLConf.SESSION_LOCAL_TIMEZONE.key)))

Review Comment:
   I remember one UT will fail due to this. let me try to figure out 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]

Reply via email to