You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Brian Hulette (Jira)" <ji...@apache.org> on 2021/10/08 19:56:00 UTC
[jira] [Commented] (BEAM-12960) Error unclear for structural DoFn
[ https://issues.apache.org/jira/browse/BEAM-12960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17426352#comment-17426352 ]
Brian Hulette commented on BEAM-12960:
--------------------------------------
[~lostluck] [~danoliveira] WDYT?
> Error unclear for structural DoFn
> ---------------------------------
>
> Key: BEAM-12960
> URL: https://issues.apache.org/jira/browse/BEAM-12960
> Project: Beam
> Issue Type: Bug
> Components: sdk-go
> Reporter: Andrew Haselgrove
> Priority: P2
>
> I recently received the following error for my structural DoFn: "failed to find ProcessElement method". However, I had implemented ProcessElement - the error was that I failed to take the address of the DoFn struct as the parameter for the ParDo.
> I think this error could be much clearer. Taking a look at the implementation, I see that it somewhat is: [https://github.com/apache/beam/blob/master/sdks/go/pkg/beam/core/graph/fn.go#L154.] However, this error message doesn't match the implementation, which also accepts the struct as-is. I assume the struct is accepted here for other uses of `NewFn` (eg. `RegisterFunction`), as from my example above, for the `ParDo` case, this just goes on to surface a less-clear error deeper in the call chain.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)