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

better handle column called 'Timestamp'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.7.0
    • 1.0.0
    • SQL Parser
    • None

    Description

      When querying a JSON file with a key called 'Timestamp' (select timestamp from <file>), Drill throws a non-intuitive error message (below). It works when backticking. Ideally the parser would look for keys called 'Timestamp' before erroring out. If that can't be done, a better error should be printed.

      jdbc:drill:zk=local> select Timestamp, Operation from dfs.`/...json`;
      Query failed: Query failed: Failure parsing SQL. Encountered "Timestamp ," at line 1, column 8.
      Was expecting one of:
      "UNION" ...
      "INTERSECT" ...
      "EXCEPT" ...
      "ORDER" ...

      Attachments

        Issue Links

          Activity

            People

              seanhychu Sean Hsuan-Yi Chu
              wochanda@mapr.com Will Ochandarena
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: