mirror of https://github.com/apache/druid.git
b5a25f24f2
DruidRexExecutor while reducing Arrays, specially numeric arrays, doesn't convert the value from ExprResult's type to BigDecimal, which causes makeLiteral to cast the values. Also, if NaN or Infinite values are present in the array, the error is a generic NumberFormatException. For example: SELECT ARRAY[1.11, 2.22] returns [1, 2] SELECT SQRT(-1) throws a generic NumberFormatException instead of IAE This PR introduces change to cast the numeric values to BigDecimal since Calcite's library understands that easily, and doesn't perform casts. |
||
---|---|---|
.. | ||
src | ||
pom.xml |