This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 411a0c01970 branch-4.0 [opt](nerieds) PhysicalOlapScan and
PhysicalFileScan should print its id in plan #62509 (#63586)
411a0c01970 is described below
commit 411a0c01970f0cbee799862420d899aeeed6803e
Author: minghong <[email protected]>
AuthorDate: Tue Jun 9 10:15:53 2026 +0800
branch-4.0 [opt](nerieds) PhysicalOlapScan and PhysicalFileScan should
print its id in plan #62509 (#63586)
### What problem does this PR solve?
pick #62509
Issue Number: close #xxx
---
.../apache/doris/nereids/trees/plans/physical/PhysicalFileScan.java | 5 +++--
.../apache/doris/nereids/trees/plans/physical/PhysicalHudiScan.java | 2 +-
.../apache/doris/nereids/trees/plans/physical/PhysicalOlapScan.java | 4 ++--
regression-test/suites/nereids_p0/stats/partitionRowCount.groovy | 4 ++--
4 files changed, 8 insertions(+), 7 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalFileScan.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalFileScan.java
index e592051e18c..87e311c6375 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalFileScan.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalFileScan.java
@@ -136,8 +136,9 @@ public class PhysicalFileScan extends
PhysicalCatalogRelation {
if (!runtimeFiltersV2.isEmpty()) {
rfV2 = runtimeFiltersV2.toString();
}
- return Utils.toSqlString("PhysicalFileScan[" + table.getName() + "]" +
getGroupIdWithPrefix(),
- "stats", statistics,
+ return Utils.toSqlString("PhysicalFileScan[" + id.asInt() + "]" +
getGroupIdWithPrefix(),
+ "table", table.getName(),
+ "stats", statistics,
"qualified", Utils.qualifiedName(qualifier, table.getName()),
"selected partitions num",
selectedPartitions.isPruned ?
selectedPartitions.selectedPartitions.size() : "unknown",
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalHudiScan.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalHudiScan.java
index 27532246382..a5ed2f28865 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalHudiScan.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalHudiScan.java
@@ -120,7 +120,7 @@ public class PhysicalHudiScan extends PhysicalFileScan {
@Override
public String toString() {
- return Utils.toSqlString("PhysicalHudiScan",
+ return Utils.toSqlString("PhysicalHudiScan[" + id.asInt() + "]" +
getGroupIdWithPrefix(),
"qualified", Utils.qualifiedName(qualifier, table.getName()),
"output", getOutput(),
"stats", statistics,
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalOlapScan.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalOlapScan.java
index 5644ca25e5b..d03bd26e600 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalOlapScan.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/physical/PhysicalOlapScan.java
@@ -288,8 +288,8 @@ public class PhysicalOlapScan extends
PhysicalCatalogRelation implements OlapSca
rfV2 = runtimeFiltersV2.toString();
}
- return Utils.toSqlString("PhysicalOlapScan[" + table.getName() + index
+ partitions + "]"
- + getGroupIdWithPrefix(),
+ return Utils.toSqlString("PhysicalOlapScan[" + id.asInt() + "]" +
getGroupIdWithPrefix(),
+ "table", table.getName() + index + partitions,
"stats", statistics,
"operativeSlots", operativeSlots,
"virtualColumns", virtualColumns,
diff --git a/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy
b/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy
index d490ee52d77..f49f96e24b2 100644
--- a/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy
+++ b/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy
@@ -35,7 +35,7 @@ suite("partitionRowCount") {
sql """physical plan
select * from partitionRowCountTable where a < 250;
"""
- contains("PhysicalOlapScan[partitionRowCountTable partitions(2/3)]@0 (
stats=4, operativeSlots=[a#0]")
+ contains("table=partitionRowCountTable partitions(2/3)")
}
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]