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

    https://github.com/apache/flink/pull/2949#discussion_r91049302
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/BatchTableEnvironment.scala
 ---
    @@ -275,17 +278,27 @@ abstract class BatchTableEnvironment(
         * Table API calls and / or SQL queries and generating corresponding 
[[DataSet]] operators.
         *
         * @param table The root node of the relational expression tree.
    -    * @param tpe The [[TypeInformation]] of the resulting [[DataSet]].
    +    * @param tpe   The [[TypeInformation]] of the resulting [[DataSet]].
         * @tparam A The type of the resulting [[DataSet]].
         * @return The [[DataSet]] that corresponds to the translated [[Table]].
         */
       protected def translate[A](table: Table)(implicit tpe: 
TypeInformation[A]): DataSet[A] = {
    +    val dataSetPlan = optimize(table.getRelNode)
    +    translate(dataSetPlan)
    +  }
     
    +  /**
    +    * Translates a logical [[RelNode]] into a [[DataSet]].
    +    *
    +    * @param logicalPlan The root node of the relational expression tree.
    +    * @param tpe         The [[TypeInformation]] of the resulting 
[[DataSet]].
    +    * @tparam A The type of the resulting [[DataSet]].
    +    * @return The [[DataSet]] that corresponds to the translated [[Table]].
    +    */
    +  protected def translate[A](logicalPlan: RelNode)(implicit tpe: 
TypeInformation[A]): DataSet[A] = {
    --- End diff --
    
    I'll fix that before merging. No need to update the PR.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to