mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-04 04:12:55 +00:00
ignore unmatched left and right greater
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user