This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
growable::union is broken for dense unions #1359
Labels
no-changelog
Issues whose changes are covered by a PR and thus should not be shown in the changelog
The derived array ends up repeating values from the first union in every extension.
Minimal unit test demonstrating the problem here: https://github.com/rerun-io/arrow2/blob/b082fd9b9bdd2a54ed68a6dc5570e457e6c24b00/tests/it/array/growable/union.rs#L73
The crux of the problem occurs here:
arrow2/src/array/growable/union.rs
Line 76 in 211be21
The new offsets that are being extended here refer to positions in the original values-array, but need to account for the fact that these will be in a newly-extended values array and need to be adjusted to reflect their new position accordingly.
I'll put up a PR to resolve this in the next day or two, but wanted an issue to refer to when I submit that PR.
The text was updated successfully, but these errors were encountered: