[ 
https://issues.apache.org/jira/browse/DRILL-2764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14603335#comment-14603335
 ] 

Venki Korukanti commented on DRILL-2764:
----------------------------------------

Fix looks good. +1.

{code}
curl -X POST -i -H "Content-type: application/json" -X POST 
http://localhost:8047/query.json -d '{
  "queryType" : "SQL",
  "query" : "select * from cp.`employeeees.json`"
}'
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Content-Length: 193
Server: Jetty(9.1.5.v20140505)

{
  "errorMessage" : "PARSE ERROR: From line 1, column 15 to line 1, column 16: 
Table 'cp.employeeees.json' not found\n\n\n[Error Id: 
8d45043a-e220-4c77-a9d8-d88bcd179d95 on localhost:31010]"
}
{code}

> REST API should return exception details on error
> -------------------------------------------------
>
>                 Key: DRILL-2764
>                 URL: https://issues.apache.org/jira/browse/DRILL-2764
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Client - HTTP
>    Affects Versions: 0.8.0
>            Reporter: Adam Gilmore
>            Assignee: Venki Korukanti
>            Priority: Minor
>             Fix For: 1.1.0
>
>         Attachments: DRILL-2764.1.patch.txt
>
>
> Currently, if an exception occurs via the REST API (e.g. your query is 
> invalid or fails to execute for any reason), the server returns a 500 status 
> code with a standard error page.
> We should be getting the full details of the exception that occurred so we 
> can log the results and have better insight into the success of the query.



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

Reply via email to