Skip to content

Support reading SparseArray with non zero offset#7150

Merged
gatesn merged 1 commit intodevelopfrom
rk/offsets
Mar 25, 2026
Merged

Support reading SparseArray with non zero offset#7150
gatesn merged 1 commit intodevelopfrom
rk/offsets

Conversation

@robert3005
Copy link
Copy Markdown
Contributor

Motivated by #7094 I tried simplifying offset handling in Patches.
Unfortunately because of how chunk_offsets and indices interact with each other
you need to store two offsets in order to support zero-copy slicing.

Since we want to support zero copy slicing there's nothing fundamentally better
we can do here than supporting non zero offsets.

Signed-off-by: Robert Kruszewski github@robertk.io

Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005 robert3005 requested a review from gatesn March 24, 2026 19:59
@robert3005 robert3005 added the changelog/fix A bug fix label Mar 24, 2026
@gatesn gatesn merged commit c790cfb into develop Mar 25, 2026
59 of 60 checks passed
@gatesn gatesn deleted the rk/offsets branch March 25, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants