You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Amogh Margoor (Jira)" <ji...@apache.org> on 2021/05/03 19:06:00 UTC

[jira] [Work started] (IMPALA-10680) Replace StringToFloatInternal that converts String to Float using fast_double_parser library

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

Work on IMPALA-10680 started by Amogh Margoor.
----------------------------------------------
> 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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org