diff --git a/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileReader.java b/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileReader.java index e9eb61e81d..ee1b5fc06e 100644 --- a/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileReader.java +++ b/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileReader.java @@ -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.