Github user fhueske commented on a diff in the pull request:
https://github.com/apache/incubator-flink/pull/247#discussion_r21409066
--- Diff:
flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java
---
@@ -375,7 +377,7 @@ protected int skipFields(byte[] bytes, int startPos,
int limit, char delim) {
}
else {
// unquoted field
- while (i < limit && bytes[i] != delByte) {
+ while (i <= limit-delim.length &&
!FieldParser.delimiterNext(bytes, i, delim)) {
--- End diff --
The `return (i == limit ? limit : i+1)` statement does not seem to be
right. This case should be checked with a test case.
---
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.
---