You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/06/28 13:43:01 UTC

[GitHub] [spark] peter-toth commented on a change in pull request #24860: [SPARK-28034][SQL] Port with.sql

peter-toth commented on a change in pull request #24860: [SPARK-28034][SQL] Port with.sql
URL: https://github.com/apache/spark/pull/24860#discussion_r298600155
 
 

 ##########
 File path: sql/core/src/test/resources/sql-tests/inputs/pgSQL/with.sql
 ##########
 @@ -0,0 +1,1216 @@
+--
+-- Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
+--
+--
+-- WITH
+-- https://github.com/postgres/postgres/blob/REL_12_BETA1/src/test/regress/sql/with.sql
+
+--
+-- Tests for common table expressions (WITH query, ... SELECT ...)
+--
+
+-- Basic WITH
+-- [ORIGINAL SQL]
+--WITH q1(x,y) AS (SELECT 1,2)
+--SELECT * FROM q1, q1 AS q2;
+WITH q1(x,y) AS (SELECT 1,2)
+SELECT * FROM q1 CROSS JOIN q1 AS q2;
 
 Review comment:
   thanks @dongjoon-hyun, I've changed it.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org