GitHub user fhueske opened a pull request:

    https://github.com/apache/flink/pull/4088

    [FLINK-6652] [core] Fix handling of delimiters split by buffers in 
DelimitedInputFormat

    This PR fixes a bug introduced by fix FLINK-5771 / PR #3316. That fix 
resets the read position if a character sequence matches a prefix of a multi 
char delimiter. This will yield an `IndexOutOfBoundsException` if prefix spans 
the boundaries of the read buffer.
    
    This fix moves the prefix of the multi char delimiter to the beginning of 
the read buffer if the read buffer was completely read. In case the read 
position has to be reset, the prefix is still in the read buffer and can be 
parsed again.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fhueske/flink fixDelimIF

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/4088.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4088
    
----
commit 740a2f42788e1cb957ab1e79b9b67dcfb06b875d
Author: Fabian Hueske <[email protected]>
Date:   2017-06-07T21:01:06Z

    [FLINK-6652] [core] Fix handling of delimiters split by buffers in 
DelimitedInputFormat

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to