alamb opened a new issue, #3492:
URL: https://github.com/apache/arrow-rs/issues/3492

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   We are trying to use `'2001-01-01'` as a timestamp (as an argument to the 
`date_bin` function in DataFusion).
   
   However, we get the following error
   
   ```
   Arrow error: Cast error: Error parsing '2001-01-01' as timestamp
   ```
   
   As a workaround we can add `00:00:00` to the end and that works:
   
   `'2001-01-01 00:00:00'` 
   
   **Describe the solution you'd like**
   I would like `'2001-01-01'` to be parsed the same as `'2001-01-01 00:00:00'` 
   
   **Describe alternatives you've considered**
   I can special case this downstream in datafusion
   
   **Additional context**
   I believe this can be achieved by adding the appropriate support to 
`string_to_timestamp_nanos` and adding a few tests
   
   
https://github.com/apache/arrow-rs/blob/c74665808439cb7020fb1cfb74b376a136c73259/arrow-cast/src/parse.rs#L23-L71


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