Skip to content

Commit

Permalink
chore(test): tune datagen range
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 committed Sep 19, 2023
1 parent b17569d commit 41ccebc
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 16 deletions.
3 changes: 0 additions & 3 deletions backwards-compat-tests/slt/tpch-backwards-compat/seed.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions e2e_test/batch/issue_7324.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 0 additions & 3 deletions e2e_test/batch/tpch.slt
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/common/src/field_generator/numeric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ where
if let Some(max_option) = max_option {
max = max_option.parse::<T>()?;
}
assert!(min < max);
assert!(min <= max);

Ok(Self { min, max, seed })
}
Expand Down Expand Up @@ -124,7 +124,7 @@ where
end = end_option.parse::<T>()?;
}

assert!(start < end);
assert!(start <= end);
Ok(Self {
start,
end,
Expand Down
5 changes: 1 addition & 4 deletions src/risedevtool/src/bin/risedev-docslt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)?;
Expand Down
1 change: 0 additions & 1 deletion src/tests/regress/src/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
}
Expand Down

0 comments on commit 41ccebc

Please sign in to comment.