boyuanzz commented on a change in pull request #12016: URL: https://github.com/apache/beam/pull/12016#discussion_r447337646
########## File path: sdks/python/apache_beam/transforms/core.py ########## @@ -320,6 +320,22 @@ def split_and_size(self, element, restriction): for part in self.split(element, restriction): yield part, self.restriction_size(element, part) + def truncate(self, element, restriction): Review comment: `restriction_size` is a required API, thus `truncate` is enough here since the caller should be the system. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org