You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "berkaysynnada (via GitHub)" <gi...@apache.org> on 2023/03/23 13:55:05 UTC

[GitHub] [arrow-datafusion] berkaysynnada opened a new issue, #5704: Timestamp and Interval arithmetics

berkaysynnada opened a new issue, #5704:
URL: https://github.com/apache/arrow-datafusion/issues/5704

   ### Is your feature request related to a problem or challenge?
   
   When we write such queries:
   1)`SELECT val, ts1 - ts2 AS ts_diff FROM table_a ORDER BY ts2 - ts1`, 
   2)`SELECT val, interval1 - interval2 AS interval_diff FROM table_a ORDER BY interval2 - interval1 `, 
   3)`SELECT val, ts1 - interval1 AS ts_interval_diff FROM table_a ORDER BY ts1 - interval1 DESC`
   we get errors like: 
   1)`Plan("'Timestamp(Second, None) - Timestamp(Second, None)' is an unsupported operation. addition/subtraction on dates/timestamps only supported with interval types")`,
   2)`Plan("'Interval(DayTime) - Interval(DayTime)' can't be evaluated because there isn't a common type to coerce the types to")`,
   3)`Execution("Columnar execution is not yet supported for DateIntervalExpr")`
   
   These operations are applicable for scalar values; however, columnar operations are not supported yet.
   
   ### Describe the solution you'd like
   
   In planner.rs, binary.rs and datetime.rs, there are some match expressions that need to be extended to handle these cases. Considering the behavior in scalar value operations, required arithmetic operations can be implemented.
   
   ### Describe alternatives you've considered
   
   -
   
   ### Additional context
   
   -


-- 
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-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-datafusion] alamb commented on issue #5704: Timestamp and Interval arithmetics

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #5704:
URL: https://github.com/apache/arrow-datafusion/issues/5704#issuecomment-1484973835

   I added this ticket to a tracking epic https://github.com/apache/arrow-datafusion/issues/5753 
   
   I also plan to file upstream issues in arrow-rs to track supporting intervals in the array kernels


-- 
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-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-datafusion] doki23 commented on issue #5704: Timestamp and Interval arithmetics

Posted by "doki23 (via GitHub)" <gi...@apache.org>.
doki23 commented on issue #5704:
URL: https://github.com/apache/arrow-datafusion/issues/5704#issuecomment-1481379691

   somewhat duplicate #194


-- 
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-unsubscribe@arrow.apache.org

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


[GitHub] [arrow-datafusion] alamb closed issue #5704: Timestamp and Interval arithmetics

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #5704: Timestamp and Interval arithmetics
URL: https://github.com/apache/arrow-datafusion/issues/5704


-- 
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-unsubscribe@arrow.apache.org

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