You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Taras Bobrovytsky (JIRA)" <ji...@apache.org> on 2018/01/10 22:10:01 UTC
[jira] [Resolved] (IMPALA-5014) DECIMAL V2 round when casting
to/from DECIMAL, part 2
[ https://issues.apache.org/jira/browse/IMPALA-5014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Taras Bobrovytsky resolved IMPALA-5014.
---------------------------------------
Resolution: Fixed
Fix Version/s: Impala 2.12.0
{code}
commit c86b0a9736ee1e19b95a2d06771ca2ab8577950f
Author: Taras Bobrovytsky <tb...@cloudera.com>
Date: Thu Dec 21 15:47:06 2017 -0800
IMPALA-5014: Part 2: Round when casting decimal to timestamp
When there are too many digits to the right of the dot in a decimal, we
would always truncate when casting to timestamp. In this patch we change
the behavior to round instead of truncating when decimal_v2 is enabled.
Testing:
- Added some EE tests, ran BE tests on my machine.
Change-Id: I8fb3a7d976ab980b8572d7e9524850572bad57da
Reviewed-on: http://gerrit.cloudera.org:8080/8969
Reviewed-by: Tim Armstrong <ta...@cloudera.com>
Tested-by: Impala Public Jenkins
{code}
> DECIMAL V2 round when casting to/from DECIMAL, part 2
> -----------------------------------------------------
>
> Key: IMPALA-5014
> URL: https://issues.apache.org/jira/browse/IMPALA-5014
> Project: IMPALA
> Issue Type: Bug
> Components: Backend
> Affects Versions: Impala 2.0
> Reporter: Dan Hecht
> Assignee: Taras Bobrovytsky
> Labels: correctness, downgraded, ramp-up
> Fix For: Impala 2.12.0
>
>
> This is the continuation of IMPALA-4810 to finish the remaining cases:
> ||From Type||To Type||
> |STRING|DECIMAL|
> |DECIMAL|TIMESTAMP|
> See IMPALA-4810 for more background.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)