Skip to content

Commit

Permalink
test: snapshot with option for sink into table (#19051)
Browse files Browse the repository at this point in the history
  • Loading branch information
st1page authored Oct 22, 2024
1 parent 4745119 commit 8865c58
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions e2e_test/sink/sink_into_table/snapshot.slt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
statement ok
SET RW_IMPLICIT_FLUSH TO true;

statement ok
create table s (v1 int, v2 int) APPEND ONLY;

statement ok
insert into s values (1, 11);

statement ok
create table t (v1 int, v2 int);

statement ok
create sink s1 into t from s with (type = 'append-only');

statement ok
create sink s2 into t from s with (type = 'append-only', snapshot = 'false');

statement ok
insert into s values (2, 22);


query II rowsort
select * from t;
----
1 11
2 22
2 22

statement ok
drop sink s1;

statement ok
drop sink s2;

statement ok
drop table t;

statement ok
drop table s;

0 comments on commit 8865c58

Please sign in to comment.