You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tw...@apache.org on 2020/08/12 14:21:52 UTC
[flink] branch release-1.11 updated:
[hotfix][table-api-scala-bridge] Add deprecation notice to
registerFunction(String, TableFunction)
This is an automated email from the ASF dual-hosted git repository.
twalthr pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.11 by this push:
new 33bc3a1 [hotfix][table-api-scala-bridge] Add deprecation notice to registerFunction(String, TableFunction)
33bc3a1 is described below
commit 33bc3a165181b9778603bd7dc3f25cd7d3cfdfc3
Author: Timo Walther <tw...@apache.org>
AuthorDate: Wed Aug 12 16:16:24 2020 +0200
[hotfix][table-api-scala-bridge] Add deprecation notice to registerFunction(String, TableFunction)
---
.../flink/table/api/bridge/scala/StreamTableEnvironment.scala | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/flink-table/flink-table-api-scala-bridge/src/main/scala/org/apache/flink/table/api/bridge/scala/StreamTableEnvironment.scala b/flink-table/flink-table-api-scala-bridge/src/main/scala/org/apache/flink/table/api/bridge/scala/StreamTableEnvironment.scala
index b462d74..d20ba46 100644
--- a/flink-table/flink-table-api-scala-bridge/src/main/scala/org/apache/flink/table/api/bridge/scala/StreamTableEnvironment.scala
+++ b/flink-table/flink-table-api-scala-bridge/src/main/scala/org/apache/flink/table/api/bridge/scala/StreamTableEnvironment.scala
@@ -53,7 +53,14 @@ trait StreamTableEnvironment extends TableEnvironment {
*
* @param name The name under which the function is registered.
* @param tf The TableFunction to register
+ *
+ * @deprecated Use [[createTemporarySystemFunction(String, UserDefinedFunction)]] instead. Please
+ * note that the new method also uses the new type system and reflective extraction
+ * logic. It might be necessary to update the function implementation as well. See
+ * the documentation of [[TableFunction]] for more information on the new function
+ * design.
*/
+ @deprecated
def registerFunction[T: TypeInformation](name: String, tf: TableFunction[T]): Unit
/**