Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.1.3, 3.2.1, 3.3.0
    • SQL
    • None

    Description

      The SQL below has unclosed bracketed comment.

      /*abc*/
      select 1 as a
      /*
      
      2 as b
      /*abc*/
      , 3 as c
      
      /**/
      ;
      

      But Spark will output:
      a
      1
      PostgreSQL also supports the feature, and 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
      

      Attachments

        Activity

          People

            beliefer Jiaan Geng
            beliefer Jiaan Geng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: