drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mustafa akin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-5072) REST API Returns String for Integers and all other fields
Date Sun, 27 Nov 2016 09:01:09 GMT
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)

Mime
View raw message