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

Test deep clones of Item_cache items

    XMLWordPrintable

Details

    • Q4/2026 Server Maintenance

    Description

      The idea is that we need test our deep clones for our various Item types. It is hard, or even impossible to create testcases that create/use deep Item clones today. But Parallel Query does use item clones extensively.

      One of the places that deep clones are created is key part generation for lookups into Split-Materialized tables.

      We will be targeting Item_cache* classes in this MDEV (The next step will be to cover aggregate (Item_sum *) items)

      The idea is:

      • use a query shape that creates clones (Split-Materialized)
      • Inside a DBUG_EXECUTE_IF(), replace the original item with a clone
        • Also run a debug check that the clone is indeed a proper deep clone.
      • Continue running the query to make the clone is fully usable.

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              Johnston Rex Johnston
              Rex Johnston Rex Johnston
              Sergei Petrunia Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 5d Original Estimate - 5d
                  5d
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 7d 3h
                  7d 3h

                  Git Integration

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