From bcc2c155dffc768adba347e64a6e0cea8592b951 Mon Sep 17 00:00:00 2001 From: feiniaofeiafei Date: Tue, 24 Dec 2024 19:06:26 +0800 Subject: [PATCH] [test] fix partition prune unstable cases (#44976) (#45846) cherry-pick #44976 to branch-2.1 --- .../partition_prune/int_as_date_partition_col.groovy | 1 + .../partition_prune/one_col_range_partition.groovy | 1 + .../partition_prune/varchar_as_date_partition_col.groovy | 1 + 3 files changed, 3 insertions(+) diff --git a/regression-test/suites/nereids_rules_p0/partition_prune/int_as_date_partition_col.groovy b/regression-test/suites/nereids_rules_p0/partition_prune/int_as_date_partition_col.groovy index 4554947d5ea8bf..e9afd352727e1c 100644 --- a/regression-test/suites/nereids_rules_p0/partition_prune/int_as_date_partition_col.groovy +++ b/regression-test/suites/nereids_rules_p0/partition_prune/int_as_date_partition_col.groovy @@ -16,6 +16,7 @@ // under the License. suite("int_as_date_partition_col") { + sql "set ENABLE_FOLD_CONSTANT_BY_BE=false" sql "drop table if exists partition_int" sql """CREATE TABLE partition_int(a int, dt int) PARTITION BY range(dt) ( partition p20240101 values less than ("20240101"), diff --git a/regression-test/suites/nereids_rules_p0/partition_prune/one_col_range_partition.groovy b/regression-test/suites/nereids_rules_p0/partition_prune/one_col_range_partition.groovy index 4e04fed0cc4d39..a52f2577477435 100644 --- a/regression-test/suites/nereids_rules_p0/partition_prune/one_col_range_partition.groovy +++ b/regression-test/suites/nereids_rules_p0/partition_prune/one_col_range_partition.groovy @@ -16,6 +16,7 @@ // under the License. suite("one_col_range_partition") { + sql "set ENABLE_FOLD_CONSTANT_BY_BE=false" sql "drop table if exists one_col_range_partition_date" sql """ create table one_col_range_partition_date(a int, dt datetime, d date, c varchar(100)) duplicate key(a) diff --git a/regression-test/suites/nereids_rules_p0/partition_prune/varchar_as_date_partition_col.groovy b/regression-test/suites/nereids_rules_p0/partition_prune/varchar_as_date_partition_col.groovy index 0cfe4963f27b2a..a5b3a4375c12bc 100644 --- a/regression-test/suites/nereids_rules_p0/partition_prune/varchar_as_date_partition_col.groovy +++ b/regression-test/suites/nereids_rules_p0/partition_prune/varchar_as_date_partition_col.groovy @@ -16,6 +16,7 @@ // under the License. suite("varchar_as_date_partition_col") { + sql "set ENABLE_FOLD_CONSTANT_BY_BE=false" sql"""drop table if exists partition_varchar;""" sql """CREATE TABLE partition_varchar(a int, dt varchar(10), rdt datetime) PARTITION BY list(dt) ( partition p20240101 values in ("20240101","20240102"),