[ https://issues.apache.org/jira/browse/HIVE-15325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chinna Rao Lalam updated HIVE-15325: ------------------------------------ Status: Patch Available (was: Open) > 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 > Attachments: HIVE-15325.patch > > > 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)