drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mehant Baid (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-606) double cast for decimals fails
Date Mon, 07 Jul 2014 05:10:33 GMT

     [ 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)

Mime
View raw message