public static RelNode boxPlan(RelNode plan) {
    return plan.accept(new BoxingRelShuttle());
  }
Create Box operators in plan where necessary.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/views/HiveMaterializedViewBoxing.java