ISSUES-4006 try fix build failure

This commit is contained in:
zhang2014 2020-07-21 02:33:28 +08:00
parent b76f218d90
commit c0db408c38
2 changed files with 3 additions and 2 deletions

View File

@ -386,7 +386,8 @@ static void writeFieldsToColumn(
return true; return true;
}; };
const auto & write_data_to_column = [&](auto * casted_column, auto from_type, auto to_type) { const auto & write_data_to_column = [&](auto * casted_column, auto from_type, auto to_type)
{
for (size_t index = 0; index < rows_data.size(); ++index) for (size_t index = 0; index < rows_data.size(); ++index)
{ {
const Field & value = DB::get<const Tuple &>(rows_data[index])[column_index]; const Field & value = DB::get<const Tuple &>(rows_data[index])[column_index];

View File

@ -185,7 +185,7 @@ static ASTPtr getPartitionPolicy(const NamesAndTypesList & primary_keys)
}; };
ASTPtr best_partition; ASTPtr best_partition;
size_t index = 0, best_size = 0; size_t best_size = 0;
for (const auto & primary_key : primary_keys) for (const auto & primary_key : primary_keys)
{ {
DataTypePtr type = primary_key.type; DataTypePtr type = primary_key.type;