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

Support /* */ comments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Impala 0.7
    • Impala 1.0
    • Clients

    Description

      It is very common for command shells for Oracle or MySQL databases to support both - single-line and /* / multi-line comment notation. 'impala-shell -f blah.sql' currently gives 'unrecognized command' for /* */ comments. It should silently ignore them. (It does

      For example, the basic MySQL sample code here: http://downloads.mysql.com/docs/world.sql.zip
      immediately gives a bunch of 'unrecognized command' errors due to a mix of - and /* */ comments at the top of the file, regardless of whether the actual SQL command syntax is compatible or not.

      Based on the pattern of error messages, it seems like Impala really does ignore whatever is in between the /* / delimiters, so it might just be a case of spurious messages when it actually encounters / and */.

      Attachments

        Activity

          People

            ishaan Ishaan Joshi
            jrussell John Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: