You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[native_datafusion] [Spark SQL Tests] Dynamic Partition Pruning (DPP) not working correctly #3313
3 Spark SQL tests fail due to DPP-related issues when native_datafusion scan is used in auto mode.
Failing Tests
DynamicPartitionPruningSuite: "static scan metrics" — scanOption.isDefined was false
ExplainSuite: "explain formatted - check presence of subquery in case of DPP" — expected 2 subqueries, found 0
Multiple TASK_WRITE_FAILED errors in DPP-related stages
Root Cause
nativeDataFusionScan already has a check for dynamic pruning filters (isDynamicPruningFilter), but these tests use DPP scenarios (e.g. static pruning, subqueries) that may bypass that check. The fallback logic may need to be broadened, or the plan structure produced by native_datafusion may not be compatible with DPP expectations.
Related
Discovered in CI for #3307 (enable native_datafusion in auto scan mode).
Reopening. When enabling native_datafusion in auto scan mode with Spark 4.0.1 and unignoring the IgnoreCometNativeDataFusion("…/3321") tags, this DPP test still fails:
DynamicPartitionPruningSuite: "Subquery reuse across the whole plan" (fails in V1SuiteAEOff; passes in V2SuiteAEOff, V2FilterSuiteAEOff; AEOn variants are skipped via DisableAdaptiveExecution). Failure: List(880, 787, 660) had size 3 instead of expected size 2 — whole-plan subquery reusing not working correctly.
Activity
peterxcli commentedon Jan 30, 2026
take
Add IgnoreCometNativeDataFusion annotations for failing native_datafu…
skip additional native_datafusion test failures in Spark SQL tests
fix: detect all DPP forms in native_datafusion scan fallback
chore: Enable spark SQL tests for issues now resolved in native_dataf…
chore: re-enable Spark SQL tests for fixed issues in 3.5.8 diff
fix: remove unnecessary IgnoreCometNativeDataFusion tags from 3.5.8 diff
andygrove commentedon Apr 23, 2026
Reopening. When enabling
native_datafusionin auto scan mode with Spark 4.0.1 and unignoring theIgnoreCometNativeDataFusion("…/3321")tags, this DPP test still fails:DynamicPartitionPruningSuite: "Subquery reuse across the whole plan" (fails inV1SuiteAEOff; passes inV2SuiteAEOff,V2FilterSuiteAEOff;AEOnvariants are skipped viaDisableAdaptiveExecution). Failure:List(880, 787, 660) had size 3 instead of expected size 2— whole-plan subquery reusing not working correctly.fix: enable Spark 4 SQL tests previously ignored for issues #3313 and #…
test: unignore Spark 4.1.1 tests gated on closed issues apache#4045, a…