Skip to content

[VL] Fix GlutenKeyGroupedPartitioningSuite in Spark 4.1#12482

Merged
zhouyuan merged 1 commit into
apache:mainfrom
zml1206:GlutenKeyGroupedPartitioningSuite
Jul 10, 2026
Merged

[VL] Fix GlutenKeyGroupedPartitioningSuite in Spark 4.1#12482
zhouyuan merged 1 commit into
apache:mainfrom
zml1206:GlutenKeyGroupedPartitioningSuite

Conversation

@zml1206

@zml1206 zml1206 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This PR updates GlutenKeyGroupedPartitioningSuite for Spark 4.1 to handle the new SPARK-54439 test coverage.

Spark 4.1 added tests for KeyGroupedPartitioning cases where the reported partitioning key size does not match the join key size. Since Gluten does not currently support these cases with native columnar shuffle, this PR excludes the original Spark-side SPARK-54439 tests from the Velox settings and adds Gluten-aware versions that validate the expected fallback behavior.

Copilot AI review requested due to automatic review settings July 9, 2026 06:00
@github-actions github-actions Bot added the CORE works for Gluten Core label Jul 9, 2026
@zml1206 zml1206 changed the title [VL] Fix SPARK-54439 in GlutenKeyGroupedPartitioningSuite for Spark 4.1 [VL] Fix GlutenKeyGroupedPartitioningSuite in Spark 4.1 Jul 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Gluten’s Spark 4.1 KeyGroupedPartitioning test suite to account for new upstream SPARK-54439 coverage by excluding Spark’s original SPARK-54439 tests under Velox settings and adding Gluten-specific replacements intended to validate the expected fallback behavior.

Changes:

  • Added two new testGluten cases in GlutenKeyGroupedPartitioningSuite for SPARK-54439 join-key/partitioning-key size mismatch scenarios.
  • Updated Velox Spark 4.1 test settings to exclude Spark tests prefixed with SPARK-54439.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
gluten-ut/spark41/src/test/scala/org/apache/spark/sql/connector/GlutenKeyGroupedPartitioningSuite.scala Adds Gluten-specific SPARK-54439 tests intended to validate fallback behavior for key-size mismatch cases.
gluten-ut/spark41/src/test/scala/org/apache/gluten/utils/velox/VeloxTestSettings.scala Excludes Spark-side SPARK-54439 tests for Velox Spark 4.1 runs so Gluten-specific variants can be used instead.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +2055 to +2057
val shuffles = collectShuffles(df.queryExecution.executedPlan)
assert(shuffles.size == 1, "only shuffle one side not report partitioning")

Comment on lines +2082 to +2084
val shuffles = collectShuffles(df.queryExecution.executedPlan)
assert(shuffles.size == 1, "only shuffle one side not report partitioning")

@zml1206 zml1206 requested review from philo-he and zhouyuan July 10, 2026 01:47
@zhouyuan

Copy link
Copy Markdown
Member

related: #11400

@zhouyuan zhouyuan merged commit fadf006 into apache:main Jul 10, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants