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

ASF GitHub Bot commented on FLINK-4623:
---------------------------------------

Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2720#discussion_r85783220
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/StreamTableEnvironment.scala
 ---
    @@ -311,14 +313,24 @@ abstract class StreamTableEnvironment(
         *
         * @param table The table for which the AST and execution plan will be 
returned.
         */
    -   def explain(table: Table): String = {
    +  def explain(table: Table): String = {
     
         val ast = RelOptUtil.toString(table.getRelNode)
     
    +    val dataStream = 
translate[Row](table)(TypeExtractor.createTypeInfo(classOf[Row]))
    +
    +    val env = dataStream.getExecutionEnvironment
    +    val jasonSqlPlan = env.getExecutionPlan
    --- End diff --
    
    `jason` -> `json`


> Create Physical Execution Plan of a DataStream
> ----------------------------------------------
>
>                 Key: FLINK-4623
>                 URL: https://issues.apache.org/jira/browse/FLINK-4623
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table API & SQL
>            Reporter: Timo Walther
>            Assignee: Anton Solovev
>              Labels: starter
>
> The {{StreamTableEnvironment#explain(Table)}} command for tables of a 
> {{StreamTableEnvironment}} only outputs the abstract syntax tree. It would be 
> helpful if the {{explain}} method could also generate a string from the 
> {{DataStream}} containing a physical execution plan.



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

Reply via email to