Skip to content

test: unignore DynamicPartitionPruning static scan metrics test#4038

Merged
andygrove merged 1 commit intoapache:mainfrom
andygrove:unignore-dpp-static-scan-metrics-3442
Apr 22, 2026
Merged

test: unignore DynamicPartitionPruning static scan metrics test#4038
andygrove merged 1 commit intoapache:mainfrom
andygrove:unignore-dpp-static-scan-metrics-3442

Conversation

@andygrove
Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #3442.

Rationale for this change

Non-AQE DPP support for CometNativeScanExec was added in #4011. The DynamicPartitionPruningV1Suite."static scan metrics" test had been tagged IgnoreCometNativeDataFusion("...issues/3442") and was left ignored by that PR because the test's getFactScan helper only matched FileSourceScanExec / BatchScanExec / CometScanExec, not CometNativeScanExec. With the native_datafusion DPP path in place, adding a CometNativeScanExec case lets the test run.

What changes are included in this PR?

For the Spark 3.4.3, 3.5.8, and 4.0.1 test diffs:

  • Remove IgnoreCometNativeDataFusion("...issues/3442") from the "static scan metrics" test.
  • Add a CometNativeScanExec case to the find(plan) block in getFactScan.

How are these changes tested?

Ran the test locally against Spark 3.5.8 with Comet enabled and SCAN_AUTO (resolves to native_datafusion):

ENABLE_COMET=true ENABLE_COMET_ONHEAP=true build/sbt \
  'sql/testOnly org.apache.spark.sql.DynamicPartitionPruningV1SuiteAEOff org.apache.spark.sql.DynamicPartitionPruningV1SuiteAEOn -- -z "static scan metrics"'

DynamicPartitionPruningV1SuiteAEOff:
- static scan metrics (681 milliseconds)
DynamicPartitionPruningV1SuiteAEOn:
- static scan metrics (disabled when AQE is on) !!! IGNORED !!!
Tests: succeeded 1, failed 0, canceled 0, ignored 1

The AEOn variant is ignored by Spark's own DisableAdaptiveExecution tag, not Comet. Spark SQL CI will cover 3.4.3 and 4.0.1.

DPP support for native_datafusion scan was added in apache#4011. Update the
Spark SQL test diffs so the test runs under native_datafusion by
removing the IgnoreCometNativeDataFusion tag and adding a
CometNativeScanExec case to getFactScan.
@andygrove andygrove force-pushed the unignore-dpp-static-scan-metrics-3442 branch from 6aa57ec to f55095a Compare April 22, 2026 20:00
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.

Approved pending CI. Sorry I missed this one. Good catch @andygrove!

@andygrove andygrove merged commit 0c13675 into apache:main Apr 22, 2026
132 checks passed
@andygrove andygrove deleted the unignore-dpp-static-scan-metrics-3442 branch April 22, 2026 21:26
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.

Add DPP support to native_datafusion/CometNativeScan

2 participants