You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Yang Wang (Jira)" <ji...@apache.org> on 2020/01/08 06:48:00 UTC
[jira] [Commented] (FLINK-15505) flink-clients test failing on Red
Hat 7.6 PowerPC Linux
[ https://issues.apache.org/jira/browse/FLINK-15505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17010403#comment-17010403 ]
Yang Wang commented on FLINK-15505:
-----------------------------------
Probably because the decimal precision differs in different operating system.
> flink-clients test failing on Red Hat 7.6 PowerPC Linux
> -------------------------------------------------------
>
> Key: FLINK-15505
> URL: https://issues.apache.org/jira/browse/FLINK-15505
> Project: Flink
> Issue Type: Bug
> Components: Tests
> Affects Versions: 1.8.3
> Environment: Red Hat 7.6 Linux ppc64le
> Java 1.8.0.232
> Maven 3.2.5
> Reporter: Ronald O. Edmark
> Priority: Critical
>
> git clone [https://github.com/apache/flink.git]
> cd flink
> git checkout release-1.8.3
> mvn clean package
>
> [ERROR] SqlExpressionTest>ExpressionTestBase.evaluateExprs:170 Wrong result for: [LOG(3,27)] optimized to: [3.0000000000000004440E0] expected:<3.0[]> but was:<3.0[000000000000004]>
> [ERROR] SqlExpressionTest>ExpressionTestBase.evaluateExprs:171 Wrong result for: [EXP(1)] optimized to: [2.7182818284590455348E0] expected:<2.718281828459045[]> but was:<2.718281828459045[5]>
>
> Edit file and removed the two tests worked.
> ./flink-table/flink-table-planner/src/test/scala/org/apache/flink/table/expressions/SqlExpressionTest.scala
> testSqlApi("LOG(3,27)", "3.0")
> testSqlApi("EXP(1)", "2.718281828459045")
--
This message was sent by Atlassian Jira
(v8.3.4#803005)