Skip to content

Commit

Permalink
HIVE-27392: Use String instead of Long for file length in HadoopInput…
Browse files Browse the repository at this point in the history
…File. (apache#4373). (Ayush Saxena, reviewed by Denys Kuzmenko, Steve Loughran)
  • Loading branch information
ayushtkn authored and tarak271 committed Dec 19, 2023
1 parent b63d492 commit 7f04de6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public SeekableInputStream newStream() {
FutureDataInputStreamBuilder fsBuilder = fs.openFile(path);
if (length != null) {
LOG.debug("Using fs.option.openfile.length as {} for {}", length, location);
fsBuilder.opt("fs.option.openfile.length", length);
fsBuilder.opt("fs.option.openfile.length", Long.toString(length));
}
LOG.debug("Explicitly using fs.s3a.experimental.input.fadvise as normal for {}", location);
return HadoopStreams.wrap(
Expand Down

0 comments on commit 7f04de6

Please sign in to comment.