Skip to content

Iceberg configuration properties 'iceberg.compression-codec description is inaccurate #26261

@PingLiuPing

Description

@PingLiuPing

https://prestodb.github.io/docs/0.294/connector/iceberg.html#configuration-properties

The property iceberg.compression-code says it supports NONE, SNAPPY, GZIP, LZ4, and ZSTD. And also the default file format iceberg.file-format is PARQUET.

But from the code I see ZSTD and LZ4 are not supported for parquet format.

https://github.com/prestodb/presto/blob/master/presto-hive/src/main/java/com/facebook/presto/hive/HiveCompressionCodec.java#L35-L36

presto:iceberg> CREATE TABLE customer ( custkey BIGINT NOT NULL, name VARCHAR(25) NOT NULL, address VARCHAR(40) NOT NULL, nationkey BIGINT NOT NULL, phone VARCHAR(15) NOT NULL, acctbal DECIMAL(12,2) NOT NULL, mktsegment VARCHAR(10) NOT NULL, comment VARCHAR(117) NOT NULL ) WITH (format = 'PARQUET');
Query 20251009_134232_00012_jxfcc failed: Compression codec ZSTD is not supported for Parquet format

Your Environment

  • Presto version used:
  • Storage (HDFS/S3/GCS..):
  • Data source and connector used:
  • Deployment (Cloud or On-prem):
  • Pastebin link to the complete debug logs:

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce

Screenshots (if appropriate)

Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions