You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "cozos (via GitHub)" <gi...@apache.org> on 2023/04/27 06:24:34 UTC

[GitHub] [beam] cozos commented on issue #18121: Allow a DoFn to opt in to mutating it's input

cozos commented on issue #18121:
URL: https://github.com/apache/beam/issues/18121#issuecomment-1524832762

   @kennknowles @francesperry 
   I'm trying to understand this better. So a DoFn does something like this in Python:
   
   ```
   def process(self, element: Dict[str, Any]) -> Iterator[Dict[str, Any]]:
       element["new_key"] = "new_value"
       yield element
   ```
   
   Bad things will happen? Under what conditions? Is this documented anywhere in Beam? I can't find anything here: https://beam.apache.org/documentation/programming-guide/#pardo


-- 
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

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