Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-35124: [C++] Avoid unnecessary copy when outputting join res…
…ult (apache#35114) ### Rationale for this change Seems this https://github.com/apache/arrow/blob/913c34506000fd77444ea7b7f24dcb6402003d6b/cpp/src/arrow/acero/swiss_join_internal.h#L571 is an unnecessary copy when outputting join result batch. According to Sasha K.: > I _think_ the compiler will automatically emit the move because it sees we’re copying from an object that’ll never be used again [1], but adding the std::move would be good just to remove any ambiguity. ### What changes are included in this PR? Adding `std::move()` to disambiguate/eliminate the unnecessary copy. ### Are these changes tested? No. This change is possibly undetectable, and the existing tests should cover it well. ### Are there any user-facing changes? No. * Closes: apache#35124 Authored-by: zanmato1984 <zanmato1984@gmail.com> Signed-off-by: Weston Pace <weston.pace@gmail.com>
- Loading branch information