-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[Pick](query-cache) some query-cache bugfix (#47883)(#47961)(#51202) #51204
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
[Pick](query-cache) some query-cache bugfix (#47883)(#47961)(#51202) #51204
Conversation
the plan: ``` QUERY_CACHE: | | CACHE_NODE_ID: 2 | | DIGEST: 557413bec3209f50fd640eb3b0534c12ccd9df35f9d4c86620416936985e2679 | | | | STREAM DATA SINK | | EXCHANGE ID: 03 | | UNPARTITIONED | | | | 2:VAGGREGATE (merge finalize)(273) | | | output: min(partial_min(pk)[apache#6])[apache#9], max(partial_max(pk)[apache#7])[apache#10] | | | group by: pk[apache#5] | | | sortByGroupKey:false | | | cardinality=0 | | | final projections: field1[apache#9], field2[apache#10], pk[apache#8] | | | final project output tuple id: 4 | | | distribute expr lists: pk[apache#5] | | | | | 1:VAGGREGATE (update serialize)(268) | | | output: partial_min(pk[apache#4])[apache#6], partial_max(pk[apache#4])[apache#7] | | | group by: pk[apache#4] | | | sortByGroupKey:false | | | cardinality=0 | | | distribute expr lists: pk[apache#4] | | | ``` FE choose the id agg 2, but BE still use id agg 1. BE should support the case (cherry picked from commit c58fc18)
…7961) the origin judge may cause the need reorder judge error: ``` bool need_reorder = _slot_orders.size() != hit_cache_slot_orders->size(); if (!need_reorder) { for (int i = 0; i < _slot_orders.size(); ++i) { need_reorder = _slot_orders[i] != (*hit_cache_slot_orders)[i]; } } ``` (cherry picked from commit e9a34e4)
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
run buildall |
TPC-H: Total hot run time: 39533 ms
|
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-DS: Total hot run time: 197150 ms
|
ClickBench: Total hot run time: 30.26 s
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
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.
LGTM
cherry pick from #47883, #47961, #51202