[MDEV-21395] Optimizer trace: The object describing table condition selectivity is mis-placed Created: 2019-12-25  Updated: 2019-12-27

Status: Open
Project: MariaDB Server
Component/s: Optimizer
Affects Version/s: 10.4
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Sergei Petrunia Assignee: Sergei Petrunia
Resolution: Unresolved Votes: 0
Labels: optimizer_trace


 Description   

(saw this when looking at MDEV-21377)

Optimizer trace has rows_estimation node, which includes table. It is followed by
an unnamed object which has elements name selectivity_for_indexes, selectivity_for_columns , etc. The object itself doesn't have any references to table name which makes it hard to select it using JSONPath.

            "rows_estimation": [
              {
                "table": "o",
                "range_analysis": { ...
                }
              },
              {
                "selectivity_for_indexes": [
                  {
                    "index_name": "order_shipment_status",
                    "selectivity_from_index": 0.5
                  },
                  {
                    "index_name": "create_date",
                    "selectivity_from_index": 0.0432
                  }
                ],
                "selectivity_for_columns": [],
                "cond_selectivity": 0.0216
              },
              {
                "table": "op",
                "range_analysis": {
                  ...
                }
              },
              {
                "selectivity_for_indexes": [],
                "selectivity_for_columns": [],
                "cond_selectivity": 1
              },


Generated at Thu Feb 08 09:06:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.