Skip to content

[Java] Incorrect size computed for var-width vectors with non-zero start offsets when appending them #1179

@jordepic

Description

@jordepic

Describe the bug, including details regarding any error messages, version, and platform.

When appending a variable width vector to another in Java, it computes the size of the currently appended vector by just taking its end offset. It never subtracts the start offset because the majority of start offsets are 0. However, if another language slices a buffer and passes it to Java, it may have a non zero starting offset. This causes us to drastically overestimate the amount of memory to allocate and can cause errors downstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions