[Chore](profile) attach always true counter to column predicate #58463
+73
−32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
attach always true counter to column predicate
This pull request introduces enhancements to the predicate profiling functionality in the OLAP scan and filtering pipeline. The main change is the addition and propagation of a new counter,
predicate_always_true_rows_counter, which allows for tracking the number of rows for which a predicate is always true. This improves the granularity of predicate statistics and profiling, aiding in performance analysis and debugging.Predicate Profiling Enhancements:
predicate_always_true_rows_counter, toColumnValueRange,ColumnPredicate, andFilterOlapParamfor tracking rows where predicates are always true. This includes updates to their constructors and member variables. [1] [2] [3] [4]Integration with Predicate Initialization:
TabletReader::_init_conditions_paramto pass and utilize the newalways_true_rows_counterfor both normal and bloom filter predicates. [1] [2]Runtime Filter Wrapper Support:
predicate_always_true_rows_counterinVRuntimeFilterWrapperto expose the new profiling metric for vectorized runtime filters.Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)