damccorm commented on code in PR #36321:
URL: https://github.com/apache/beam/pull/36321#discussion_r2402411470


##########
sdks/python/apache_beam/transforms/util.py:
##########
@@ -518,10 +563,13 @@ def expand(self, pcoll):
       key_coder = coders.registry.get_coder(typehints.Any)
       value_coder = key_coder
 
+    gbk = beam.GroupByKey()
+    gbk._inside_gbek = True
+
     return (
         pcoll
         | beam.ParDo(_EncryptMessage(self._hmac_key, key_coder, value_coder))
-        | beam.GroupByKey()
+        | gbk

Review Comment:
   That's true - that's why I think we should do 
https://github.com/apache/beam/pull/36251#discussion_r2380200051 to permanently 
avoid this problem.
   
   I can follow up with a PR



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to