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

Apache Spark reassigned SPARK-40018:
------------------------------------

    Assignee: Apache Spark  (was: Max Gekk)

> Output SparkThrowable to SQL golden files in JSON format
> --------------------------------------------------------
>
>                 Key: SPARK-40018
>                 URL: https://issues.apache.org/jira/browse/SPARK-40018
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Max Gekk
>            Assignee: Apache Spark
>            Priority: Major
>
> Output content of SparkThrowable in the JSON format instead of plain text.
> For instance, replace:
> {code}
> [INVALID_ARRAY_INDEX_IN_ELEMENT_AT] The index 5 is out of bounds. The array 
> has 3 elements. Use `try_element_at` to tolerate accessing element at invalid 
> index and return NULL instead. If necessary set "spark.sql.ansi.enabled" to 
> "false" to bypass this error.
> == SQL(line 1, position 8) ==
> select element_at(array(1, 2, 3), 5)
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> {code}
> by
> {code}
> {"errorClass":"INVALID_ARRAY_INDEX_IN_ELEMENT_AT","messageParameters":["5","3","\"spark.sql.ansi.enabled\""],"queryContext":[{"objectType":"","objectName":"","startIndex":7,"stopIndex":35,"fragment":"element_at(array(1,
>  2, 3), 5"}]}
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to