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

Need to clean up temporarry table in select handler. Optimize the way select handler search for tables and rewrites the query.

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.4.6
    • 10.4.8
    • OTHER
    • None

    Description

      There are number of defficiences that should be addressed in 10.4.

      • Pushdown_select instance doesn't clean up the temporary table created for Select_handler
      • The loop in SELECT_LEX::find_select_handler() should iterater of TABLE_LIST from next_global and not next_local. Then subquery tables' handlertons could be searched for select handler capabilities
      • JOIN::optimize_inner() should be called before Select_handler::init() in JOIN::optimize(). If Select_handler::init() is called before JOIN::optimize() then processing of statements like the one is broken since Server doesn't rewrite one of outter JOINs with inner JOIN.

        select j1_key, j6_key, j11_key from j1 right join j6 on j1_key=j6_key right join j11 on j6_key = j11_key where j6_key > 0;
        

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Roman made transition -
            Open Confirmed
            2d 23h 25m 1
            Roman made transition -
            Confirmed In Review
            64d 18h 3m 1
            Roman made transition -
            Stalled In Progress
            6s 1
            Roman made transition -
            In Progress In Review
            27s 1
            Roman made transition -
            In Review Stalled
            21s 2
            Roman made transition -
            Stalled Closed
            28s 1

            People

              drrtuy Roman
              drrtuy Roman
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.