Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
[TRAFODION-3171] Refactor Hive sequence file reading to use the new i…
Browse files Browse the repository at this point in the history
…mplementation

Fix to resolve the issue highlighted in the review comment
  • Loading branch information
selvaganesang committed Aug 3, 2018
1 parent 6165e6b commit abbfe85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/sql/src/main/java/org/trafodion/sql/HDFSClient.java
Expand Up @@ -280,7 +280,7 @@ int sequenceFileRead(int readLenRemain) throws IOException
}
byteArray = ((Text)value_).getBytes();
readLen = ((Text)value_).getLength();
if (readLen <= lenRemain) {
if ((readLen+1) <= lenRemain) {

buf_.put(byteArray, 0, readLen);
buf_.put(recDelimiter_);
Expand Down

0 comments on commit abbfe85

Please sign in to comment.