beliefer commented on PR #34693:
URL: https://github.com/apache/spark/pull/34693#issuecomment-1111692115

   I investigated the behavior of PostgreSQL.
   `WITH t AS (select dept, name, salary from employee) SELECT * FROM t;` works 
well.
   `SELECT * FROM (WITH t AS (select dept, name, salary from employee) SELECT * 
FROM t) WHERE 1=0;` works bad.
   The option "withClause" looks strange. If so, why not uses `WITH t AS 
(SELECT x, y FROM tbl) SELECT * FROM t WHERE x > 10` directly ?


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

To unsubscribe, e-mail: [email protected]

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