Skip to content

Fix filter pruning for string columns with numeric literals - #7523

Open
sivakumar-mahalingam wants to merge 1 commit into
delta-io:masterfrom
sivakumar-mahalingam:fix/7136-filter-pruning
Open

Fix filter pruning for string columns with numeric literals#7523
sivakumar-mahalingam wants to merge 1 commit into
delta-io:masterfrom
sivakumar-mahalingam:fix/7136-filter-pruning

Conversation

@sivakumar-mahalingam

Copy link
Copy Markdown

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

This PR fixes filter pruning for predicates comparing string columns with numeric literals.

When a string column contains numeric-looking values, a predicate using a numeric literal can prevent Delta from effectively using file-level statistics for data skipping.

This change updates the filter/data-skipping logic to correctly handle these predicates and adds regression test coverage.

Resolves #7136

How was this patch tested?

Added regression test coverage in DataSkippingDeltaTests for filtering string columns with numeric literals.

The test verifies the expected filter pruning behavior.

Does this PR introduce any user-facing changes?

Yes. Queries using numeric literals against string columns can now benefit from Delta data skipping where applicable.

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.

[BUG][Spark] Filter pruning (data skipping)

1 participant