Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-39369

Wrong result with null datetime field and hash join

    XMLWordPrintable

Details

    Description

      Note the differences between the 2 select result sets.

      create table t10 (a datetime, b int);
      insert into t10 select date_add('2020-01-01', interval seq day), seq from seq_1_to_10;
      insert into t10 values (NULL, NULL);
      create table t20 select * from t10;
       
      select * from t10, t20 where t10.a <=> t20.a;
      set join_cache_level=6;
       
      select * from t10, t20 where t10.a <=> t20.a;
       
      drop table t10, t20;
      

      The hash join fails where the datetime field contains a null value;

      Attachments

        Activity

          People

            mariadb-pavithrapandith Pavithra Pandith
            Johnston Rex Johnston
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.