francis0407 commented on a change in pull request #24344: [SPARK-27440][SQL]
Optimize uncorrelated predicate subquery
URL: https://github.com/apache/spark/pull/24344#discussion_r276538901
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/CachedTableSuite.scala
##########
@@ -789,7 +789,7 @@ class CachedTableSuite extends QueryTest with SQLTestUtils
with SharedSQLContext
"""
|SELECT * FROM t1
|WHERE
- |NOT EXISTS (SELECT * FROM t1)
+ |NOT EXISTS (SELECT * FROM t1 as t2 WHERE t2.c1 = t1.c1)
Review comment:
I made this correlated so that it can be cached.
----------------------------------------------------------------
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]