Uh oh!
There was an error while loading. Please reload this page.
[SPARK-19851][SQL] Add support for EVERY and ANY (SOME) aggregates - #22797
[SPARK-19851][SQL] Add support for EVERY and ANY (SOME) aggregates#22797dilipbiswal wants to merge 2 commits into
Conversation
SparkQA
commented
Oct 23, 2018
Test build #97876 has finished for PR 22797 at commit
|
dilipbiswal
commented
Oct 23, 2018
cloud-fan
commented
Oct 23, 2018
Hi @dilipbiswal sorry for the back and forth, can you try one more approach? Basically we want to evaluate how the simplest logical rewrite looks like. We can create unevaluatable EVERY and ANY expressions, and create a rule to replace them with MAX and MIN. This rule can be put in the beginning of optimizer like |
@cloud-fan Sure.. Let me give that a try. |
cloud-fan
commented
Oct 23, 2018
yea, just a special rule instead of a general agg function rewrite framework. |
dilipbiswal
commented
Oct 23, 2018
@cloud-fan OK.. thanks a LOT. |
What changes were proposed in this pull request?
Implements Every, Some, Any aggregates in SQL. Logically these aggregate expressions are mapped to Min and Max, respectively.
Any is a synonym for Some.
How was this patch tested?
Added tests in SQLQueryTestSuite, DataframeAggregateSuite