use of com.yahoo.bullet.query.expressions.BinaryExpression in project bullet-core by yahoo.
the class SimpleEqualityPartitionerTest method testDefaultPartitioningQueryWithNonEqualityFilters.
@Test
public void testDefaultPartitioningQueryWithNonEqualityFilters() {
SimpleEqualityPartitioner partitioner = createPartitioner("A", "B");
Query query = createQuery(new BinaryExpression(new FieldExpression("A"), new ValueExpression("bar"), Operation.NOT_EQUALS), new BinaryExpression(new FieldExpression("B"), new ValueExpression("baz"), Operation.NOT_EQUALS));
Assert.assertEquals(partitioner.getKeys(query), singleton("*-*"));
}
Aggregations