Skip to content

Equality kernel where null==null gives true  #4438

@Dandandan

Description

@Dandandan

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Some operations might need that null==null gives back true instead of null.

apache/datafusion#6724

Describe the solution you'd like

An equality kernel with null==null -> true.

Describe alternatives you've considered

In the PR apache/datafusion#6724 an alternative implementation can be found:

            let eq: BooleanArray = eq_dyn(left, right)?;

            let left_is_null = is_null(left)?;
            let right_is_null = is_null(right)?;

            or_kleene(&and(&left_is_null, &right_is_null)?, &eq)

Additional context

Metadata

Metadata

Assignees

Labels

arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions