LuciferYang opened a new issue, #13720:
URL: https://github.com/apache/gluten/issues/13720
With `spark.gluten.sql.columnar.backend.velox.delta.enableNativeWrite=true`
on Spark 3.5 (Delta 3.3), `GlutenDeltaFileFormatWriter` fails partitioned
writes in two cases:
1. `spark.sql.maxConcurrentOutputFileWriters > 0`. The writer skips the
native sort and hands the native plan to Spark's row-based
`DynamicPartitionDataConcurrentWriter` (marked "TODO: Concurrent writer is not
yet supported"). With a string partition column the write fails with
`[INTERNAL_ERROR] ... ProjectExecTransformer has column support mismatch`; with
an int partition column it fails in the task with
`UnsupportedOperationException: Underlying columnar data is inaccessible from
BatchCarrierRow`.
2. The input is already sorted by a string partition column, e.g.
`df.sortWithinPartitions("s").write.format("delta").partitionBy("s").save(path)`.
The project that turns empty strings into nulls is not placed in a stage, and
the write fails with the same column support mismatch, with any value of
`maxConcurrentOutputFileWriters`.
Delta 4 (`GlutenDeltaNativeWriteGate`) falls back for the first case. Native
Delta write is off by default. Both reproduce on v1.8.0-rc1 and v1.7.0.
This issue was written with the assistance of AI (Claude Opus).
--
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]