You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Piotr Nowojski (JIRA)" <ji...@apache.org> on 2018/09/26 13:14:00 UTC
[jira] [Updated] (FLINK-10438) Built in functions should document
the returned types
[ https://issues.apache.org/jira/browse/FLINK-10438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Piotr Nowojski updated FLINK-10438:
-----------------------------------
Description:
As it is now, user have no idea to know whether the result of the operation is accurate or not.
For example {{POWER(4, 2)}} or {{POWER(2.5, )}} could return exact results (with proper {{DECIMAL}} support), while it seems like now they are silently returning approximated result (because of {{DOUBLE}} arithmetic). Same applies to other arithmetic functions, like {{COS SIN ATAN LOG ...}}.
Such behaviour should be documented. In some cases documenting the argument types also might be important.
was:
As it is now, user have no idea to know whether the result of the operation is accurate or not.
For example {{POWER(4, 2)}} or {{POWER(2.5, )}} could return exact results (with proper {{DECIMAL}} support), while it seems like now they are returning approximated result (because of {{DOUBLE}} arithmetic). Same applies to other arithmetic functions, like {{COS SIN ATAN LOG ...}}.
Such behaviour should be documented. In some cases documenting the argument types also might be important.
> Built in functions should document the returned types
> -----------------------------------------------------
>
> Key: FLINK-10438
> URL: https://issues.apache.org/jira/browse/FLINK-10438
> Project: Flink
> Issue Type: Improvement
> Components: Table API & SQL
> Affects Versions: 1.6.1
> Reporter: Piotr Nowojski
> Priority: Major
>
> As it is now, user have no idea to know whether the result of the operation is accurate or not.
> For example {{POWER(4, 2)}} or {{POWER(2.5, )}} could return exact results (with proper {{DECIMAL}} support), while it seems like now they are silently returning approximated result (because of {{DOUBLE}} arithmetic). Same applies to other arithmetic functions, like {{COS SIN ATAN LOG ...}}.
> Such behaviour should be documented. In some cases documenting the argument types also might be important.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)