Skip to content
New issue

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

[Java] SchemaChangeRuntimeException in transferred empty FixedSizeListVector #43320

Closed
jarohen opened this issue Jul 18, 2024 · 1 comment
Closed

Comments

@jarohen
Copy link
Contributor

jarohen commented Jul 18, 2024

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

Yep, it's a bit obscure, this one 😅

Arrow 17.0.0

Steps:

  1. Create a FixedSizeListVector (FSLV), it initialises with a ZeroVector for its elements.
  2. Add it to a dense-union through DUV.addVector
  3. That method transfers the empty FSLV through DUV.addVector but, in doing so, it creates a NullVector in the new vector rather than a ZeroVector.
  4. Trying to set the element vector using FSLV.addOrGetVector throws SchemaChangeRuntimeException, because it explicitly checks for ZeroVector.

Will submit a test case and a fix shortly in a PR 🙂

Component(s)

Java

jarohen added a commit to xtdb/arrow that referenced this issue Jul 18, 2024
jarohen added a commit to xtdb/arrow that referenced this issue Jul 18, 2024
jarohen added a commit to xtdb/xtdb that referenced this issue Jul 18, 2024
jarohen added a commit to xtdb/arrow that referenced this issue Jul 18, 2024
lidavidm pushed a commit that referenced this issue Jul 19, 2024
…pty FixedSizeListVector (#43321)

### What changes are included in this PR?

When we create a FSLV through TransferImpl, we check to see if the source's element vector is a ZeroVector and, if not, we don't call addOrGetVector.

### Are these changes tested?

Yep - see TestFixedSizeListVector

### Are there any user-facing changes?

No
* GitHub Issue: #43320

Authored-by: James Henderson <[email protected]>
Signed-off-by: David Li <[email protected]>
@lidavidm
Copy link
Member

Issue resolved by pull request 43321
#43321

@lidavidm lidavidm added this to the 18.0.0 milestone Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants