[ https://issues.apache.org/jira/browse/FLINK-17139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17083380#comment-17083380 ]
jinfeng commented on FLINK-17139: --------------------------------- [~wenlong.lwl] . That's ture. The master of StreamTableEnvironmentImpl#isEagerOperationTranslation return false. > 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)