mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -133,23 +133,18 @@ select * from db1.t1 {
|
||||
"cost": 0.010504815
|
||||
},
|
||||
{
|
||||
"make_join_readinfo": [
|
||||
{
|
||||
"table": "t1",
|
||||
"index_condition": null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"attaching_conditions_to_tables": {
|
||||
"attached_conditions_computation": [],
|
||||
"attached_conditions_summary": [
|
||||
"attaching_conditions_to_tables": {
|
||||
"attached_conditions_computation": [],
|
||||
"attached_conditions_summary": [
|
||||
{
|
||||
"table": "t1",
|
||||
"attached_condition": null
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"table": "t1",
|
||||
"attached_condition": null
|
||||
"make_join_readinfo": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -280,23 +275,18 @@ select * from db1.v1 {
|
||||
"cost": 0.010504815
|
||||
},
|
||||
{
|
||||
"make_join_readinfo": [
|
||||
{
|
||||
"table": "t1",
|
||||
"index_condition": null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"attaching_conditions_to_tables": {
|
||||
"attached_conditions_computation": [],
|
||||
"attached_conditions_summary": [
|
||||
"attaching_conditions_to_tables": {
|
||||
"attached_conditions_computation": [],
|
||||
"attached_conditions_summary": [
|
||||
{
|
||||
"table": "t1",
|
||||
"attached_condition": null
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"table": "t1",
|
||||
"attached_condition": null
|
||||
"make_join_readinfo": []
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user