-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[feature](nereids) Support basic aggregate rewrite and function rollup using materialized view #28269
Conversation
run buildall |
protected Plan rewriteQueryByView(MatchMode matchMode, | ||
StructInfo queryStructInfo, |
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.
Nullable annotion
PR approved by anyone and no changes requested. |
6c5ba49
to
59a12ed
Compare
run buildall |
(From new machine)TeamCity pipeline, clickbench performance test result: |
TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
1c14bb9
to
3cc0628
Compare
run buildall |
2bf0d3f
to
56e7b6c
Compare
run buildall |
1 similar comment
run buildall |
(From new machine)TeamCity pipeline, clickbench performance test result: |
TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
585e191
to
585286d
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
585286d
to
a4e163a
Compare
run buildall |
TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
run buildall |
TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
run buildall |
(From new machine)TeamCity pipeline, clickbench performance test result: |
TPC-H test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
|
PR approved by at least one committer and no changes requested. |
…p using materialized view (apache#28269) Add aggregate materializedviewRules for query rewrite. it support the query rewrite as following: def mv = "select lineitem.L_LINENUMBER, orders.O_CUSTKEY, sum(O_TOTALPRICE) as sum_alias " + "from lineitem " + "inner join orders on lineitem.L_ORDERKEY = orders.O_ORDERKEY " + "group by lineitem.L_LINENUMBER, orders.O_CUSTKEY " def query = "select lineitem.L_LINENUMBER, sum(O_TOTALPRICE) as sum_alias " + "from lineitem " + "inner join orders on lineitem.L_ORDERKEY = orders.O_ORDERKEY " + "group by lineitem.L_LINENUMBER"
…p using materialized view (apache#28269) Add aggregate materializedviewRules for query rewrite. it support the query rewrite as following: def mv = "select lineitem.L_LINENUMBER, orders.O_CUSTKEY, sum(O_TOTALPRICE) as sum_alias " + "from lineitem " + "inner join orders on lineitem.L_ORDERKEY = orders.O_ORDERKEY " + "group by lineitem.L_LINENUMBER, orders.O_CUSTKEY " def query = "select lineitem.L_LINENUMBER, sum(O_TOTALPRICE) as sum_alias " + "from lineitem " + "inner join orders on lineitem.L_ORDERKEY = orders.O_ORDERKEY " + "group by lineitem.L_LINENUMBER"
Proposed changes
Add aggregate materializedviewRules for query rewrite.
it support the query rewrite as following:
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...