You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "mustafa akin (JIRA)" <ji...@apache.org> on 2016/11/27 09:01:09 UTC
[jira] [Created] (DRILL-5072) REST API Returns String for Integers
and all other fields
mustafa akin created DRILL-5072:
-----------------------------------
Summary: REST API Returns String for Integers and all other fields
Key: DRILL-5072
URL: https://issues.apache.org/jira/browse/DRILL-5072
Project: Apache Drill
Issue Type: Bug
Components: Client - HTTP
Affects Versions: 1.8.0
Reporter: mustafa akin
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:
```bash
$ 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)