[
https://issues.apache.org/jira/browse/FLINK-8013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16253329#comment-16253329
]
ASF GitHub Bot commented on FLINK-8013:
---------------------------------------
Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/5011#discussion_r151102741
--- Diff:
flink-tests/src/test/scala/org/apache/flink/api/scala/util/CollectionDataSets.scala
---
@@ -55,7 +55,6 @@ object CollectionDataSets {
data.+=((19, 6L, "Comment#13"))
data.+=((20, 6L, "Comment#14"))
data.+=((21, 6L, "Comment#15"))
- Random.shuffle(data)
--- End diff --
I think this should be added back.
> Check of AggregateFunction merge function signature is too strict.
> ------------------------------------------------------------------
>
> Key: FLINK-8013
> URL: https://issues.apache.org/jira/browse/FLINK-8013
> Project: Flink
> Issue Type: Bug
> Components: Table API & SQL
> Affects Versions: 1.4.0
> Reporter: Fabian Hueske
> Assignee: Timo Walther
>
> The {{AggregationCodeGenerator}} checks that a user-defined
> {{AggregateFunction}} implements all required methods. However, the check for
> the {{merge(accumulator: ACC, its: java.lang.Iterable\[ACC\]): Unit}} method
> is too strict and rejects valid UDAGGs.
> This happens for more complex accumulators such as
> {{Array\[org.apache.flink.api.java.tuple.Tuple2\[java.lang.Integer,
> java.lang.Float\]\]}} because generic types are lost such that the check of
> the argument types of {{merge}} fails.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)