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

    https://github.com/apache/flink/pull/6236#discussion_r199857801
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/TableEnvironment.scala
 ---
    @@ -433,9 +447,24 @@ abstract class TableEnvironment(val config: 
TableConfig) {
         * @param name        The name under which the [[TableSource]] is 
registered.
         * @param tableSource The [[TableSource]] to register.
         */
    -  def registerTableSource(name: String, tableSource: TableSource[_]): Unit 
= {
    +  def registerTableSource(name: String,
    +                          tableSource: TableSource[_]): Unit = {
    +    registerTableSource(name, tableSource, false)
    +  }
    +
    +  /**
    +    * Registers an external [[TableSource]] in this [[TableEnvironment]]'s 
catalog.
    +    * Registered tables can be referenced in SQL queries.
    +    *
    +    * @param name        The name under which the [[TableSource]] is 
registered.
    +    * @param tableSource The [[TableSource]] to register.
    +    * @param replace     Whether to replace the registered table
    --- End diff --
    
    end with a point


---

Reply via email to