use of com.facebook.presto.metadata.ColumnPropertyManager in project presto by prestodb.
the class TestCreateMaterializedViewTask method setUp.
@BeforeMethod
public void setUp() {
CatalogManager catalogManager = new CatalogManager();
Catalog testCatalog = createBogusTestingCatalog(CATALOG_NAME);
catalogManager.registerCatalog(testCatalog);
TablePropertyManager tablePropertyManager = new TablePropertyManager();
tablePropertyManager.addProperties(testCatalog.getConnectorId(), ImmutableList.of(stringProperty("baz", "test property", null, false)));
ColumnPropertyManager columnPropertyManager = new ColumnPropertyManager();
columnPropertyManager.addProperties(testCatalog.getConnectorId(), ImmutableList.of());
FunctionAndTypeManager functionAndTypeManager = createTestFunctionAndTypeManager();
transactionManager = createTestTransactionManager(catalogManager);
testSession = testSessionBuilder().setTransactionId(transactionManager.beginTransaction(false)).build();
accessControl = new AllowAllAccessControl();
executorService = newCachedThreadPool(daemonThreadsNamed("test-%s"));
metadata = new MockMetadata(functionAndTypeManager, tablePropertyManager, columnPropertyManager, testCatalog.getConnectorId());
}
use of com.facebook.presto.metadata.ColumnPropertyManager in project presto by prestodb.
the class TestCreateTableTask method setUp.
@BeforeMethod
public void setUp() {
catalogManager = new CatalogManager();
functionAndTypeManager = createTestFunctionAndTypeManager();
transactionManager = createTestTransactionManager(catalogManager);
tablePropertyManager = new TablePropertyManager();
columnPropertyManager = new ColumnPropertyManager();
testCatalog = createBogusTestingCatalog(CATALOG_NAME);
catalogManager.registerCatalog(testCatalog);
tablePropertyManager.addProperties(testCatalog.getConnectorId(), ImmutableList.of(stringProperty("baz", "test property", null, false)));
columnPropertyManager.addProperties(testCatalog.getConnectorId(), ImmutableList.of());
testSession = testSessionBuilder().setTransactionId(transactionManager.beginTransaction(false)).build();
metadata = new MockMetadata(functionAndTypeManager, tablePropertyManager, columnPropertyManager, testCatalog.getConnectorId(), emptySet());
}
Aggregations