Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array2: swap trait for struct with lifetime #215

Merged
merged 4 commits into from
Apr 7, 2024

Conversation

gatesn
Copy link
Contributor

@gatesn gatesn commented Apr 6, 2024

Now we have an Array<'a> enum, we can swap out the array trait and things get a little simpler.

@gatesn gatesn mentioned this pull request Apr 6, 2024
3 tasks
@gatesn gatesn marked this pull request as ready for review April 7, 2024 18:32
@gatesn gatesn merged commit 228dc21 into ngates/bool-array Apr 7, 2024
1 check passed
@gatesn gatesn deleted the ngates/array-struct branch April 7, 2024 18:32
gatesn added a commit that referenced this pull request Apr 7, 2024
Starting to add a few more implementations to the new structure.
Takeaways:

- [x] Validity probably doesn't need to be an array encoding. And now we
have `Array<'a>` we don't need Validity + ValidityView. Instead, we can
provide helper functions based on metadata + array data.

The next two are addressed in #215 
- [x] There's lots of duplication between the `impl &dyn FooArray for
Array{Data, View}`. Mostly it's just accessing children or buffers.
- [x] With the Array enum, we may not need each array to be a trait and
could be a struct that holds Arrays?
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