mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-21 19:32:34 +00:00
test: drop useless format! in nested expression test
Signed-off-by: fengyue-xve <1759519137@qq.com>
This commit is contained in:
@@ -391,9 +391,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_nested_expression_is_validated() {
|
||||
let expr = format!(
|
||||
r#"{{"Expr":{{"lhs":{{"Expr":{{"lhs":{{"Column":"ts"}},"op":"GtEq","rhs":{{"Value":{{"Timestamp":{{"value":0,"unit":"Millisecond"}}}}}}}}}},"op":"And","rhs":{{"Expr":{{"lhs":{{"Column":"ts"}},"op":"Lt","rhs":{{"Value":{{"Timestamp":{{"value":32503680000000,"unit":"Millisecond"}}}}}}}}}}}}}}"#
|
||||
);
|
||||
let expr = r#"{"Expr":{"lhs":{"Expr":{"lhs":{"Column":"ts"},"op":"GtEq","rhs":{"Value":{"Timestamp":{"value":0,"unit":"Millisecond"}}}}},"op":"And","rhs":{"Expr":{"lhs":{"Column":"ts"},"op":"Lt","rhs":{"Value":{"Timestamp":{"value":32503680000000,"unit":"Millisecond"}}}}}}}"#.to_string();
|
||||
let err = validate_region_partition_bounds(
|
||||
&changed("ts", ConcreteDataType::timestamp_nanosecond_datatype()),
|
||||
&routes(&[&expr]),
|
||||
|
||||
Reference in New Issue
Block a user