Skip to content

Use ListArray nullability instead of offsets.#105

Open
tabac wants to merge 1 commit intobranch-52from
branch-52-cherry-pick-array-element-null-handling
Open

Use ListArray nullability instead of offsets.#105
tabac wants to merge 1 commit intobranch-52from
branch-52-cherry-pick-array-element-null-handling

Conversation

@tabac
Copy link
Copy Markdown

@tabac tabac commented Apr 16, 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)
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.

1 participant