[ 
https://issues.apache.org/jira/browse/FLINK-15384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17003080#comment-17003080
 ] 

Jeff Zhang edited comment on FLINK-15384 at 12/25/19 5:31 AM:
--------------------------------------------------------------

[~ykt836] I can do it for StreamTableEnvironment, but there's no such api for 
BatchTableEnvironment. 
And I guess using TableEnvironment.create is the preferred way.

BTW, the document of creating TableEnvironment is really very confusing. 
There're so many different approaches for creating different TableEnvironment 
(flink/blink planner, stream/batch)
https://ci.apache.org/projects/flink/flink-docs-master/dev/table/common.html#create-a-tableenvironment



was (Author: zjffdu):
[~ykt836] I can do for StreamTableEnvironment, but there's no such api for 
BatchTableEnvironment. 
And I guess using TableEnvironment.create is the preferred way.

BTW, the document of creating TableEnvironment is really very confusing. 
There're so many different approaches for creating different TableEnvironment 
(flink/blink planner, stream/batch)
https://ci.apache.org/projects/flink/flink-docs-master/dev/table/common.html#create-a-tableenvironment


> Allow to pass ExecutionEnvironment/StreamExecutionEnvironment to 
> TableEnvironment 
> ----------------------------------------------------------------------------------
>
>                 Key: FLINK-15384
>                 URL: https://issues.apache.org/jira/browse/FLINK-15384
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / API
>    Affects Versions: 1.10.0
>            Reporter: Jeff Zhang
>            Priority: Major
>
> In the new approach of creating TableEnvironement, it is not possible to pass 
> ExecutionEnvironment/StreamExecutionEnvironment to TableEnvironement. This 
> cause the all the features in ExecutionEnvironment/StreamExecutionEnvironment 
> is not available in table api. Such as add JobListener, execute Job async. So 
> I suggest to allow to pass ExecutionEnvironment/StreamExecutionEnvironment to 
> TableEnvironment  
> {code}
> EnvironmentSettings bbSettings = 
> EnvironmentSettings.newInstance().useBlinkPlanner().inBatchMode().build();
> TableEnvironment bbTableEnv = TableEnvironment.create(bbSettings);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to