[
https://issues.apache.org/jira/browse/SPARK-49275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun closed SPARK-49275.
---------------------------------
> Fix return type nullness of the xpath expression
> ------------------------------------------------
>
> Key: SPARK-49275
> URL: https://issues.apache.org/jira/browse/SPARK-49275
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Chenhao Li
> Assignee: Chenhao Li
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.3, 4.0.0
>
>
> The `xpath` expression incorrectly marks its return type as array of non-null
> strings. However, it can actually return an array containing nulls. This can
> cause NPE in code generation, such as query `select
> coalesce(xpath(repeat('<a></a>', id), 'a')[0], '') from range(1, 2)`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]