Github user fhueske commented on a diff in the pull request:
https://github.com/apache/flink/pull/566#discussion_r29147205
--- Diff:
flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java ---
@@ -38,19 +38,28 @@ public int parseField(byte[] bytes, int startPos, int
limit, byte[] delimiter, I
final int delimLimit = limit-delimiter.length+1;
+ if (bytes.length == 0) {
--- End diff --
I see. This is probably because an empty test string causes the test to
call the parser with an 0-length array.
We could add a dedicated `testEmptyField` test method to the
`ParserTestBase` and remove the empty Strings from the set of invalid inputs.
---
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.
---