You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Chao Sun (Jira)" <ji...@apache.org> on 2026/05/12 21:59:00 UTC

[jira] [Created] (SPARK-56840) NULLIF can fail analysis when its left operand is unresolved

Chao Sun created SPARK-56840:
--------------------------------

             Summary: 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


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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org