Xingcan Cui created FLINK-10014: ----------------------------------- Summary: Fix the decimal literal parameter problem for arithmetic functions in Table Key: FLINK-10014 URL: https://issues.apache.org/jira/browse/FLINK-10014 Project: Flink Issue Type: Improvement Components: Table API & SQL Reporter: Xingcan Cui
Most of the arithmetic functions added in Flink only consider double type parameters (e.g., def log(base: Double, x: Double): Double =...). However, by Calcite, the decimal literals are automatically cast to BigDecimal, which cannot be directly applied (e.g., LOG(3.0, 9.0) throws an unsupported call exception). Explicit type cast can make these functions accessible but seems not an elegant solution. We could consider automatically casting the BigDecimal type to Double or adding the corresponding methods for BigDecimal type. -- This message was sent by Atlassian JIRA (v7.6.3#76005)