Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
In this time, when we dump the plan of a RelNode Tree, there is no average row size exported in the output string, even if SqlExplainLevel.ALL_ATTRIBUTES is specified.
Because the implementation in explain_() in class RelWriterImpl doesn't include the metric average_row_size:
switch (detailLevel) { case ALL_ATTRIBUTES: s.append(": rowcount = ") .append(mq.getRowCount(rel)) .append(", cumulative cost = ") .append(mq.getCumulativeCost(rel)); } switch (detailLevel) { case NON_COST_ATTRIBUTES: case ALL_ATTRIBUTES: if (!withIdPrefix) { // If we didn't print the rel id at the start of the line, print // it at the end. s.append(", id = ").append(rel.getId()); } break; }
So I'd like to add this metric by calling md.getAverageRowSize(rel)