Skip to content

Commit

Permalink
add planner test
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Apr 4, 2023
1 parent 895fbc7 commit 0e86ed9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/frontend/planner_test/tests/testdata/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
└─BatchUpdate { table: t, exprs: [$1::Int32, $1, $2] }
└─BatchExchange { order: [], dist: Single }
└─BatchScan { table: t, columns: [t.v1, t.v2, t._row_id], distribution: UpstreamHashShard(t._row_id) }
- sql: |
create table t (v1 int, v2 real);
update t set v1 = DEFAULT;
batch_plan: |
BatchExchange { order: [], dist: Single }
└─BatchUpdate { table: t, exprs: [null:Int32, $1, $2] }
└─BatchExchange { order: [], dist: Single }
└─BatchScan { table: t, columns: [t.v1, t.v2, t._row_id], distribution: UpstreamHashShard(t._row_id) }
- sql: |
create table t (v1 int, v2 int);
update t set v1 = v2 + 1 where v2 > 0;
Expand Down

0 comments on commit 0e86ed9

Please sign in to comment.