Skip to content

[spark] Run the shared Spark suites on Spark 4.2 and 4.3 - #11373

Draft
LuciferYang wants to merge 3 commits into
apache:masterfrom
LuciferYang:spark42-format-table-test
Draft

LuciferYang wants to merge 3 commits into
apache:masterfrom
LuciferYang:spark42-format-table-test

Conversation

@LuciferYang

@LuciferYang LuciferYang commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

The spark42 and spark43 lanes only run paimon-spark-4.2's own tests (paimon-spark-4.3 compiles the same sources), and that module subclassed almost none of the shared paimon-spark-ut suites that the 3.2 to 4.1 modules run. This adds the missing subclasses.

Tests that hit Paimon bugs on 4.2 and 4.3 are excluded there, with a TODO: UPDATE and MERGE INTO on VARCHAR columns (#11382), DESCRIBE TABLE ... PARTITION (#11383) and metadata-only DELETE (#11376). DeleteFromTableTest and PaimonOptimizationTest come with #11377, DDLTest and DDLWithHiveCatalogTest with #11353.

Tests

Three shared tests assumed Spark 4.1 behavior; they now check the 4.2 behavior on 4.2 and later:

  • Since Spark 4.2 (SPARK-55092), a grouped scan keeps one partition per read unit and Spark groups them where a join requires it. BucketedScanPlanningTestBase gets hooks for that; the docs on plain-scan parallelism now say it applies up to 4.1.
  • Since Spark 4.3 (SPARK-58315), a V2 scan reports only its size without plan stats, so getScanStatistic enables spark.sql.cbo.planStats.enabled.
  • Spark 4.2 rewords the DROP FUNCTION error on a temporary function.

The 4.2 copy of the 4.1-only GeospatialTypeSQLTest looks ST_Intersects up as system.builtin.st_intersects, the only form Spark 4.2's function registry accepts.

@LuciferYang
LuciferYang marked this pull request as draft November 23, 2026 09:20
@LuciferYang LuciferYang changed the title [spark] Run FormatTableTest on Spark 4.2 and 4.3 [spark] Run the shared Spark suites on Spark 4.2 and 4.3 Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant