Search in sources :

Example 1 with FilterLongColEqualLongScalar

use of org.apache.hadoop.hive.ql.exec.vector.expressions.gen.FilterLongColEqualLongScalar in project hive by apache.

the class TestVectorFilterExpressions method testFilterLongColEqualLongScalar.

@Test
public void testFilterLongColEqualLongScalar() {
    VectorizedRowBatch vrg = VectorizedRowGroupGenUtil.getVectorizedRowBatch(1024, 1, 23);
    FilterLongColEqualLongScalar expr = new FilterLongColEqualLongScalar(0, 46);
    expr.evaluate(vrg);
    assertEquals(1, vrg.size);
    assertEquals(1, vrg.selected[0]);
}
Also used : FilterLongColEqualLongScalar(org.apache.hadoop.hive.ql.exec.vector.expressions.gen.FilterLongColEqualLongScalar) VectorizedRowBatch(org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch) Test(org.junit.Test)

Aggregations

VectorizedRowBatch (org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch)1 FilterLongColEqualLongScalar (org.apache.hadoop.hive.ql.exec.vector.expressions.gen.FilterLongColEqualLongScalar)1 Test (org.junit.Test)1