hequn8128 commented on a change in pull request #6236: [FLINK-9699] [table] Add 
api to replace registered table
URL: https://github.com/apache/flink/pull/6236#discussion_r241972731
 
 

 ##########
 File path: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/TableEnvironment.scala
 ##########
 @@ -888,13 +991,15 @@ abstract class TableEnvironment(val config: TableConfig) 
{
     * Registers a Calcite [[AbstractTable]] in the TableEnvironment's catalog.
     *
     * @param name The name under which the table will be registered.
-    * @param table The table to register in the catalog
+    * @param table The table to register in the catalog.
+    * @param replace Whether to replace the registered table.
     * @throws TableException if another table is registered under the provided 
name.
     */
   @throws[TableException]
-  protected def registerTableInternal(name: String, table: AbstractTable): 
Unit = {
-
-    if (isRegistered(name)) {
+  protected def registerTableInternal(name: String,
 
 Review comment:
   Format the code to be consistent with old functions

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to