Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed Sep 15, 2023
1 parent c155b8f commit fe72682
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions e2e_test/udf/udf.slt
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,43 @@ select (extract_tcp_info(E'\\x45000034a8a8400040065b8ac0a8000ec0a80001035d20b6d9
----
192.168.0.14 192.168.0.1 861 8374

# steaming
# to ensure UDF & UDTF respect visibility

statement ok
create table t (x int);

statement ok
create materialized view mv1 as select gcd(x, x) from t where x = 1;

statement ok
create materialized view mv2 as select series(x) from t where x = 1;

statement ok
insert into t values (1), (2);

statement ok
flush;

query T
select * from mv1;
----
1

query T
select * from mv2;
----
0

statement ok
drop materialized view mv1;

statement ok
drop materialized view mv2;

statement ok
drop table t;

# error handling

statement error
Expand Down

0 comments on commit fe72682

Please sign in to comment.