gnayus commented on issue #12342:
URL: https://github.com/apache/datafusion/issues/12342#issuecomment-2505295586

   Using intervals, both of the following work:
   
   select to_date('1970-01-01') + interval '5' day;
   select interval '5' day + to_date('1970-01-01');
   
   Do we want to support both cases for Date32 and Int64 as well?
   
   select to_date('1970-01-01', 'yyyy-mm-dd') + 5;
   select 5 + to_date('1970-01-01', 'yyyy-mm-dd');
   
   How about minus? 
   
   select to_date('1970-01-01', 'yyyy-mm-dd') - 5;
   


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