From 4acde316ff3eb74f296d95af606cd26451de5110 Mon Sep 17 00:00:00 2001 From: Jia-Xuan Liu Date: Sun, 19 May 2024 11:26:16 +0800 Subject: [PATCH] fix the example test --- datafusion-examples/examples/plan_to_sql.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datafusion-examples/examples/plan_to_sql.rs b/datafusion-examples/examples/plan_to_sql.rs index 3915d3991f769..77aec852c7590 100644 --- a/datafusion-examples/examples/plan_to_sql.rs +++ b/datafusion-examples/examples/plan_to_sql.rs @@ -50,7 +50,7 @@ fn simple_expr_to_sql_demo() -> Result<()> { let expr = col("a").lt(lit(5)).or(col("a").eq(lit(8))); let ast = expr_to_sql(&expr)?; let sql = format!("{}", ast); - assert_eq!(sql, r#"(("a" < 5) OR ("a" = 8))"#); + assert_eq!(sql, r#"((a < 5) OR (a = 8))"#); Ok(()) }