@Test
  public void testFilterExprOrExpr() throws HiveException {
    VectorizedRowBatch batch1 = getBatchThreeBooleanCols();
    VectorizedRowBatch batch2 = getBatchThreeBooleanCols();

    SelectColumnIsTrue expr1 = new SelectColumnIsTrue(0);
    SelectColumnIsFalse expr2 = new SelectColumnIsFalse(1);

    FilterExprOrExpr orExpr = new FilterExprOrExpr();
    orExpr.setChildExpressions(new VectorExpression[] {expr1, expr2});

    orExpr.evaluate(batch1);
    orExpr.evaluate(batch2);

    assertEquals(batch1.size, batch2.size);
    for (int j = 0; j < batch1.size; j++) {
      assertEquals(batch1.selected[j], batch2.selected[j]);
      int i = j;
      assertEquals((((LongColumnVector) batch1.cols[0]).vector[i]),
          (((LongColumnVector) batch2.cols[0]).vector[i]));
    }

    assertEquals(5, batch1.size);
    assertEquals(0, batch1.selected[0]);
    assertEquals(2, batch1.selected[1]);
    assertEquals(3, batch1.selected[2]);
    assertEquals(4, batch1.selected[3]);
    assertEquals(7, batch1.selected[4]);

    // Repeat the expression on the same batch,
    // the result must be unchanged.
    orExpr.evaluate(batch1);

    assertEquals(5, batch1.size);
    assertEquals(0, batch1.selected[0]);
    assertEquals(2, batch1.selected[1]);
    assertEquals(3, batch1.selected[2]);
    assertEquals(4, batch1.selected[3]);
    assertEquals(7, batch1.selected[4]);
  }
Get a batch with three boolean (long) columns.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/expressions/TestVectorLogicalExpressions.java