parthchandra commented on issue #2621:
URL: 
https://github.com/apache/datafusion-comet/issues/2621#issuecomment-3438942520

   > > "" is not valid input, afaik. Is this even a bug? As in, does Spark 
handle this?
   > 
   > Yes, the query runs without error in Spark. I didn't look at the results, 
but perhaps it produces a NULL rather than throwing an exception.
   
   Yes, in Spark `functions.date_trunc` the return value is null if the format 
string is empty or invalid.
   ```
      * @return A timestamp, or null if `timestamp` was a string that could not 
be cast to a timestamp
      *         or `format` was an invalid value
   ```


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

Reply via email to