beliefer commented on a change in pull request #27495: [SPARK-28880][SQL] Support ANSI nested bracketed comments URL: https://github.com/apache/spark/pull/27495#discussion_r379267989
########## File path: sql/core/src/test/resources/sql-tests/inputs/comments.sql ########## @@ -0,0 +1,78 @@ +-- Test comments. + +-- bracketed comment case one +--QUERY-DELIMITER-START +/* This is the first example of bracketed comment. +SELECT 'ommented out content' AS first; +*/ +SELECT 'selected content' AS first; +--QUERY-DELIMITER-END + +-- bracketed comment case two +--QUERY-DELIMITER-START +/* This is the second example of bracketed comment. +SELECT '/', 'ommented out content' AS second; +*/ +SELECT '/', 'selected content' AS second; +--QUERY-DELIMITER-END + +-- bracketed comment case three +--QUERY-DELIMITER-START +/* This is the third example of bracketed comment. + *SELECT '*', 'ommented out content' AS third; + */ +SELECT '*', 'selected content' AS third; +--QUERY-DELIMITER-END + +-- nested bracketed comment case one +--QUERY-DELIMITER-START +/* This is the first example of nested bracketed comment. +/* I am a nested bracketed comment.*/ +*/ Review comment: Haha ---------------------------------------------------------------- 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]
