// Evaluate batch1 so that temporary arrays in the expression
// have residual values to interfere in later computation
orExpr.evaluate(batch1);
// Swap column vectors, but keep selected vector unchanged
ColumnVector tmp = batch1.cols[0];
batch1.cols[0] = batch1.cols[1];
batch1.cols[1] = tmp;
// Make sure row-7 is in the output.
batch1.cols[1].isNull[7] = false;
((LongColumnVector) batch1.cols[1]).vector[7] = 0;