cgivre commented on issue #1539: DRILL-6847: Add Query Metadata to RESTful Interface URL: https://github.com/apache/drill/pull/1539#issuecomment-439655945 @arina-ielchiieva I added the precision and scale. The query: ``` SELECT CAST( employee_id AS DECIMAL) AS employee_id, full_name, first_name, last_name, CAST( position_id AS BIGINT) AS position_id, position_title FROM cp.`employee.json` LIMIT 2 ``` Will result in the following metadata in the RESTful interface: ``` { "queryId": "240f59ad-9846-bee1-0668-575c00add18a", "columns": [ "employee_id", "full_name", "first_name", "last_name", "position_id", "position_title" ], "metadata": { "precision": [ 38, null, null, null, null, null ], "scale": [ 0, null, null, null, null, null ], "type": [ "VARDECIMAL", "VARCHAR", "VARCHAR", "VARCHAR", "BIGINT", "VARCHAR" ] }, "rows": [ { "full_name": "Sheri Nowmer", "employee_id": "1", "last_name": "Nowmer", "position_title": "President", "first_name": "Sheri", "position_id": "1" }, { "full_name": "Derrick Whelply", "employee_id": "2", "last_name": "Whelply", "position_title": "VP Country Manager", "first_name": "Derrick", "position_id": "2" } ] } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services