-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-7269] [SQL] Incorrect analysis for aggregation (new implementation) #6110
Conversation
Merged build triggered. |
Merged build started. |
Test build #32588 has started for PR 6110 at commit |
Test build #32588 has finished for PR 6110 at commit
|
Merged build finished. Test FAILed. |
Test FAILed. |
retest this please |
Merged build triggered. |
Merged build started. |
Test build #32701 has started for PR 6110 at commit |
Test build #32701 has finished for PR 6110 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
case x: Expression if nonSelectedGroupExprSet.contains(x) => | ||
case x: Expression | ||
if nonSelectedGroupExprs.find( | ||
ExpressionEquality(_) == ExpressionEquality(x)).isDefined => |
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.
How about we add semanticEquals
method to Expression
and implement it with equals
as default? Then we can override semanticEquals
for AttributeReference
and just write _.semanticEquals(x)
here.
ExpressionEquality
seems a little hack to me.
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.
But you need to add semanticEquals
for all of the non-leaf expression classes.
…als) A modified version of #6110, use `semanticEquals` to make it more efficient. Author: Wenchen Fan <[email protected]> Closes #6173 from cloud-fan/7269 and squashes the following commits: e4a3cc7 [Wenchen Fan] address comments cc02045 [Wenchen Fan] consider elements length equal d7ff8f4 [Wenchen Fan] fix 7269 (cherry picked from commit 103c863) Signed-off-by: Michael Armbrust <[email protected]>
…als) A modified version of #6110, use `semanticEquals` to make it more efficient. Author: Wenchen Fan <[email protected]> Closes #6173 from cloud-fan/7269 and squashes the following commits: e4a3cc7 [Wenchen Fan] address comments cc02045 [Wenchen Fan] consider elements length equal d7ff8f4 [Wenchen Fan] fix 7269
…als) A modified version of apache#6110, use `semanticEquals` to make it more efficient. Author: Wenchen Fan <[email protected]> Closes apache#6173 from cloud-fan/7269 and squashes the following commits: e4a3cc7 [Wenchen Fan] address comments cc02045 [Wenchen Fan] consider elements length equal d7ff8f4 [Wenchen Fan] fix 7269
…als) A modified version of apache#6110, use `semanticEquals` to make it more efficient. Author: Wenchen Fan <[email protected]> Closes apache#6173 from cloud-fan/7269 and squashes the following commits: e4a3cc7 [Wenchen Fan] address comments cc02045 [Wenchen Fan] consider elements length equal d7ff8f4 [Wenchen Fan] fix 7269
…als) A modified version of apache#6110, use `semanticEquals` to make it more efficient. Author: Wenchen Fan <[email protected]> Closes apache#6173 from cloud-fan/7269 and squashes the following commits: e4a3cc7 [Wenchen Fan] address comments cc02045 [Wenchen Fan] consider elements length equal d7ff8f4 [Wenchen Fan] fix 7269
This is another implementation other than #5798