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

Jark Wu closed FLINK-17139.
---------------------------
    Resolution: Not A Problem

Hi [~hackergin], [~wenlong.lwl] is correct. This is an expected behavior. 
StreamTableEnvironemnt can't reuse sub trees, you can use TableEnvironment 
which supports reusing. 

 

Btw, in the upcoming 1.11, both StreamTableEnvironemnt and TableEnvironment 
support reusing. 

 

Close this issue because not a problem.

> The sub-plan reuse optimizer can't reuse sub-plan that from different sql 
> node tree 
> ------------------------------------------------------------------------------------
>
>                 Key: FLINK-17139
>                 URL: https://issues.apache.org/jira/browse/FLINK-17139
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Planner
>    Affects Versions: 1.10.0
>            Reporter: jinfeng
>            Priority: Major
>
> The sub-plan reuse optimizer can't reuse sub-plan that from different sql 
> node tree .
> {code:java}
> //代码占位符
> create table SourceTable ...;
> create table SinkTable1 ....;
> create table SinkTable2 ....;
> insert into SinkTable1 select * from SourceTable;
> insert into SinkTable2 select * from SourceTable;
> {code}
> SourceTable will not be reuse when I execute the below sql statements;
>  



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

Reply via email to