[enhance](Nereids): delete output in olapscan toString() (#17288)

This commit is contained in:
jakevin
2023-03-02 10:53:24 +08:00
committed by GitHub
parent a5ae3072e5
commit 4682b4564c
3 changed files with 1 additions and 3 deletions

View File

@ -180,7 +180,6 @@ public class LogicalOlapScan extends LogicalRelation implements CatalogRelation,
public String toString() {
return Utils.toSqlString("LogicalOlapScan",
"qualified", qualifiedName(),
"output", getOutput(),
"indexName", getSelectedMaterializedIndexName().orElse("<index_not_selected>"),
"selectedIndexId", selectedIndexId,
"preAgg", preAggStatus

View File

@ -111,7 +111,6 @@ public class PhysicalOlapScan extends PhysicalRelation implements OlapScan {
public String toString() {
return Utils.toSqlString("PhysicalOlapScan",
"qualified", Utils.qualifiedName(qualifier, olapTable.getName()),
"output", getOutput(),
"stats", statsDeriveResult
);
}

View File

@ -82,7 +82,7 @@ public class PlanToStringTest {
LogicalOlapScan plan = PlanConstructor.newLogicalOlapScan(0, "table", 0);
Assertions.assertTrue(
plan.toString().matches("LogicalOlapScan \\( qualified=db\\.table, "
+ "output=\\[id#\\d+, name#\\d+], indexName=<index_not_selected>, "
+ "indexName=<index_not_selected>, "
+ "selectedIndexId=-1, preAgg=ON \\)"));
}