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

GH-15280: [C++] Refactor to reorganize dependencies as a prequel to moving acero out of libarrow #34518

Merged
merged 11 commits into from
Mar 14, 2023

Conversation

ildipo
Copy link
Contributor

@ildipo ildipo commented Mar 9, 2023

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:

  • some of the functions in compute/exec/util.[h,cc] that are widely used are moved to a new compute/util.[h,cc] file
  • key_map and key_hash are widely used and thus moved from compute/exec to compute
  • some light_array tests do use functionalities inside compute/exec, so the tests are split into 2 parts, one inside compute and another inside compute/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

@ildipo ildipo requested a review from westonpace as a code owner March 9, 2023 16:23
@github-actions
Copy link

github-actions bot commented Mar 9, 2023

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

⚠️ GitHub issue #15280 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Mar 10, 2023
Copy link
Member

@westonpace westonpace left a 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) {
Copy link
Member

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.

Copy link
Contributor Author

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.

cpp/src/arrow/compute/util_internal.h Show resolved Hide resolved
@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Mar 13, 2023
Copy link
Contributor

@icexelloss icexelloss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@icexelloss
Copy link
Contributor

@ildipo Is on vacation I will double check with him and I will merge

@icexelloss icexelloss merged commit 44edc27 into apache:main Mar 14, 2023
@ursabot
Copy link

ursabot commented Mar 14, 2023

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.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Failed ⬇️0.45% ⬆️0.03%] test-mac-arm
[Finished ⬇️0.0% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.94% ⬆️0.03%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] 44edc27e ec2-t3-xlarge-us-east-2
[Failed] 44edc27e test-mac-arm
[Finished] 44edc27e ursa-i9-9960x
[Finished] 44edc27e ursa-thinkcentre-m75q
[Finished] 0582122b ec2-t3-xlarge-us-east-2
[Finished] 0582122b test-mac-arm
[Finished] 0582122b ursa-i9-9960x
[Finished] 0582122b ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

@ursabot
Copy link

ursabot commented Mar 14, 2023

['Python', 'R'] benchmarks have high level of regressions.
test-mac-arm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[C++] Move Acero out of libarrow
4 participants