AngersZhuuuu commented on a change in pull request #25854: [SPARK-29145][SQL]
Spark SQL cannot handle "NOT IN" condition when using "JOIN"
URL: https://github.com/apache/spark/pull/25854#discussion_r337860281
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/ResolveSubquerySuite.scala
##########
@@ -41,4 +44,13 @@ class ResolveSubquerySuite extends AnalysisTest {
assert(m.contains(
"Expressions referencing the outer query are not supported outside of
WHERE/HAVING clauses"))
}
+
+ test("SPARK-29145 Support subquery in join condition") {
+ val expr = Join(t1,
+ t2,
+ Inner,
+ Some(InSubquery(Seq(a), ListQuery(Project(Seq(UnresolvedAttribute("c")),
t3)))),
+ null)
Review comment:
> nit: `JoinHint.NONE` instead of null.
Done
----------------------------------------------------------------
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]