diff --git a/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetInputSplit.java b/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetInputSplit.java index ae9d4cfa42..c08add2ec3 100644 --- a/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetInputSplit.java +++ b/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetInputSplit.java @@ -30,6 +30,7 @@ import java.util.Map; import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; +import com.fasterxml.jackson.annotation.JsonIgnore; import org.apache.hadoop.classification.InterfaceAudience.Private; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.Writable; @@ -55,6 +56,8 @@ public class ParquetInputSplit extends FileSplit implements Writable { private long end; private long[] rowGroupOffsets; + + @JsonIgnore private volatile ParquetMetadata footer; /** diff --git a/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/metadata/ParquetMetadata.java b/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/metadata/ParquetMetadata.java index 0765a5ec4c..cf59fa611e 100755 --- a/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/metadata/ParquetMetadata.java +++ b/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/metadata/ParquetMetadata.java @@ -18,6 +18,7 @@ */ package org.apache.parquet.hadoop.metadata; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.io.StringReader; @@ -85,6 +86,7 @@ public static ParquetMetadata fromJSON(String json) { private final FileMetaData fileMetaData; private final List blocks; + @JsonIgnore private volatile InputFile inputFile; /**