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

godfrey he updated FLINK-15001:
-------------------------------
    Description: 
This bug is found in [FLINK-14946| 
https://issues.apache.org/jira/browse/FLINK-14946]:

The plan for the given sql in [FLINK-14946| 
https://issues.apache.org/jira/browse/FLINK-14946] is
 !image-2019-12-02-10-49-46-916.png! 

however, the plan after sub-plan reuse is:
 !image-2019-12-02-10-52-01-399.png! 

in the first picture, we could find that the accMode of two joins are 
different, but the two joins are reused in the second picture. 

The reason is the digest of sub-plan reuse does not contain retraction traits 
for stream physical nodes now.


  was:
This bug is found in [FLINK-14946| 
https://issues.apache.org/jira/browse/FLINK-14946]:

The plan for the given sql in [FLINK-14946| 
https://issues.apache.org/jira/browse/FLINK-14946] is
 !image-2019-12-02-10-49-46-916.png! 

however, the plan after sub-plan reuse is:
 !image-2019-12-02-10-52-01-399.png! 

in the first picture, we could find that the accMode of two joins are 
different, but the two joins are reused in the second picture. 

The reason is the digest of sub-plan reuse does not contain RelNode's trait now.



> The digest of sub-plan reuse should contain retraction traits for stream 
> physical nodes
> ---------------------------------------------------------------------------------------
>
>                 Key: FLINK-15001
>                 URL: https://issues.apache.org/jira/browse/FLINK-15001
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>    Affects Versions: 1.9.0, 1.9.1
>            Reporter: godfrey he
>            Assignee: godfrey he
>            Priority: Major
>             Fix For: 1.10.0
>
>         Attachments: image-2019-12-02-10-49-46-916.png, 
> image-2019-12-02-10-52-01-399.png
>
>
> This bug is found in [FLINK-14946| 
> https://issues.apache.org/jira/browse/FLINK-14946]:
> The plan for the given sql in [FLINK-14946| 
> https://issues.apache.org/jira/browse/FLINK-14946] is
>  !image-2019-12-02-10-49-46-916.png! 
> however, the plan after sub-plan reuse is:
>  !image-2019-12-02-10-52-01-399.png! 
> in the first picture, we could find that the accMode of two joins are 
> different, but the two joins are reused in the second picture. 
> The reason is the digest of sub-plan reuse does not contain retraction traits 
> for stream physical nodes now.



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

Reply via email to