private static boolean isRestrictReducerExtrapolation(Context context) {
    return context.getOperation() == Context.Operation.DELETE && context.getLoadTableOutputMap().values()
            .stream().map(WriteEntity::getTable).anyMatch(DDLUtils::isIcebergTable);
  }
GenTezUtils is a collection of shared helper methods to produce TezWork.
All the methods in this class should be static, but some aren't; this is to facilitate testing.
Methods are made non-static on as needed basis.
ql/src/java/org/apache/hadoop/hive/ql/parse/GenTezUtils.java