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

[C#] Decide and implement appropriate behaviour for Array builder resize to negative size

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.17.1
    • 1.0.0
    • C#

    Description

      Summary

      Currently, the ArrowBuffer.Builder class accepts a negative value to the Resize() method, and treats it as though the caller passed zero. This was implemented deliberately, as there is an explicit unit test to verify the behaviour.

      However, it is also unusual. By way of comparison:

      Acceptance Criteria

      • The behaviour when receiving a negative length to a Resize() method must be agreed upon.
      • Appropriate changes must be made to the codebase in accordance with the outcome of the above agreement.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mr_smidge Adam Szmigin
              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 - 40m
                  40m