There was an error while loading. Please reload this page.
1 parent 68a2f76 commit 830a4c8Copy full SHA for 830a4c8
1 file changed
datafusion-examples/examples/expr_api.rs
@@ -82,10 +82,10 @@ fn simplify_demo() -> Result<()> {
82
let expr = simplifier.simplify(expr)?;
83
84
// DataFusion has simplified the expression to a comparison with a constant
85
- // ts = 1599566400000000000; Tada!
+ // ts = 1599566400i64; Tada!
86
assert_eq!(
87
expr,
88
- col("ts").eq(lit_timestamp_nano(1599566400000000000i64))
+ col("ts").eq(lit(ScalarValue::TimestampSecond(Some(1599566400i64), None)))
89
);
90
91
// here are some other examples of what DataFusion is capable of
0 commit comments