Skip to content

Commit

Permalink
Parquet: Revert workaround for resource usage with zstd (#7834)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanck committed Jun 14, 2023
1 parent 9130acf commit 4263135
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions parquet/src/main/java/org/apache/iceberg/parquet/Parquet.java
Expand Up @@ -1101,12 +1101,8 @@ public <D> CloseableIterable<D> build() {
conf.unset(property);
}
optionsBuilder = HadoopReadOptions.builder(conf);
// page size not used by decompressors
optionsBuilder.withCodecFactory(new ParquetCodecFactory(conf, 0));
} else {
optionsBuilder = ParquetReadOptions.builder();
// page size not used by decompressors
optionsBuilder.withCodecFactory(new ParquetCodecFactory(new Configuration(), 0));
}

for (Map.Entry<String, String> entry : properties.entrySet()) {
Expand Down
Expand Up @@ -32,8 +32,12 @@

/**
* This class implements a codec factory that is used when reading from Parquet. It adds a
* workaround for memory issues encountered when reading from zstd-compressed files.
* workaround for memory issues encountered when reading from zstd-compressed files. This is no
* longer used, as Parquet 1.13 includes this fix.
*
* @deprecated will be removed in 1.5.0
*/
@Deprecated
public class ParquetCodecFactory extends CodecFactory {

public ParquetCodecFactory(Configuration configuration, int pageSize) {
Expand Down

0 comments on commit 4263135

Please sign in to comment.