Omega359 commented on PR #9689:
URL: 
https://github.com/apache/arrow-datafusion/pull/9689#issuecomment-2013215082

   I was targeting postgres with this as best as possible vs spark though 
null/empty testing was unfortunately not a big focus. I think the previous 
behavior (use default) was the spark behaviour - though that wasn't on purpose 
on my part.
   
   ```
   SELECT to_char('1997-02-28 10:30:00'::TIMESTAMP, null);
   +-------+
   |to_char|
   +-------+
   |null   |
   +-------+
   ```
   I knew about the behaviour difference with spark but it's not something that 
I can see can be fixed without a flag or dedicated functions per dialect. It 
actually affects me directly which I'll handle with preprocessing the formats 
to strip null/empty formats.


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