File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8175,7 +8175,8 @@ Block MergeTreeData::getMinMaxCountProjectionBlock(
81758175 {
81768176 for (const auto & part : real_parts)
81778177 {
8178- const auto & primary_key_column = *part->getIndex ()->at (0 );
8178+ auto index = part->getIndex ();
8179+ const auto & primary_key_column = *index->at (0 );
81798180 auto & min_column = assert_cast<ColumnAggregateFunction &>(*partition_minmax_count_columns[pos]);
81808181 insert (min_column, primary_key_column[0 ]);
81818182 }
@@ -8186,7 +8187,8 @@ Block MergeTreeData::getMinMaxCountProjectionBlock(
81868187 {
81878188 for (const auto & part : real_parts)
81888189 {
8189- const auto & primary_key_column = *part->getIndex ()->at (0 );
8190+ auto index = part->getIndex ();
8191+ const auto & primary_key_column = *index->at (0 );
81908192 auto & max_column = assert_cast<ColumnAggregateFunction &>(*partition_minmax_count_columns[pos]);
81918193 insert (max_column, primary_key_column[primary_key_column.size () - 1 ]);
81928194 }
You can’t perform that action at this time.
0 commit comments