This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 44501fe163c branch-4.1 [opt](nerieds) PhysicalOlapScan and
PhysicalFileScan should print its id in plan (#62509) (#63538)
44501fe163c is described below
commit 44501fe163cc95bf0229a68c138a17a0b3b438b1
Author: minghong <[email protected]>
AuthorDate: Wed Jun 3 13:28:24 2026 +0800
branch-4.1 [opt](nerieds) PhysicalOlapScan and PhysicalFileScan should
print its id in plan (#62509) (#63538)
pick #62576
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
.../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 | 2 +-
4 files changed, 7 insertions(+), 6 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 7fab6298d67..73db27dde6e 100644
--- a/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy
+++ b/regression-test/suites/nereids_p0/stats/partitionRowCount.groovy
@@ -47,7 +47,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)")
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]