cloud-fan commented on code in PR #50409:
URL: https://github.com/apache/spark/pull/50409#discussion_r2015544916


##########
sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala:
##########
@@ -4941,6 +4941,23 @@ class SQLQuerySuite extends QueryTest with 
SharedSparkSession with AdaptiveSpark
       Row(Array(0), Array(0)), Row(Array(1), Array(1)), Row(Array(2), 
Array(2)))
     checkAnswer(df, expectedAnswer)
   }
+
+  test("SPARK-51614: Generator can't show up in HAVING") {
+    val query = """select
+                  |  explode(packages) as package
+                  |from
+                  |  values(array('a')) t(packages)
+                  |group by all
+                  |having package in ('a')""".stripMargin

Review Comment:
   before this PR, what error we got? column `package` not found?



-- 
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.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to