alamb commented on code in PR #8908: URL: https://github.com/apache/arrow-datafusion/pull/8908#discussion_r1460815247
########## datafusion/expr/src/expr.rs: ########## @@ -1869,10 +1869,14 @@ mod test { let exp2 = col("a") + lit(2); let exp3 = !(col("a") + lit(2)); - assert!(exp1 < exp2); - assert!(exp2 > exp1); - assert!(exp2 > exp3); - assert!(exp3 < exp2); + // Since comparisons are done using hash value of the expression Review Comment: > but my initial response is this is probably incorrect, especially if it is inconsistent with the equality relation. Why is it "inconsistent with equality" ? If two exprs are equal, they would have the same hash, so the order between hash values would be consistent (on a certain platform and release) That is not to say we shouldn't change how ordering is done, but I just don't understand this comment -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org