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

Create a script to convert old-style EXPLAIN FORMAT=JSON output

    XMLWordPrintable

Details

    Description

      https://github.com/mariadb/server/commit/73df7a30094a0fac8f59de1c91a7bce6cd3ff643 (pushed into 11.4) has cleaned up EXPLAIN FORMAT=JSON output, including wrapping tables in "nested_loop":

      --- a/mysql-test/main/analyze_format_json.result
      +++ b/mysql-test/main/analyze_format_json.result
      @@ -9,18 +9,22 @@ ANALYZE
           "select_id": 1,
           "r_loops": 1,
           "r_total_time_ms": "REPLACED",
      -    "table": {
      -      "table_name": "t0",
      -      "access_type": "ALL",
      -      "r_loops": 1,
      -      "rows": 10,
      -      "r_rows": 10,
      -      "r_table_time_ms": "REPLACED",
      -      "r_other_time_ms": "REPLACED",
      -      "filtered": 100,
      -      "r_filtered": 30,
      -      "attached_condition": "t0.a < 3"
      -    }
      +    "nested_loop": [
      +      {
      +        "table": {
      +          "table_name": "t0",
      +          "access_type": "ALL",
      +          "r_loops": 1,
      +          "rows": 10,
      +          "r_rows": 10,
      +          "r_table_time_ms": "REPLACED",
      +          "r_other_time_ms": "REPLACED",
      +          "filtered": 100,
      +          "r_filtered": 30,
      +          "attached_condition": "t0.a < 3"
      +        }
      +      }
      +    ]
         }
      

      This has made diffs between old EXPLAIN outputs and new EXPLAIN outputs meaningless.

      This task is about creating a script to convert from the "old" format to "new" format.\

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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