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

[Go] Sum methods on Mac OS X panic when the array is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • Go

    Description

      If you create an empty array and use the `Sum` methods in the math package for the Go version, they will panic with an `index out of range` error.

      The reproducers can be found in this file: https://github.com/influxdata/flux/blob/6ddfc0f235f91fa29562e7163ab9858f3d08cc62/arrow/arrow_test.go 

      If you remove the `Skip`, the tests will cause a panic. I added them to our repository so we could track when this was fixed and remove our own length checks.

      Attachments

        Issue Links

          Activity

            People

              alexandreyc Alexandre Crayssac
              jsternberg Jonathan A Sternberg
              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 - 50m
                  50m