beam icon indicating copy to clipboard operation
beam copied to clipboard

runtime_type_check DoFn wrapper doesn't call setup and teardown

Open damccorm opened this issue 4 years ago • 7 comments

Imported from Jira BEAM-8969. Original Jira may contain additional context. Reported by: robertwb.

damccorm avatar Jun 04 '22 15:06 damccorm

.take-issue

moawnallah avatar Feb 14 '25 01:02 moawnallah

Freeing up my assignment to this good-first-issue so other contributors can jump in if interested! If no one picks it up by then, I'm happy to submit a PR to close it out

moawnallah avatar Oct 30 '25 16:10 moawnallah

.free-issue

moawnallah avatar Oct 30 '25 16:10 moawnallah

.take-issue

rgbuilds avatar Jun 06 '26 02:06 rgbuilds

@damccorm @mohamedawnallah Looks like this was already fixed as part of https://github.com/apache/beam/commit/2f7b68c8ffa, which added methods setup() and teardown() and delegated those functionalities to the wrapped DoFn.

rgbuilds avatar Jun 06 '26 07:06 rgbuilds

.free-issue

rgbuilds avatar Jul 05 '26 02:07 rgbuilds

This looks already fixed on master. AbstractDoFnWrapper now delegates setup() and teardown() (sdks/python/apache_beam/typehints/typecheck.py, ~L71 and ~L83). That came in commit 2f7b68c8ffa ("[BEAM-9398] runtime_type_check: support setup") before the Jira migration, and typecheck_test.py already covers both setup and teardown. Could a maintainer close this?

Brijesh-Thakkar avatar Oct 30 '26 15:10 Brijesh-Thakkar