You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2019/09/03 23:52:00 UTC

[jira] [Commented] (CALCITE-2816) PsTableFunction fails in Russian locale

    [ https://issues.apache.org/jira/browse/CALCITE-2816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16921772#comment-16921772 ] 

Julian Hyde commented on CALCITE-2816:
--------------------------------------

As noted in the [1.21 release vote|https://lists.apache.org/thread.html/0db442568153f9a8d899f1e1b9c69c60af71cb4c8797b31a833e9036@%3Cdev.calcite.apache.org%3E] the test fails in Russian and German locales. Even if we don't fix the bug, could we fix the test? Add something like
{code:java}
Assume.assumeTrue(Locale.getDefault() == Locale.US);{code}
so that the test doesn't get run in locales where we know PsTableFunction is broken.

> PsTableFunction fails in Russian locale
> ---------------------------------------
>
>                 Key: CALCITE-2816
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2816
>             Project: Calcite
>          Issue Type: Bug
>    Affects Versions: 1.18.0
>            Reporter: Vladimir Sitnikov
>            Priority: Major
>
> The issue is present for quite a long time.
> ps output is locale-dependent and parsing is not:
> {noformat}
> [ERROR] testPs(org.apache.calcite.adapter.os.OsAdapterTest) Time elapsed: 3.018 s <<< ERROR!
> java.lang.RuntimeException: exception while executing [select * from ps]
> at org.apache.calcite.adapter.os.OsAdapterTest.testPs(OsAdapterTest.java:155)
> Caused by: java.lang.RuntimeException: while parsing value [0,1] of field [pcpu] in line [ 0 1 1 0 Ss root 0,1 0,0 4367200 5420 ?? 18янв19 106:03.36 0 0 0 /sbin/launchd]
> at org.apache.calcite.adapter.os.OsAdapterTest.lambda$testPs$3(OsAdapterTest.java:157)
> at org.apache.calcite.adapter.os.OsAdapterTest.testPs(OsAdapterTest.java:155){noformat}
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)