-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-15280: [C++] Refactor to reorganize dependencies as a prequel to moving acero out of libarrow #34518
Conversation
|
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.
This looks pretty reasonable to me. I have one suggestion regarding the test. Let me know what you want to do there and we can move forward. Thanks for helping to organize this.
@@ -216,27 +215,6 @@ TEST(KeyColumnArray, SliceBool) { | |||
} | |||
} | |||
|
|||
TEST(KeyColumnArray, FromExecBatch) { |
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.
Hmm, it's a bit odd to have these tests split this way. Do you want to just move this entire test file to exec
? Maybe later we can, in a follow-up, attempt to pull out the utilities that are needed in exec/test_util.h
so the entire test file can move out of exec
.
However, for now, I think it's probably ok that this is tested in exec.
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.
In the coming CR I'm moving a few more things around so I'll change this to a single file as well.
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.
LGTM.
@ildipo Is on vacation I will double check with him and I will merge |
Benchmark runs are scheduled for baseline = 0582122 and contender = 44edc27. 44edc27 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
['Python', 'R'] benchmarks have high level of regressions. |
Rationale for this change
In order to remove acero from libarrow we need to reorganize the code to reduce entanglement between compute/exec and the rest of the product by removing any dependency from the codebase (except dataset) into compute/exec.
What changes are included in this PR?
This PR removes some of the dependencies:
compute/exec/util.[h,cc]
that are widely used are moved to a newcompute/util.[h,cc]
filekey_map
andkey_hash
are widely used and thus moved from compute/exec to computecompute/exec
, so the tests are split into 2 parts, one insidecompute
and another insidecompute/exec
Are these changes tested?
The existing tests cover all these changes.
One additional test program has been added by splitting light_array_test in two parts.
Are there any user-facing changes?
no