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

[Java] Floating point vectors should do an approximate comparison in integration tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.2.0
    • Java
    • None

    Description

      Floating point precision rears its ugly head:

      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
      

      Attachments

        Issue Links

          Activity

            People

              julienledem Julien Le Dem
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: