anishmehta24 opened a new pull request, #40460:
URL: https://github.com/apache/beam/pull/40460
With `escapechar` set, `ReadFromText` skipped a delimiter that comes right
after an escaped one, so `b'a\\\n\nb\n'` read as `['a\\\n\nb']` instead of
`['a\\\n', 'b']` (same with custom delimiters).
`_find_separator_bounds` resumed the search one byte past the escaped
delimiter; it now resumes right after it. Added a test that fails on master;
the `TextSourceTest` tests in `textio_test.py` pass.
fixes #40459
Written with help from Claude.
------------------------
- [x] Mention the appropriate issue in your description (for example:
`addresses #123`), if applicable. This will automatically add a link to the
pull request in the issue. If you would like the issue to automatically close
on merging the pull request, comment `fixes #<ISSUE NUMBER>` instead.
- [x] Update `CHANGES.md` with noteworthy changes.
- [ ] If this contribution is large, please file an Apache [Individual
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
--
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]