You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Arina Ielchiieva (JIRA)" <ji...@apache.org> on 2019/03/11 13:24:00 UTC

[jira] [Assigned] (DRILL-6018) Drill can't handle NaN, Infinity literals

     [ https://issues.apache.org/jira/browse/DRILL-6018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arina Ielchiieva reassigned DRILL-6018:
---------------------------------------

    Assignee:     (was: Volodymyr Tkach)

> Drill can't handle NaN, Infinity literals
> -----------------------------------------
>
>                 Key: DRILL-6018
>                 URL: https://issues.apache.org/jira/browse/DRILL-6018
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Volodymyr Tkach
>            Priority: Major
>
> Queries like:
> select sin(cast('NaN' as double)) from (values(1))
> select cast('Infinity' as double)+1 from (values(1))
> end up with NumberFormatException, because Drill and Calcite use BigDecimal to handle double literals. As a solution we can add  special symbols NAN, POS_INF, NEG_INF which will represent not numeric literals.
> Created [calcite jira | https://issues.apache.org/jira/browse/CALCITE-2067] for this functionality.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)