dongjoon-hyun commented on a change in pull request #24652: [SPARK-27782][SQL]
Use '#' to mark expression id embedded in the name field of SubqueryExec
operator
URL: https://github.com/apache/spark/pull/24652#discussion_r287611793
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/SubquerySuite.scala
##########
@@ -1371,4 +1371,21 @@ class SubquerySuite extends QueryTest with
SharedSQLContext {
}
}
}
+
+ test("SPARK-27782 scalar subquuery name should start with scalar-subquery#")
{
+ val df = sql(
+ """
+ |SELECT a
+ |FROM l
+ |WHERE a = (SELECT max(c) FROM r WHERE c = 1)
+ """.stripMargin)
Review comment:
Since this is very short, can we have one-liner?
```scala
val df = sql("SELECT a FROM l WHERE a = (SELECT max(c) FROM r WHERE c = 1)")
```
----------------------------------------------------------------
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]