Pajaraja commented on PR #50308: URL: https://github.com/apache/spark/pull/50308#issuecomment-2777981033
> Looks good and this scenario is allowed in some engines (like postgresql), but I would suggest a more intuitive test case like: > > ``` > WITH RECURSIVE > x(id) AS (SELECT 1 UNION SELECT 2), > t(id, xid) AS ( > SELECT 0 AS id, 0 AS xid > UNION ALL > SELECT t.id + 1, xid * 10 + x.id FROM t CROSS JOIN x WHERE t.id < 3 > ) > SELECT * FROM t > ``` > > ``` > id | xid > -- | -- > 0 | 0 > 1 | 1 > 1 | 2 > 2 | 11 > 2 | 12 > 2 | 21 > 2 | 22 > 3 | 111 > 3 | 112 > 3 | 121 > 3 | 122 > 3 | 211 > 3 | 212 > 3 | 221 > 3 | 222 > ``` Added this test too. Thanks! -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org