Skip to content

Commit

Permalink
Remove useless output from EXPLAIN
Browse files Browse the repository at this point in the history
Before the change, EXPLAIN would print "Cost: ?, Output: ? rows (?B)"
for every node. This information is available only in EXPLAIN ANALYZE.

Extracted-From: trinodb/trino@ce9ecf9
  • Loading branch information
findepi authored and wenleix committed Mar 6, 2019
1 parent de71128 commit 450f41f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -100,7 +100,7 @@ private String printStats(PlanRepresentation plan, NodeRepresentation node)
{
StringBuilder output = new StringBuilder();
if (!node.getStats().isPresent() || !(plan.getTotalCpuTime().isPresent() && plan.getTotalScheduledTime().isPresent())) {
return "Cost: ?, Output: ? rows (?B)\n";
return "";
}

PlanNodeStats nodeStats = node.getStats().get();
Expand Down

0 comments on commit 450f41f

Please sign in to comment.