Github user sunjincheng121 commented on a diff in the pull request:
https://github.com/apache/flink/pull/3330#discussion_r101450383
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/utils/UserDefinedFunctionUtils.scala
---
@@ -324,4 +325,19 @@ object UserDefinedFunctionUtils {
candidate == classOf[Time] && (expected == classOf[Int] || expected ==
classOf[JInt]) ||
candidate == classOf[Timestamp] && (expected == classOf[Long] ||
expected == classOf[JLong])
+ @throws[Exception]
+ def serialize(function: UserDefinedFunction): String = {
+ val byteArrayOutPut = new ByteArrayOutputStream
--- End diff --
Coolï¼good catch. It's the same code, but use InstantiationUtil is a good
away.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---