You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Pindikura Ravindra (Jira)" <ji...@apache.org> on 2019/08/23 16:41:00 UTC
[jira] [Resolved] (ARROW-6311) [Java] Make ApproxEqualsVisitor
accept DiffFunction to make it more flexible
[ https://issues.apache.org/jira/browse/ARROW-6311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pindikura Ravindra resolved ARROW-6311.
---------------------------------------
Fix Version/s: 0.15.0
Resolution: Fixed
Issue resolved by pull request 5155
[https://github.com/apache/arrow/pull/5155]
> [Java] Make ApproxEqualsVisitor accept DiffFunction to make it more flexible
> ----------------------------------------------------------------------------
>
> Key: ARROW-6311
> URL: https://issues.apache.org/jira/browse/ARROW-6311
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Java
> Reporter: Ji Liu
> Assignee: Ji Liu
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.15.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Currently {{ApproxEqualsVisitor}} will accept a epsilon for both float and double compare, and the difference calculation is always {{Math.abs}}(f1-f2)
> For some cases like {{Validator}} it is not very suitable as:
> i. it has different epsilon values for float/double
> ii. it difference function is not Math.abs(f1-f2)
>
> To resolve these, make this visitor accept both float/double epsilons and diff functions.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)