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

Wrong result with multiple single column index request

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.4, 10.4.6
    • Fix Version/s: 10.4.7
    • Component/s: Optimizer
    • Labels:
      None
    • Environment:
      Server : Debian baremetal server, this is the only product installed. Data is stored on a 4x1Tb SSD with material RAID 5
      Client : Tested with mycli / mysql command / dbeaver on 2 different workstation on debian

      Description

      After migrating from mariadb 10.1.38-0+deb9u1 (provided by debian) to 10.4.6+maria~stretch, some request including IN (or multiple OR) and filtering on multiple columns indexed separately :

      Here is the table creation : table_creation.sql

      Here are the logs with my different results : execution.log

      Execution plan : execution_plan.log

      If I add an index on the two columns, the results are back : workaround.log

        Attachments

        1. execution_plan.log
          1 kB
        2. execution.log
          0.6 kB
        3. table_creation.sql
          1 kB
        4. workaround.log
          2 kB

          Issue Links

            Activity

              People

              • Assignee:
                igor Igor Babaev
                Reporter:
                mioux Sylvain RUMEU
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: