materializedLeftExpr = ExpressionTreeMaterializer.materialize(leftFieldExpr, left, collector, context.getFunctionRegistry());
} else {
materializedLeftExpr = new TypedNullConstant(Types.optional(MinorType.INT));
}
if (collector.hasErrors())
throw new ClassTransformationException(String.format(
"Failure while trying to materialize incoming left field. Errors:\n %s.", collector.toErrorString()));
LogicalExpression materializedRightExpr;
if (worker == null || status.isRightPositionAllowed()) {
materializedRightExpr = ExpressionTreeMaterializer.materialize(rightFieldExpr, right, collector, context.getFunctionRegistry());
} else {
materializedRightExpr = new TypedNullConstant(Types.optional(MinorType.INT));
}
if (collector.hasErrors())
throw new ClassTransformationException(String.format(
"Failure while trying to materialize incoming right field. Errors:\n %s.", collector.toErrorString()));
// generate compare()
////////////////////////
cg.setMappingSet(compareMapping);