tvalentyn commented on a change in pull request #15667: URL: https://github.com/apache/beam/pull/15667#discussion_r727346468
########## File path: sdks/python/apache_beam/io/textio.py ########## @@ -561,6 +570,7 @@ def __init__( skipped from each source file. Must be 0 or higher. Large number of skipped lines might impact performance. coder (~apache_beam.coders.coders.Coder): Coder used to decode each line. + delimiter (str or bytes): delimiter to split records Review comment: APIs that accept both strings and bytes in the same parameter are strongly discouraged, see, for example: docs.python.org/3/howto/unicode.html#tips-for-writing-unicode-aware-programs. @dmitriikuzinepam would you mind sending a follow-up change to make custom delimiter always bytes and removing the branching in the code? ########## File path: sdks/python/apache_beam/io/textio.py ########## @@ -561,6 +570,7 @@ def __init__( skipped from each source file. Must be 0 or higher. Large number of skipped lines might impact performance. coder (~apache_beam.coders.coders.Coder): Coder used to decode each line. + delimiter (str or bytes): delimiter to split records Review comment: Merged, thank you! -- 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-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org