Github user yanghua commented on a diff in the pull request: https://github.com/apache/flink/pull/6236#discussion_r199860145 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/java/BatchTableEnvironment.scala --- @@ -95,12 +131,53 @@ class BatchTableEnvironment( * * @param name The name under which the [[DataSet]] is registered in the catalog. * @param dataSet The [[DataSet]] to register. + * @param replace Whether to replace the registered table * @tparam T The type of the [[DataSet]] to register. */ def registerDataSet[T](name: String, dataSet: DataSet[T]): Unit = { + registerDataSet(name, dataSet, false) + } + + /** + * Registers the given [[DataSet]] as table in the + * [[TableEnvironment]]'s catalog. + * Registered tables can be referenced in SQL queries. + * + * The field names of the [[Table]] are automatically derived from the type of the [[DataSet]]. + * + * @param name The name under which the [[DataSet]] is registered in the catalog. + * @param dataSet The [[DataSet]] to register. + * @param replace Whether to replace the registered table --- End diff -- end with point.
---