dongjoon-hyun commented on a change in pull request #28318:
URL: https://github.com/apache/spark/pull/28318#discussion_r414077554



##########
File path: sql/core/src/test/resources/sql-tests/results/cte-nonlegacy.sql.out
##########
@@ -166,3 +166,16 @@ SELECT (
 struct<scalarsubquery():int>
 -- !query output
 3
+
+
+-- !query
+WITH t(c) AS (SELECT 1)
+SELECT * FROM t
+WHERE c IN (
+  WITH t(c) AS (SELECT 2)
+  SELECT * FROM t
+)
+-- !query schema
+struct<c:int>
+-- !query output
+

Review comment:
       @peter-toth . ~The result looks wrong because it's empty. We are 
expecting `1`, aren't we?~
   Never mind. I was in a hurry. This is in `WHERE` and correct.




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