beliefer opened a new pull request #34668:
URL: https://github.com/apache/spark/pull/34668


   ### What changes were proposed in this pull request?
   The SQL below has unclosed bracketed comment.
   ```
   /*abc*/
   select 1 as a
   /*
   
   2 as b
   /*abc*/
   , 3 as c
   
   /**/
   ;
   ```
   But Spark outputs:
   <!DOCTYPE html>
   
   a
   --
   1
   
   PostgreSQL also supports the feature, but output:
   ```
   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
   ```
   
   ### Why are the changes needed?
   The execute plan is not expected, if we don't check unclosed bracketed 
comments.
   
   
   ### Does this PR introduce _any_ user-facing change?
   'Yes'. The behavior of bracketed comments will more correctly.
   
   
   ### How was this patch tested?
   New tests.
   


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

Reply via email to