Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix](planner)support delete conditions contain non-key columns and add check in analyze phase for delete. #22673

Merged
merged 7 commits into from
Aug 7, 2023

Conversation

sohardforaname
Copy link
Contributor

Proposed changes

Issue Number: close #xxx

  1. support delete conditions contain non-key columns
  2. add check delete conditions in analyze phase for delete.

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...

@sohardforaname
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.25 seconds
stream load tsv: 507 seconds loaded 74807831229 Bytes, about 140 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 29.1 seconds inserted 10000000 Rows, about 343K ops/s
storage size: 17162274498 Bytes

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

github-actions bot commented Aug 7, 2023

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2023

PR approved by anyone and no changes requested.

}
}

private SlotRef getSlotRef(Predicate condition) {
Copy link
Contributor

Choose a reason for hiding this comment

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

The checkDeleteConditions only handle BinaryPredicate and InPredicate, how about the IsNullPredicate here, or other predicate like "delete from test1 where NOT length(id) >= 2"

Copy link
Contributor

Choose a reason for hiding this comment

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

copy from DeleteHandler, only process the expr storage layer could handled

@xiaokang xiaokang merged commit 36cea89 into apache:master Aug 7, 2023
xiaokang pushed a commit to xiaokang/doris that referenced this pull request Aug 7, 2023
@xiaokang xiaokang mentioned this pull request Aug 7, 2023
@xiaokang xiaokang mentioned this pull request Aug 30, 2023
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.1-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants