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

    https://github.com/apache/spark/pull/20779#discussion_r173613316
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/WholeStageCodegenSuite.scala
 ---
    @@ -307,4 +309,47 @@ class WholeStageCodegenSuite extends QueryTest with 
SharedSQLContext {
           // a different query can result in codegen cache miss, that's by 
design
         }
       }
    +
    +  test("SPARK-23598: Avoid compilation error with a lot of aggregation 
operations") {
    +    withSQLConf(SQLConf.SHUFFLE_PARTITIONS.key -> "1") {
    +      val df = Seq((8, "bat"), (15, "mouse"), (5, "horse")).toDF("age", 
"name")
    +        
.groupBy("name").agg(avg("age").alias("age")).groupBy("name").agg(avg("age").alias("age"))
    --- End diff --
    
    I tried it, but failed.


---

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

Reply via email to