use of com.facebook.presto.plugin.memory.MemoryPlugin in project presto by prestodb.
the class VerifierTestUtil method setupPresto.
public static StandaloneQueryRunner setupPresto() throws Exception {
Session session = testSessionBuilder().setCatalog(CATALOG).setSchema(SCHEMA).build();
StandaloneQueryRunner queryRunner = new StandaloneQueryRunner(session);
queryRunner.installPlugin(new MemoryPlugin());
queryRunner.createCatalog(CATALOG, "memory");
return queryRunner;
}
use of com.facebook.presto.plugin.memory.MemoryPlugin in project presto by prestodb.
the class BenchmarkTestUtil method setupPresto.
public static StandaloneQueryRunner setupPresto() throws Exception {
Session session = testSessionBuilder().setCatalog(CATALOG).setSchema(SCHEMA).build();
StandaloneQueryRunner queryRunner = new StandaloneQueryRunner(session);
queryRunner.installPlugin(new MemoryPlugin());
queryRunner.createCatalog(CATALOG, "memory");
return queryRunner;
}
use of com.facebook.presto.plugin.memory.MemoryPlugin in project presto by prestodb.
the class HiveFunctionsTestUtils method createTestingPrestoServer.
public static TestingPrestoServer createTestingPrestoServer() throws Exception {
TestingPrestoServer server = new TestingPrestoServer();
server.installPlugin(new MemoryPlugin());
server.installPlugin(new HiveFunctionNamespacePlugin());
server.createCatalog("memory", "memory");
FunctionAndTypeManager functionAndTypeManager = server.getInstance(Key.get(FunctionAndTypeManager.class));
functionAndTypeManager.loadFunctionNamespaceManager("hive-functions", "hive", getNamespaceManagerCreationProperties());
server.refreshNodes();
return server;
}
Aggregations