Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
comphead committed Oct 17, 2023
1 parent dcfd99d commit 1a0e4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion-examples/examples/expr_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ fn simplify_demo() -> Result<()> {
let expr = simplifier.simplify(expr)?;

// DataFusion has simplified the expression to a comparison with a constant
// ts = 1599566400000000000; Tada!
// ts = 1599566400i64; Tada!
assert_eq!(
expr,
col("ts").eq(lit_timestamp_nano(1599566400000000000i64))
col("ts").eq(lit(ScalarValue::TimestampSecond(Some(1599566400i64), None)))
);

// here are some other examples of what DataFusion is capable of
Expand Down

0 comments on commit 1a0e4d7

Please sign in to comment.