You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "jiaan.geng (Jira)" <ji...@apache.org> on 2021/11/19 13:31:00 UTC
[jira] [Created] (SPARK-37389) Check unclosed bracketed comments
jiaan.geng created SPARK-37389:
----------------------------------
Summary: Check unclosed bracketed comments
Key: SPARK-37389
URL: https://issues.apache.org/jira/browse/SPARK-37389
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 3.3.0
Reporter: jiaan.geng
The SQL below has unclosed bracketed comment.
{code:java}
/*abc*/
select 1 as a
/*
2 as b
/*abc*/
, 3 as c
/**/
;
{code}
But Spark will output:
a
1
PostgreSQL also supports the feature, and output:
{code:java}
SQL 错误 [42601]: Unterminated block comment started at position 47 in SQL /*abc*/ -- block comment
select 1 as a
/*
2 as b
/*abc*/
, 3 as c
/**/
. Expected */ sequence
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org