Skip to content

Commit

Permalink
dump memo
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi <[email protected]>
  • Loading branch information
skyzh committed Nov 15, 2024
1 parent 2098a72 commit 0e2f964
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions optd-sqlplannertest/tests/sorts/sort_passthrough.planner.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,44 @@ PhysicalSort
├── exprs:SortOrder { order: Asc }
│ └── #0
└── PhysicalScan { table: t1 }
group_id=!2
subgroup_id=.15 winner=17 weighted_cost=1000 | (PhysicalScan P0)
cost={compute=0,io=1000}
stat={row_cnt=1000}
sort=<any>
subgroup_id=.18 winner=enforcer weighted_cost=7908.754779315221 | enforcer
cost={compute=6908.754779315221,io=1000}
stat={row_cnt=1000}
sort=[Asc#0]
schema=[t1v1:Int32, t1v2:Int32]
column_ref=[t1.0, t1.1]
expr_id=1 | (Scan P0)
expr_id=17 | (PhysicalScan P0)
P0=(Constant(Utf8String) "t1")
group_id=!5
subgroup_id=.12 winner=14 weighted_cost=7908.754779315221 | (PhysicalSort !2 P3)
cost={compute=6908.754779315221,io=1000}
stat={row_cnt=1000}
sort=<any>
subgroup_id=.19 winner=14 weighted_cost=7908.754779315221 | (PhysicalSort !2 P3)
cost={compute=6908.754779315221,io=1000}
stat={row_cnt=1000}
sort=[Asc#0]
schema=[t1v1:Int32, t1v2:Int32]
column_ref=[t1.0, t1.1]
expr_id=4 | (Sort !2 P3)
expr_id=14 | (PhysicalSort !2 P3)
P3=(List (SortOrder(Asc) (ColumnRef 0(u64))))
group_id=!8
subgroup_id=.9 winner=!5 weighted_cost=7908.754779315221 | !5
cost={compute=6908.754779315221,io=1000}
stat={row_cnt=1000}
sort=<any>
schema=[t1v1:Int32, t1v2:Int32]
column_ref=[t1.0, t1.1]
expr_id=7 | (Sort !5 P3)
expr_id=11 | (PhysicalSort !5 P3)
P3=(List (SortOrder(Asc) (ColumnRef 0(u64))))
*/

-- test order by passthrough
Expand Down
2 changes: 1 addition & 1 deletion optd-sqlplannertest/tests/sorts/sort_passthrough.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
desc: test order by passthrough
tasks:
- explain:logical_optd,physical_optd
- execute
- execute[dump_memo_table]
- sql: |
select * from (select * from t1 order by t1v1, t1v2) order by t1v1;
desc: test order by passthrough
Expand Down

0 comments on commit 0e2f964

Please sign in to comment.