[
https://issues.apache.org/jira/browse/IMPALA-10680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338567#comment-17338567
]
Amogh Margoor commented on IMPALA-10680:
----------------------------------------
Patch for the same: https://gerrit.cloudera.org/#/c/17389/ cc [~boroknagyz]
> Replace StringToFloatInternal that converts String to Float using
> fast_double_parser library
> --------------------------------------------------------------------------------------------
>
> Key: IMPALA-10680
> URL: https://issues.apache.org/jira/browse/IMPALA-10680
> Project: IMPALA
> Issue Type: Sub-task
> Reporter: Amogh Margoor
> Assignee: Amogh Margoor
> Priority: Major
>
> Based on the comment made by [~csringhofer]
> [here|https://issues.apache.org/jira/browse/IMPALA-10350?focusedCommentId=17324270&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17324270],
> we can use fast_double_parser (introduced by IMPALA-10654) to do String to
> Double conversion
> [here|https://github.com/apache/impala/blob/master/be/src/util/string-parser.h#L459].
> This would ensure precision loss can be avoided in cases like below:
> {code:java}
> select cast("0.43149576573887316" as double);
> result: 0.4314957657388731
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]