[ https://issues.apache.org/jira/browse/SPARK-49275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk reassigned SPARK-49275: -------------------------------- Assignee: Chenhao Li > 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 > > 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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org