Skip to content

[Bug][Go SDK]: Gap in DoFn pre-processing, interface{} in iterator type of DoFn. #23278

@lostluck

Description

@lostluck

What happened?

The contributed parquetio write function has a signature of: parquetWriteFn) ProcessElement(ctx context.Context, _ int, iter func(*interface{}) bool) which is incorrect, as "interface{}" isn't a supported PCollection type.

func (a *parquetWriteFn) ProcessElement(ctx context.Context, _ int, iter func(*interface{}) bool) error {

This should have been caught at pipeline construction time regardless of whether it was registered or not, regardless of the runner used.

The resolution is two fold: Ensure that this kind of signature gets caught at pipeline construction and then also fixing the Parquetio write DoFn to not have this error.

Issue Priority

Priority: 2

Issue Component

Component: sdk-go

Metadata

Metadata

Assignees

Labels

P2bugdone & doneIssue has been reviewed after it was closed for verification, followups, etc.gogood first issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions