Skip to content

[BUG] NULL = NULL in the join expression is different from the value of mysql #5859

@xinyiZzz

Description

@xinyiZzz

Describe the bug

  1. query 1:
SELECT * FROM tab1 INNER JOIN tab0 ON NULL = NULL

NULL = NULL in Mysql is false
NULL = NULL in Doris is true

  1. In contrast, query 2:
SELECT * FROM tab1 where NULL = NULL

NULL = NULL is false in both Doris and Mysql

In addition, the conclusion is the same in NULL NOT BETWEEN NULL AND (NULL ), NULL <> NULL, NULL <= NULL.

Found through the sqllogictest test case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions