arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARROW-401) [Java] Floating point vectors should do an approximate comparison in integration tests
Date Mon, 05 Dec 2016 18:43:59 GMT

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

Jacques Nadeau commented on ARROW-401:
--------------------------------------

I wrote it based initially on the code here: https://github.com/mapr/drill-test-framework/blob/master/framework/src/main/java/org/apache/drill/test/framework/ColumnList.java#L115

Don't remember offhand the f1 != 0. What are the rules about NaN and Infinite in the case
of a floating point negation?

> [Java] Floating point vectors should do an approximate comparison in integration tests
> --------------------------------------------------------------------------------------
>
>                 Key: ARROW-401
>                 URL: https://issues.apache.org/jira/browse/ARROW-401
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Java - Vectors
>            Reporter: Wes McKinney
>            Assignee: Julien Le Dem
>            Priority: Blocker
>
> Floating point precision rears its ugly head:
> {code}
> Incompatible files
> Different values in column:
> Field{name=float64_nullable, type=FloatingPoint{2}, children=[], layout=TypeLayout{[{width=1,type=VALIDITY},
{width=64,type=DATA}]}} at index 1: 912.4140000000002 != 912.414
> 10:23:45.863 [main] ERROR org.apache.arrow.tools.Integration - Incompatible files
> java.lang.IllegalArgumentException: Different values in column:
> Field{name=float64_nullable, type=FloatingPoint{2}, children=[], layout=TypeLayout{[{width=1,type=VALIDITY},
{width=64,type=DATA}]}} at index 1: 912.4140000000002 != 912.414
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message