Github user cloud-fan commented on the issue:
https://github.com/apache/spark/pull/22797
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 `RewriteDistinctAggregates`. We don't need to create a completed
framework to rewrite agg functions.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]