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

REST API Returns String for Integers and all other fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.0
    • None
    • Client - HTTP
    • None

    Description

      The Drill REST API currently returns all the fields as string values even they are integers or floats. For instance, even explicit casting does not help as it can be seen from the example:

       $ curl -X POST -H "Content-Type: application/json" -d '{"queryType":"SQL", "query": "select CAST (COUNT(*) AS INT) from dfs.`/myfile`"}' http://localhost:8047/query.json 
      
      {
        "columns" : [ "EXPR$0" ],
        "rows" : [ {
          "EXPR$0" : "1"
        } ]
      }
      

      I would like to contribute myself if possible.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mustafak mustafa akin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: