You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Introduce return_data_type for Aggregate function #7960
I think we should do some more careful thinking of how to handle multi-phase aggregates where the intermediate type is not the same as the output type -- for example SUM(x) for non lists can use the same aggregate (as you can sum partial sums) but COUNT(x) does not -- the first phase must actually COUNT but the second needs to use SUM.
This causes problems for #6937 where we might want to dynamically stop doing the first phase aggregation.
Activity
alamb commentedon Oct 29, 2023
I think we should do some more careful thinking of how to handle multi-phase aggregates where the intermediate type is not the same as the output type -- for example
SUM(x)for non lists can use the same aggregate (as you can sum partial sums) butCOUNT(x)does not -- the first phase must actually COUNT but the second needs to use SUM.This causes problems for #6937 where we might want to dynamically stop doing the first phase aggregation.
jayzhan211 commentedon Nov 12, 2023
TODO
jayzhan211 commentedon Jun 12, 2024
Reopen it if there is any concrete issue to solve