[
https://issues.apache.org/jira/browse/SPARK-56840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun updated SPARK-56840:
----------------------------------
Parent: SPARK-45137
Issue Type: Sub-task (was: Bug)
> 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: Sub-task
> Components: SQL
> Affects Versions: 4.0.2, 4.1.1
> Reporter: Chao Sun
> Assignee: Chao Sun
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.2.0, 4.1.2, 4.0.3
>
>
> 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]