This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new d319f1c3819 [Fix](explain) fix tablet showing problem (#35830)
d319f1c3819 is described below
commit d319f1c3819763e9c1a8b35aafecf4c5ea3668bb
Author: LiBinfeng <[email protected]>
AuthorDate: Fri Jun 7 11:52:01 2024 +0800
[Fix](explain) fix tablet showing problem (#35830)
tablets could not showed in explain string when selected partitions too
large, so it need to be show in next line
---
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 3e32853119b..83064a9d4a4 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
@@ -1352,8 +1352,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]