Skip to content

HIVE-29442: Avoid redundancy in FilterStatsRule#evaluateComparator#6300

Open
thomasrebele wants to merge 1 commit intoapache:masterfrom
thomasrebele:tr/HIVE-29442
Open

HIVE-29442: Avoid redundancy in FilterStatsRule#evaluateComparator#6300
thomasrebele wants to merge 1 commit intoapache:masterfrom
thomasrebele:tr/HIVE-29442

Conversation

@thomasrebele
Copy link
Contributor

HIVE-29442

What changes were proposed in this pull request?

The bottom part of FilterStatsRule#evaluateComparator repeats a very similar code block 6 times. Implementing HIVE-29364 will likely make the repeated code block even bigger. I suggest to combine those code blocks into a single one, while still keeping the same behavior.

Why are the changes needed?

Preparation of HIVE-29364

Does this PR introduce any user-facing change?

No

How was this patch tested?

I've disabled the histogram statistics in stats_histogram.q, and regenerated the q.out file. It is the same as without the patch.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 5, 2026

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.

2 participants