Skip to content

Commit 9266e4c

Browse files
committed
Limit tree output
1 parent 268e39b commit 9266e4c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/logical/Project.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.elasticsearch.xpack.esql.core.expression.Expressions;
1515
import org.elasticsearch.xpack.esql.core.expression.NamedExpression;
1616
import org.elasticsearch.xpack.esql.core.tree.NodeInfo;
17+
import org.elasticsearch.xpack.esql.core.tree.NodeUtils;
1718
import org.elasticsearch.xpack.esql.core.tree.Source;
1819
import org.elasticsearch.xpack.esql.expression.function.Functions;
1920
import org.elasticsearch.xpack.esql.io.stream.PlanStreamInput;
@@ -103,7 +104,11 @@ public boolean equals(Object obj) {
103104
}
104105

105106
Project other = (Project) obj;
106-
107107
return Objects.equals(projections, other.projections) && Objects.equals(child(), other.child());
108108
}
109+
110+
@Override
111+
public String nodeString() {
112+
return nodeName() + "[projections=" + NodeUtils.limitedToString(projections) + "]";
113+
}
109114
}

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/plan/physical/ExchangeExec.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.elasticsearch.xpack.esql.core.expression.Attribute;
1414
import org.elasticsearch.xpack.esql.core.expression.AttributeSet;
1515
import org.elasticsearch.xpack.esql.core.tree.NodeInfo;
16+
import org.elasticsearch.xpack.esql.core.tree.NodeUtils;
1617
import org.elasticsearch.xpack.esql.core.tree.Source;
1718
import org.elasticsearch.xpack.esql.io.stream.PlanStreamInput;
1819

@@ -102,4 +103,9 @@ public boolean equals(Object obj) {
102103
public int hashCode() {
103104
return Objects.hash(super.hashCode(), output, inBetweenAggs);
104105
}
106+
107+
@Override
108+
public String nodeString() {
109+
return nodeName() + "[output=" + NodeUtils.limitedToString(output) + ", inBetweenAggs=" + inBetweenAggs + "]";
110+
}
105111
}

0 commit comments

Comments
 (0)