Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed May 16, 2024
1 parent 97b382c commit 07e0d11
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions e2e_test/backfill/adaptive-rate-limit/slow-udf.slt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
statement ok
create table t(v1 int);

statement ok
insert into t select 1 from generate_series(1, 1000000);

statement ok
CREATE FUNCTION delay(secs int) RETURNS int LANGUAGE python AS $$
def delay(n):
import time
time.sleep(n)
return n
$$;

statement ok
create materialized view m1 as select delay(v1) from t;

0 comments on commit 07e0d11

Please sign in to comment.