use of io.prestosql.metadata.ProcedureRegistry in project hetu-core by openlookeng.
the class TestProcedureCall method setUp.
@BeforeClass
public void setUp() {
TestingPrestoServer coordinator = ((DistributedQueryRunner) getQueryRunner()).getCoordinator();
tester = coordinator.getProcedureTester();
// register procedures in the bogus testing catalog
ProcedureRegistry procedureRegistry = coordinator.getMetadata().getProcedureRegistry();
TestingProcedures procedures = new TestingProcedures(coordinator.getProcedureTester());
procedureRegistry.addProcedures(new CatalogName(TESTING_CATALOG), procedures.getProcedures(PROCEDURE_SCHEMA));
session = testSessionBuilder().setCatalog(TESTING_CATALOG).setSchema(PROCEDURE_SCHEMA).build();
}
Aggregations