-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner: update the scan-row-size calculation formula in model2 #38968
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-build |
/run-check_dev_2 |
@@ -31,30 +31,30 @@ | |||
{ | |||
"SQL": "explain format='verbose' select count(*) from t where a=1", | |||
"Plan": [ | |||
"StreamAgg_24 1.00 217.09 root funcs:count(Column#6)->Column#4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected, just update these cost values.
@@ -1861,8 +1861,8 @@ | |||
{ | |||
"SQL": "select f, g from t1 where f = 2 and g > 3", | |||
"Plan": [ | |||
"IndexReader_6 33.33 752.77 root index:IndexRangeScan_5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected, just update these cost values.
@@ -2486,65 +2486,65 @@ | |||
{ | |||
"SQL": "explain format = 'verbose' select count(*) from t3", | |||
"Plan": [ | |||
"StreamAgg_20 1.00 99.31 root funcs:count(Column#9)->Column#4", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected, IndexScan is better than TableScan.
@@ -6333,8 +6333,8 @@ | |||
"SQL": "select /*+ straight_join() */ * from t1 join t2 on t1.a=t2.a where t1.a not in (select t3.a from t3)", | |||
"Plan": [ | |||
"HashJoin 9990.00 root CARTESIAN anti semi join, other cond:eq(test.t1.a, test.t3.a)", | |||
"├─TableReader(Build) 3.00 root data:TableFullScan", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected, IndexScan is better than TableScan.
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 0942543
|
What problem does this PR solve?
Issue Number: ref #35240
Problem Summary: planner: update the scan-row-size calculation formula in model2
What is changed and how it works?
see #38967
planner: update the scan-row-size calculation formula in model2.
Current formulas:
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.