test: drop useless format! in nested expression test

Signed-off-by: fengyue-xve <1759519137@qq.com>
This commit is contained in:
风月
2026-10-10 09:16:48 +08:00
committed by fengyue-xve
parent 6b9ace0971
commit f4646903b2
@@ -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]),