Skip to content

Union columns can never be NULL #11162

Closed
@samuelcolvin

Description

@samuelcolvin

Describe the bug

Maybe I'm doing something wrong with my union in datafusion-functions-json, but is null expressions never evaluate to true with the JsonUnion column.

They behave as expected when the function in question returns a scalar JsonUnion.

To Reproduce

See datafusion-contrib/datafusion-functions-json#24

Expected behavior

When the value in every column of the union is null:

  • <union column> is null should evaluate to null
  • I guess it would also be nice if the repr of null values in a union was an empty string same as everything else, not {<first column_name>=} (which I what I think it is now)

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