diff --git a/src/Storages/Hive/HiveFile.cpp b/src/Storages/Hive/HiveFile.cpp index 407d9602b61..867b5650ea2 100644 --- a/src/Storages/Hive/HiveFile.cpp +++ b/src/Storages/Hive/HiveFile.cpp @@ -139,7 +139,7 @@ void HiveOrcFile::prepareColumnMapping() for (size_t pos = 0; pos < count; pos++) { /// Column names in hive is case-insensitive. - String column{type.getFieldName(pos)}; + String columnn{type.getFieldName(pos)}; boost::to_lower(column); orc_column_positions[column] = pos; } @@ -267,9 +267,9 @@ void HiveParquetFile::loadSubMinMaxIndex() auto it = index_names_and_types.begin(); for (; it != index_names_and_types.end(); ++j, ++it) { - String name{it->name}; - boost::to_lower(name); - auto mit = parquet_column_positions.find(name); + String column{it->name}; + boost::to_lower(column); + auto mit = parquet_column_positions.find(column); if (mit == parquet_column_positions.end()) continue;