[ https://issues.apache.org/jira/browse/FLINK-5795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15874287#comment-15874287 ]
ASF GitHub Bot commented on FLINK-5795: --------------------------------------- Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/3330#discussion_r101974425 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/ScalarFunction.scala --- @@ -56,8 +58,10 @@ abstract class ScalarFunction extends UserDefinedFunction { ScalarFunctionCall(this, params) } - override def toString: String = getClass.getCanonicalName - + override def toString: String = { + val md5 = DigestUtils.md5Hex(serialize(this)) --- End diff -- I think this is dangerous. The function might be overridden by a UDF. Rather add a new `final` method. > Improve “UDTF" to support constructor with parameter. > ----------------------------------------------------- > > Key: FLINK-5795 > URL: https://issues.apache.org/jira/browse/FLINK-5795 > Project: Flink > Issue Type: Sub-task > Components: Table API & SQL > Reporter: sunjincheng > Assignee: sunjincheng > -- This message was sent by Atlassian JIRA (v6.3.15#6346)