AngersZhuuuu commented on a change in pull request #28107: [SPARK-31334][SQL]
Don't ResolveReference/ResolveMissingReference when Filter condition with
aggregate expression
URL: https://github.com/apache/spark/pull/28107#discussion_r403059648
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -1393,7 +1393,24 @@ class Analyzer(
case q: LogicalPlan =>
Review comment:
> can we just add a case above it?
>
> ```
> case f: Filter if ResolveAggregateFunctions.containsAggregate(f.condition)
=> f
>
> case q: LogicalPlan =>
> ...
> ```
Changed, for containsAggregate() method, where I put it is better? or add a
common interface for Resolve Reference
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]