[ 
https://issues.apache.org/jira/browse/FLINK-13081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-13081:
-----------------------------------
    Labels: pull-request-available  (was: )

> Supports explain DAG plan
> -------------------------
>
>                 Key: FLINK-13081
>                 URL: https://issues.apache.org/jira/browse/FLINK-13081
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table SQL / Planner
>            Reporter: godfrey he
>            Assignee: godfrey he
>            Priority: Major
>              Labels: pull-request-available
>
> in flink planner, a query will be optimized while calling 
> {{TableEnvironment#insertInto}} or {{TableEnvironment#sqlUpdate}}. however, 
> if a job has multiple sinks (means {{insertInto}} or {{sqlUpdate}} will be 
> called multiple times), the final job contains several independent 
> sub-graphs. In most cases, there is duplicate computing in a multiple sinks 
> job. so in blink planner, multiple sinks queries will be optimized together 
> to avoid duplicate computing. a query will not be optimized in {{insertInto}} 
> and {{sqlUpdate}}. instead, queries will be optimized before executing.
> this issue aims to support above case.
> this issue only introduces {{explain}} method into {{TableEnvironment}}, 
> {{execute}} method will be introduced in 
> [FLINK-13088|https://issues.apache.org/jira/browse/FLINK-13088]
> {code:java}
> // explain multiple-sinks plan
> String explain(boolean extended);
> {code}
> to make sure the behavior of flink planner is same as before, a 
> {{isLazyOptMode}} filed is added into {{EnvironmentSettings}}, which tells 
> the table environment should optimize the query immediately in 
> {{insertInto}}/{{sqlUpdate}} methods for flink planner({{isLazyOptMode}} is 
> always false) or in execute method for blink planner({{isLazyOptMode}} is 
> always true) .



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to