Skip to content

[Feature Request]: Issue the warning messages when the process method in DoFn does not return anything #28061

@liferoad

Description

@liferoad

What would you like to happen?

When creating a DoFn, if the process method returns None, we can issue a warning, such as no iterator is returned by the process method in DoFn. This could help users debug whether returning None is expected. Possible code changes could be in _check_fn_use_yield_and_return from https://github.com/apache/beam/blob/master/sdks/python/apache_beam/transforms/core.py.

Issue Priority

Priority: 3 (nice-to-have improvement)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions