flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jark Wu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-6888) Can not determine TypeInformation of ACC type of AggregateFunction when ACC is a Scala case/tuple class
Date Sun, 11 Jun 2017 11:44:19 GMT
Jark Wu created FLINK-6888:
------------------------------

             Summary: Can not determine TypeInformation of ACC type of AggregateFunction when
ACC is a Scala case/tuple class
                 Key: FLINK-6888
                 URL: https://issues.apache.org/jira/browse/FLINK-6888
             Project: Flink
          Issue Type: Bug
          Components: Table API & SQL
            Reporter: Jark Wu
            Assignee: Jark Wu
             Fix For: 1.4.0


Currently the {{ACC}} TypeInformation of {{org.apache.flink.table.functions.AggregateFunction[T,
ACC]}} is extracted using {{TypeInformation.of(Class)}}. When {{ACC}} is a Scala case class
or tuple class, the TypeInformation will fall back to {{GenericType}} which result in bad
performance when state de/serialization. 

I suggest to extract the ACC TypeInformation when called {{TableEnvironment.registerFunction()}}.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message