[
https://issues.apache.org/jira/browse/FLINK-10014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jingsong Lee updated FLINK-10014:
---------------------------------
Component/s: (was: Table SQL / Runtime)
Table SQL / Legacy Planner
> 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 SQL / Legacy Planner
> Reporter: Xingcan Cui
> Priority: Minor
> Labels: auto-deprioritized-major
>
> 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
(v8.3.4#803005)