use of io.trino.FeaturesConfig in project trino by trinodb.
the class TestQuerySpillLimits method createLocalQueryRunner.
private LocalQueryRunner createLocalQueryRunner(NodeSpillConfig nodeSpillConfig) {
LocalQueryRunner queryRunner = LocalQueryRunner.builder(SESSION).withFeaturesConfig(new FeaturesConfig().setSpillerSpillPaths(spillPath.getAbsolutePath()).setSpillEnabled(true)).withNodeSpillConfig(nodeSpillConfig).withAlwaysRevokeMemory().build();
queryRunner.createCatalog(SESSION.getCatalog().get(), new TpchConnectorFactory(1), ImmutableMap.of());
return queryRunner;
}
Aggregations