Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6458

[Java] Remove value boxing/unboxing for ApproxEqualsVisitor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.15.0
    • Java

    Description

      As discussed in https://github.com/apache/arrow/pull/5195#issuecomment-526157961, there are some problems with the current ways of comparing floating point vectors, we solve them in this PR:

      1. there are if statements/duplicated members in ApproxEqualsVisitor, making the code redundant and less clear.
      2. the comparion of float4 and float8 are based on wrapped objects Float and Double, which may have performance penalty.

      Attachments

        Issue Links

          Activity

            People

              fan_li_ya Liya Fan
              fan_li_ya Liya Fan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h