Skip to content

[MINOR][VL][TEST] Drop dead Spark 3.2 TPC-H golden plans#12548

Open
LuciferYang wants to merge 1 commit into
apache:mainfrom
LuciferYang:gluten-minor-vl-spark32-golden-plans
Open

[MINOR][VL][TEST] Drop dead Spark 3.2 TPC-H golden plans#12548
LuciferYang wants to merge 1 commit into
apache:mainfrom
LuciferYang:gluten-minor-vl-spark32-golden-plans

Conversation

@LuciferYang

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Follow-up to #12525 / #12541 / #12543. Now that Gluten no longer supports Spark 3.2, the TPC-H golden plans for Spark 3.2 are dead test fixtures.

  • backends-velox/.../VeloxTPCHSuite.scala: drop the case "32" => true branch in shouldCheckGoldenFiles. formatSparkVersion is derived from spark.version.substring(0, 2) and can never be "32" on any supported profile (Spark 3.3+), so the branch is unreachable.
  • backends-velox/src/test/resources/tpch-approved-plan/{v1,v1-bhj,v1-ras,v1-bhj-ras}/spark32/: remove all four spark32/ subdirectories and their 84 golden .txt files. They were only loaded via tpch-approved-plan/${subType()}/spark$formatSparkVersion/$id.txt when the pruned branch matched.

The spark33 / spark34 / spark35 case branches and golden plan directories are kept as-is. No behavior change on any supported Spark version.

How was this patch tested?

  • ./build/mvn -Pbackends-velox -Pspark-3.5 -pl backends-velox -am test-compile -DskipTests: SUCCESS
  • ./dev/format-scala-code.sh: no additional diff
  • Repo-wide grep -r "tpch-approved-plan|spark32" confirms VeloxTPCHSuite.scala is the only Scala/Java caller and the only remaining references to spark32 outside this diff are catalogued for follow-up cleanup (dev/*.sh, LICENSE, package/pom.xml), which are intentionally out of scope for this test-infrastructure PR.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude claude-opus-4-7

Now that Gluten no longer supports Spark 3.2:

* `VeloxTPCHSuite.shouldCheckGoldenFiles`: drop the `case "32" => true`
  branch. `formatSparkVersion` cannot be `"32"` on any supported profile
  (3.3+), so the branch is unreachable.
* Remove the four `tpch-approved-plan/{v1,v1-bhj,v1-ras,v1-bhj-ras}/spark32/`
  directories and their 84 golden `.txt` files. They were only loaded when
  the pruned branch matched and are unreferenced now.

The 3.3 / 3.4 / 3.5 golden plans (and their case branches) are kept as-is.
No behavior change on any supported Spark version.
Copilot AI review requested due to automatic review settings July 17, 2026 08:14
@LuciferYang

Copy link
Copy Markdown
Contributor Author

cc @jackylee-ch

@jackylee-ch jackylee-ch 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.

👍

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.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants