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

Eliminated tables are not shown in EXPLAIN [FORMAT=JSON] output

Details

    • Bug
    • Status: In Review (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • 10.11
    • None
    • None

    Description

      Currently eliminated tables (both regular and derived) are not displayed in the

      EXPLAIN/ANALYZE [FORMAT=JSON]

      output at all. This can be confusing to the user. Those tables must be displayed in the following way:

      +------+-------------+-------+------+---------------+------+---------+------+------+------------+
      | id   | select_type | table | type | possible_keys | key  | key_len | ref  | rows | Extra      |
      +------+-------------+-------+------+---------------+------+---------+------+------+------------+
      |    1 | SIMPLE      | t1    | NULL | NULL          | NULL | NULL    | NULL | NULL | Eliminated |
      +------+-------------+-------+------+---------------+------+---------+------+------+------------+
      

      In case of FORMAT=JSON they must be displayed like this:

      {
        "table": "t1"
        "Eliminated": true
      }
      

      Attachments

        Issue Links

          Activity

            oleg.smirnov Oleg Smirnov created issue -
            oleg.smirnov Oleg Smirnov made changes -
            Field Original Value New Value
            serg Sergei Golubchik made changes -
            Issue Type Task [ 3 ] Bug [ 1 ]
            serg Sergei Golubchik made changes -
            Summary Show eliminated tables in EXPLAIN [FORMAT=JSON] output Eliminated tables are not shown in EXPLAIN [FORMAT=JSON] output
            oleg.smirnov Oleg Smirnov made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            serg Sergei Golubchik made changes -
            Priority Critical [ 2 ] Major [ 3 ]
            oleg.smirnov Oleg Smirnov made changes -
            Assignee Oleg Smirnov [ JIRAUSER50405 ] Sergei Petrunia [ psergey ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.11 [ 27614 ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.10 [ 27530 ]

            People

              psergei Sergei Petrunia
              oleg.smirnov Oleg Smirnov
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.