Skip to content

write.parquet.compression-codec being set even if file-format is not parquet #9490

@oneonestar

Description

@oneonestar

Apache Iceberg version

1.4.3 (latest release)

Query engine

Trino

Please describe the bug 🐞

In Trino 436 (Iceberg 1.4.3), write.parquet.compression-codec property is also being set even if the file-format is not parquet. (trinodb/trino#20401)

I think the problem could be related to
#8593 (comment)

trino> CREATE TABLE test.property_test (c1 integer) WITH (format = 'ORC');
CREATE TABLE
trino> SELECT * FROM test."property_test$properties";
               key               | value
---------------------------------+-------
 write.format.default            | ORC
 write.parquet.compression-codec | zstd
(2 rows)

trino> CREATE TABLE test.property_test (c1 integer) WITH (format = 'AVRO');
CREATE TABLE
trino> SELECT * FROM test."property_test$properties";
               key               | value
---------------------------------+-------
 write.format.default            | AVRO
 write.parquet.compression-codec | zstd
(2 rows)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions