cloud-fan commented on a change in pull request #28318:
URL: https://github.com/apache/spark/pull/28318#discussion_r414533758



##########
File path: sql/core/src/test/resources/sql-tests/inputs/cte-nested.sql
##########
@@ -103,3 +103,11 @@ SELECT (
     SELECT * FROM t
   )
 );
+
+-- CTE in subquery expression shadows outer 4

Review comment:
       This comment is correct about `subquery expression` but many comments in 
this file are not correct.
   
   For example, the following query doesn't have subquery expression
   ```
   -- CTE in subquery expression shadows outer
   WITH t AS (SELECT 1)
   SELECT (
     WITH t AS (SELECT 2)
     SELECT * FROM t
   );
   ```




----------------------------------------------------------------
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]

Reply via email to