[
https://issues.apache.org/jira/browse/BEAM-12509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17401265#comment-17401265
]
Beam JIRA Bot commented on BEAM-12509:
--------------------------------------
This issue is P2 but has been unassigned without any comment for 60 days so it
has been labeled "stale-P2". If this issue is still affecting you, we care!
Please comment and remove the label. Otherwise, in 14 days the issue will be
moved to P3.
Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed
explanation of what these priorities mean.
> AggregateFn: only accumulator types with default coders are supported.
> ----------------------------------------------------------------------
>
> Key: BEAM-12509
> URL: https://issues.apache.org/jira/browse/BEAM-12509
> Project: Beam
> Issue Type: New Feature
> Components: dsl-sql-zetasql
> Reporter: Kyle Weaver
> Priority: P2
> Labels: stale-P2, zetasql-java-udf
>
> AggregateFn infers the coder for the accumulator from its type [1]. This only
> works for types with default coders registered [2].
> To enable the use custom coders, AggregateFn will need a method to set the
> accumulator coder. However, the Coder class itself is a part of the Beam core
> SDK, a dependency we were trying to avoid in
> org.apache.beam.sdk.extensions.sql.udf.
> [1]
> https://github.com/apache/beam/blob/9418994e11dbede889b508c91261ec2092f2d8a7/sdks/java/extensions/sql/src/main/java/org/apache/beam/sdk/extensions/sql/impl/LazyAggregateCombineFn.java#L88
> [2]
> https://github.com/apache/beam/blob/9418994e11dbede889b508c91261ec2092f2d8a7/sdks/java/core/src/main/java/org/apache/beam/sdk/coders/CoderRegistry.java#L106-L143
--
This message was sent by Atlassian Jira
(v8.3.4#803005)