// Extend any repeating values and noNulls indicator in the inputs to
// reduce the number of code paths needed below.
// This could be optimized in the future by having separate paths
// for when arg3ColVector is repeating or has no nulls.
arg3ColVector.flatten(batch.selectedInUse, sel, n);
if (arg1ColVector.noNulls) {
if (batch.selectedInUse) {
for(int j = 0; j != n; j++) {
int i = sel[j];