Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/src/parquet/arrow/reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ Status GetReader(const SchemaField& field, const std::shared_ptr<Field>& arrow_f
if (!schema_child_type.Equals(reader_child_type)) {
child_field = child_field->WithType(child_reader->field()->type());
}
child_fields.push_back(child_field);
child_fields.push_back(std::move(child_field));
child_readers.emplace_back(std::move(child_reader));
}
if (child_fields.empty()) {
Expand Down
6 changes: 3 additions & 3 deletions cpp/src/parquet/metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ std::shared_ptr<KeyValueMetadata> FromThriftKeyValueMetadata(const Metadata& sou
std::vector<std::string> values;
keys.reserve(source.key_value_metadata.size());
values.reserve(source.key_value_metadata.size());
for (const auto& it : source.key_value_metadata) {
keys.push_back(it.key);
values.push_back(it.value);
for (auto& it : source.key_value_metadata) {
keys.push_back(std::move(it.key));
values.push_back(std::move(it.value));
}
metadata = std::make_shared<KeyValueMetadata>(std::move(keys), std::move(values));
}
Expand Down