Skip to content

handle ComlumnDictionary in evaluate_and and evaluate_or - #9818

Merged
yiguolei merged 5 commits into
apache:masterfrom
dataroaring:delete_predicate
Jun 1, 2022
Merged

yiguolei merged 5 commits into
apache:masterfrom
dataroaring:delete_predicate

Conversation

@dataroaring

@dataroaring dataroaring commented May 27, 2022 •

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #9823

Problem Summary:

Be core dump when handle delete predicates on key.

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

We need to handle ComlumnDictory in evaluate_or, otherwise delete handler
would triger a core dump.
Because there is only one difference between evaluate_and and
evaluate_or, that is or and delete, I merge two macros into one.

Delete handlers also trigger evaluate_and, i am not sure if column
dictionary would be used in evaluate_and.
@dataroaring dataroaring added the dev/1.0.1-deprecated should be merged into dev-1.0.1 branch label May 28, 2022
@dataroaring dataroaring added this to the v1.1 milestone May 28, 2022
@morningman morningman added the kind/fix Categorizes issue or PR as related to a bug. label May 29, 2022

@HappenLee HappenLee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label May 31, 2022
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@yiguolei
yiguolei merged commit 00719db into apache:master Jun 1, 2022
@morningman morningman added dev/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 and removed dev/1.0.1-deprecated should be merged into dev-1.0.1 branch labels Jun 1, 2022
morningman added a commit that referenced this pull request Jun 1, 2022
* handle ColumnDictory in evaluate_or

We need to handle ComlumnDictory in evaluate_or, otherwise delete handler
would triger a core dump.

* handle ComlumnDictionary in evaluate_and

Because there is only one difference between evaluate_and and
evaluate_or, that is or and delete, I merge two macros into one.

Delete handlers also trigger evaluate_and, i am not sure if column
dictionary would be used in evaluate_and.

* clang format

* fix short circut for evaluate_and and evaluate_or

* clang format
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Jun 22, 2026
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Jun 22, 2026
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/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 kind/fix Categorizes issue or PR as related to a bug. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] be core dump when EqualPredicate<doris::StringValue>::evaluate_or

4 participants