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

Fix error message when reserved words are used in query.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7.0
    • Fix Version/s: 1.2.0
    • Component/s: SQL Parser

      Description

      When reserved words are used in a query, the error message thrown should be more user-friendly.

      0: jdbc:drill:zk=10.10.82.51:5181> select user from
      dfs.`/mr_output/output-2015-01-06_10-43-40_parquet` LIMIT 10;

      Query failed: Query stopped., Failure while trying to materialize
      incoming schema. Errors:

      Error in expression at index -1. Error: Missing function
      implementation: [user()]. Full expression: -UNKNOWN EXPRESSION-.. [
      79c75e68-ac33-47b4-b7d3-0d65e96c7357 on CentOS001:31010 ]

      Error: exception while executing query: Failure while executing query.
      (state=,code=0)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                amansinha100 Aman Sinha
                Reporter:
                subhashg Subhash Gopinath
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: