This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new afe2c57e054 [Fix](explain) fix tablet showing problem (#35830) (#36028)
afe2c57e054 is described below
commit afe2c57e054a0fb6ae09b23f35357aba6102cbf3
Author: LiBinfeng <[email protected]>
AuthorDate: Tue Jun 11 10:55:35 2024 +0800
[Fix](explain) fix tablet showing problem (#35830) (#36028)
cherry-pick: #35830
---
fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
b/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
index 743e9966185..4d86a89f27c 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
@@ -1331,8 +1331,9 @@ public class OlapScanNode extends ScanNode {
String selectedPartitions = getSelectedPartitionIds().stream().sorted()
.map(id -> olapTable.getPartition(id).getName())
.collect(Collectors.joining(","));
- output.append(prefix).append(String.format("partitions=%s/%s (%s),
tablets=%s/%s", selectedPartitionNum,
- olapTable.getPartitions().size(), selectedPartitions,
selectedTabletsNum, totalTabletsNum));
+ output.append(prefix).append(String.format("partitions=%s/%s (%s)",
selectedPartitionNum,
+ olapTable.getPartitions().size(),
selectedPartitions)).append("\n");
+ output.append(prefix).append(String.format("tablets=%s/%s",
selectedTabletsNum, totalTabletsNum));
// We print up to 3 tablet, and we print "..." if the number is more
than 3
if (scanTabletIds.size() > 3) {
List<Long> firstTenTabletIds = scanTabletIds.subList(0, 3);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]