LuciferYang opened a new pull request, #13726: URL: https://github.com/apache/gluten/pull/13726
## What changes are proposed in this pull request? Two partitioned-write failures of the native Delta 3.3 writer (see the issue): - With `spark.sql.maxConcurrentOutputFileWriters > 0`, `GlutenDeltaFileFormatWriter` skipped the native sort and used Spark's row-based concurrent writer, which can't read a `BatchCarrierRow`. It now always sorts natively and writes with `GlutenDynamicPartitionDataSingleWriter`, as it does when the conf is 0. The table content is the same as Spark's. - When the input is already sorted, the empty-to-null project over a string partition column is now run in a stage instead of being handed to the carrier-row conversion as a bare transformer. Native Delta write is off by default, and both reproduce on v1.7.0, so this isn't a 1.8 regression. Fixes #13720. ## How was this patch tested? Added a test to `DeltaNativeWriteSuite` that writes a partitioned table with `maxConcurrentOutputFileWriters` 0 and 2, a string and an int partition column, and presorted and unsorted input, and checks the rows and that the write stays native. It fails without the fix. The suite isn't in the PR CI's suite list (it runs in the nightly job), so it was run locally on Spark 3.5. ## Was this patch authored or co-authored using generative AI tooling? Yes. Generated-by: 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]
