[
https://issues.apache.org/jira/browse/HIVE-26731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18128823#comment-18128823
]
Gopinath commented on HIVE-26731:
---------------------------------
Thanks for reviewing and merging the PR [~dkuzmenko]
> UDF trunc produces incorrect result for higher values
> -----------------------------------------------------
>
> Key: HIVE-26731
> URL: https://issues.apache.org/jira/browse/HIVE-26731
> Project: Hive
> Issue Type: Bug
> Components: UDF
> Reporter: Gopinath
> Assignee: Gopinath
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.3.0
>
>
> The trunc function produces an incorrect result for higher values。
> The test is as follows:
>
>
> {quote}
> 0: jdbc:hive2://localost> select trunc(123456711889.122345897, 8);
> +----------------------------------+
> | _c0 |
> +----------------------------------+
> | -61010728847.97317027 |
> +----------------------------------+
> {quote}
>
> Expected Value - 123456711889.12234589
--
This message was sent by Atlassian Jira
(v8.20.10#820010)