Skip to content

[Rust] Boolean AND/OR kernels should follow sql behaviour regarding null values #27805

@asfimport

Description

@asfimport

The AND/OR boolean kernels currently have the same null handling as other binary expressions, if either the left or right input is NULL then the result will be NULL. The standard sql behaviour is different:

OR: If one input is TRUE then the result will be TRUE even if the other input is NULL

AND: If one input is FALSE then the result will be FALSE regardless of the other input

This behaviour makes sense if you think of NULL as meaning UNKNOWN.

Reporter: Jörn Horstmann / @jhorstmann
Assignee: Christoph Schulze / @ch-sc

PRs and other links:

Note: This issue was originally created as ARROW-11973. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions