Skip to content

Adapt to minarrow shared_dict feature - #5

Merged
pbower merged 5 commits into
mainfrom
shared-dict-adaptation
Sep 19, 2026
Merged

pbower merged 5 commits into
mainfrom
shared-dict-adaptation

Conversation

@pbower

@pbower pbower commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Migrates lightstream to compile correctly when minarrow's shared_dict and allow_mixed_array_batches features are enabled.

Migrate all CategoricalArray struct literal construction to use the
CategoricalArray::new() constructor, which handles both shared_dict
and non-shared_dict feature configurations internally.

Migrate all .unique_values field accesses to the .unique_values()
method form.

Replace the manual window_categorical function with
CategoricalArray::slice_clone, which preserves the dictionary sharing
relationship under shared_dict.

Replace the SuperTable struct literal construction with
SuperTable::from_batches, which handles the category_managers field
that shared_dict adds.

Generated with Claude Code (Fable 5.1)
Four multi-line .unique_values accesses were missed by the initial
sed pass because the field name appeared on its own line.

Generated with Claude Code (Fable 5.1)
@pbower
pbower merged commit 26c3c94 into main Sep 19, 2026
19 checks passed
@pbower
pbower deleted the shared-dict-adaptation branch September 19, 2026 18:14
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