1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-21095: Make Optimizer Trace support Index Condition Pushdown

Fixes over previous patches: do tracing of attached conditions
close to where we generate them.

Fix the tracing code to print the right conditions.
This commit is contained in:
Sergei Petrunia
2022-12-08 21:24:31 +03:00
parent 07f21cfb14
commit cbd99688af
6 changed files with 551 additions and 812 deletions

View File

@ -257,23 +257,18 @@ explain select * from t1 where a=1 or b=1 {
}
},
{
"make_join_readinfo": [
{
"table": "t1",
"index_condition": "t1.a = 1 or t1.b = 1"
}
]
}
]
}
},
{
"attaching_conditions_to_tables": {
"attached_conditions_computation": [],
"attached_conditions_summary": [
"attaching_conditions_to_tables": {
"attached_conditions_computation": [],
"attached_conditions_summary": [
{
"table": "t1",
"attached_condition": "t1.a = 1 or t1.b = 1"
}
]
}
},
{
"table": "t1",
"attached_condition": "t1.a = 1 or t1.b = 1"
"make_join_readinfo": []
}
]
}