Skip to content

test: [Spark 4.1.1] unignore CachedBatchSerializerNoUnwrapSuite#4204

Merged
mbutrovich merged 1 commit intoapache:mainfrom
andygrove:issue-4137
May 4, 2026
Merged

test: [Spark 4.1.1] unignore CachedBatchSerializerNoUnwrapSuite#4204
mbutrovich merged 1 commit intoapache:mainfrom
andygrove:issue-4137

Conversation

@andygrove
Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #4137.

Rationale for this change

The CachedBatchSerializerNoUnwrapSuite test in Spark 4.1.1 asserts that, under DefaultCachedBatchSerializerNoUnwrap, the cached plan retains a row-conversion operator on top of its columnar scan. With Comet enabled, Comet replaces Spark's ColumnarToRowExec with CometNativeColumnarToRow (over CometNativeScan), which preserves the serializer's intended "don't unwrap" semantics but differs in class identity from the assertion.

What changes are included in this PR?

  • Update the 4.1.1 diff so the cached-plan assertion accepts either the Spark shape (WholeStageCodegenExec(ColumnarToRowExec(...))) or the equivalent Comet shape (any org.apache.spark.sql.comet.* plan node).
  • Remove the IgnoreComet tag on the test.

How are these changes tested?

Ran CachedBatchSerializerNoUnwrapSuite locally against Spark 4.1.1 with Comet enabled — test passes.

…he#4137)

Accept Comet's equivalent columnar-to-row operator in the cached plan
assertion. The serializer's goal is to avoid unwrapping the row
conversion, which is preserved when Comet replaces ColumnarToRowExec
with CometNativeColumnarToRow / CometColumnarToRow.
Copy link
Copy Markdown
Contributor

@mbutrovich mbutrovich left a comment

Choose a reason for hiding this comment

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

Thanks for testing this, @andygrove!

@mbutrovich mbutrovich merged commit 7200cc7 into apache:main May 4, 2026
193 of 194 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CachedBatchSerializerNoUnwrapSuite: Comet replaces WholeStageCodegenExec

2 participants