ian-bertolacci commented on PR #3224: URL: https://github.com/apache/calcite/pull/3224#issuecomment-1562082102
Pertinent line from the [`Comparable` documents](https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html#:~:text=Virtually%20all%20Java%20core%20classes%20that%20implement%20Comparable%20have%20natural%20orderings%20that%20are%20consistent%20with%20equals.%20One%20exception%20is%20java.math.BigDecimal%2C%20whose%20natural%20ordering%20equates%20BigDecimal%20objects%20with%20equal%20values%20and%20different%20precisions%20(such%20as%204.0%20and%204.00).): > Virtually all Java core classes that implement Comparable have natural orderings that are consistent with equals. One exception is java.math.BigDecimal, whose natural ordering equates BigDecimal objects with equal values and different precisions (such as 4.0 and 4.00). -- 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]
