alamb opened a new issue, #13850:
URL: https://github.com/apache/datafusion/issues/13850

   ### Is your feature request related to a problem or challenge?
   
   Copied directly from  https://github.com/apache/arrow-rs/issues/6335 from 
@samuelcolvin 
   
   In Postgres I can do:
   
   ```sql
   select 3 * interval '1 day';
   select interval '1 day' * 3;  -- same
   select 1.23 * interval '1 day';
   -- and divide
   select interval '1 day' / 3;
   ```
   
   I started trying to add support for this to datafusion but discovered that 
the operations aren't supported in arrow-rs and adding them (with support for 
all numeric types) is far from trivial.
   
   ### Describe the solution you'd like
   
   
   The idea is to support the syntax above in DataFusion
   
   High level steps are:
   - [ ] Arrow-rs support: https://github.com/apache/arrow-rs/pull/6906
   - [ ] PR in DataFusion to allow the operations and add appropriate tests
   
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   I believe @milevin is already working on this (so perhaps you would like to 
assign this ticket to yourself via `take`)


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to