Search in sources :

Example 1 with IndexedTpchConnectorFactory

use of com.facebook.presto.tests.tpch.IndexedTpchConnectorFactory in project presto by prestodb.

the class TestLocalQueriesIndexed method createLocalQueryRunner.

private static LocalQueryRunner createLocalQueryRunner() {
    Session defaultSession = testSessionBuilder().setCatalog("local").setSchema(TINY_SCHEMA_NAME).build();
    LocalQueryRunner localQueryRunner = new LocalQueryRunner(defaultSession);
    // add the tpch catalog
    // local queries run directly against the generator
    localQueryRunner.createCatalog(defaultSession.getCatalog().get(), new IndexedTpchConnectorFactory(INDEX_SPEC, 1), ImmutableMap.of());
    return localQueryRunner;
}
Also used : IndexedTpchConnectorFactory(com.facebook.presto.tests.tpch.IndexedTpchConnectorFactory) LocalQueryRunner(com.facebook.presto.testing.LocalQueryRunner) Session(com.facebook.presto.Session)

Aggregations

Session (com.facebook.presto.Session)1 LocalQueryRunner (com.facebook.presto.testing.LocalQueryRunner)1 IndexedTpchConnectorFactory (com.facebook.presto.tests.tpch.IndexedTpchConnectorFactory)1