Skip to content

Fix nullability report for spark expression #3362

@hsiang-c

Description

@hsiang-c

Describe the bug

As apache/datafusion#19144 indicates, most of DF's Spark expression do not report the nullability correctly.

Spark 4.0 has a nullIntolerant method defined in Expression and the comment is

  /**
   * When an expression inherits this, meaning the expression is null intolerant (i.e. any null
   * input will result in null output). We will use this information during constructing IsNotNull
   * constraints.
   */

I think Comet should have similar fix.

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions