From ca88b9f6846bb3bca1095478c2ac8d2b8f5861a1 Mon Sep 17 00:00:00 2001 From: st1page <1245835950@qq.com> Date: Mon, 26 Feb 2024 20:15:35 +0800 Subject: [PATCH] add test --- e2e_test/ddl/table/table.slt.part | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/e2e_test/ddl/table/table.slt.part b/e2e_test/ddl/table/table.slt.part index 2e7c744ba2536..6deea3cd0dfd1 100644 --- a/e2e_test/ddl/table/table.slt.part +++ b/e2e_test/ddl/table/table.slt.part @@ -259,3 +259,29 @@ drop table t1; statement ok drop table t2; + +statement error +create table t(v int) with (retention_seconds = 5); + +statement ok +create table t(v int) APPEND ONLY with (retention_seconds = 5); + +statement ok +insert into t values(1); + +statement ok +flush; + +query I +select * from t; +---- +1 + +sleep 10s + +query I +select * from t; +---- + +statement ok +drop table t; \ No newline at end of file