-
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: eliminate aggregation with distinct #16581
Comments
/pick-up |
Pick up success. |
@william0423 You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
@william0423 You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
@pingyu You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
@pingyu You did not submit PR within 7 days, so give up automatically. |
/pick-up |
Pick up success. |
@hidehalo You did not submit PR within 7 days, so give up automatically. |
Sorry I didn't get the point. Why expand the table? I found the following sql select key, count(tmp.a), sum(tmp.sum_b)
from (
select key, a, sum(b) as sum_b from t
group by key, a
) as tmp
group by key has an equivalent semantic and is more likely to have better performance. |
I'm interested in this problem, was it solved by others? /cc @winoros |
/assign |
Description
for table t (a int, b int, key int)
Expand
is extandt
tot_extend(a int, b int, key int, gid int)
spark sql use a operator
Extend
to extendt
tot_extend
.we can use sql as follows to extend
or implement a more efficient operator like
Extend
to extendt
tot_extend
.Score
1200
SIG slack channel(must):
Contact us in channel
#sig-planner
of TiDB CommunityMentor(must)
@winoros
Recommended Skills:
The text was updated successfully, but these errors were encountered: