Github user icexelloss commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19872#discussion_r160778794
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala
 ---
    @@ -153,11 +153,20 @@ trait CheckAnalysis extends PredicateHelper {
                     s"of type ${condition.dataType.simpleString} is not a 
boolean.")
     
               case Aggregate(groupingExprs, aggregateExprs, child) =>
    +            def isAggregateExpression(expr: Expression) = {
    +              expr.isInstanceOf[AggregateExpression] ||
    +                PythonUDF.isGroupAggPandasUDF(expr)
    --- End diff --
    
    Done.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to