Skip to content

Commit

Permalink
Use std::move on final_schema
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil1105 committed Aug 29, 2024
1 parent 019f795 commit f1a4955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/dataset/file_parquet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ struct CastingGenerator {
const std::unordered_set<std::string>& cols_to_skip,
MemoryPool* pool = default_memory_pool())
: source_(source),
final_schema_(final_schema),
final_schema_(std::move(final_schema)),
cols_to_skip_(cols_to_skip),
exec_ctx(std::make_shared<compute::ExecContext>(pool)) {}

Expand Down

0 comments on commit f1a4955

Please sign in to comment.