Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.8.0
-
None
-
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.