Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wankunde committed Dec 21, 2023
1 parent 66c4cd4 commit 99b43b8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -839,10 +839,9 @@ public ParquetFileReader(InputFile file, ParquetReadOptions options, ParquetMeta
this.options = options;
try {
if (footer == null) {
this.footer = readFooter(file, options, f, converter);
} else {
this.footer = footer;
footer = readFooter(file, options, f, converter);
}
this.footer = footer;
} catch (Exception e) {
// In case that reading footer throws an exception in the constructor, the new stream
// should be closed. Otherwise, there's no way to close this outside.
Expand Down

0 comments on commit 99b43b8

Please sign in to comment.