Skip to content

Iceberg ALTER ADD COLUMN does not support Bool/Decimal #2089

Description

@alsugiliazova

Problem

ClickHouse rejects adding a Bool column to an Iceberg table through DataLakeCatalog, although boolean is a valid Iceberg primitive type.

Same issue with Decimal.

Tested with https://altinity-build-artifacts.s3.amazonaws.com/PRs/1841/78d272e18d7641866ac4f4ded573708cf005a3f9/build_arm_release/clickhouse-common-static_26.3.13.20001.altinityantalya_arm64.deb

Reproduction

Create an Iceberg table through a DataLakeCatalog database, then run:

SET allow_insert_into_iceberg = 1;

ALTER TABLE datalake_db.`namespace.table`
ADD COLUMN boolean_col Nullable(Bool);

Actual behavior

Code: 36. DB::Exception: Unsupported type for iceberg Bool.
(BAD_ARGUMENTS)

Expected behavior

The alteration should succeed and add an optional Iceberg boolean field. Existing rows should contain NULL for the new column.

Maybe related to #2029

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions