Skip to content

Commit 830a4c8

Browse files
committed
fix examples
1 parent 68a2f76 commit 830a4c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

datafusion-examples/examples/expr_api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ fn simplify_demo() -> Result<()> {
8282
let expr = simplifier.simplify(expr)?;
8383

8484
// DataFusion has simplified the expression to a comparison with a constant
85-
// ts = 1599566400000000000; Tada!
85+
// ts = 1599566400i64; Tada!
8686
assert_eq!(
8787
expr,
88-
col("ts").eq(lit_timestamp_nano(1599566400000000000i64))
88+
col("ts").eq(lit(ScalarValue::TimestampSecond(Some(1599566400i64), None)))
8989
);
9090

9191
// here are some other examples of what DataFusion is capable of

0 commit comments

Comments
 (0)