We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/apache/arrow/blob/master/java/vector/src/main/codegen/templates/VariableLengthVectors.java#L492
Here VariableLengthVectors.getMutator().setSafe() calls:
offsetVector.getAccessor().get(index)
however, index 0 of offsetVector (which is always 0) is not initialized by VariableLengthVectors.
As a result, user of the VariableLengthVectors needs to manually initialize the class by calling:
VariableLengthVectors.getOffsetVector().getMutator().setSafe(0, 0)
I wonder if this is necessary or should VariableLengthVectors initialize this for the user
Reporter: Li Jin / @icexelloss
Note: This issue was originally created as ARROW-485. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered:
Jacques Nadeau / @jacques-n: There should be better documentation on this. In order to use vectors, the correct order of operations are:
I believe that if you follow these operations, you will not have a problem here. I'm guessing you're trying to use a vector before allocating (1).
Sorry, something went wrong.
Li Jin / @icexelloss: Thanks, this is super helpful. I am going to follow the steps.
No branches or pull requests
https://github.com/apache/arrow/blob/master/java/vector/src/main/codegen/templates/VariableLengthVectors.java#L492
Here VariableLengthVectors.getMutator().setSafe() calls:
however, index 0 of offsetVector (which is always 0) is not initialized by VariableLengthVectors.
As a result, user of the VariableLengthVectors needs to manually initialize
the class by calling:
I wonder if this is necessary or should VariableLengthVectors initialize this for the user
Reporter: Li Jin / @icexelloss
Note: This issue was originally created as ARROW-485. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: