use of org.apache.beam.sdk.extensions.sql.meta.provider.mongodb.MongoDbTable.MongoDbFilter in project beam by apache.
the class MongoDbFilterTest method testIsSupported.
@Test
public void testIsSupported() {
BeamRelNode beamRelNode = sqlEnv.parseQuery(query);
assertThat(beamRelNode, instanceOf(BeamCalcRel.class));
MongoDbFilter filter = MongoDbFilter.create(((BeamCalcRel) beamRelNode).getProgram().split().right);
assertThat("Query: '" + query + "' is expected to be " + (isSupported ? "supported." : "unsupported."), filter.getNotSupported().isEmpty() == isSupported);
}
Aggregations