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/02/27 10:12:02 UTC

[GitHub] [arrow-datafusion] berkaysynnada opened a new issue, #5412: PartialOrd support for Interval Types

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

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   Currently, comparison operators are not supported for different kinds of intervals (such as `IntervalYearMonth` vs `IntervalDayTime`). They can be supported by making some arithmetic calculations.
   
   **Describe the solution you'd like**
   ```
   impl PartialOrd for ScalarValue {
       fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
           use ScalarValue::*;
           // This purposely doesn't have a catch-all "(_, _)" so that
           // any newly added enum variant will require editing this list
           // or else face a compile error
           match (self, other) {
   ```
   These match arms can be extended to handle the required comparisons.
   
   **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] berkaysynnada closed issue #5412: PartialOrd, Addition and Subtraction support for Interval Types

Posted by "berkaysynnada (via GitHub)" <gi...@apache.org>.
berkaysynnada closed issue #5412: PartialOrd, Addition and Subtraction support for Interval Types
URL: https://github.com/apache/arrow-datafusion/issues/5412


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