use of io.crate.planner.optimizer.rule.MergeFilters in project crate by crate.
the class OptimizerTest method test_rule_filtering.
@Test
public void test_rule_filtering() {
SessionSettings sessionSettings = new SessionSettings("User", SearchPath.pathWithPGCatalogAndDoc(), true, Set.of(MergeFilters.class), true);
List<Rule<?>> rules = Optimizer.removeExcludedRules(List.of(new MergeFilters()), sessionSettings.excludedOptimizerRules());
assertThat(rules.isEmpty(), is(true));
rules = Optimizer.removeExcludedRules(List.of(new MoveFilterBeneathHashJoin()), sessionSettings.excludedOptimizerRules());
assertThat(rules.size(), is(1));
}
Aggregations