use of com.facebook.presto.spi.plan.LimitNode in project presto by prestodb.
the class TestEffectivePredicateExtractor method testLimit.
@Test
public void testLimit() {
PlanNode node = new LimitNode(Optional.empty(), newId(), filter(baseTableScan, and(equals(AV, BV), equals(BV, CV), lessThan(CV, bigintLiteral(10)))), 1, FINAL);
RowExpression effectivePredicate = effectivePredicateExtractor.extract(node);
// Pass through
assertEquals(normalizeConjuncts(effectivePredicate), normalizeConjuncts(equals(AV, BV), equals(BV, CV), lessThan(CV, bigintLiteral(10))));
}
Aggregations