You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Alex Bozarth (JIRA)" <ji...@apache.org> on 2018/05/15 19:25:00 UTC

[jira] [Commented] (LIVY-470) ename, evalue and traceback missing from docs

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

Alex Bozarth commented on LIVY-470:
-----------------------------------

Those are generic for all API errors, but I agree we should document what error returns look like somewhere

> ename, evalue and traceback missing from docs
> ---------------------------------------------
>
>                 Key: LIVY-470
>                 URL: https://issues.apache.org/jira/browse/LIVY-470
>             Project: Livy
>          Issue Type: Bug
>          Components: Docs
>    Affects Versions: 0.5.0
>            Reporter: Tim Harsch
>            Priority: Major
>
> According to the 0.5.0 REST API docs ( https://livy.incubator.apache.org/docs/latest/rest-api.html#statement )  statement output has three fields "status, execution_count and data" but this is only true in non-error cases.  e.g.
> {code:json}
> ...
>     "output": {
>         "ename": "Error",
>         "evalue": "<console>:40: error: value select is not a member of Array[org.apache.spark.sql.Row]",
>         "execution_count": 2,
>         "status": "error",
>         "traceback": [
>             "         df = df.select(df(\"venueid\"), df(\"venuename\"), df(\"venuecity\"), df(\"venuestate\"), df(\"venueseats\").as(\"xyz\"), df(\"venues_processing_dttm\"))\n",
>             "                 ^\n"
>         ]
>     },
> ...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)