[ https://issues.apache.org/jira/browse/FLINK-16533?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
godfrey he updated FLINK-16533: ------------------------------- Description: Currently, {{ExecutionEnvironment}} only supports executing the plan generated by self. FLIP-84 proposes {{TableEnvironment}} can only trigger the table program and the {{StreamExecutionEnvironment}}/{{ExecutionEnvironment}} can only trigger {{DataStream}}/{{DataSet}} program. This requires that {{ExecutionEnvironment}} can execute the plan generated by {{TableEnvironment}}. We propose to add two methods in {{ExecutionEnvironment}}: (which is similar to {{StreamExecutionEnvironment}}#execute(StreamGraph) and {{StreamExecutionEnvironment}}#executeAsync(StreamGraph)) {code:java} public class ExecutionEnvironment { @Internal public JobExecutionResult execute(Plan plan) throws Exception { ..... } @Internal public JobClient executeAsync(Plan plan) throws Exception { ..... } } {code} was: Currently, {{ExecutionEnvironment}} only supports executing the plan generated by self. FLIP-84 proposes {{TableEnvironment}} can only trigger the table program and the {{StreamExecutionEnvironment}}/{{ExecutionEnvironment}} can only trigger {{DataStream}}/{{DataSet}} program. This requires that {{ExecutionEnvironment}} can execute the plan generated by {{TableEnvironment}}. We propose to add two methods in {{ExecutionEnvironment}}: (which is similar to {{StreamExecutionEnvironment}}#execute(StreamGraph) and {{StreamExecutionEnvironment}}#executeAsync(StreamGraph)) {code:java} @Internal public JobExecutionResult execute(Plan plan) throws Exception { ..... } @Internal public JobClient executeAsync(Plan plan) throws Exception { ..... } {code} > ExecutionEnvironment supports executing plan > -------------------------------------------- > > Key: FLINK-16533 > URL: https://issues.apache.org/jira/browse/FLINK-16533 > Project: Flink > Issue Type: Sub-task > Components: Client / Job Submission > Reporter: godfrey he > Priority: Major > Fix For: 1.11.0 > > > Currently, {{ExecutionEnvironment}} only supports executing the plan > generated by self. > FLIP-84 proposes {{TableEnvironment}} can only trigger the table program and > the {{StreamExecutionEnvironment}}/{{ExecutionEnvironment}} can only trigger > {{DataStream}}/{{DataSet}} program. This requires that > {{ExecutionEnvironment}} can execute the plan generated by > {{TableEnvironment}}. We propose to add two methods in > {{ExecutionEnvironment}}: (which is similar to > {{StreamExecutionEnvironment}}#execute(StreamGraph) and > {{StreamExecutionEnvironment}}#executeAsync(StreamGraph)) > {code:java} > public class ExecutionEnvironment { > @Internal > public JobExecutionResult execute(Plan plan) throws Exception { > ..... > } > @Internal > public JobClient executeAsync(Plan plan) throws Exception { > ..... > } > } > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)