From 07e0d11fa3b370bbb79ee41b9cd4f7066a9acc96 Mon Sep 17 00:00:00 2001 From: Noel Kwan Date: Mon, 13 May 2024 21:02:22 +0800 Subject: [PATCH] add more tests --- ...cy.slt => amplification-10000-multi-join.slt} | 0 .../backfill/adaptive-rate-limit/slow-udf.slt | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) rename e2e_test/backfill/adaptive-rate-limit/{high-baseline-latency.slt => amplification-10000-multi-join.slt} (100%) create mode 100644 e2e_test/backfill/adaptive-rate-limit/slow-udf.slt diff --git a/e2e_test/backfill/adaptive-rate-limit/high-baseline-latency.slt b/e2e_test/backfill/adaptive-rate-limit/amplification-10000-multi-join.slt similarity index 100% rename from e2e_test/backfill/adaptive-rate-limit/high-baseline-latency.slt rename to e2e_test/backfill/adaptive-rate-limit/amplification-10000-multi-join.slt diff --git a/e2e_test/backfill/adaptive-rate-limit/slow-udf.slt b/e2e_test/backfill/adaptive-rate-limit/slow-udf.slt new file mode 100644 index 0000000000000..707b16bf0a4db --- /dev/null +++ b/e2e_test/backfill/adaptive-rate-limit/slow-udf.slt @@ -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;