Skip to content

[branch-53] Use ListArray nullability instead of offsets for array_element, `ar…#106

Merged
gabotechs merged 1 commit intobranch-53from
branch-53-cherry-pick-array-element-null-handling
Apr 17, 2026
Merged

[branch-53] Use ListArray nullability instead of offsets for array_element, `ar…#106
gabotechs merged 1 commit intobranch-53from
branch-53-cherry-pick-array-element-null-handling

Conversation

@tabac
Copy link
Copy Markdown

@tabac tabac commented Apr 17, 2026

Cherry-pick this PR: apache#21672

…ray_any_value`. (apache#21672)

## Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes apache#123` indicates that this PR will close issue apache#123.
-->

- Closes #. apache#21671

## Rationale for this change

Align the implementation of `array_element`, `array_any_value` with
Arrow's spec concerning Null rows. Specifically allow the below from
[Arrow's
spec](https://arrow.apache.org/docs/format/Columnar.html#variable-size-binary-layout)

> It should be noted that a null value may have a positive slot length.
That is, a null value may occupy a non-empty memory space in the data
buffer. When this is true, the content of the corresponding memory space
is undefined.

<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->

## Are these changes tested?

Unit tests included.
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->

(cherry picked from commit 4c7bb08)
@gabotechs gabotechs merged commit 82e0e31 into branch-53 Apr 17, 2026
59 of 60 checks passed
@tabac tabac deleted the branch-53-cherry-pick-array-element-null-handling branch April 17, 2026 08:08
@gabotechs gabotechs changed the title Use ListArray nullability instead of offsets for array_element, `ar… [branch-53] Use ListArray nullability instead of offsets for array_element, `ar… Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants