dongjoon-hyun commented on a change in pull request #27562:
[SPARK-30811][SQL][BRANCH-2.4] CTE should not cause stack overflow when it
refers to non-existent table with same name
URL: https://github.com/apache/spark/pull/27562#discussion_r379024955
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala
##########
@@ -2641,4 +2641,12 @@ class DataFrameSuite extends QueryTest with
SharedSQLContext {
val idTuples = sampled.collect().map(row => row.getLong(0) ->
row.getLong(1))
assert(idTuples.length == idTuples.toSet.size)
}
+
+ test("SPARK-30811: CTE should not cause stack overflow when " +
Review comment:
Can we have a more closer unit test in `AnalysisErrorSuite` instead of here?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]