alamb commented on PR #5180:
URL: https://github.com/apache/arrow-rs/pull/5180#issuecomment-1846098503

   Right -- I was looking for a counter example that that would be different 
with the two different semantic
   
   Maybe something like the following
   
   Sort order on master (even though "logically" one might expect `one month - 
1 day` to be 27, 29, or 31 days, which are all larger than 15 days because the 
underlying representation 
   ```
   IntervalMonthDayNano(1, -1, 0)    # one month - 1 day, 0 ns)
   IntervalMonthDayNano(0, 15, 0)    # 0 months, 15 days, 0ns)
   ```
   
   But if you changed comparison to the possibly more intuitive ordering:
   
   ```
   IntervalMonthDayNano(1, -1, 0)    # one month - 1 day, 0 ns)
   IntervalMonthDayNano(0, 15, 0)    # 0 months, 15 days, 0ns)
   ```
   
   then the order doesn't match the order of the underlying i128 🤔 


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

Reply via email to