[ https://issues.apache.org/jira/browse/FLINK-17139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17083313#comment-17083313 ]
Wenlong Lyu commented on FLINK-17139: ------------------------------------- in 1.10 the compile for each dml is eager: StreamTableEnvironmentImpl#isEagerOperationTranslation return true, so we can't reuse the source. I believe that it is solved in master. > 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)