Skip to content

Commit

Permalink
[BugFix] Fix external olap table temp partition
Browse files Browse the repository at this point in the history
Signed-off-by: xiangguangyxg <[email protected]>
  • Loading branch information
xiangguangyxg committed Aug 3, 2023
1 parent 5f246ef commit d618d0c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Range;
import com.starrocks.alter.AlterJobV2.JobType;
import com.starrocks.catalog.Column;
Expand Down Expand Up @@ -968,7 +969,7 @@ public TGetTableMetaResponse getTableMeta(TGetTableMetaRequest request) {
columnMeta.setComment(column.getComment());
rangePartitionDesc.addToColumns(columnMeta);
}
Map<Long, Range<PartitionKey>> ranges = rangePartitionInfo.getIdToRange(false);
Map<Long, Range<PartitionKey>> ranges = Maps.newHashMap(rangePartitionInfo.getIdToRange(false));
Map<Long, Range<PartitionKey>> tempRanges = rangePartitionInfo.getIdToRange(true);
ranges.putAll(tempRanges);
for (Map.Entry<Long, Range<PartitionKey>> range : ranges.entrySet()) {
Expand Down

0 comments on commit d618d0c

Please sign in to comment.