You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Sudheesh Katkam (JIRA)" <ji...@apache.org> on 2014/06/12 19:19:01 UTC

[jira] [Assigned] (DRILL-605) should round a number up in a cast if the rounded out number is >=5

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

Sudheesh Katkam reassigned DRILL-605:
-------------------------------------

    Assignee: Mehant Baid  (was: Sudheesh Katkam)

> should round a number up in a cast if the rounded out number is >=5
> -------------------------------------------------------------------
>
>                 Key: DRILL-605
>                 URL: https://issues.apache.org/jira/browse/DRILL-605
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Chun Chang
>            Assignee: Mehant Baid
>             Fix For: 1.0.0-BETA1
>
>         Attachments: DRILL-605.patch.txt
>
>
> postgres:
> foodmart=# select c_row, c_decimal38, cast(c_decimal38 as decimal(38,15)) from data where c_row = 19;
>  c_row |               c_decimal38               |             c_decimal38
> -------+-----------------------------------------+-------------------------------------
>     19 | 1234567890123456789.1234567890123456789 | 1234567890123456789.123456789012346
> (1 row)
> drill:
> 0: jdbc:drill:schema=dfs> select c_row, c_decimal38, cast(c_decimal38 as decimal(38,15)) from data where c_row = 19;
> +------------+-------------+------------+
> |   c_row    | c_decimal38 |   EXPR$2   |
> +------------+-------------+------------+
> | 19         | [B@632099ee | 1234567890123456789.123456789012345 |
> +------------+-------------+------------+
> 1 row selected (0.194 seconds)



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