cxzl25 commented on code in PR #1899:
URL: https://github.com/apache/auron/pull/1899#discussion_r2697317667
##########
spark-extension-shims-spark/src/test/scala/org/apache/auron/AuronQuerySuite.scala:
##########
@@ -662,4 +663,20 @@ class AuronQuerySuite extends AuronQueryTest with
BaseAuronSQLSuite with AuronSQ
checkSparkAnswer(query)
}
}
+
+ test("NOT IN subquery with NULL values") {
+ val row = identity[(java.lang.Integer, java.lang.Integer)] _
+ Seq(row((1, 1)), row((2, 2)), row((3, null)))
+ .toDF("a", "b")
+ .createOrReplaceTempView("tbl")
+ val df = checkSparkAnswer("select * from tbl where a not in (select b from
tbl)")
Review Comment:
```bash
== Results ==
!== Correct Answer - 0 == == Spark Answer - 1 ==
!struct<> struct<a:int,b:int>
! [3,null] (QueryTest.scala:244)
```
--
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]