[ 
https://issues.apache.org/jira/browse/FLINK-4599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15476423#comment-15476423
 ] 

Fabian Hueske commented on FLINK-4599:
--------------------------------------

In principle it could be done. The translation from the RelNode plan into 
DataStream operators is fixed right now (there are no plan choices). 
You could either reimplement the translation logic and construct the plan from 
the RelNodes. This approach is hard to maintain. Whenever something in the 
RelNode -> DataStream translation changes, we would need to adapt the plan 
construction logic as well.
Another approach could be to translate the RelNodes into DataStream operators 
and build the plan by going through the operator inputs (not 100% sure that 
will work).

Actually, I think we should start with the AST output, i.e., the RelNode plan 
and maybe add the physical execution plan later.

> Add 'explain()' also to StreamTableEnvironment
> ----------------------------------------------
>
>                 Key: FLINK-4599
>                 URL: https://issues.apache.org/jira/browse/FLINK-4599
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table API & SQL
>            Reporter: Timo Walther
>            Assignee: Simone Robutti
>              Labels: starter
>
> Currenlty, only the BatchTableEnvironment supports the {{explain}} command 
> for tables. We should also support it for the StreamTableEnvironment.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to