[
https://issues.apache.org/jira/browse/FLINK-10014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17328594#comment-17328594
]
Flink Jira Bot commented on FLINK-10014:
----------------------------------------
This major issue is unassigned and itself and all of its Sub-Tasks have not
been updated for 30 days. So, it has been labeled "stale-major". If this ticket
is indeed "major", please either assign yourself or give an update. Afterwards,
please remove the label. In 7 days the issue will be deprioritized.
> 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 / API
> Reporter: Xingcan Cui
> Priority: Major
> Labels: stale-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)