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

JSON query request returns all types as strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 0.7.0, 0.8.0
    • Future
    • Client - HTTP
    • None

    Description

      I'm not sure if the query JSON endpoint is a valid, documented feature of Drill, but at the moment it returns all results as strings.

      So, for example:

      select count(*) from cp.`employee.json`

      Will return "1155" (as a string) as opposed to 1155 (as a numeric JSON value).

      It really should be returning numeric values as proper JSON numeric values. Same should apply for boolean values.

      How we handle other data types (i.e. dates, intervals, timestamps, etc.) needs discussion.

      Attachments

        1. DRILL-2373.1.patch.txt
          5 kB
          Adam Gilmore
        2. DRILL-2373.2.patch.txt
          0.9 kB
          Adam Gilmore

        Activity

          People

            dragoncurve Adam Gilmore
            dragoncurve Adam Gilmore
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: