We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8cafb8 commit 4977779Copy full SHA for 4977779
core/src/main/java/org/opensearch/sql/expression/function/udf/binning/WidthBucketFunction.java
@@ -145,6 +145,12 @@ public static String calculateWidthBucket(
145
Number numericMin = (Number) minValue;
146
Number numericMax = (Number) maxValue;
147
148
+ double value = numericValue.doubleValue();
149
+ double min = numericMin.doubleValue();
150
+ double max = numericMax.doubleValue();
151
+
152
+ // Calculate range
153
+ double range = max - min;
154
if (range <= 0) {
155
return null;
156
}
0 commit comments