[GLUTEN-11088][VL] Fix GlutenParquetIOSuite compatibility issues for Spark 4.0#11281
Merged
baibaichen merged 7 commits intoapache:mainfrom Dec 17, 2025
Merged
Conversation
|
Run Gluten Clickhouse CI on x86 |
73dfa1d to
7baaac2
Compare
|
Run Gluten Clickhouse CI on x86 |
1 similar comment
|
Run Gluten Clickhouse CI on x86 |
59fb290 to
5d2b367
Compare
|
Run Gluten Clickhouse CI on x86 |
Member
|
@baibaichen |
5d2b367 to
4674f9d
Compare
|
Run Gluten Clickhouse CI on x86 |
Contributor
Author
Thanks @zhouyuan. This isn't related to ANSI mode; the issue was introduced by my fix. |
…riteError` for task failure handling.
4674f9d to
45e4618
Compare
|
Run Gluten Clickhouse CI on x86 |
rui-mo
approved these changes
Dec 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR fixes compatibility issues in
GlutenParquetIOSuitefor Spark 4.0 by addressing the following Spark 4.0 shim layer changes:Respect
mapreduce.output.basenameconfiguration: UpdatedSparkWriteFilesCommitProtocolto honor themapreduce.output.basenameconfiguration when generating output file names, aligning with SPARK-49991.Proper error handling in write operations: Replaced direct exception throwing with
GlutenFileFormatWriter.throwWriteErrorto use Spark's standardized error handling mechanism (QueryExecutionErrors.taskFailedWhileWritingRowsError). aligning with SPARK-45844.Code quality improvements:
sparkStageId,sparkPartitionId, andsparkAttemptNumberfor better type safetyfileNamesinitialization fromnullto underscore idiom (_) for cleaner Scala stylescala.collection.JavaConverterstoscala.jdk.CollectionConvertersTextScaninstantiation by removing redundantnewkeyword (applies to Scala 3/case class patterns)Test coverage: Re-enabled 3 previously excluded tests in
VeloxTestSettings:SPARK-49991: Respect 'mapreduce.output.basename' to generate file namesSPARK-6330 regression testSPARK-7837 Do not close output writer twice when commitTask() failsWhy are the changes needed?
The Spark 4.0 upgrade introduced breaking changes in the shim layer:
mapreduce.output.basenameWithout these changes,
GlutenParquetIOSuitetests fail due to:How was this patch tested?
mapreduce.output.basenameconfigurationsRelated Issue
Addresses #11088 (Track on Spark-4.0 failed unit tests)