// Second planner pass to do physical "tweaks". This the first time that
// EnumerableCalcRel is introduced.
final Program program2 =
Programs.hep(CALC_RULES, true, new DefaultRelMetadataProvider());
final RelNode rootRel4 = program2.run(null, rootRel3, null);
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine(
"Plan after physical tweaks: "
+ RelOptUtil.toString(rootRel4, SqlExplainLevel.ALL_ATTRIBUTES));
}