cloud-fan commented on code in PR #44767: URL: https://github.com/apache/spark/pull/44767#discussion_r1463229360
########## sql/core/src/test/resources/sql-tests/inputs/cache.sql: ########## @@ -0,0 +1,33 @@ +CREATE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (0, 0), (1, 1), (2, 2) AS t(c1, c2); +CREATE TEMPORARY VIEW t2 AS +WITH v as ( + SELECT c1 + c1 c3 FROM t1 +) +SELECT SUM(c3) s FROM v; + +CACHE TABLE cache_table +WITH +t2 AS (SELECT 1) +SELECT * FROM t2; + +SELECT * FROM cache_table; + +EXPLAIN EXTENDED SELECT * FROM cache_table; + +-- Nested WithCTE Review Comment: hmm, why does it have nested CTE? -- 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]
