akravchukdremio opened a new issue, #48866:
URL: https://github.com/apache/arrow/issues/48866

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The Gandiva precompiled time casting functions (`castTIMESTAMP_utf8` and 
`castTIME_utf8`) incorrectly reject timestamp and time string literals with 
more than 3 subsecond digits (beyond millisecond precision), instead of 
truncating them as other implementations do.
   
   Current behavior:
   
   ```cpp
   castTIMESTAMP_utf8("2025-03-26 11:34:56.123456789")
   // Returns: 0 (error)
   // Error: "Invalid millis for timestamp value 2025-03-26 11:34:56.123456789"
   
   castTIME_utf8("09:45:30.123456789")
   // Returns: 0 (error)  
   // Error: "Invalid millis for time value 09:45:30.123456789"
   ```
   
   Expected behavior:
   
   ```cpp
   castTIMESTAMP_utf8("2025-03-26 11:34:56.123456789")
   // Should return: equivalent to "2025-03-26 11:34:56.123" (truncated to 
milliseconds)
   
   castTIME_utf8("09:45:30.123456789")
   // Should return: equivalent to "09:45:30.123" (truncated to milliseconds)
   ```
   
   ### Component(s)
   
   Gandiva


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