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

[Java] UnionVector doesn't call allocateNew() when creating it's vectorType

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: Java
    • Labels:
      None

      Description

      UnionVector uses a UINT1Vector to store the types of every value in the vector., but it doesn't call allocateNew() on that vector and more importantly zeroVector(). When we call setSafe() the 1st time (e.g. from PromotableVector.promoteToUnion()) it will re-allocate the vector but will fail to properly set it's content to 0. This can cause various failures when we try to access the value/type stored in the vector.

        Attachments

          Activity

            People

            • Assignee:
              adeneche Deneche A. Hakim
              Reporter:
              adeneche Deneche A. Hakim
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: