dongjoon-hyun commented on a change in pull request #24842: [SPARK-28002][SQL] Support WITH clause column aliases URL: https://github.com/apache/spark/pull/24842#discussion_r293027216
########## File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala ########## @@ -545,6 +545,16 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext { } } + test("SPARK-28002: CTE with column alias") { + checkAnswer( + sql(""" + |WITH t(x) AS (SELECT 1) + |SELECT * FROM t WHERE x = 1 + """.stripMargin), + Row(1) :: Nil + ) + } Review comment: Oh, please move this to `cite.sql`. That is a perfect place for this. cc @gatorsmile ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org