use of org.apache.flink.table.planner.delegation.PlannerContext in project flink by apache.
the class JsonSerdeTestUtil method configuredSerdeContext.
static SerdeContext configuredSerdeContext(CatalogManager catalogManager, TableConfig tableConfig) {
final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
final ModuleManager moduleManager = new ModuleManager();
final FunctionCatalog functionCatalog = new FunctionCatalog(tableConfig, catalogManager, moduleManager);
final PlannerContext plannerContext = new PlannerContext(false, tableConfig, moduleManager, functionCatalog, catalogManager, asRootSchema(new CatalogManagerCalciteSchema(catalogManager, true)), Collections.emptyList());
return new SerdeContext(new ParserImpl(null, null, plannerContext::createCalciteParser, null), plannerContext.getFlinkContext(), classLoader, FlinkTypeFactory.INSTANCE(), plannerContext.createFrameworkConfig().getOperatorTable());
}
Aggregations