public static boolean isMaterializable(RexNode expr) {
    return (checkMaterializable(expr) == null);
  }
Is the expression usable for query materialization.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/HiveCalciteUtil.java