Skip to content

Commit b26eb24

Browse files
committed
fix percentile bug
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent fddbb70 commit b26eb24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/opensearch/sql/calcite/udf/udaf/PercentileApproxFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public Object result(PencentileApproAccumulator acc) {
6262
float floatRet = (float) retValue;
6363
return floatRet;
6464
default:
65-
return acc.value();
65+
return retValue;
6666
}
6767
}
6868

0 commit comments

Comments
 (0)