Search in sources :

Example 6 with ExecutorFactory

use of org.apache.flink.table.delegation.ExecutorFactory in project flink by apache.

the class LoaderITCase method testExecutorFactory.

@Test
public void testExecutorFactory() {
    assertThat(DelegateExecutorFactory.class.getClassLoader().getResourceAsStream(FLINK_TABLE_PLANNER_FAT_JAR)).isNotNull();
    ExecutorFactory executorFactory = FactoryUtil.discoverFactory(LoaderITCase.class.getClassLoader(), ExecutorFactory.class, ExecutorFactory.DEFAULT_IDENTIFIER);
    assertThat(executorFactory).isNotNull().isInstanceOf(DelegateExecutorFactory.class);
    assertThat(executorFactory.factoryIdentifier()).isEqualTo(ExecutorFactory.DEFAULT_IDENTIFIER);
}
Also used : ExecutorFactory(org.apache.flink.table.delegation.ExecutorFactory) Test(org.junit.jupiter.api.Test)

Aggregations

ExecutorFactory (org.apache.flink.table.delegation.ExecutorFactory)6 Method (java.lang.reflect.Method)4 TableException (org.apache.flink.table.api.TableException)4 IOException (java.io.IOException)3 Executor (org.apache.flink.table.delegation.Executor)3 FlinkException (org.apache.flink.util.FlinkException)3 EnvironmentSettings (org.apache.flink.table.api.EnvironmentSettings)2 AttributedString (org.jline.utils.AttributedString)2 StreamExecutionEnvironment (org.apache.flink.streaming.api.environment.StreamExecutionEnvironment)1 TableConfig (org.apache.flink.table.api.TableConfig)1 CatalogManager (org.apache.flink.table.catalog.CatalogManager)1 FunctionCatalog (org.apache.flink.table.catalog.FunctionCatalog)1 GenericInMemoryCatalog (org.apache.flink.table.catalog.GenericInMemoryCatalog)1 Planner (org.apache.flink.table.delegation.Planner)1 ModuleManager (org.apache.flink.table.module.ModuleManager)1 Test (org.junit.jupiter.api.Test)1