Skip to content

== on collections containing missing breaks its contract #52484

@Seelengrab

Description

@Seelengrab

help?> ==
search: == === !== = .= >= => <= !=

==(x, y)
[...]
For collections, missing is returned if at least one of the
operands contains a missing value and all non-missing values are equal. Use isequal or === to always get a Bool result.

Yet:

julia> (1,missing) == (missing,2)
missing

julia> [1,missing] == [missing,2]
missing

Per the docstring, these should both be false, since the non-missing values are not equal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsThis change adds or pertains to documentationequalityIssues relating to equality relations: ==, ===, isequalmissing dataBase.missing and related functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions