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

Jark Wu commented on FLINK-22744:
---------------------------------

+1 to have shortcuts {{EnvironmentSettings.inStreamingMode()}} and 
{{EnvironmentSettings.inBatchMode()}} to build EnvironmentSettings.

Regarding {{TableEnvironment.create()}}, I think we can introduce this in the 
future when we support automatic mode to avoid the API semantic change again. 


> Simplify TableEnvironment.create()
> ----------------------------------
>
>                 Key: FLINK-22744
>                 URL: https://issues.apache.org/jira/browse/FLINK-22744
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table SQL / API
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>            Priority: Major
>
> After dropping the legacy planner, in many cases there is not much to build 
> in the `EnvironmentSettings` except for batch/streaming mode. Simplify the 
> API with:
> {code:java}
> TableEnvironment.create()    // default settings in streaming mode / later 
> automatic mode
> EnvironmentSettings.inStreamingMode()    // shortcut
> EnvironmentSettings.inBatchMode()        // shortcut
> {code}



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

Reply via email to