Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-1345

Impala's sql scanner does not accept a comment starting with /** with another non-star character before */

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.0
    • Impala 2.0
    • None
    • None

    Description

      Impala's parser has the following rule for /**/ style comments:

      TraditionalComment   = "/*" [^*] ~"*/" | "/*" "*"+ "/"
      

      So the following query will return with an AnalysisException:

      /****/ select 1;
      

      Attachments

        Activity

          People

            dhecht Daniel Hecht
            ishaan Ishaan Joshi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: