Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/13418#discussion_r65609442 --- Diff: sql/core/src/test/scala/org/apache/spark/sql/SubquerySuite.scala --- @@ -123,6 +123,31 @@ class SubquerySuite extends QueryTest with SharedSQLContext { ) } + test("SPARK-15677: Scalar sub-query in Select list against a DataFrame generated query") { + Seq((1, 1), (2, 2)).toDF("c1", "c2").createOrReplaceTempView("t1") --- End diff -- please use `withTempTable`(ok the name is wrong for history reasons, it should be `withTempView`), which will drop the view after the test for you.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org