Repository navigation
26.8.39.20001 Altinity Antalya (199f1b4) as compared to v26.6.8.20004-1.altinityantalya (ae6e7493aba42280c92f39c240f6fdd72c0b94d9)
Backward Incompatible Change
- CAS (content-addressed storage) no longer writes a
.metamarker next to every blob: the firstINSERTof new data sends half as manyPUTrequests, and garbage collection leaves nothing behind. Upgrade with care: the pool format changes to generation 4. Stop all servers of a pool, runclickhouse-disks cas-migrate-poolonce, then start the new version; older versions can no longer open the pool. The disk needs rights to create, read, list and delete objects underblob-intents/. (#2917 by @filimonov)
New Features
- Added basic support for Packed parts on CAS disks. (#2579 by @k-morozov)
- Add new Unity catalog implementation with Delta Lake and Iceberg support (ClickHouse#115879 by @scanhex12 via #2607)
- Content-addressed disks rename a committed part with a single ref-log record instead of republishing its manifest. A pool mounted writable by 26.8 can no longer be mounted by 26.6.x: upgrade every server before the first writable mount.
EXPORT PARTandEXPORT PARTITIONwork on CAS disks. (#2647 by @filimonov) - Support reading the Parquet VARIANT type (unshredded, as written for example by Spark 4.0) into the Dynamic type, with objects read as JSON. A variant column can also be read directly as JSON if all its values are objects. Shredded variants are not supported yet. (ClickHouse#117106 by @scanhex12 via #2666)
- Parquet files and Iceberg tables can now store
AggregateFunctionstates andSimpleAggregateFunctioncolumns, and ClickHouse reads them back with their original types. This requires the new settingallow_aggregate_function_states_in_open_formats, disabled by default, which a table takes from its ownSETTINGSor the server's settings, not from the query. (#2680 by @zvonand) - Added ALTER TABLE ... EXECUTE add_files(...) for Iceberg tables to register existing Parquet files into a new snapshot without rewriting them. (#2753 by @subkanthi)
- Use partition statistics from manifest list for pruning. (ClickHouse#115817 by @scanhex12 via #2758)
- Read clustering columns from delta-kernel-rs and use that for data skipping. (#2821 by @subkanthi)
Performance Improvements
- Iceberg file min/max pruning and Parquet row-group and page min/max pruning can now skip a nullable column when its non-null range misses the predicate and SQL NULL cannot make the predicate true.
IS NULL,assumeNotNull, andIN/NOT INwithtransform_null_instill read a chunk that contains NULL. (#2657 by @ianton-ru) - Reading dictionary-encoded Parquet data got faster: the dictionary indexes are now decoded and resolved to values in one fused pass, turning runs of a repeated value into bulk fills instead of per-row gathers (~20% faster scans of dictionary-encoded numeric columns). (ClickHouse#115819 by @alexey-milovidov via #2750)
- Speed up aggregation batches with non-null states (ClickHouse#117009 by @alexey-milovidov via #2755)
- Added the
cas_orphan_manifest_sweep_interval_secsetting to control when a new CAS orphan manifest sweep starts after the previous traversal completes. (#2800 by @k-morozov) - Improve performance of the
encrypt,decryptandtryDecryptfunctions in AES-GCM modes by up to 27x with many threads. (ClickHouse#131001 by @mkmkme via #2901)
Improvements
- Add basic implementation of
DROP PARTITIONfor Iceberg (ClickHouse#111219 by @Diskein via #2533) - Add support for catalog tables, purging data files, mixed manifests, equality deletes, and partition spec evolution for Iceberg
DROP PARTITION. (#2613 by @xieandrew) - Remove sparse transform on export. Should fix #2600 (#2646 by @arthurpassos)
- Added profiles_mapping to the token user directory to map OAuth groups to settings profiles, which take precedence over profiles from roles. (#2664 by @zvonand)
- Support iceberg variant type (ClickHouse#117106, ClickHouse#117198 by @scanhex12 via #2677)
- Replica fetch-by-relink on content-addressed disks is negotiated by a request capability instead of replication protocol version 11, so mixed clusters with upstream builds never misread the number. Loading a Packed part reads the archive index with a small buffer. (#2704 by @filimonov)
- Antalya 26.8: Backport of ClickHouse#115744 - Replace parquet dictionary filter value with sorted hash vector (#2735 by @subkanthi)
- Add the experimental setting
allow_object_storage_cluster_distributed_join. It sends a wholeJOINquery overDataLakecatalog tables to the cluster of its driving table, so that theJOINandGROUP BYrun on the cluster's nodes instead of on the initiator. (#2832 by @VighneshPath) - Reduce the number of S3 requests when reading Iceberg tables by reusing metadata lookups and caching parsed
metadata.jsonfiles: one GET and one LIST instead of three GETs and two LISTs. (ClickHouse#126267 by @scanhex12 via #2873) clickhouse-clientnow clears the values of--jwt,--ssh-key-passphrase,--one-time-passwordand--oauth-client-secretfrom its command line, as it already did for--password, so they are no longer visible inpsand/proc/<pid>/cmdline.clickhouse-keeper-clientnow does the same for--passwordand--identity. Closes ClickHouse#131191. (ClickHouse#131963 by @groeneai via #2885)- CAS (content-addressed storage): garbage collection no longer stalls on a catalog row left by an interrupted cold admission, plans each ref log's stop by exact reads, reads ref logs and their manifests ahead so a round can finish its intake on a remote store under steady writes, and stops its ref intake on request.
cas-fsckandcas-gc-dryrunno longer report false corruption,cas-fsckshows progress per phase and fails when its scan is cut short, andsystem.cas_mounts.server_uuidand the round column of fold events insystem.cas_logshow correct values.gc_snapshot_generations_to_keep = 0is refused and1is loaded as2. S3 reads return their connection to the pool as soon as a fixed-length body is read, and reads of a packed archive member are bounded to the member, which removes most connection resets and extra traffic in merges of wide tables. (#2941 by @filimonov) - Content-addressed storage: each metadata request has its own
cas_request_window_mswindow and retry loops end on a count, so one slow request no longer takes the time of the next.KILL QUERY,max_execution_time,SYSTEM CAS GC STOPand server shutdown now end CAS retries: a killed query stops at the next failed request instead of retrying for the whole window. A retry after a lost conditional write reads the object right before it writes, so concurrent DDL on several replicas of one pool no longer starves a catalog update. (#2970 by @filimonov)
Bug Fixes (user-visible misbehavior in an official stable release)
- Fixed reading Iceberg tables through the
DataLakeCatalogdatabase engine when the catalog reports a column type in a spelling the Iceberg type parser did not know:varbyte(Glue's name for the Icebergbinarytype),list<...>(the Iceberg spelling ofarray<...>, also written by Glue) andtimestamp with local time zone(Hive 3's name for the Icebergtimestamptztype). Such tables were rejected withUnknown Iceberg type. Closes ClickHouse#121850. Closes ClickHouse#87716. (ClickHouse#121974 by @groeneai via #2674) - Fix
_row_idand_last_updated_sequence_numberreturningNULLfor rows of Iceberg data files written before the table was upgraded to format version 3: manifest entries with statusEXISTINGnow inheritfirst_row_idfrom the manifest, as the Iceberg spec requires. (ClickHouse#124598 by @groeneai via #2675) - Fixed a filter on the
Icebergv3 virtual columns_row_idor_last_updated_sequence_numberreturning no rows for a data file rewritten by copy-on-write, when the manifest has statistics for the table columns but not for the row lineage columns. Closes ClickHouse#124271. (ClickHouse#124591 by @groeneai via #2676) - Fix
ALTER TABLE ... DROP PARTITIONfor Iceberg tables. When the parent snapshot was anoverwrite, the command failed withDuplicate key in SnapshotSummary, or it copied the delete counters of the parent snapshot to the new snapshot. (ClickHouse#126023 by @Diskein via #2678) ALTER USER ... ADD IDENTIFIED WITHno longer duplicates methods the user already has. Does not apply to passwords with a random salt (sha256_password,scram_sha256_password,bcrypt_password). Side effect: TOTP secret changes in the users config now apply on reload. (ClickHouse#125443 by @zvonand via #2681)- Iceberg Puffin deletion-vector cache reads are pinned to the listed etag, including when
s3_validate_etag_on_readorazure_validate_etag_on_readis off. A changed object fails the query instead of being applied under the listed offset, length, and cardinality. Cluster reads keep an output-onlyschema_transform. (#2715 by @ianton-ru) - Read Iceberg catalog once during cluster requests. (#2729 by @ianton-ru)
- Fix races in CAS garbage collection that could delete manifests during namespace creation or recreation, causing data loss. (#2730 by @k-morozov)
- Fixes for graceful shutdown (#2759 by @ianton-ru)
- Restore the NOT_IMPLEMENTED error for INSERT into tables on encrypted content-addressed disks. (#2773 by @k-morozov)
- CAS (content-addressed storage): port the antalya-26.6 fixes and improvements merged after the combined port: a blob is adopted only when its marker reads Clean; an object-creating S3 request is never resent; a mount slot is claimed only with a strictly greater epoch and after the holder's declared lease; lease renewal continues until a definitive answer; renewal progress is shown in
system.cas_mounts; nestedserver_root_idvalues are refused; decommission keeps a member's control objects and a decommissioned server root rejoins on start; custom disks are created outsidestorage_policies_mutex; a failed ref-log commit says in its message whether the write is durable, of unknown outcome, or not durable. (#2805 by @filimonov) - Fix wrong condition for direct io on export part/ partition (#2824 by @arthurpassos)
- Fixes several cases where a slow or retried request to a CAS (content-addressed storage) disk could bring back a dropped table's data, lock out a healthy server, or leave garbage behind. Writes to a CAS disk are faster: an
INSERTnow needs 14 object-store requests instead of 25. The mount leasecas_mount_lease_ttl_msdefaults to 40 s, the newcas_request_window_msto 120 s andcas_blob_upload_pool_sizeto 64, and GC rounds are no longer cut short by default. Upgrade with care: once a server with this version writes to a pool, older versions can no longer open it, so stop all older servers of the pool first. (#2831 by @filimonov) - Fix
OPTIMIZE TABLEon an Iceberg table in a Glue catalog silently discarding a commit that another writer made while the compaction was running. The compaction now publishes its result only if Glue still points at the metadata it started from, and otherwise retries on the new snapshot. (#2861 by @subkanthi) - Do not store ClickHouse unsigned integers in narrower Iceberg types (ClickHouse#118596 by @scanhex12) Drops
export_merge_tree_part_allow_lossy_castand allow it by default (#2878 by @arthurpassos) - Fix bug in Iceberg manifest compaction: when ClickHouse compacts manifests and the catalog update fails or the client sees a “commit state unknown” response, it could incorrectly delete manifest files that were already made visible in storage or by the catalog. (#2881 by @subkanthi)
- Fix server startup failure when an Azure Blob Storage disk from the server configuration has an endpoint that is not listed in
remote_url_allow_hosts(since 26.7). Such disks are no longer checked against this list, like S3 disks, also when a data lake table uses one viaSETTINGS disk = .... Disks created bydisk(...)in a query, URLs of table functions and table engines, and redirects are still checked. An existing table on adisk(...)disk whose host is no longer allowed loads with a warning and keeps reading and writing to that host, as for S3 disks; a newdisk(...)with that host is rejected. Closes ClickHouse#124431. (ClickHouse#124721 by @groeneai via #2905) - Fixed
PARTITION BYoffile,urland object storage writes (table functions and table engines) evaluating stateful and non-deterministic functions anew for every block since 26.1:PARTITION BY intDiv(rowNumberInAllBlocks(), N)restarted its counter on every block and wrote rows into the wrong files, andnow64()produced one file per block instead of one perINSERT. Closes ClickHouse#128211. (ClickHouse#128217 by @groeneai via #2910) - Ping unresponsive cluster replicas (#2912 by @ianton-ru)
- Fix a data race when the server loads in parallel several custom disks whose endpoints are not allowed by
remote_url_allow_hosts. (#2939 by @k-morozov) - Fix a failure in tsan stress test (#2963 by @mkmkme)
- CAS disks can commit merges and mutations whose small files together exceed the 16 MiB manifest inline limit by storing the excess contents as blobs. (#2969 by @k-morozov)
- Fixes an issue where
currentDatabase()used as a hybrid table argument would cause anUNKNOWN_TABLEerror on restart (#2972 by @mkmkme)
Build/Testing/Packaging Improvements
- Antalya 26.8 - CI: use the clickhouse/minio-* mirror images (#2430 by @CarlosFelipeOR)
- Added regression coverage for resuming a paused CAS orphan manifest sweep and for preserving sweep cursors when upgrading GC state. (#2954 by @k-morozov)
CI Fixes or Improvements
- Fix assertion error in tests/integration/test_database_glue/test.py (#2869 by @subkanthi)
- Fix cross compiling on Apple (#2882 by @ianton-ru)
- An integration test module no longer fails when a registry is transiently unavailable for an image the job has already fetched.
docker compose pullasks the registry about every service image even when the daemon already has it. The job now exports the references it actually pulled, andClickHouseCluster.startskips the per-module pull only when every image of the project is in that set and still present. The default server image prefetched here isaltinityinfra/integration-test. (#2928 by @strtgbb) - Fix a race in the
FileCacheTest.ReserveUndoneWhenKeyDirectoryCannotBeCreatedunit test that could abort the wholeunit_tests_dbmsrun. (ClickHouse#123176 by @groeneai via #2952)
And ALL changes from previous Antalya releases
Build report
Packages
Available for AMD64, Aarch64 and PowerPC from https://builds.altinity.cloud/#altinityantalya as either .deb, .rpm, or .tgz
Docker images
Available for AMD64 and Aarch64: altinity/clickhouse-server:26.8.39.20001.altinityantalya
Full Changelog: ae6e749...199f1b4