alamb commented on issue #4875:
URL: 
https://github.com/apache/arrow-datafusion/issues/4875#issuecomment-1379460974

   I tried to run this query on datafusion cli from the `15.0.0` tag
   
   ```shell
   cd datafusion-cli
   cargo run
   ```
   
   ```
   DataFusion CLI v15.0.0
   ❯ select '1677-06-14T07:29:01.256'::timestamp;
   thread 'main' panicked at 'attempt to multiply with overflow', 
/Users/alamb/.cargo/registry/src/github.com-1ecc6299db9ec823/chrono-0.4.23/src/naive/datetime/mod.rs:426:21
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   (arrow_dev) alamb@MacBook-Pro-8:~/Software/arrow-datafusion/datafusion-cli$ 
   (arrow_dev) alamb@MacBook-Pro-8:~/Software/arrow-datafusion/datafusion-cli$ 
CARGO_TARGET_DIR=/Users/alamb/Software/target-df cargo run -- 
       Finished dev [unoptimized + debuginfo] target(s) in 0.32s
        Running `/Users/alamb/Software/target-df/debug/datafusion-cli`
   DataFusion CLI v15.0.0
   ❯ select '1677-06-14T07:29:01.256'::date;
   ArrowError(CastError("Cannot cast string '1677-06-14T07:29:01.256' to value 
of Date32 type"))
   ```
   
   
   However, it seems to work correctly on datafusion 16
   
   ```shell
   DataFusion CLI v16.0.0
   ❯ select '1677-06-14T07:29:01.256'::timestamp
   ;
   +---------------------------------+
   | Utf8("1677-06-14T07:29:01.256") |
   +---------------------------------+
   | 2262-01-03T07:03:34.965551616   |
   +---------------------------------+
   1 row in set. Query took 0.032 seconds.
   ❯ select '1677-06-14T07:29:01.256'::date;
   ArrowError(CastError("Cannot cast string '1677-06-14T07:29:01.256' to value 
of Date32 type"))
   ```
   
   @DDtKey  I wonder if you can share more of the data / query / query plan?


-- 
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]

Reply via email to