Search in sources :

Example 16 with EnvironmentSettings

use of org.apache.flink.table.api.EnvironmentSettings in project flink by apache.

the class CatalogStatisticsTest method setup.

@Before
public void setup() {
    EnvironmentSettings settings = EnvironmentSettings.newInstance().inBatchMode().build();
    tEnv = TableEnvironment.create(settings);
    catalog = tEnv.getCatalog(tEnv.getCurrentCatalog()).orElse(null);
    assertNotNull(catalog);
}
Also used : EnvironmentSettings(org.apache.flink.table.api.EnvironmentSettings) Before(org.junit.Before)

Aggregations

EnvironmentSettings (org.apache.flink.table.api.EnvironmentSettings)16 TableEnvironment (org.apache.flink.table.api.TableEnvironment)6 Executor (org.apache.flink.table.delegation.Executor)5 AttributedString (org.jline.utils.AttributedString)4 StreamExecutionEnvironment (org.apache.flink.streaming.api.environment.StreamExecutionEnvironment)3 TableException (org.apache.flink.table.api.TableException)3 Planner (org.apache.flink.table.delegation.Planner)3 IOException (java.io.IOException)2 Method (java.lang.reflect.Method)2 Table (org.apache.flink.table.api.Table)2 ExecutorFactory (org.apache.flink.table.delegation.ExecutorFactory)2 PlannerFactory (org.apache.flink.table.delegation.PlannerFactory)2 Row (org.apache.flink.types.Row)2 FlinkException (org.apache.flink.util.FlinkException)2 Before (org.junit.Before)2 URLClassLoader (java.net.URLClassLoader)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 Configuration (org.apache.flink.configuration.Configuration)1 TableConfig (org.apache.flink.table.api.TableConfig)1