You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Kenneth Knowles (JIRA)" <ji...@apache.org> on 2017/08/25 17:20:01 UTC

[jira] [Created] (BEAM-2808) Improve error message when DoFn @ProcessElement has the wrong window type

Kenneth Knowles created BEAM-2808:
-------------------------------------

             Summary: 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
            Priority: Minor


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
(v6.4.14#64029)