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

Liya Fan commented on ARROW-9495:
---------------------------------

[~apitrou] Thank you for opening this issue. 
The reason may be that our test cases compare arrays by Array::ApproxEquals to 
workarond floating point errors, however, Array::ApproxEquals is not working 
for infinity/-infinity.

> [C++] Equality assertions don't handle Inf /  -Inf properly
> -----------------------------------------------------------
>
>                 Key: ARROW-9495
>                 URL: https://issues.apache.org/jira/browse/ARROW-9495
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Antoine Pitrou
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I got this error when working on a PR which added unit tests:
> {code}
> ../src/arrow/testing/gtest_util.cc:101: Failure
> Failed
> Expected:
>   [
>     2.5,
>     inf,
>     -inf
>   ]
> Actual:
>   [
>     2.5,
>     inf,
>     -inf
>   ]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to