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

DESC index causes wrong (empty) result on Federated tables

    XMLWordPrintable

Details

    Description

      --source suite/federated/have_federatedx.inc
       
      create table t (a int) engine=MyISAM;
      insert into t values (1),(5),(2),(3),(4);
       
      --eval create table tf (a int, key(a desc)) connection 'mysql://root@127.0.0.1:$MASTER_MYPORT/test/t' engine=Federated
      select * from tf;
      select * from tf where a > 2;
      select * from tf where a < 3;
       
      # Cleanup
      drop table tf, t;
      

      preview-10.8-MDEV-13756-desc-indexes 383b51d689

      select * from tf where a > 2;
      a
      select * from tf where a < 3;
      a
      drop table tf, t;
      

      Same for Federated and FederatedX.
      With an ascending index the results are correct.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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