[ 
https://issues.apache.org/jira/browse/DRILL-5072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

mustafa akin updated DRILL-5072:
--------------------------------
    Priority: Major  (was: Minor)

> 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:
> {code}
>  $ 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"
>   } ]
> }
> {code}
> I would like to contribute myself if possible.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to