Skip to content

test: skip two Spark 3.4 tests that cannot pass there - #7423

Merged
andygrove merged 1 commit into
apache:mainfrom
andygrove:andygrove/fix-spark-34-ci
Nov 2, 2026
Merged

andygrove merged 1 commit into
apache:mainfrom
andygrove:andygrove/fix-spark-34-ci

Conversation

@andygrove

Copy link
Copy Markdown
Member

Which issue does this PR close?

Related to #7422. Does not close it: the Iceberg failure it describes is still open.

Rationale for this change

The Spark 3.4 jobs fail on two tests that were never run against 3.4 when they merged. They only surfaced on #7402, which carried run-all-spark-profiles.

What changes are included in this PR?

  • CometCollectMetricsSuite: the two "public foreachPartition preserves observation row demand" tests now require Spark 3.5+. Spark 3.4's Dataset.foreachPartition calls withNewRDDExecutionId without a name, so no QueryExecutionListener callback reports the plan the test asserts on.
  • CometIcebergNativeSuite: "AQE DPP - V2 broadcast query stage creation order (SPARK-34637)" now requires Spark 3.5+. On 3.4 it fails deterministically with Column index 1 is out of bound. Schema: . The root cause is a real bug tracked in Spark 3.4: native Iceberg scan with AQE DPP fails with "Column index 1 is out of bound" when the build side needs an inserted exchange #7422, so the test should be re-enabled when that is fixed. The now-dead isSpark35Plus check inside the test is removed.

How are these changes tested?

Ran each test locally with -Pspark-3.4: all three report as canceled, and before the change the Iceberg test failed with the error above. The Spark 3.5+ behavior is unchanged.

The public foreachPartition observation tests rely on a listener callback that Spark 3.4 does not fire, because Dataset.foreachPartition runs unnamed there.

The Iceberg SPARK-34637 DPP test fails on 3.4 with a native planning error tracked in apache#7422.

@mbutrovich mbutrovich 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.

Usually I don't love a workaround that just disables a failing test for a Spark version, but it's Spark 3.4...

Thanks @andygrove!

@comphead comphead 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.

Thanks @andygrove

@andygrove
andygrove added this pull request to the merge queue Nov 2, 2026
@comphead

comphead commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

The fix #7424

Merged via the queue into apache:main with commit 3439d48 Nov 2, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Iceberg enhancement New feature or request test Testing related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants