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

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

Github user kaibozhou commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4355#discussion_r135162070
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/aggregate/AggregateUtil.scala
 ---
    @@ -1469,4 +1526,26 @@ object AggregateUtil {
       private def gcd(a: Long, b: Long): Long = {
         if (b == 0) a else gcd(b, a % b)
       }
    +
    +  @throws[Exception]
    +  def serialize(stateDescriptor: StateDescriptor[_, _]): String = {
    +    val byteArray = InstantiationUtil.serializeObject(stateDescriptor)
    +    Base64.encodeBase64URLSafeString(byteArray)
    +  }
    +
    +  @throws[Exception]
    +  def deserialize(data: String): StateDescriptor[_, _] = {
    +    val byteData = Base64.decodeBase64(data)
    +    InstantiationUtil.deserializeObject[StateDescriptor[_, _]](
    +      byteData,
    +      Thread.currentThread.getContextClassLoader)
    +  }
    +
    +  def createDataViewTerm(aggIndex: Int, fieldName: String): String = {
    --- End diff --
    
    yes, just the omission of code refactoring


> Implementation of DataView to support state access for UDAGG
> ------------------------------------------------------------
>
>                 Key: FLINK-7206
>                 URL: https://issues.apache.org/jira/browse/FLINK-7206
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API & SQL
>            Reporter: Kaibo Zhou
>            Assignee: Kaibo Zhou
>
> Implementation of MapView and ListView to support state access for UDAGG.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to