From 0ae5c0e0126400d3e49da934fbea977a1b9a7ad4 Mon Sep 17 00:00:00 2001 From: zwang28 <70626450+zwang28@users.noreply.github.com> Date: Tue, 19 Sep 2023 12:39:46 +0800 Subject: [PATCH] chore(test): tune datagen range (#12408) --- backwards-compat-tests/slt/tpch-backwards-compat/seed.slt | 3 --- e2e_test/batch/issue_7324.slt | 3 --- e2e_test/batch/tpch.slt | 3 --- src/common/src/field_generator/numeric.rs | 4 ++-- src/risedevtool/src/bin/risedev-docslt.rs | 5 +---- src/tests/regress/src/schedule.rs | 1 - 6 files changed, 3 insertions(+), 16 deletions(-) diff --git a/backwards-compat-tests/slt/tpch-backwards-compat/seed.slt b/backwards-compat-tests/slt/tpch-backwards-compat/seed.slt index b56cefeab247e..9cb3b200f4f84 100644 --- a/backwards-compat-tests/slt/tpch-backwards-compat/seed.slt +++ b/backwards-compat-tests/slt/tpch-backwards-compat/seed.slt @@ -4,9 +4,6 @@ SET RW_IMPLICIT_FLUSH TO true; statement ok SET QUERY_MODE TO distributed; -statement ok -SET CREATE_COMPACTION_GROUP_FOR_MV TO true; - include ../tpch/create_tables.slt.part include ../tpch/insert_customer.slt.part diff --git a/e2e_test/batch/issue_7324.slt b/e2e_test/batch/issue_7324.slt index c5ac2636cc44b..76f70ee0443ed 100644 --- a/e2e_test/batch/issue_7324.slt +++ b/e2e_test/batch/issue_7324.slt @@ -3,9 +3,6 @@ statement ok SET RW_IMPLICIT_FLUSH TO true; -statement ok -SET CREATE_COMPACTION_GROUP_FOR_MV TO true; - statement ok CREATE TABLE INT2_TBL(f1 int2); diff --git a/e2e_test/batch/tpch.slt b/e2e_test/batch/tpch.slt index b952fa798e96f..e895e30826104 100644 --- a/e2e_test/batch/tpch.slt +++ b/e2e_test/batch/tpch.slt @@ -44,9 +44,6 @@ include ../tpch/drop_tables.slt.part statement ok SET RW_IMPLICIT_FLUSH TO true; -statement ok -SET CREATE_COMPACTION_GROUP_FOR_MV TO true; - statement ok SET QUERY_MODE TO distributed; diff --git a/src/common/src/field_generator/numeric.rs b/src/common/src/field_generator/numeric.rs index 00920b9ff2104..e8e215a257772 100644 --- a/src/common/src/field_generator/numeric.rs +++ b/src/common/src/field_generator/numeric.rs @@ -81,7 +81,7 @@ where if let Some(max_option) = max_option { max = max_option.parse::()?; } - assert!(min < max); + assert!(min <= max); Ok(Self { min, max, seed }) } @@ -124,7 +124,7 @@ where end = end_option.parse::()?; } - assert!(start < end); + assert!(start <= end); Ok(Self { start, end, diff --git a/src/risedevtool/src/bin/risedev-docslt.rs b/src/risedevtool/src/bin/risedev-docslt.rs index b9e5e70d6e5f8..6a76ed1035959 100644 --- a/src/risedevtool/src/bin/risedev-docslt.rs +++ b/src/risedevtool/src/bin/risedev-docslt.rs @@ -112,10 +112,7 @@ fn main() -> Result<()> { # This file is generated from `{}` at {}.\n\ \n\ statement ok\n\ - set RW_IMPLICIT_FLUSH to true;\n\ - \n\ - statement ok\n\ - set CREATE_COMPACTION_GROUP_FOR_MV to true;\n", + set RW_IMPLICIT_FLUSH to true;\n", path.display(), chrono::Utc::now() )?; diff --git a/src/tests/regress/src/schedule.rs b/src/tests/regress/src/schedule.rs index a1f6807c537d3..357cab473d135 100644 --- a/src/tests/regress/src/schedule.rs +++ b/src/tests/regress/src/schedule.rs @@ -221,7 +221,6 @@ impl TestCase { DatabaseMode::Risingwave => { vec![ "SET RW_IMPLICIT_FLUSH TO true;\n", - "SET CREATE_COMPACTION_GROUP_FOR_MV TO true;\n", "SET QUERY_MODE TO LOCAL;\n", ] }