You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 17:13:50 UTC

[GitHub] [beam] damccorm opened a new issue, #20404: Check that DoFn outputs are valid iterables when using the performance runtime type check feature

damccorm opened a new issue, #20404:
URL: https://github.com/apache/beam/issues/20404

   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 accomplishing this using an 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. One possible solution is to only do the isinstance check _if_ the flag is on.
   
    
   
    
   
   Imported from Jira [BEAM-10782](https://issues.apache.org/jira/browse/BEAM-10782). Original Jira may contain additional context.
   Reported by: saavan.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org