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

Additional information for materialized subqueries must be displayed in EXPLAIN/ANALYZE FORMAT=JSON

Details

    Description

      There is not enough information in EXPLAIN/ANALYZE output about the strategy chosen to process a subquery. This task aims to augment the output for materialized subqueries. The example of desired output is as follows:

      "subqueries": [
            {
              "NULL-AWARE-MATERIALIZATION": {
       
                "r_algorithm": "full-scan-on-null",
                "r_lookups": 122234,
                "r_full_scans": 4
       
                "query_block": {
                  "select_id": 2,
      

      Attachments

        Issue Links

          Activity

            oleg.smirnov Oleg Smirnov added a comment -

            Please take a look at the PR. Is there anything else we would like to add to the output?

            oleg.smirnov Oleg Smirnov added a comment - Please take a look at the PR . Is there anything else we would like to add to the output?
            psergei Sergei Petrunia added a comment - oleg.smirnov , I've left comments on the https://github.com/MariaDB/server/pull/3241 .
            oleg.smirnov Oleg Smirnov added a comment -

            psergei, please review the next iteration.

            oleg.smirnov Oleg Smirnov added a comment - psergei , please review the next iteration .

            I've discovered that for (some?) IN subqueries, Expression_cache in employed, but not shown in the EXPLAIN/ANALYZE output: MDEV-34301.

            The cache affects the counter values.

            psergei Sergei Petrunia added a comment - I've discovered that for (some?) IN subqueries, Expression_cache in employed, but not shown in the EXPLAIN/ANALYZE output: MDEV-34301 . The cache affects the counter values.
            oleg.smirnov Oleg Smirnov added a comment -

            psergei, please look at the next revision

            oleg.smirnov Oleg Smirnov added a comment - psergei , please look at the next revision

            Ok to push

            psergei Sergei Petrunia added a comment - Ok to push
            oleg.smirnov Oleg Smirnov added a comment -

            Pushed into 10.5 (commit).

            oleg.smirnov Oleg Smirnov added a comment - Pushed into 10.5 ( commit ).

            People

              oleg.smirnov Oleg Smirnov
              oleg.smirnov Oleg Smirnov
              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.