fix tpcds execute plan different with explian plan

This commit is contained in:
ChangerR
2023-08-31 02:10:37 +00:00
committed by ob-robot
parent ab320733df
commit f0661d33d5
9 changed files with 283 additions and 170 deletions

View File

@ -204,7 +204,7 @@ Query Plan
|1 |├─NESTED-LOOP JOIN CARTESIAN | |1 |8 |
|2 |│ ├─TABLE FULL SCAN |t2 |1 |4 |
|3 |│ └─MATERIAL | |1 |4 |
|4 |│ └─SUBPLAN SCAN |VIEW3|1 |4 |
|4 |│ └─SUBPLAN SCAN |VIEW1|1 |4 |
|5 |│ └─TABLE FULL SCAN |t3 |1 |4 |
|6 |└─TABLE FULL SCAN |t2 |1 |4 |
==============================================================
@ -214,7 +214,7 @@ Outputs & filters:
equal_conds([cast(t2.c1, VARCHAR(1048576)) = cast(cast(t2.c6, CHAR(1)), VARCHAR(1048576))]), other_conds(nil)
1 - output([t2.c1]), filter(nil), rowset=16
conds(nil), nl_params_(nil), use_batch=false
2 - output([t2.c1]), filter([cast(t2.c2, DECIMAL(-1, -1)) = cast(1, DECIMAL(1, 0))]), rowset=16
2 - output([t2.c1]), filter([cast(1, DECIMAL(1, 0)) = cast(t2.c2, DECIMAL(-1, -1))]), rowset=16
access([t2.c2], [t2.c1]), partitions(p0)
is_index_back=false, is_global_index=false, filter_before_indexback[false],
range_key([t2.__pk_increment]), range(MIN ; MAX)always true