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

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-java.git


The following commit(s) were added to refs/heads/master by this push:
     new 985c34d26 MINOR: Throw exception in BytesInput (#3042)
985c34d26 is described below

commit 985c34d2639b73d68ca5ed755111f61072cb7d9d
Author: Fokko Driesprong <[email protected]>
AuthorDate: Thu Nov 7 13:09:08 2024 +0100

    MINOR: Throw exception in BytesInput (#3042)
    
    Noticed this while reviewing 
https://github.com/apache/parquet-java/issues/3040
---
 parquet-common/src/main/java/org/apache/parquet/bytes/BytesInput.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/parquet-common/src/main/java/org/apache/parquet/bytes/BytesInput.java 
b/parquet-common/src/main/java/org/apache/parquet/bytes/BytesInput.java
index 25ec5dc86..0e6614074 100644
--- a/parquet-common/src/main/java/org/apache/parquet/bytes/BytesInput.java
+++ b/parquet-common/src/main/java/org/apache/parquet/bytes/BytesInput.java
@@ -389,7 +389,7 @@ public abstract class BytesInput {
         }
         buffer.position(pos + byteCount);
       } catch (IOException e) {
-        new RuntimeException("Exception occurred during reading input stream", 
e);
+        throw new RuntimeException("Exception occurred during reading input 
stream", e);
       }
     }
 

Reply via email to