huaxingao commented on code in PR #36303:
URL: https://github.com/apache/spark/pull/36303#discussion_r855636665
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/SchemaPruningSuite.scala:
##########
@@ -935,4 +935,106 @@ abstract class SchemaPruningSuite
.count()
assert(count == 0)
}
+
+ testSchemaPruning("SPARK-38977: schema pruning with correlated EXISTS
subquery") {
+
+ import testImplicits._
+
+ withTempView("ids", "first_names") {
+ val df1 = Seq(1, 2, 3).toDF("value")
+ df1.createOrReplaceTempView("ids")
+
+ val df2 = Seq("John", "Bob").toDF("value")
+ df2.createOrReplaceTempView("first_names")
+
+ val query = sql(
+ s"""SELECT name FROM contacts c
Review Comment:
nit: remove `s`?
--
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]