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
Problem
ClickHouse rejects adding a
Boolcolumn to an Iceberg table throughDataLakeCatalog, 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
DataLakeCatalogdatabase, then run:Actual behavior
Expected behavior
The alteration should succeed and add an optional Iceberg
booleanfield. Existing rows should containNULLfor the new column.Maybe related to #2029