Skip to content

[VL][BUG] Fix DPP regression for Hive scans and add DynamicPartitionPruningHiveScanSuite#11710

Draft
acvictor wants to merge 6 commits intoapache:mainfrom
acvictor:acvictor/dpp
Draft

[VL][BUG] Fix DPP regression for Hive scans and add DynamicPartitionPruningHiveScanSuite#11710
acvictor wants to merge 6 commits intoapache:mainfrom
acvictor:acvictor/dpp

Conversation

@acvictor
Copy link
Contributor

@acvictor acvictor commented Mar 6, 2026

What changes are proposed in this pull request?

This PR fixes a regression introduced by 11113 where Dynamic Partition Pruning (DPP) queries on Hive tables fail with requirement failed: input[0, bigint, true] IN dynamicpruning has not finished because
doValidateInternal() calls getDistinctPartitionReadFileFormats, which triggers evaluation of prunedPartitions and this evaluates DPP subqueries that haven't executed yet at plan validation time.

The fix overrides getDistinctPartitionReadFileFormats in HiveTableScanExecTransformer to use relation.prunedPartitions (statically pruned by the optimizer, always available at plan time) instead of the lazy val chain that triggers DPP subquery evaluation. This is safe because validation only checks whether file formats are supported.

How was this patch tested?

Added GlutenDynamicPartitionPruningHiveScanSuite (AEOff/AEOn) test suites

Was this patch authored or co-authored using generative AI tooling?

No

@github-actions github-actions bot added the CORE works for Gluten Core label Mar 6, 2026
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

1 similar comment
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

1 similar comment
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

Run Gluten Clickhouse CI on x86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant