ReemaAlzaid commented on code in PR #13674:
URL: https://github.com/apache/gluten/pull/13674#discussion_r4768984316
##########
backends-velox/src-delta33/main/scala/org/apache/spark/sql/delta/GlutenOptimisticTransaction.scala:
##########
@@ -73,6 +92,27 @@ class GlutenOptimisticTransaction(delegate:
OptimisticTransaction)
val partitioningColumns = getPartitioningColumns(partitionSchema, output)
+ // As in the Delta 4.x write gate, check the normalized output so
generated columns are included.
+ // Partition-only values live in directory names rather than Parquet data
columns.
+ val dataOutput = output.filterNot(partitioningColumns.contains)
+ val hasDateData = dataOutput.exists {
+ field => SchemaUtils.typeExistsRecursively(field.dataType)(_ == DateType)
+ }
+ val hasTimestampData = dataOutput.exists {
+ field => SchemaUtils.typeExistsRecursively(field.dataType)(_ ==
TimestampType)
Review Comment:
Fixed in 897e5c580. Added recursive NTZ fallback across all rebase modes.
Regression tests pass
##########
backends-velox/src-delta33/main/scala/org/apache/spark/sql/delta/GlutenOptimisticTransaction.scala:
##########
@@ -73,6 +92,27 @@ class GlutenOptimisticTransaction(delegate:
OptimisticTransaction)
val partitioningColumns = getPartitioningColumns(partitionSchema, output)
+ // As in the Delta 4.x write gate, check the normalized output so
generated columns are included.
+ // Partition-only values live in directory names rather than Parquet data
columns.
+ val dataOutput = output.filterNot(partitioningColumns.contains)
Review Comment:
Fixed in 897e5c580 using `ParquetUtils.hasFieldIds`
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]