Skip to content

Conversation

@mrhhsg
Copy link
Member

@mrhhsg mrhhsg commented Oct 13, 2023

By utilizing the zonemap index of the segment, we can ascertain if a predicate is always true. For example, if the segment’s maximum value is 100 and the predicate is col < 101, then this predicate is always true for this segment.

Proposed changes

pick #25366 into branch-2.0

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

…he segment (apache#25366)

By utilizing the zonemap index of the segment, we can ascertain if a predicate is always true. For example, if the segment’s maximum value is 100 and the predicate is col < 101, then this predicate is always true for this segment.
Copy link
Contributor

@yiguolei yiguolei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 13, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@xiaokang
Copy link
Contributor

run buildall

@xiaokang xiaokang merged commit 52ee055 into apache:branch-2.0 Oct 13, 2023
xiaokang added a commit that referenced this pull request Oct 14, 2023
yiguolei pushed a commit that referenced this pull request Oct 14, 2023
mrhhsg added a commit to mrhhsg/doris that referenced this pull request Oct 18, 2023
…he segment (apache#25366) (apache#25427)

By utilizing the zonemap index of the segment, we can ascertain if a predicate is always true. For example, if the segment’s maximum value is 100 and the predicate is col < 101, then this predicate is always true for this segment.
yiguolei pushed a commit that referenced this pull request Oct 18, 2023
…he segment (#25582)

* [improvement](scanner) Remove the predicate that is always true for the segment (#25366) (#25427)

By utilizing the zonemap index of the segment, we can ascertain if a predicate is always true. For example, if the segment’s maximum value is 100 and the predicate is col < 101, then this predicate is always true for this segment.

* [fix](scanner) coredump caused by 'prune_predicates_by_zone_map' (#25555)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/2.0.3-merged kind/test reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants