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

[enhancement](Nereids) two phase read for topn #18829

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

morrySnow
Copy link
Contributor

@morrySnow morrySnow commented Apr 19, 2023

Proposed changes

add two phase read topn opt, the legacy planner's PR are:

TODO:
we forbid limit(sort(project(scan))) since be core when plan has a project on the scan.
we need to remove this restirction after we fix be bug

Problem summary

Describe your changes.

Checklist(Required)

  • Does it affect the original behavior
  • Has unit tests been added
  • Has document been added or modified
  • Does it need to update dependencies
  • Is this PR support rollback (If NO, please explain WHY)

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

@github-actions github-actions bot added area/nereids area/planner Issues or PRs related to the query planner labels Apr 19, 2023
@morrySnow morrySnow force-pushed the two_phase_read branch 2 times, most recently from 994b941 to e5361b4 Compare April 19, 2023 13:55
@morrySnow
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

hello-stephen commented Apr 20, 2023

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 33.47 seconds
stream load tsv: 422 seconds loaded 74807831229 Bytes, about 169 MB/s
stream load json: 23 seconds loaded 2358488459 Bytes, about 97 MB/s
stream load orc: 59 seconds loaded 1101869774 Bytes, about 17 MB/s
stream load parquet: 30 seconds loaded 861443392 Bytes, about 27 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230420073428_clickbench_pr_131536.html

@morrySnow
Copy link
Contributor Author

run buildall

@morrySnow morrySnow marked this pull request as ready for review April 20, 2023 11:11
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Apr 20, 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.

Copy link
Contributor

@englefly englefly left a comment

Choose a reason for hiding this comment

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

could you add some regression case?

@morrySnow morrySnow merged commit b84bd15 into apache:master Apr 21, 2023
gnehil pushed a commit to gnehil/doris that referenced this pull request Apr 21, 2023
add two phase read topn opt, the legacy planner's PR are:
- apache#15642
- apache#16460
- apache#16848

TODO:
we forbid limit(sort(project(scan))) since be core when plan has a project on the scan.
we need to remove this restirction after we fix be bug
xiaokang pushed a commit to xiaokang/doris that referenced this pull request Apr 22, 2023
add two phase read topn opt, the legacy planner's PR are:
- apache#15642
- apache#16460
- apache#16848

TODO:
we forbid limit(sort(project(scan))) since be core when plan has a project on the scan.
we need to remove this restirction after we fix be bug
@morrySnow morrySnow deleted the two_phase_read branch April 23, 2023 03:29
Reminiscent pushed a commit to Reminiscent/doris that referenced this pull request May 15, 2023
add two phase read topn opt, the legacy planner's PR are:
- apache#15642
- apache#16460
- apache#16848

TODO:
we forbid limit(sort(project(scan))) since be core when plan has a project on the scan.
we need to remove this restirction after we fix be bug
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. area/nereids area/planner Issues or PRs related to the query planner reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants