@@ -8217,15 +8217,15 @@ select * from t6 where d in (select f1() from t2 where s="c") {
8217
8217
"steps": [
8218
8218
{
8219
8219
"transformation": "equality_propagation",
8220
- "resulting_condition": "(1 and (`t2`.`s` = 'c') and multiple equal(`f1`(), ` t6`.`d`))"
8220
+ "resulting_condition": "(1 and (`t2`.`s` = 'c') and (` t6`.`d` = `f1`() ))"
8221
8221
},
8222
8222
{
8223
8223
"transformation": "constant_propagation",
8224
- "resulting_condition": "(1 and (`t2`.`s` = 'c') and multiple equal(`f1`(), ` t6`.`d`))"
8224
+ "resulting_condition": "(1 and (`t2`.`s` = 'c') and (` t6`.`d` = `f1`() ))"
8225
8225
},
8226
8226
{
8227
8227
"transformation": "trivial_condition_removal",
8228
- "resulting_condition": "((`t2`.`s` = 'c') and multiple equal(`f1`(), ` t6`.`d`))"
8228
+ "resulting_condition": "((`t2`.`s` = 'c') and (` t6`.`d` = `f1`() ))"
8229
8229
}
8230
8230
] /* steps */
8231
8231
} /* condition_processing */
@@ -8289,13 +8289,13 @@ select * from t6 where d in (select f1() from t2 where s="c") {
8289
8289
{
8290
8290
"rows_to_scan": 4,
8291
8291
"access_type": "scan",
8292
- "resulting_rows": 1 ,
8292
+ "resulting_rows": 4 ,
8293
8293
"cost": 0.9017,
8294
8294
"chosen": true
8295
8295
}
8296
8296
] /* considered_access_paths */
8297
8297
} /* best_access_path */,
8298
- "condition_filtering_pct": 100 ,
8298
+ "condition_filtering_pct": 25 ,
8299
8299
"rows_for_plan": 1,
8300
8300
"cost_for_plan": 0.9017,
8301
8301
"semijoin_strategy_choice": [
@@ -8410,7 +8410,7 @@ select * from t6 where d in (select f1() from t2 where s="c") {
8410
8410
},
8411
8411
{
8412
8412
"attaching_conditions_to_tables": {
8413
- "original_condition": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = 'c' ))",
8413
+ "original_condition": "((`t2 `.`s ` = 'c') and (`t6 `.`d ` = `f1`() ))",
8414
8414
"attached_conditions_computation": [
8415
8415
] /* attached_conditions_computation */,
8416
8416
"attached_conditions_summary": [
@@ -8420,7 +8420,7 @@ select * from t6 where d in (select f1() from t2 where s="c") {
8420
8420
},
8421
8421
{
8422
8422
"table": "`t2`",
8423
- "attached": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = 'c' ))"
8423
+ "attached": "((`t2 `.`s ` = 'c') and (`t6 `.`d ` = `f1`() ))"
8424
8424
}
8425
8425
] /* attached_conditions_summary */
8426
8426
} /* attaching_conditions_to_tables */
@@ -9191,15 +9191,15 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
9191
9191
"steps": [
9192
9192
{
9193
9193
"transformation": "equality_propagation",
9194
- "resulting_condition": "(1 and (`t2`.`s` = arg@0) and multiple equal(`f1`(), ` t6`.`d`))"
9194
+ "resulting_condition": "(1 and (`t2`.`s` = arg@0) and (` t6`.`d` = `f1`() ))"
9195
9195
},
9196
9196
{
9197
9197
"transformation": "constant_propagation",
9198
- "resulting_condition": "(1 and (`t2`.`s` = 'c') and multiple equal(`f1`(), ` t6`.`d`))"
9198
+ "resulting_condition": "(1 and (`t2`.`s` = 'c') and (` t6`.`d` = `f1`() ))"
9199
9199
},
9200
9200
{
9201
9201
"transformation": "trivial_condition_removal",
9202
- "resulting_condition": "((`t2`.`s` = 'c') and multiple equal(`f1`(), ` t6`.`d`))"
9202
+ "resulting_condition": "((`t2`.`s` = 'c') and (` t6`.`d` = `f1`() ))"
9203
9203
}
9204
9204
] /* steps */
9205
9205
} /* condition_processing */
@@ -9263,13 +9263,13 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
9263
9263
{
9264
9264
"rows_to_scan": 4,
9265
9265
"access_type": "scan",
9266
- "resulting_rows": 1 ,
9266
+ "resulting_rows": 4 ,
9267
9267
"cost": 0.9017,
9268
9268
"chosen": true
9269
9269
}
9270
9270
] /* considered_access_paths */
9271
9271
} /* best_access_path */,
9272
- "condition_filtering_pct": 100 ,
9272
+ "condition_filtering_pct": 25 ,
9273
9273
"rows_for_plan": 1,
9274
9274
"cost_for_plan": 0.9017,
9275
9275
"semijoin_strategy_choice": [
@@ -9384,7 +9384,7 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
9384
9384
},
9385
9385
{
9386
9386
"attaching_conditions_to_tables": {
9387
- "original_condition": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = 'c' ))",
9387
+ "original_condition": "((`t2 `.`s ` = 'c') and (`t6 `.`d ` = `f1`() ))",
9388
9388
"attached_conditions_computation": [
9389
9389
] /* attached_conditions_computation */,
9390
9390
"attached_conditions_summary": [
@@ -9394,7 +9394,7 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
9394
9394
},
9395
9395
{
9396
9396
"table": "`t2`",
9397
- "attached": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = 'c' ))"
9397
+ "attached": "((`t2 `.`s ` = 'c') and (`t6 `.`d ` = `f1`() ))"
9398
9398
}
9399
9399
] /* attached_conditions_summary */
9400
9400
} /* attaching_conditions_to_tables */
@@ -11171,15 +11171,15 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
11171
11171
"steps": [
11172
11172
{
11173
11173
"transformation": "equality_propagation",
11174
- "resulting_condition": "(1 and (`t2`.`s` = arg@0) and multiple equal(`f1`(), ` t6`.`d`))"
11174
+ "resulting_condition": "(1 and (`t2`.`s` = arg@0) and (` t6`.`d` = `f1`() ))"
11175
11175
},
11176
11176
{
11177
11177
"transformation": "constant_propagation",
11178
- "resulting_condition": "(1 and (`t2`.`s` = 'c') and multiple equal(`f1`(), ` t6`.`d`))"
11178
+ "resulting_condition": "(1 and (`t2`.`s` = 'c') and (` t6`.`d` = `f1`() ))"
11179
11179
},
11180
11180
{
11181
11181
"transformation": "trivial_condition_removal",
11182
- "resulting_condition": "((`t2`.`s` = 'c') and multiple equal(`f1`(), ` t6`.`d`))"
11182
+ "resulting_condition": "((`t2`.`s` = 'c') and (` t6`.`d` = `f1`() ))"
11183
11183
}
11184
11184
] /* steps */
11185
11185
} /* condition_processing */
@@ -11273,13 +11273,13 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
11273
11273
{
11274
11274
"rows_to_scan": 4,
11275
11275
"access_type": "scan",
11276
- "resulting_rows": 1 ,
11276
+ "resulting_rows": 4 ,
11277
11277
"cost": 0.9017,
11278
11278
"chosen": true
11279
11279
}
11280
11280
] /* considered_access_paths */
11281
11281
} /* best_access_path */,
11282
- "condition_filtering_pct": 100 ,
11282
+ "condition_filtering_pct": 25 ,
11283
11283
"rows_for_plan": 1,
11284
11284
"cost_for_plan": 0.9017,
11285
11285
"semijoin_strategy_choice": [
@@ -11405,7 +11405,7 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
11405
11405
},
11406
11406
{
11407
11407
"attaching_conditions_to_tables": {
11408
- "original_condition": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = 'c' ))",
11408
+ "original_condition": "((`t2 `.`s ` = 'c') and (`t6 `.`d ` = `f1`() ))",
11409
11409
"attached_conditions_computation": [
11410
11410
] /* attached_conditions_computation */,
11411
11411
"attached_conditions_summary": [
@@ -11415,7 +11415,7 @@ select d into res from t6 where d in (select f1() from t2 where s=arg) {
11415
11415
},
11416
11416
{
11417
11417
"table": "`t2`",
11418
- "attached": "((`t6 `.`d ` = `f1`()) and (`t2 `.`s ` = 'c' ))"
11418
+ "attached": "((`t2 `.`s ` = 'c') and (`t6 `.`d ` = `f1`() ))"
11419
11419
}
11420
11420
] /* attached_conditions_summary */
11421
11421
} /* attaching_conditions_to_tables */
0 commit comments