You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "David Milicevic (Jira)" <ji...@apache.org> on 2025/05/29 08:47:00 UTC

[jira] [Created] (SPARK-52345) Fix NULL behavior in scripting conditions

David Milicevic created SPARK-52345:
---------------------------------------

             Summary: Fix NULL behavior in scripting conditions
                 Key: SPARK-52345
                 URL: https://issues.apache.org/jira/browse/SPARK-52345
             Project: Spark
          Issue Type: Sub-task
          Components: Spark Core, SQL
    Affects Versions: 4.0.0, 4.1.0
            Reporter: David Milicevic


{{`NULL`}} is a valid Boolean "value" in SQL. Scripting engine is not properly handling cases when conditions (in if-else, case, while, repeat statements) returned {{{}NULL{}}}.

Scripting engine throws an exception in such cases, stating that the {{NULL}} is an invalid value.
Scripting engine should consider such {{NULLs}} as a {{False}} Boolean value.



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