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

Mihailo Aleksic updated SPARK-51805:
------------------------------------
    Description: 
Following query throw _Cannot cast NullType to Arraytype_:

{code:java}
SELECT get(null, 0);
{code}

instead of returning a more user facing one. I propose that we fix that.

  was:
Following query throw _Cannot cast NullType to Arraytype_:

{code:java}
SELECT get(null, 0);
{code}

instead of returning null. I propose that we fix that.


> Get function with improper argument should throw proper exception instead of 
> an internal one
> --------------------------------------------------------------------------------------------
>
>                 Key: SPARK-51805
>                 URL: https://issues.apache.org/jira/browse/SPARK-51805
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: Mihailo Aleksic
>            Priority: Major
>              Labels: pull-request-available
>
> Following query throw _Cannot cast NullType to Arraytype_:
> {code:java}
> SELECT get(null, 0);
> {code}
> instead of returning a more user facing one. I propose that we fix that.



--
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