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 @@ -8187,7 +8187,8 @@ Block MergeTreeData::getMinMaxCountProjectionBlock(
81878187 {
81888188 for (const auto & part : real_parts)
81898189 {
8190- const auto & primary_key_column = *part->getIndex ()->at (0 );
8190+ auto index = part->getIndex ();
8191+ const auto & primary_key_column = *index->at (0 );
81918192 auto & min_column = assert_cast<ColumnAggregateFunction &>(*partition_minmax_count_columns[pos]);
81928193 insert (min_column, primary_key_column[0 ]);
81938194 }
@@ -8198,7 +8199,8 @@ Block MergeTreeData::getMinMaxCountProjectionBlock(
81988199 {
81998200 for (const auto & part : real_parts)
82008201 {
8201- const auto & primary_key_column = *part->getIndex ()->at (0 );
8202+ auto index = part->getIndex ();
8203+ const auto & primary_key_column = *index->at (0 );
82028204 auto & max_column = assert_cast<ColumnAggregateFunction &>(*partition_minmax_count_columns[pos]);
82038205 insert (max_column, primary_key_column[primary_key_column.size () - 1 ]);
82048206 }
You can’t perform that action at this time.
0 commit comments