[ https://issues.apache.org/jira/browse/FLINK-18095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Knauf reopened FLINK-18095: -------------------------------------- Re-opening in accordance with https://issues.apache.org/jira/browse/FLINK-23206. > Custom Execution Environment for TableEnvironment > ------------------------------------------------- > > Key: FLINK-18095 > URL: https://issues.apache.org/jira/browse/FLINK-18095 > Project: Flink > Issue Type: New Feature > Components: Table SQL / API > Affects Versions: 1.10.0 > Reporter: Satyam Shekhar > Priority: Minor > Labels: auto-closed > > The recommended pattern for creating a TableEnvironment that uses Blink > planner in batch mode is the following - > > var settings = EnvironmentSettings.newInstance() > .useBlinkPlanner() > .inBatchMode() > .build(); > var tEnv = TableEnvironment.create(settings); > > The above configuration, however, does not allow injecting an > ExecutionEnvironment in TableEnvironment. Instead, TableEnvironment is > hardcoded to always get the ExecutionEnvironment via > StreamExecutionEnvironment.getExecutionEnvironment(). This limits users to > connect to a remote environment while working with TableEnvironment. > > The workaround suggested by [~godfreyhe] and [~jark] is to directly create a > StreamTableEnvironmentImpl instance through StreamTableEnvironmentImpl > constructor instead of create method. -- This message was sent by Atlassian Jira (v8.3.4#803005)