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_r241972737
##########
File path:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/api/scala/StreamTableEnvironment.scala
##########
@@ -124,7 +124,15 @@ class StreamTableEnvironment(
def registerDataStream[T](name: String, dataStream: DataStream[T], fields:
Expression*): Unit = {
checkValidTableName(name)
- registerDataStreamInternal(name, dataStream.javaStream, fields.toArray)
+ registerDataStreamInternal(name, dataStream.javaStream, fields.toArray,
false)
+ }
+
+ def registerOrReplaceDataStream[T](name: String,
Review comment:
Format the code and add descriptions.
----------------------------------------------------------------
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