Skip to content

ESQL: NULL type not working with binary comparisons #140460

@alex-spies

Description

@alex-spies

Reproducer:

ROW x = null, y = "foo" | WHERE x == y

{"error":{"root_cause":[{"type":"verification_exception","reason":"Found 1 problem\nline 1:33: first argument of [x == y] is [null] so second argument must also be [null] but was [keyword]"}],"type":"verification_exception","reason":"Found 1 problem\nline 1:33: first argument of [x == y] is [null] so second argument must also be [null] but was [keyword]"},"status":400}%   

Generally, our functions and operators take the NULL data type just fine, so we're being inconsistent here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions