[
https://issues.apache.org/jira/browse/SPARK-51805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihailo Aleksic updated SPARK-51805:
------------------------------------
Summary: Get function with improper argument should throw proper exception
instead of an internal one (was: Get with null argument should return null
instead of throwing cast error)
> 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 null. I propose that we fix that.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]