diff --git a/e2e_test/udf/udf.slt b/e2e_test/udf/udf.slt index 33579a825832e..1ebb3ed30f4bf 100644 --- a/e2e_test/udf/udf.slt +++ b/e2e_test/udf/udf.slt @@ -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