dongjoon-hyun commented on code in PR #60764:
URL: https://github.com/apache/spark/pull/60764#discussion_r4651108288
##########
sql/core/src/test/scala/org/apache/spark/sql/SubquerySuite.scala:
##########
@@ -3777,4 +3777,24 @@ class SubquerySuite extends SharedSparkSession
}
}
}
+
+ test("SPARK-62142: keep the written order of a throwable condition in a
correlated subquery") {
+ withSQLConf(SQLConf.ANSI_ENABLED.key -> "true") {
+ withTable("t1", "t2") {
+ sql("CREATE TABLE t1 (k INT, v INT) USING parquet")
+ sql("INSERT INTO t1 VALUES (1, 0)")
+ sql("CREATE TABLE t2 (k INT, g INT) USING parquet")
+ sql("INSERT INTO t2 VALUES (1, 0), (2, 1)")
Review Comment:
Added the case with the row (3, -1) of t2, which the guard raises on,
expecting the row (1, 0).
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]