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-36342: [C++] Add missing move semantic to RecordBatch #36343

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

zhjwpku
Copy link
Contributor

@zhjwpku zhjwpku commented Jun 28, 2023

Rationale for this change

In file record_batch.cc there are some places that using move semantic can avoid coping vector or increasing reference count of shared_ptr.

What changes are included in this PR?

add std::move at some proper places

Are these changes tested?

Yes, run ctest -R arrow-table-test locally.

Are there any user-facing changes?

No

In file record_batch.cc there are some places that using move semantic
can avoid coping vector or increasing reference count of shared_ptr.

Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
@github-actions
Copy link

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

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

Small but obvious improvement. Thank you!

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Jun 28, 2023
@pitrou
Copy link
Member

pitrou commented Jun 28, 2023

CI failures are unrelated, will merge.

@pitrou pitrou merged commit 68a30f6 into apache:main Jun 28, 2023
31 of 34 checks passed
@pitrou pitrou removed the awaiting committer review Awaiting committer review label Jun 28, 2023
@zhjwpku zhjwpku deleted the add_missing_move branch June 28, 2023 10:56
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++] Add missing move semantic to RecordBatch
2 participants