cloud-fan commented on a change in pull request #28371:
URL: https://github.com/apache/spark/pull/28371#discussion_r415829102
##########
File path: sql/core/src/test/resources/sql-tests/results/cte-nested.sql.out
##########
@@ -64,10 +64,9 @@ WITH
)
SELECT * FROM t2
-- !query schema
-struct<>
+struct<scalarsubquery():int>
-- !query output
-org.apache.spark.sql.AnalysisException
-Name t is ambiguous in nested CTE. Please set
spark.sql.legacy.ctePrecedencePolicy to CORRECTED so that name defined in inner
CTE takes precedence. If set it to LEGACY, outer CTE definitions will take
precedence. See more details in SPARK-28228.;
Review comment:
I tried this query with Spark 2.4.5 (need to replace `t(c) AS (SELECT
1)` with `t AS (SELECT 1 c)` as Spark 2.4 doesn't support `t(c) syntax`), it
fails the parser. So we don't need to fail here.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]