berkaysynnada commented on PR #5180: URL: https://github.com/apache/arrow-rs/pull/5180#issuecomment-1845348496
I've revised the implementation and now the comparison semantic is as follows: The interval values on both sides of the comparison reference a specific timestamp. If comparing these intervals with respect to this reference gives a definite answer, like 1 month and 1 month + 1 day, that answer is given as the result. However, if there is an indefinite case, like 1 month and 30 days, the result will be false for both greater than and less than comparisons. This means that comparisons such as "1 month < 1 month + 1 day" are now returning true. The current status of this PR includes: 1) Proper handling of negative cases. 2) Correct evaluations of results such as "1 month < 1 month + 1 day". 3) Inexact results like "1 month + 30 days < 2 months" or "1 month + 30 days > 2 months" consistently return false for all cases, including greater than and less than equal comparisons. 4) Equality cases remain unaffected. -- 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]
