[
https://issues.apache.org/jira/browse/CALCITE-2093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16295078#comment-16295078
]
Piotr Bojko commented on CALCITE-2093:
--------------------------------------
{code}
return NumberFormat.getInstance(Locale.getDefault()).parse(value).floatValue();
{code}
instead of
{code}
return Float.parse(value);
{code}
patches the problem.
*Note that current audit on project disallows getInstance without parameters
(it uses Locale.getDefault() then), so explicitly default locale is given.*
> OsAdapterTest in Calcite Plus does not respect locale
> -----------------------------------------------------
>
> Key: CALCITE-2093
> URL: https://issues.apache.org/jira/browse/CALCITE-2093
> Project: Calcite
> Issue Type: Bug
> Affects Versions: 1.16.0
> Reporter: Piotr Bojko
> Assignee: Piotr Bojko
>
> On Linux when PL locales are applied FileTableFunction java uses Float.parse
> which does not consider os locales but rather uses dot for float numbers.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)