[ https://issues.apache.org/jira/browse/FLINK-15505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17014820#comment-17014820 ]
wangxiyuan commented on FLINK-15505: ------------------------------------ [~fly_in_gis] 1.8.3 doesn't contain my change, for example: [https://github.com/apache/flink/blob/release-1.8.3/flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/plan/cost/DataSetCost.scala#L112] I guess my change is not released now? the test failure on ppc64le is the same with aarch64. So use StrictMath can solve this problem. I just wrote a test : [https://github.com/wangxiyuan/test_diff_arch/blob/master/TestMath.java] the test result on diff arch: [https://travis-ci.com/wangxiyuan/test_diff_arch/builds/144255686] You can see that StrichMath does the same behavior on different arch. [~redmark-ibm] Please try flink master branch for these two tests or wait another new release IMO. > 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)