fix clang-tidy warnings

Change-Id: Iff9f5f894e815b184ac35f61b4cac87908c612b5
This commit is contained in:
copperybean 2024-05-20 23:12:07 +08:00
parent ad5f6f27df
commit b253ca3608
2 changed files with 4 additions and 4 deletions

2
contrib/arrow vendored

@ -1 +1 @@
Subproject commit 8f36d71d18587f1f315ec832f424183cb6519cbb
Subproject commit 5cfccd8ea65f33d4517e7409815d761c7650b45d

View File

@ -314,10 +314,10 @@ ParquetRecordReader::ParquetRecordReader(
log = &Poco::Logger::get("ParquetRecordReader");
std::unordered_map<String, parquet::schema::NodePtr> parquet_columns;
auto root = file_reader->metadata()->schema()->group_node();
const auto * root = file_reader->metadata()->schema()->group_node();
for (int i = 0; i < root->field_count(); ++i)
{
auto & node = root->field(i);
const auto & node = root->field(i);
parquet_columns.emplace(node->name(), node);
}
@ -329,7 +329,7 @@ ParquetRecordReader::ParquetRecordReader(
if (it == parquet_columns.end())
throw Exception(ErrorCodes::PARQUET_EXCEPTION, "no column with '{}' in parquet file", col_with_name.name);
auto node = it->second;
const auto & node = it->second;
if (!node->is_primitive())
throw Exception(ErrorCodes::NOT_IMPLEMENTED, "arrays and maps are not implemented in native parquet reader");