You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/09/24 06:07:55 UTC

[GitHub] [pinot] ankitsultana commented on a diff in pull request #9461: Fix Data-Correctness Bug in GTE Comparison in BinaryOperatorTransformFunction

ankitsultana commented on code in PR #9461:
URL: https://github.com/apache/pinot/pull/9461#discussion_r979170935


##########
pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/BinaryOperatorTransformFunction.java:
##########
@@ -526,17 +526,17 @@ private void fillStringResultArray(ProjectionBlock projectionBlock, BigDecimal[]
 
   private int compare(long left, double right) {
     if (Math.abs(left) <= 1L << 53) {
-      return getIntResult(Double.compare(left, right));
+      return Double.compare(left, right);

Review Comment:
   Can someone share what's the best unit-test for this?



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org