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 created issue -
            oleg.smirnov Oleg Smirnov made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            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?
            oleg.smirnov Oleg Smirnov made changes -
            Assignee Oleg Smirnov [ JIRAUSER50405 ] Sergei Petrunia [ psergey ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            psergei Sergei Petrunia added a comment - oleg.smirnov , I've left comments on the https://github.com/MariaDB/server/pull/3241 .
            psergei Sergei Petrunia made changes -
            Assignee Sergei Petrunia [ psergey ] Oleg Smirnov [ JIRAUSER50405 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            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 .
            oleg.smirnov Oleg Smirnov made changes -
            Assignee Oleg Smirnov [ JIRAUSER50405 ] Sergei Petrunia [ psergey ]
            Status Stalled [ 10000 ] In Review [ 10002 ]
            psergei Sergei Petrunia made changes -

            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.
            psergei Sergei Petrunia made changes -
            Assignee Sergei Petrunia [ psergey ] Oleg Smirnov [ JIRAUSER50405 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            psergei Sergei Petrunia made changes -
            Labels explain_json
            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
            oleg.smirnov Oleg Smirnov made changes -
            Assignee Oleg Smirnov [ JIRAUSER50405 ] Sergei Petrunia [ psergey ]
            Status Stalled [ 10000 ] In Review [ 10002 ]
            psergei Sergei Petrunia made changes -
            Status In Review [ 10002 ] Stalled [ 10000 ]
            psergei Sergei Petrunia made changes -
            Assignee Sergei Petrunia [ psergey ] Oleg Smirnov [ JIRAUSER50405 ]

            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 ).
            oleg.smirnov Oleg Smirnov made changes -
            Fix Version/s 10.5.26 [ 29832 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            JIraAutomate JiraAutomate made changes -
            Fix Version/s 10.6.19 [ 29833 ]
            Fix Version/s 10.11.9 [ 29834 ]
            Fix Version/s 11.1.6 [ 29835 ]
            Fix Version/s 11.2.5 [ 29836 ]
            Fix Version/s 11.4.3 [ 29837 ]
            psergei Sergei Petrunia made changes -
            psergei Sergei Petrunia made changes -

            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.