Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22696#discussion_r224491849
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/group-by.sql ---
    @@ -73,3 +73,10 @@ where b.z != b.z;
     -- SPARK-24369 multiple distinct aggregations having the same argument set
     SELECT corr(DISTINCT x, y), corr(DISTINCT y, x), count(*)
       FROM (VALUES (1, 1), (2, 2), (2, 2)) t(x, y);
    +
    +-- SPARK-25708 HAVING without GROUP BY means global aggregate
    +SELECT 1 FROM range(10) HAVING true;
    +
    +SELECT 1 FROM range(10) HAVING MAX(id) > 0;
    +
    +SELECT id FROM range(10) HAVING id > 0;
    --- End diff --
    
    before this fix, this returns 10 rows, now it fails.


---

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

Reply via email to