use of io.trino.metadata.SchemaPropertyManager in project trino by trinodb.
the class TestAnalyzer method createAnalyzer.
private Analyzer createAnalyzer(Session session, AccessControl accessControl) {
StatementRewrite statementRewrite = new StatementRewrite(ImmutableSet.of(new ShowQueriesRewrite(plannerContext.getMetadata(), plannerContext.getFunctionManager(), SQL_PARSER, accessControl, new SessionPropertyManager(), new SchemaPropertyManager(), new ColumnPropertyManager(), tablePropertyManager, new MaterializedViewPropertyManager())));
StatementAnalyzerFactory statementAnalyzerFactory = createTestingStatementAnalyzerFactory(plannerContext, accessControl, tablePropertyManager, analyzePropertyManager);
AnalyzerFactory analyzerFactory = new AnalyzerFactory(statementAnalyzerFactory, statementRewrite);
return analyzerFactory.createAnalyzer(session, emptyList(), emptyMap(), WarningCollector.NOOP);
}
use of io.trino.metadata.SchemaPropertyManager in project trino by trinodb.
the class TestCreateSchemaTask method getCreateSchemaTask.
private CreateSchemaTask getCreateSchemaTask() {
SchemaPropertyManager schemaPropertyManager = new SchemaPropertyManager();
schemaPropertyManager.addProperties(new CatalogName(CATALOG_NAME), ImmutableList.of());
return new CreateSchemaTask(plannerContext, new AllowAllAccessControl(), schemaPropertyManager);
}
Aggregations