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

Test coverage for Item clones - Item_cache*

    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

              Johnston Rex Johnston
              Johnston Rex Johnston
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 5d
                  5d
                  Remaining:
                  Time Spent - 2d Remaining Estimate - 3d
                  3d
                  Logged:
                  Time Spent - 2d Remaining Estimate - 3d
                  2d

                  Git Integration

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