maropu commented on a change in pull request #25588: [SPARK-28000][SQL][TEST] 
Port comments.sql
URL: https://github.com/apache/spark/pull/25588#discussion_r317873132
 
 

 ##########
 File path: sql/core/src/test/resources/sql-tests/inputs/pgSQL/comments.sql
 ##########
 @@ -0,0 +1,48 @@
+--
+-- Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
+--
+--
+-- COMMENTS
+-- 
https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/sql/comments.sql
+--
+
+SELECT 'trailing' AS first; -- trailing single line
+SELECT /* embedded single line */ 'embedded' AS `second`;
+SELECT /* both embedded and trailing single line */ 'both' AS third; -- 
trailing single line
+
+SELECT 'before multi-line' AS fourth;
+-- [SPARK-28880] ANSI SQL: Bracketed comments
+/* This is an example of SQL which should not execute:
 
 Review comment:
   I think its ok to comment out this case.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to