Skip to content

Create table properties does not support boolean value #895

@tlegrave

Description

@tlegrave

Apache Iceberg version

main (development)

Please describe the bug 🐞

Hello there,

When creating a table, I can pass properties like bloom filters like so:

catalog.create_table(
    "default.example",
    schema=Schema(
        NestedField(1, "created_at", TimestampType(), required=True)
    ),
    properties={"write.parquet.bloom-filter-enabled.column.material_id": "true"},
)

This gives me the correct configuration for the table:

CREATE TABLE iceberg.default.example (
   created_at timestamp(6) NOT NULL
)
WITH (
   format = 'PARQUET',
   format_version = 2,
   location = 's3://test-bucket/default/example',
   parquet_bloom_filter_columns = ARRAY['material_id']
)

However, if I use a boolean instead of a string in the properties (e.g. {"write.parquet.bloom-filter-enabled.column.material_id": True}, it silently ignores the filter.

CREATE TABLE iceberg.default.example (
   created_at timestamp(6) NOT NULL
)
WITH (
   format = 'PARQUET',
   format_version = 2,
   location = 's3://test-bucket/default/example'
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions