aloyszhang commented on code in PR #10155:
URL: https://github.com/apache/inlong/pull/10155#discussion_r1593909862


##########
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/operator/OperatorTools.java:
##########
@@ -144,6 +144,17 @@ public static BigDecimal parseBigDecimal(Object value) {
      */
     @SuppressWarnings("rawtypes")
     public static int compareValue(Comparable left, Comparable right) {
+        if (left == null) {
+            if (right == null) {
+                return 0;
+            } else {
+                return -1;
+            }
+        } else {
+            if (right == null) {
+                return 1;
+            }
+        }

Review Comment:
   ```suggestion
          if (left == null) {
               return right == null ? 0 : -1;
           }
           if (right == null) {
               return 1;
           }
   ```



-- 
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-unsubscr...@inlong.apache.org

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

Reply via email to