mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-27036: resolve duplicated key issues of JSON tracing outputs:
MDEV-27036: repeated "table" key resolve for print_explain_json MDEV-27036: duplicated keys in best_access_path MDEV-27036: Explain_aggr_filesort::print_json_members: resolve duplicated "filesort" member in Json object MDEV-27036: Explain_basic_join:: print_explain_json_interns fixed start_dups_weedout case for main.explain_json test
This commit is contained in:
committed by
Sergei Krivonos
parent
a01c82ef2e
commit
73df7a3009
@ -16,39 +16,49 @@ EXPLAIN
|
||||
{
|
||||
"query_block": {
|
||||
"select_id": 1,
|
||||
"table": {
|
||||
"table_name": "t1",
|
||||
"access_type": "ALL",
|
||||
"rows": 2,
|
||||
"filtered": 100
|
||||
},
|
||||
"nested_loop": [
|
||||
{
|
||||
"table": {
|
||||
"table_name": "t1",
|
||||
"access_type": "ALL",
|
||||
"rows": 2,
|
||||
"filtered": 100
|
||||
}
|
||||
}
|
||||
],
|
||||
"subqueries": [
|
||||
{
|
||||
"query_block": {
|
||||
"select_id": 2,
|
||||
"table": {
|
||||
"table_name": "tbl_alias1",
|
||||
"access_type": "ALL",
|
||||
"rows": 1,
|
||||
"filtered": 100,
|
||||
"attached_condition": "tbl_alias1.column_name_2 is not null and tbl_alias1.column_name_1 is not null"
|
||||
},
|
||||
"table": {
|
||||
"table_name": "tbl_alias2",
|
||||
"access_type": "eq_ref",
|
||||
"possible_keys": ["PRIMARY"],
|
||||
"key": "PRIMARY",
|
||||
"key_length": "9",
|
||||
"used_key_parts": ["c", "b"],
|
||||
"ref": [
|
||||
"test.tbl_alias1.column_name_2",
|
||||
"test.tbl_alias1.column_name_1"
|
||||
],
|
||||
"rows": 1,
|
||||
"filtered": 100,
|
||||
"attached_condition": "tbl_alias2.c = tbl_alias1.column_name_2",
|
||||
"using_index": true
|
||||
}
|
||||
"nested_loop": [
|
||||
{
|
||||
"table": {
|
||||
"table_name": "tbl_alias1",
|
||||
"access_type": "ALL",
|
||||
"rows": 1,
|
||||
"filtered": 100,
|
||||
"attached_condition": "tbl_alias1.column_name_2 is not null and tbl_alias1.column_name_1 is not null"
|
||||
}
|
||||
},
|
||||
{
|
||||
"table": {
|
||||
"table_name": "tbl_alias2",
|
||||
"access_type": "eq_ref",
|
||||
"possible_keys": ["PRIMARY"],
|
||||
"key": "PRIMARY",
|
||||
"key_length": "9",
|
||||
"used_key_parts": ["c", "b"],
|
||||
"ref": [
|
||||
"test.tbl_alias1.column_name_2",
|
||||
"test.tbl_alias1.column_name_1"
|
||||
],
|
||||
"rows": 1,
|
||||
"filtered": 100,
|
||||
"attached_condition": "tbl_alias2.c = tbl_alias1.column_name_2",
|
||||
"using_index": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user