@@ -8233,15 +8233,15 @@ select * from t6 where d in (select f1() from t2 where s="c") {
8233
8233
"steps": [
8234
8234
{
8235
8235
"transformation": "equality_propagation",
8236
- "resulting_condition": "(1 and multiple equal('c', `t2 `.`s`) and multiple equal(`f1`() , `t6 `.`d `))"
8236
+ "resulting_condition": "(1 and (`t6 `.`d` = `f1`()) and multiple equal('c' , `t2 `.`s `))"
8237
8237
},
8238
8238
{
8239
8239
"transformation": "constant_propagation",
8240
- "resulting_condition": "(1 and multiple equal('c', `t2 `.`s`) and multiple equal(`f1`() , `t6 `.`d `))"
8240
+ "resulting_condition": "(1 and (`t6 `.`d` = `f1`()) and multiple equal('c' , `t2 `.`s `))"
8241
8241
},
8242
8242
{
8243
8243
"transformation": "trivial_condition_removal",
8244
- "resulting_condition": "(multiple equal('c', `t2 `.`s`) and multiple equal(`f1`() , `t6 `.`d `))"
8244
+ "resulting_condition": "((`t6 `.`d` = `f1`()) and multiple equal('c' , `t2 `.`s `))"
8245
8245
}
8246
8246
] /* steps */
8247
8247
} /* condition_processing */
@@ -8305,13 +8305,13 @@ select * from t6 where d in (select f1() from t2 where s="c") {
8305
8305
{
8306
8306
"rows_to_scan": 4,
8307
8307
"access_type": "scan",
8308
- "resulting_rows": 1 ,
8308
+ "resulting_rows": 4 ,
8309
8309
"cost": 2.8068,
8310
8310
"chosen": true
8311
8311
}
8312
8312
] /* considered_access_paths */
8313
8313
} /* best_access_path */,
8314
- "condition_filtering_pct": 100 ,
8314
+ "condition_filtering_pct": 25 ,
8315
8315
"rows_for_plan": 1,
8316
8316
"cost_for_plan": 2.8068,
8317
8317
"semijoin_strategy_choice": [
@@ -8426,7 +8426,7 @@ select * from t6 where d in (select f1() from t2 where s="c") {
8426
8426
},
8427
8427
{
8428
8428
"attaching_conditions_to_tables": {
8429
- "original_condition": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = 'c' ))",
8429
+ "original_condition": "((`t2 `.`s ` = 'c') and (`t6 `.`d ` = `f1`() ))",
8430
8430
"attached_conditions_computation": [
8431
8431
] /* attached_conditions_computation */,
8432
8432
"attached_conditions_summary": [
@@ -8436,7 +8436,7 @@ select * from t6 where d in (select f1() from t2 where s="c") {
8436
8436
},
8437
8437
{
8438
8438
"table": "`t2`",
8439
- "attached": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = 'c' ))"
8439
+ "attached": "((`t2 `.`s ` = 'c') and (`t6 `.`d ` = `f1`() ))"
8440
8440
}
8441
8441
] /* attached_conditions_summary */
8442
8442
} /* attaching_conditions_to_tables */
@@ -9167,15 +9167,15 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
9167
9167
"steps": [
9168
9168
{
9169
9169
"transformation": "equality_propagation",
9170
- "resulting_condition": "(1 and multiple equal(arg@0, `t2 `.`s`) and multiple equal(`f1`() , `t6 `.`d `))"
9170
+ "resulting_condition": "(1 and (`t6 `.`d` = `f1`()) and multiple equal(arg@0 , `t2 `.`s `))"
9171
9171
},
9172
9172
{
9173
9173
"transformation": "constant_propagation",
9174
- "resulting_condition": "(1 and multiple equal(arg@0, `t2 `.`s`) and multiple equal(`f1`() , `t6 `.`d `))"
9174
+ "resulting_condition": "(1 and (`t6 `.`d` = `f1`()) and multiple equal(arg@0 , `t2 `.`s `))"
9175
9175
},
9176
9176
{
9177
9177
"transformation": "trivial_condition_removal",
9178
- "resulting_condition": "(multiple equal(arg@0, `t2 `.`s`) and multiple equal(`f1`() , `t6 `.`d `))"
9178
+ "resulting_condition": "((`t6 `.`d` = `f1`()) and multiple equal(arg@0 , `t2 `.`s `))"
9179
9179
}
9180
9180
] /* steps */
9181
9181
} /* condition_processing */
@@ -9239,13 +9239,13 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
9239
9239
{
9240
9240
"rows_to_scan": 4,
9241
9241
"access_type": "scan",
9242
- "resulting_rows": 1 ,
9242
+ "resulting_rows": 4 ,
9243
9243
"cost": 2.8068,
9244
9244
"chosen": true
9245
9245
}
9246
9246
] /* considered_access_paths */
9247
9247
} /* best_access_path */,
9248
- "condition_filtering_pct": 100 ,
9248
+ "condition_filtering_pct": 25 ,
9249
9249
"rows_for_plan": 1,
9250
9250
"cost_for_plan": 2.8068,
9251
9251
"semijoin_strategy_choice": [
@@ -9360,7 +9360,7 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
9360
9360
},
9361
9361
{
9362
9362
"attaching_conditions_to_tables": {
9363
- "original_condition": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = arg@0 ))",
9363
+ "original_condition": "((`t2 `.`s ` = arg@0) and (`t6 `.`d ` = `f1`() ))",
9364
9364
"attached_conditions_computation": [
9365
9365
] /* attached_conditions_computation */,
9366
9366
"attached_conditions_summary": [
@@ -9370,7 +9370,7 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
9370
9370
},
9371
9371
{
9372
9372
"table": "`t2`",
9373
- "attached": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = arg@0 ))"
9373
+ "attached": "((`t2 `.`s ` = arg@0) and (`t6 `.`d ` = `f1`() ))"
9374
9374
}
9375
9375
] /* attached_conditions_summary */
9376
9376
} /* attaching_conditions_to_tables */
@@ -11083,15 +11083,15 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
11083
11083
"steps": [
11084
11084
{
11085
11085
"transformation": "equality_propagation",
11086
- "resulting_condition": "(1 and multiple equal(arg@0, `t2 `.`s`) and multiple equal(`f1`() , `t6 `.`d `))"
11086
+ "resulting_condition": "(1 and (`t6 `.`d` = `f1`()) and multiple equal(arg@0 , `t2 `.`s `))"
11087
11087
},
11088
11088
{
11089
11089
"transformation": "constant_propagation",
11090
- "resulting_condition": "(1 and multiple equal(arg@0, `t2 `.`s`) and multiple equal(`f1`() , `t6 `.`d `))"
11090
+ "resulting_condition": "(1 and (`t6 `.`d` = `f1`()) and multiple equal(arg@0 , `t2 `.`s `))"
11091
11091
},
11092
11092
{
11093
11093
"transformation": "trivial_condition_removal",
11094
- "resulting_condition": "(multiple equal(arg@0, `t2 `.`s`) and multiple equal(`f1`() , `t6 `.`d `))"
11094
+ "resulting_condition": "((`t6 `.`d` = `f1`()) and multiple equal(arg@0 , `t2 `.`s `))"
11095
11095
}
11096
11096
] /* steps */
11097
11097
} /* condition_processing */
@@ -11185,13 +11185,13 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
11185
11185
{
11186
11186
"rows_to_scan": 4,
11187
11187
"access_type": "scan",
11188
- "resulting_rows": 1 ,
11188
+ "resulting_rows": 4 ,
11189
11189
"cost": 2.8068,
11190
11190
"chosen": true
11191
11191
}
11192
11192
] /* considered_access_paths */
11193
11193
} /* best_access_path */,
11194
- "condition_filtering_pct": 100 ,
11194
+ "condition_filtering_pct": 25 ,
11195
11195
"rows_for_plan": 1,
11196
11196
"cost_for_plan": 2.8068,
11197
11197
"semijoin_strategy_choice": [
@@ -11317,7 +11317,7 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
11317
11317
},
11318
11318
{
11319
11319
"attaching_conditions_to_tables": {
11320
- "original_condition": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = arg@0 ))",
11320
+ "original_condition": "((`t2 `.`s ` = arg@0) and (`t6 `.`d ` = `f1`() ))",
11321
11321
"attached_conditions_computation": [
11322
11322
] /* attached_conditions_computation */,
11323
11323
"attached_conditions_summary": [
@@ -11327,7 +11327,7 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
11327
11327
},
11328
11328
{
11329
11329
"table": "`t2`",
11330
- "attached": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = arg@0 ))"
11330
+ "attached": "((`t2 `.`s ` = arg@0) and (`t6 `.`d ` = `f1`() ))"
11331
11331
}
11332
11332
] /* attached_conditions_summary */
11333
11333
} /* attaching_conditions_to_tables */
0 commit comments