[
https://issues.apache.org/jira/browse/BEAM-2808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Oliveira resolved BEAM-2808.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
Forgot to resolve this when it was fixed, but this change was inĀ for 2.2.0.
> Improve error message when DoFn @ProcessElement has the wrong window type
> -------------------------------------------------------------------------
>
> Key: BEAM-2808
> URL: https://issues.apache.org/jira/browse/BEAM-2808
> Project: Beam
> Issue Type: Improvement
> Components: sdk-java-core
> Reporter: Kenneth Knowles
> Assignee: Daniel Oliveira
> Priority: Minor
> Labels: starter
> Fix For: 2.2.0
>
>
> The message today is something like this:
> {code}
> processElement(org.apache.beam.sdk.transforms.DoFn$ProcessContext,org.apache.beam.sdk.transforms.windowing.IntervalWindow)
> expects window type org.apache.beam.sdk.transforms.windowing.IntervalWindow,
> which is not a supertype of actual window type
> org.apache.beam.sdk.transforms.windowing.GlobalWindow
> {code}
> Someone suggested this:
> {code}
> processElement(org.apache.beam.sdk.transforms.DoFn$ProcessContext,org.apache.beam.sdk.transforms.windowing.IntervalWindow)
> unable to provide window -- expects window type
> org.apache.beam.sdk.transforms.windowing.IntervalWindow (from parameter),
> which is not a supertype of actual window type
> org.apache.beam.sdk.transforms.windowing.GlobalWindow (assigned by windowing)
> {code}
> If anyone wants to pick this up and wordsmith it more, strip some of the
> namespaces (where reasonable), etc, that would be great.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)