-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
fix: binary agg should group aware if literal not a scalar #12043
Conversation
1 => self.apply_elementwise(ac_l, ac_r, false), | ||
_ => self.apply_group_aware(ac_l, ac_r), | ||
}, | ||
(AggState::Literal(_), AggState::Literal(_)) => self.apply_group_aware(ac_l, ac_r), |
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.
I'm not sure about this(all literal
), but just think they should return the same values for every group. 🤔
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.
Can we do something smart here? Compute only once and then expand as list over the groups.
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.
That's reasonable. I updated the code But not sure if this is what you want.
1 => self.apply_elementwise(ac_l, ac_r, false), | ||
_ => self.apply_group_aware(ac_l, ac_r), | ||
}, | ||
(AggState::Literal(_), AggState::Literal(_)) => self.apply_group_aware(ac_l, ac_r), |
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.
Can we do something smart here? Compute only once and then expand as list over the groups.
This fixes #11989.