flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xingcan Cui (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-10014) Fix the decimal literal parameter problem for arithmetic functions in Table
Date Wed, 01 Aug 2018 09:11:00 GMT
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 &amp; 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)

Mime
View raw message