From 60bacff57e23d89e4a8d6f85e817bf64cacf6659 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Sun, 8 Sep 2024 11:12:21 +0800 Subject: [PATCH] ignore unmatched left and right greater Signed-off-by: Ruihang Xia --- src/partition/src/multi_dim.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/partition/src/multi_dim.rs b/src/partition/src/multi_dim.rs index e8841470d7..612ac76941 100644 --- a/src/partition/src/multi_dim.rs +++ b/src/partition/src/multi_dim.rs @@ -274,7 +274,7 @@ impl<'a> RuleChecker<'a> { fn check_axis(&self) -> Result<()> { for (col_index, axis) in self.axis.iter().enumerate() { for (val, split_point) in axis { - if split_point.less_than_counter != 0 || !split_point.is_equal { + if !split_point.is_equal { UnclosedValueSnafu { value: format!("{val:?}"), column: self.rule.partition_columns[col_index].clone(), @@ -410,6 +410,7 @@ mod tests { /// b <= h b >= s /// ``` #[test] + #[ignore = "don't check unmatched `>` and `<` for now"] fn empty_expr_case_1() { // PARTITION ON COLUMNS (b) ( // b <= 'h', @@ -451,6 +452,7 @@ mod tests { /// 10 20 /// ``` #[test] + #[ignore = "don't check unmatched `>` and `<` for now"] fn empty_expr_case_2() { // PARTITION ON COLUMNS (b) ( // a >= 100 AND b <= 10 OR a > 100 AND a <= 200 AND b <= 10 OR a >= 200 AND b > 10 AND b <= 20 OR a > 200 AND b <= 20 @@ -580,6 +582,7 @@ mod tests { } #[test] + #[ignore = "don't check unmatched `>` and `<` for now"] fn duplicate_expr_case_1() { // PARTITION ON COLUMNS (a) ( // a <= 20,