-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-9361 [Rust] Move array types into their own modules #8543
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
Conversation
|
Moving the arrays to separate files is nice. I see there are some functionality changes in the PR too. Were these necessary as part of the refactoring or is this separate? |
|
The reason is that there was a private function ( Since I made Neither the DRY, unit-testing nor privatization was necessary as part of this PR. I can revert them if you think we should do this cleanup in a separate PR. |
|
Thanks. I just wanted to understand which parts needed review. I don't think there is a need to split into separate PRs. |
|
@jorgecarleitao since this is a large PR, could you put more details in the PR description? e.g., what changes are being proposed for this PR and what's the reason behind it. Thanks. |
|
@sunchao , makes sense. I updated the PR's description with more details. Some of the rational was initially presented on Jira itself, here I just took the issue and implemented it. |
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed this PR commit by commit
I carefully reviewed the two commits that had obvious logic consolidations (d65a9c8 and 2fac5c9)
For the remaining commits that appeared to just be moving code around, I spot checked them and they looked good but I didn't verify line by line that the content was the same.
All in all, looks like a great step forward in code reorganization to me
👍
nevi-me
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy that most of the change is reorganising modules.
There's a change here that's also in #8590, and because of the reorganisation, we're going to get a lot of merge conflicts on other PRs.
@jorgecarleitao I'd like to also merge #8590, what order would you prefer?
Also, this has a merge conflict, may you please kindly rebase when you can.
|
I also agree this PR is likely to cause a bunch of conflicts, so the less time it is left outstanding the better. |
sunchao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. Thanks @jorgecarleitao
This PR splits the
array.rsinto multiple modules, so that it is a bit easier to navigate in the project, particularlyarray.rs. Semantically, there should be no difference, and this change is also backward compatible, public items are only exposed inmod.rs.This change was initially proposed by @paddyhoran on ARROW-9361, and this is just a proposed implementation.
Some notes:
array_[type]to distinguish from other modules that do not contain arrays.nullandUnionwere not renamedimplsince they were used in multiple places.