Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2999

Parse-error exception logged to stdout/stderr (visible in SQLLine output)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • Future
    • SQL Parser
    • None

    Description

      For some Calcite/parsing exceptions that seem to be internal (seem to be caught and processed (translated) at a higher level), Calcite or parsing logging is writing "SEVERE"-level logging messages to stdout or stderr.

      When SQLLine runs Drill in embedded mode, those logging lines show up intermixed in the SQLLine output"

      0: jdbc:drill:zk=local> bad syntax;
      May 08, 2015 2:42:23 PM org.apache.calcite.runtime.CalciteException <init>
      SEVERE: org.apache.calcite.runtime.CalciteException: Non-query expression encountered in illegal context
      May 08, 2015 2:42:23 PM org.apache.calcite.runtime.CalciteException <init>
      SEVERE: org.apache.calcite.runtime.CalciteContextException: From line 1, column 1 to line 1, column 3: Non-query expression encountered in illegal context
      Error: SYSTEM ERROR: Failure parsing SQL. Non-query expression encountered in illegal context
      
      
      [Error Id: 87c20db6-58b1-4042-9060-42ee29945377 on dev-linux2:31016] (state=,code=0)
      0: jdbc:drill:zk=local> 
      

      (The "Error: SYSTEM ..." lines are the normal error from SQLLine including exception message text from Drill. The four lines starting with "May" or "SEVERE" are the extraneous logging output.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            dsbos Daniel Barclay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: