Class ReplaceFieldWithConstantOrNull


public class ReplaceFieldWithConstantOrNull extends ParameterizedRule<LogicalPlan,LogicalPlan,LocalLogicalOptimizerContext>
Look for any fields used in the plan that are missing and replaces them with null or look for fields that are constant. This should minimize the plan execution, in the best scenario skipping its execution all together.