We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32a484a commit 24e9373Copy full SHA for 24e9373
1 file changed
parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileReader.java
@@ -1743,8 +1743,12 @@ public OffsetIndex readOffsetIndex(ColumnChunkMetaData column) throws IOExceptio
1743
1744
@Override
1745
public void close() throws IOException {
1746
+ close(true);
1747
+ }
1748
+
1749
+ public void close(boolean closeFileInputStream) throws IOException {
1750
try {
- if (f != null) {
1751
+ if (closeFileInputStream && f != null) {
1752
f.close();
1753
}
1754
} finally {
0 commit comments