Skip to content

Commit e4f619e

Browse files
committed
fix less
Signed-off-by: Xinyu Hao <[email protected]>
1 parent 851f40e commit e4f619e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/opensearch/sql/expression/function/udf/ip/LessIpFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static boolean Less(String ip1, String ip2) {
6262
try {
6363
IPAddress ipAddress1 = IPUtils.toAddress(ip1);
6464
IPAddress ipAddress2 = IPUtils.toAddress(ip2);
65-
return IPUtils.compare(ipAddress1, ipAddress2) <= 0;
65+
return IPUtils.compare(ipAddress1, ipAddress2) < 0;
6666
} catch (SemanticCheckException e) {
6767
return false;
6868
}

0 commit comments

Comments
 (0)