keyExprsBuild[i].getMajorType().toString(), keyExprsProbe[i].getMajorType().toString()));
}
else if (result != buildType) {
// Add a cast expression on top of the build expression
args.add(keyExprsBuild[i]);
FunctionCall castCall = new FunctionCall("cast" + result.toString().toUpperCase(), args, ExpressionPosition.UNKNOWN);
keyExprsBuild[i] = ExpressionTreeMaterializer.materialize(castCall, incomingBuild, new ErrorCollectorImpl(), context.getFunctionRegistry());
} else if (result != probeType) {
args.add(keyExprsProbe[i]);
FunctionCall castCall = new FunctionCall("cast" + result.toString().toUpperCase(), args, ExpressionPosition.UNKNOWN);
keyExprsProbe[i] = ExpressionTreeMaterializer.materialize(castCall, incomingProbe, new ErrorCollectorImpl(), context.getFunctionRegistry());
}
}
}
}