diff --git a/presto-main/src/main/java/io/prestosql/sql/planner/planprinter/TextRenderer.java b/presto-main/src/main/java/io/prestosql/sql/planner/planprinter/TextRenderer.java index 7508b8e4ba37..d3af013073bf 100644 --- a/presto-main/src/main/java/io/prestosql/sql/planner/planprinter/TextRenderer.java +++ b/presto-main/src/main/java/io/prestosql/sql/planner/planprinter/TextRenderer.java @@ -60,11 +60,13 @@ private String writeTextOutput(StringBuilder output, PlanRepresentation plan, in .append("- ") .append(node.getName()) .append(node.getIdentifier()) - .append(" => [") - .append(node.getOutputs().stream() - .map(s -> s.getSymbol() + ":" + s.getType()) - .collect(joining(", "))) - .append("]\n"); + .append("\n"); + + String columns = node.getOutputs().stream() + .map(s -> s.getSymbol() + ":" + s.getType()) + .collect(joining(", ")); + + output.append(indentMultilineString("Layout: [" + columns + "]\n", level + 2)); String estimates = printEstimates(plan, node); if (!estimates.isEmpty()) {