use of io.prestosql.testing.LocalQueryRunner in project hetu-core by openlookeng.
the class TestAddExchangesPlans method createQueryRunner.
private static LocalQueryRunner createQueryRunner() {
Session session = testSessionBuilder().setCatalog("tpch").setSchema("tiny").build();
FeaturesConfig featuresConfig = new FeaturesConfig().setSpillerSpillPaths("/tmp/test_spill_path");
LocalQueryRunner queryRunner = new LocalQueryRunner(session, featuresConfig);
queryRunner.createCatalog("tpch", new TpchConnectorFactory(1), ImmutableMap.of());
return queryRunner;
}
use of io.prestosql.testing.LocalQueryRunner in project hetu-core by openlookeng.
the class TestJoinNodeFlattener method setUp.
@BeforeClass
public void setUp() {
queryRunner = new LocalQueryRunner(testSessionBuilder().build());
logicalRowExpressions = new LogicalRowExpressions(new RowExpressionDeterminismEvaluator(queryRunner.getMetadata()), new FunctionResolution(queryRunner.getMetadata().getFunctionAndTypeManager()), queryRunner.getMetadata().getFunctionAndTypeManager());
}
use of io.prestosql.testing.LocalQueryRunner in project hetu-core by openlookeng.
the class ArrayComparisonBenchmark method main.
public static void main(String... args) {
LocalQueryRunner localQueryRunner = createLocalQueryRunner();
new ArrayEqualsBenchmark(localQueryRunner).runBenchmark(new SimpleLineBenchmarkResultWriter(System.out));
new ArrayLessThanBenchmark(localQueryRunner).runBenchmark(new SimpleLineBenchmarkResultWriter(System.out));
new ArrayGreaterThanBenchmark(localQueryRunner).runBenchmark(new SimpleLineBenchmarkResultWriter(System.out));
new ArrayNotEqualBenchmark(localQueryRunner).runBenchmark(new SimpleLineBenchmarkResultWriter(System.out));
new ArrayLessThanOrEqualBenchmark(localQueryRunner).runBenchmark(new SimpleLineBenchmarkResultWriter(System.out));
new ArrayGreaterThanOrEqualBenchmark(localQueryRunner).runBenchmark(new SimpleLineBenchmarkResultWriter(System.out));
}
use of io.prestosql.testing.LocalQueryRunner in project hetu-core by openlookeng.
the class BenchmarkQueryRunner method createLocalQueryRunner.
public static LocalQueryRunner createLocalQueryRunner(Map<String, String> extraSessionProperties) {
SessionBuilder sessionBuilder = testSessionBuilder().setCatalog("tpch").setSchema(TINY_SCHEMA_NAME);
extraSessionProperties.forEach(sessionBuilder::setSystemProperty);
Session session = sessionBuilder.build();
LocalQueryRunner localQueryRunner = new LocalQueryRunner(session);
// add tpch
localQueryRunner.createCatalog("tpch", new TpchConnectorFactory(1), ImmutableMap.of());
return localQueryRunner;
}
use of io.prestosql.testing.LocalQueryRunner in project hetu-core by openlookeng.
the class TestPruneCTENodes method createQueryRunner.
private static LocalQueryRunner createQueryRunner() {
Session session = testSessionBuilder().setCatalog("tpch").setSchema("tiny").build();
FeaturesConfig featuresConfig = new FeaturesConfig().setSpillerSpillPaths("/tmp/test_spill_path");
LocalQueryRunner queryRunner = new LocalQueryRunner(session, featuresConfig);
queryRunner.createCatalog("tpch", new TpchConnectorFactory(1), ImmutableMap.of());
return queryRunner;
}
Aggregations