kavirajk commented on code in PR #11576:
URL: https://github.com/apache/datafusion/pull/11576#discussion_r1685528790
##########
datafusion-examples/examples/expr_api.rs:
##########
@@ -209,7 +205,7 @@ fn simplify_demo() -> Result<()> {
);
// String --> Date simplification
- // `cast('2020-09-01' as date)` --> 18500
+ // `cast('2020-09-01' as date)` --> 18506 # number of days since epoch
1970-01-01
Review Comment:
```bash
-bash-5.2$ echo "scale=6; ($(gdate +%s -d "2020-09-01") - $(gdate +%s -d
"1970-01-01")) / 86400" | bc
18505.958333
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]