Skip to content

Commit

Permalink
[BugFix] Fix 'PartitionKey' field of cloud native table if different …
Browse files Browse the repository at this point in the history
…with

shared nothing table when run 'show partitions' command

Signed-off-by: tracymacding <tracymacding@gmail.com>
  • Loading branch information
tracymacding committed Jul 20, 2024
1 parent 321ce64 commit b437939
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@ private List<Comparable> getLakePartitionInfo(PartitionInfo tblPartitionInfo, Pa
partitionInfo.add(physicalPartition.getVisibleVersion()); // VisibleVersion
partitionInfo.add(physicalPartition.getNextVersion()); // NextVersion
partitionInfo.add(partition.getState()); // State
partitionInfo.add(Joiner.on(", ")
.join(tblPartitionInfo.getPartitionColumns(table.getIdToColumn()))); // PartitionKey
partitionInfo.add(Joiner.on(", ").join(tblPartitionInfo.getPartitionColumns(table.getIdToColumn())
.stream().map(Column::getName).collect(Collectors.toList()))); // Partition key
partitionInfo.add(findRangeOrListValues(tblPartitionInfo, partition.getId())); // List or Range
partitionInfo.add(distributionKeyAsString(table, partition.getDistributionInfo())); // DistributionKey
partitionInfo.add(partition.getDistributionInfo().getBucketNum()); // Buckets
Expand Down

0 comments on commit b437939

Please sign in to comment.