hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chinna Rao Lalam (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-15325) Scale is greater than decimal values trunc(d,s) returns wrong results
Date Thu, 22 Dec 2016 10:01:58 GMT

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

Chinna Rao Lalam updated HIVE-15325:
------------------------------------
    Priority: Major  (was: Minor)

> Scale is greater than decimal values trunc(d,s) returns wrong results
> ---------------------------------------------------------------------
>
>                 Key: HIVE-15325
>                 URL: https://issues.apache.org/jira/browse/HIVE-15325
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>            Reporter: Chinna Rao Lalam
>            Assignee: Chinna Rao Lalam
>
> Scale is greater than decimal values trunc(d,s) returns wrong results.
> {quote}
> select trunc(1234567891.1234567891,15), trunc(1234567891.1234567891,25), trunc(1234567891.1234567891,20),
trunc(1234567891.1234567891,50) FROM src tablesample (1 rows);
> {quote}
> Add tests with negative numbers as well as no-op (e.g. select trunc (12.34, 100))



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message