Skip to content

Commit 4977779

Browse files
committed
fix compile
Signed-off-by: Kai Huang <[email protected]>
1 parent a8cafb8 commit 4977779

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/main/java/org/opensearch/sql/expression/function/udf/binning/WidthBucketFunction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ public static String calculateWidthBucket(
145145
Number numericMin = (Number) minValue;
146146
Number numericMax = (Number) maxValue;
147147

148+
double value = numericValue.doubleValue();
149+
double min = numericMin.doubleValue();
150+
double max = numericMax.doubleValue();
151+
152+
// Calculate range
153+
double range = max - min;
148154
if (range <= 0) {
149155
return null;
150156
}

0 commit comments

Comments
 (0)