[
https://issues.apache.org/jira/browse/SPARK-56840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-56840:
-----------------------------------
Labels: pull-request-available (was: )
> NULLIF can fail analysis when its left operand is unresolved
> ------------------------------------------------------------
>
> Key: SPARK-56840
> URL: https://issues.apache.org/jira/browse/SPARK-56840
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 5.0.0
> Reporter: Chao Sun
> Priority: Major
> Labels: pull-request-available
>
> Spark can fail during analysis for certain NULLIF expressions when the left
> operand is still unresolved, for example a nested-field reference such as
> c.provider paired with another expression. The current NULLIF replacement
> eagerly reads the left-side data type while constructing the null branch,
> which can trip unresolved-expression access before analysis completes.
> A regression test can reproduce this with a nested struct column and a
> lower(...) expression on the right-hand side.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]