You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "mustafa akin (JIRA)" <ji...@apache.org> on 2016/11/27 09:02:58 UTC
[jira] [Updated] (DRILL-5072) REST API Returns String for Integers
and all other fields
[ https://issues.apache.org/jira/browse/DRILL-5072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
mustafa akin updated DRILL-5072:
--------------------------------
Priority: Minor (was: Major)
> 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
> Priority: Minor
>
> 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)