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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]