You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Mehant Baid (JIRA)" <ji...@apache.org> on 2014/07/07 07:10:33 UTC

[jira] [Resolved] (DRILL-606) double cast for decimals fails

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

Mehant Baid resolved DRILL-606.
-------------------------------

    Resolution: Duplicate

> double cast for decimals fails
> ------------------------------
>
>                 Key: DRILL-606
>                 URL: https://issues.apache.org/jira/browse/DRILL-606
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Chun Chang
>            Assignee: Mehant Baid
>             Fix For: 1.0.0-BETA1
>
>
> postgres:
> foodmart=# select c_row, c_decimal38, cast(cast(c_decimal38 as decimal(38,10)) as decimal(18,7)) from data where c_row = 9;
>  c_row |     c_decimal38     |    c_decimal38
> -------+---------------------+-------------------
>      9 | 123456789.123456789 | 123456789.1234568
> (1 row)
> drill:
> 0: jdbc:drill:schema=dfs> select c_row, c_decimal38, cast(cast(c_decimal38 as decimal(38,10)) as decimal(18,7)) from data where c_row = 9;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "1314b28c-90ac-4e47-b38e-e7f36bb2ca99"
> endpoint {
>   address: "qa-node119.qa.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while running fragment. < UnsupportedOperationException:[ DECIMAL38DENSE ]"
> ]
> Error: exception while executing query (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.2#6252)