Skip to content

Commit

Permalink
fix the example test
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed May 19, 2024
1 parent 433531d commit 4acde31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datafusion-examples/examples/plan_to_sql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down

0 comments on commit 4acde31

Please sign in to comment.