[ 
https://issues.apache.org/jira/browse/FLINK-10597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16702901#comment-16702901
 ] 

ASF GitHub Bot commented on FLINK-10597:
----------------------------------------

twalthr commented on a change in pull request #7189: [FLINK-10597][table] 
Enabled UDFs support in MATCH_RECOGNIZE
URL: https://github.com/apache/flink/pull/7189#discussion_r237399688
 
 

 ##########
 File path: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/match/PatternSelectFunctionRunner.scala
 ##########
 @@ -60,17 +67,9 @@ class PatternSelectFunctionRunner(
     out.collect(outCRow)
   }
 
-  @throws(classOf[IOException])
-  private def readObject(in: ObjectInputStream): Unit = {
-    in.defaultReadObject()
-
-    if (outCRow == null) {
-      outCRow = new CRow(null, true)
-    }
-
-    if (function == null) {
-      init()
-    }
+  override def close(): Unit = {
+    super.close()
+    function.close()
 
 Review comment:
   Use `org.apache.flink.api.common.functions.util.FunctionUtils#closeFunction` 
instead?

----------------------------------------------------------------
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:
us...@infra.apache.org


> Enable UDFs support in MATCH_RECOGNIZE
> --------------------------------------
>
>                 Key: FLINK-10597
>                 URL: https://issues.apache.org/jira/browse/FLINK-10597
>             Project: Flink
>          Issue Type: Sub-task
>          Components: CEP, Table API & SQL
>            Reporter: Dawid Wysakowicz
>            Assignee: Dawid Wysakowicz
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.8.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to