protected RelNode trim(RelOptRuleCall call, RelNode node) {
    return HiveRelFieldTrimmer.get(fetchStats).trim(call.builder(), node);
  }
Rule that triggers the field trimmer on the root of a plan.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveFieldTrimmerRule.java