Search in sources :

Example 1 with LateralViewFunctor

use of com.yahoo.bullet.querying.tablefunctors.LateralViewFunctor in project bullet-core by yahoo.

the class LateralViewTest method testLateralViewTableFunction.

@Test
public void testLateralViewTableFunction() {
    Explode explode = new Explode(new FieldExpression("abc"), "foo", "bar", true);
    LateralView tableFunction = new LateralView(explode);
    Assert.assertEquals(tableFunction.getType(), TableFunctionType.LATERAL_VIEW);
    Assert.assertEquals(tableFunction.getTableFunctions().get(0), explode);
    Assert.assertTrue(tableFunction.getTableFunctor() instanceof LateralViewFunctor);
}
Also used : LateralViewFunctor(com.yahoo.bullet.querying.tablefunctors.LateralViewFunctor) FieldExpression(com.yahoo.bullet.query.expressions.FieldExpression) Test(org.testng.annotations.Test)

Aggregations

FieldExpression (com.yahoo.bullet.query.expressions.FieldExpression)1 LateralViewFunctor (com.yahoo.bullet.querying.tablefunctors.LateralViewFunctor)1 Test (org.testng.annotations.Test)1