flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fhueske <...@git.apache.org>
Subject [GitHub] flink pull request #5218: [FLINK-8331][core] FieldParser do not correctly se...
Date Thu, 04 Jan 2018 16:14:45 GMT
Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5218#discussion_r159691114
  
    --- Diff: flink-core/src/main/java/org/apache/flink/types/parser/StringParser.java ---
    @@ -42,6 +42,12 @@ public void enableQuotedStringParsing(byte quoteCharacter) {
     	@Override
     	public int parseField(byte[] bytes, int startPos, int limit, byte[] delimiter, String
reusable) {
     
    +		if (startPos == limit) {
    +			setErrorState(ParseErrorState.EMPTY_COLUMN);
    +			this.result = new String(bytes, startPos, limit - startPos, getCharset());
    --- End diff --
    
    We can also remove the condition in line 93.


---

Mime
View raw message