You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Saavan Nanavati (Jira)" <ji...@apache.org> on 2020/08/21 00:45:00 UTC
[jira] [Created] (BEAM-10782) Check that outputs are valid
iterables when using the performance runtime type check feature
Saavan Nanavati created BEAM-10782:
--------------------------------------
Summary: Check that outputs are valid iterables when using the performance runtime type check feature
Key: BEAM-10782
URL: https://issues.apache.org/jira/browse/BEAM-10782
Project: Beam
Issue Type: Improvement
Components: sdk-py-core
Reporter: Saavan Nanavati
Currently, when using the performance runtime type check feature, you can yield invalid iterables from a DoFn and not have an error thrown. This is incorrect behavior.
We should throw a TypeCheckError if the iterable type is any of the following: dict, str, unicode, or bytes.
Previously, we tried doing this isinstance check in process_outputs of common.py, however this harms performance significantly. We should search for a cheaper way to verify that the output type is valid.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)