Skip to content

GH-40062: [C++] Move RecordBatch::ToTensor code from record_batch.cc to tensor.cc#41932

Merged
AlenkaF merged 2 commits intoapache:mainfrom
AlenkaF:gh-40062-move-ToTensor-to-tensor-code
Jun 5, 2024
Merged

GH-40062: [C++] Move RecordBatch::ToTensor code from record_batch.cc to tensor.cc#41932
AlenkaF merged 2 commits intoapache:mainfrom
AlenkaF:gh-40062-move-ToTensor-to-tensor-code

Conversation

@AlenkaF
Copy link
Copy Markdown
Member

@AlenkaF AlenkaF commented Jun 3, 2024

Rationale for this change

This is a precursor PR to #41870 with the purpose to make the review of #41870 easier (the diff of the code will be visible as it currently isn't because the code was moved to table.cc. I should also live in tensor.cc).

What changes are included in this PR?

The code from RecordBatch::ToTensor in record_batch.cc is moved to RecordBatchToTensor in tensor.cc.

Are these changes tested?

Existing tests should pass.

Are there any user-facing changes?

No.

This PR does not close the linked issue yet, it is just a precursor!

@AlenkaF AlenkaF marked this pull request as ready for review June 3, 2024 11:03
@AlenkaF
Copy link
Copy Markdown
Member Author

AlenkaF commented Jun 3, 2024

I have run the benchmarks locally just in case, everything is looking OK.

Copy link
Copy Markdown
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Jun 4, 2024
@AlenkaF
Copy link
Copy Markdown
Member Author

AlenkaF commented Jun 4, 2024

@felipecrv mind having a quick look? This PR only moves the existing code from record_batch.cc to tensor.cc and changes the signature of the main method from Result to Status.

@AlenkaF
Copy link
Copy Markdown
Member Author

AlenkaF commented Jun 5, 2024

I will merge this so I can make #41870 easier to review. We can move code reviews to the linked PR.

@AlenkaF AlenkaF merged commit 5a86441 into apache:main Jun 5, 2024
@AlenkaF AlenkaF removed the awaiting merge Awaiting merge label Jun 5, 2024
@AlenkaF AlenkaF deleted the gh-40062-move-ToTensor-to-tensor-code branch June 5, 2024 12:15
@conbench-apache-arrow
Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 5a86441.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 4 possible false positives for unstable benchmarks that are known to sometimes produce them.

@felipecrv
Copy link
Copy Markdown
Contributor

Sorry for not looking at this before @AlenkaF. LGTM.

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.

3 participants