Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/2025#discussion_r64367480
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/runtime/aggregate/AggregateMapFunction.scala
---
@@ -44,7 +44,7 @@ class AggregateMapFunction[IN, OUT](
override def map(value: IN): OUT = {
- val input = value.asInstanceOf[Row]
+ val input = value.asInstanceOf[Product]
--- End diff --
Currently aggregates do only support `Row`, because the aggregate code is
not generated yet.
`DataSetAggregate` enforces `Row` as input type (see `DataSetAggregate`
line 99), so `value.asInstanceOf[Row]` should be safe.
Did you observe a problem with this cast?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---