This is an automated email from the ASF dual-hosted git repository.

ayushsaxena pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 7cd3107a76d HIVE-27392: Use String instead of Long for file length in 
HadoopInputFile. (#4373). (Ayush Saxena, reviewed by Denys Kuzmenko, Steve 
Loughran)
7cd3107a76d is described below

commit 7cd3107a76d633ef5fae2ffb8ec16953ac968092
Author: Ayush Saxena <[email protected]>
AuthorDate: Thu Jun 1 17:55:01 2023 +0530

    HIVE-27392: Use String instead of Long for file length in HadoopInputFile. 
(#4373). (Ayush Saxena, reviewed by Denys Kuzmenko, Steve Loughran)
---
 .../src/main/java/org/apache/iceberg/hadoop/HadoopInputFile.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/iceberg/patched-iceberg-core/src/main/java/org/apache/iceberg/hadoop/HadoopInputFile.java
 
b/iceberg/patched-iceberg-core/src/main/java/org/apache/iceberg/hadoop/HadoopInputFile.java
index bd310b4c265..ee6c1d2ee2b 100644
--- 
a/iceberg/patched-iceberg-core/src/main/java/org/apache/iceberg/hadoop/HadoopInputFile.java
+++ 
b/iceberg/patched-iceberg-core/src/main/java/org/apache/iceberg/hadoop/HadoopInputFile.java
@@ -190,7 +190,7 @@ public class HadoopInputFile implements InputFile, 
NativelyEncryptedFile {
       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(

Reply via email to