This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 7adacd234a4 [Fix](explain) fix tablet showing problem (#35830) (#36539)
7adacd234a4 is described below
commit 7adacd234a4f05b59f43e3727c9b5331b4e5f87e
Author: LiBinfeng <[email protected]>
AuthorDate: Fri Jun 21 20:19:27 2024 +0800
[Fix](explain) fix tablet showing problem (#35830) (#36539)
---
fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java | 5 +++--
regression-test/data/performance_p0/redundant_conjuncts.out | 6 ++++--
2 files changed, 7 insertions(+), 4 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 edc440e8866..687c27bf1dd 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
@@ -1267,8 +1267,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);
diff --git a/regression-test/data/performance_p0/redundant_conjuncts.out
b/regression-test/data/performance_p0/redundant_conjuncts.out
index 06003d12d2f..616f2989608 100644
--- a/regression-test/data/performance_p0/redundant_conjuncts.out
+++ b/regression-test/data/performance_p0/redundant_conjuncts.out
@@ -12,7 +12,8 @@ PLAN FRAGMENT 0
0:VOlapScanNode
TABLE:
default_cluster:regression_test_performance_p0.redundant_conjuncts(redundant_conjuncts),
PREAGGREGATION: OFF. Reason: No AggregateInfo
PREDICATES: `k1` = 1
- partitions=0/1 (), tablets=0/0, tabletList=
+ partitions=0/1 ()
+ tablets=0/0, tabletList=
cardinality=0, avgRowSize=8.0, numNodes=1
pushAggOp=NONE
@@ -29,7 +30,8 @@ PLAN FRAGMENT 0
0:VOlapScanNode
TABLE:
default_cluster:regression_test_performance_p0.redundant_conjuncts(redundant_conjuncts),
PREAGGREGATION: OFF. Reason: No AggregateInfo
PREDICATES: `k1` = 1 OR `k1` = 2
- partitions=0/1 (), tablets=0/0, tabletList=
+ partitions=0/1 ()
+ tablets=0/0, tabletList=
cardinality=0, avgRowSize=8.0, numNodes=1
pushAggOp=NONE
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]