GitHub user sunjincheng121 opened a pull request: https://github.com/apache/flink/pull/5218
[FLINK-8331][core] FieldParser do not correctly set EMPT_COLUMN error state. *Thank you very much for contributing to Apache Flink - we are happy that you want to help us improve Flink. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.* *Please understand that we do not do this to make contributions to Flink a hassle. In order to uphold a high standard of quality for code contributions, while at the same time managing a large number of contributions, we need contributors to prepare the contributions well, and give reviewers enough contextual information for the review. Please also understand that contributions that do not follow this guide will take longer to review and thus typically be picked up with lower priority by the community.* ## What is the purpose of the change *(In this PR fixed FieldParser do not correctly set EMPT_COLUMN error state bug, i.e. All FieldParser correctly return the EMPTY_COLUMN error state in case of an empty field.)* ## Brief change log - *Change `nextStringEndPos` method set EMPT_COLUMN error state logic. ## Verifying this change This change added tests and can be verified as follows: - *Add a `testNextStringEndPos` test case in `FieldParserTest`.* - *Add a `testNullValueWithoutTrailingDelimiter` test casle in `RowCsvInputFormatTest`* ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no) - The serializers: (no) - The runtime per-record code paths (performance sensitive): (no) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no) - The S3 file system connector: (no) ## Documentation - Does this pull request introduce a new feature? (no) You can merge this pull request into a Git repository by running: $ git pull https://github.com/sunjincheng121/flink FLINK-8331-PR Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/5218.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 #5218 ---- commit 32d22ab681c5292d23818012242a16db0a2d1a8e Author: é竹 <jincheng.sunjc@...> Date: 2017-12-30T03:10:18Z [FLINK-8331][core] fix FieldParser do not correctly set EMPT_COLUMN error state bug ---- ---