You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by maropu <gi...@git.apache.org> on 2018/01/07 03:47:43 UTC

[GitHub] spark pull request #20174: [SPARK-22951][SQL] aggregate should not produce e...

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

    https://github.com/apache/spark/pull/20174#discussion_r160040102
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/HashAggregateExec.scala ---
    @@ -106,6 +106,8 @@ case class HashAggregateExec(
             // This is a grouped aggregate and the input iterator is empty,
             // so return an empty iterator.
             Iterator.empty
    +      } else if (!hasInput && resultExpressions.isEmpty) {
    --- End diff --
    
    `val res = if (!hasInput && (groupingExpressions.nonEmpty || resultExpressions.isEmpty)) {`? in line 105? Also, we need to update the comment in line 106.


---

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