Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 15 tasks
liferoad opened this issue Aug 18, 2023 · 2 comments · Fixed by #32545 or #32591
Closed
1 of 15 tasks

Comments

@liferoad
Copy link
Collaborator

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
@timgrein
Copy link
Contributor

.take-issue

@DKER2
Copy link
Contributor

DKER2 commented Sep 24, 2024

.take-issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment