[
https://issues.apache.org/jira/browse/ARROW-4250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661274#comment-17661274
]
Rok Mihevc commented on ARROW-4250:
-----------------------------------
This issue has been migrated to [issue
#20828|https://github.com/apache/arrow/issues/20828] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [C++][Gandiva] Use approximate comparisons for floating point numbers in
> gandiva-projector-test
> -----------------------------------------------------------------------------------------------
>
> Key: ARROW-4250
> URL: https://issues.apache.org/jira/browse/ARROW-4250
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, C++ - Gandiva
> Reporter: Wes McKinney
> Assignee: Ben Kietzman
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.13.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> I experienced a failure due to floating point comparison when running the
> release verification script for 0.12.0 RC2.
> {code}
> [==========] Running 13 tests from 1 test case.
> [----------] Global test environment set-up.
> [----------] 13 tests from TestProjector
> [ RUN ] TestProjector.TestProjectCache
> [ OK ] TestProjector.TestProjectCache (584 ms)
> [ RUN ] TestProjector.TestProjectCacheFieldNames
> [ OK ] TestProjector.TestProjectCacheFieldNames (319 ms)
> [ RUN ] TestProjector.TestProjectCacheDouble
> [ OK ] TestProjector.TestProjectCacheDouble (304 ms)
> [ RUN ] TestProjector.TestProjectCacheFloat
> [ OK ] TestProjector.TestProjectCacheFloat (305 ms)
> [ RUN ] TestProjector.TestIntSumSub
> [ OK ] TestProjector.TestIntSumSub (200 ms)
> [ RUN ] TestProjector.TestAllIntTypes
> [ OK ] TestProjector.TestAllIntTypes (1945 ms)
> [ RUN ] TestProjector.TestExtendedMath
> /tmp/arrow-0.12.0.a2ADf/apache-arrow-0.12.0/cpp/src/gandiva/tests/projector_test.cc:358:
> Failure
> Value of: (expected_cbrt)->Equals(outputs.at(0))
> Actual: false
> Expected: true
> expected array: [
> 2.51984,
> 2.15443,
> -2.41014,
> 2.02469
> ] actual array: [
> 2.51984,
> 2.15443,
> -2.41014,
> 2.02469
> ]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)