You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Chun Chang (JIRA)" <ji...@apache.org> on 2014/04/30 20:50:18 UTC
[jira] [Created] (DRILL-605) should round a number up in a cast if
the rounded out number is >=5
Chun Chang created DRILL-605:
--------------------------------
Summary: 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
Reporter: Chun Chang
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)