ClickHouse 26.9.31.21 → 26.10.2.103
6 releases · 3 breaking changes · 1 security fix · 0 advisories fixed
1security3breaking0deprecated40feature30fix
Breaking changes
- breaking Backported in: CREATE TABLE x AS src inherits the credentials embedded in the engine of src, which are masked in SHOW CREATE TABLE. It now requires the SELECT privilege on src when the inherited definition can carry credentials, instead of only SHOW COLUMNS. (Yarik Briukhovetskyi). in 26.10.2.103
- breaking Backported in: CREATE HANDLER, ALTER HANDLER, DROP HANDLER and SHOW HANDLERS now form the new HANDLER ADMIN privilege group and are no longer part of the CREATE, ALTER and DROP groups. Previously GRANT CREATE ON .* or GRANT ALTER ON *. was enough to define or rewrite an HTTP handler, whose query… in 26.9.35.9
- breaking Backported in: Removing data parts from a disk with metadata_type = plain_rewritable (cleanup of outdated parts, TRUNCATE, DROP PARTITION, DROP TABLE) no longer copies every file of the part to a temporary object before deleting it, and no longer holds the disk metadata lock for those copies. The… in 26.9.33.10
Security changes
- security Update arrow and parquet Rust crates used by Delta Lake support to 58.4.1 (CVE-2026-111959), and chdig to v26.11.1. (Konstantin Bogdanov). in 26.9.34.16
Every release in between
breakingBackported in: CREATE TABLE x AS src inherits the credentials embedded in the engine of src, which are masked in SHOW CREATE TABLE. It now requires the SELECT privilege on src when the inherited definition can carry credentials, instead of only SHOW COLUMNS. (Yarik Briukhovetskyi).
featureBackported in: Added the experimental Elasticsearch table engine and elasticsearch table function for reading documents from an Elasticsearch index as a JSON column, with the document id and index name available as virtual columns. Enable them with the enable_elasticsearch setting. (Kirill Kopnev).
featureThe setting use_query_condition_cache_for_time_conditions (using the query condition cache for conditions involving the current time) is now experimental and disabled by default. (Alexey Milovidov).
featureBackported in: Column statistics of MergeTree data parts are cached per data part and column in a new statistics cache (server settings statistics_cache_size, statistics_cache_policy, statistics_cache_size_ratio; SYSTEM DROP STATISTICS CACHE), loaded on demand and merged on the fly for every…
featureBackported in: Lazy materialization now works for LIMIT N queries over JOINs. Controlled by the new setting query_plan_lazy_materialization_for_join, enabled by default. . (Nikolai Kochetov).
featureBackported in: Sets of IN with a subquery spill to disk by default: max_bytes_ratio_before_external_set now defaults to 0.5, so a set spills once query memory exceeds half of the memory that the server or user memory limits leave. Set it to 0 to keep such sets in memory. Sets on disk are built and…
featureBackported in: Estimating subcolumn sizes for PREWHERE (for example m['key'] of a Map(LowCardinality(String), String) column) no longer reads the LowCardinality dictionary or the Variant discriminators header of every data part, which made planning slow on object storage, especially for each new…
featureBackported in: Improved automatic_parallel_replicas observability by adding outcome-specific ProfileEvents, split optimization/plan-build timing counters, and runtime statistics-collection timing in query_log. (Nikita Taranov).
featureBackported in: Queries with FINAL now use the virtual row optimization of reading in order. Supported for ReplacingMergeTree, CollapsingMergeTree, VersionedCollapsingMergeTree, SummingMergeTree, AggregatingMergeTree and CoalescingMergeTree. (Vladimir Cherkasov).
featureBackported in: Reduced the memory usage of incremental BACKUP: the base backup keeps only the sizes and checksums of its files instead of the full information about each file. For a base backup of millions of files this saves gigabytes. (Julia Kartseva).
featureBackported in: Compare TOTP codes and plaintext_password passwords in constant time, so that the response time does not depend on how many leading characters are correct or on which time window matched. (Vladimir Cherkasov).
featureBackported in: A replica that takes part in a parallel replicas read now follows the initiator even when its own automatic_parallel_replicas_mode is not 0, for example when allow_feature_tier drops the value the initiator sends, or when INSERT ... SETTINGS automatic_parallel_replicas_mode = 2…
featureBackported in: The "Format" button in the Web UI now supports inputs with multiple queries: each query is formatted separately and replaced in place, keeping the comments and delimiters between them. (Alexey Milovidov).
featureBackported in: Automatic parallel replicas settings (automatic_parallel_replicas_mode, automatic_parallel_replicas_min_bytes_per_replica) are now production tier instead of experimental. (Nikita Taranov).
featureBackported in: The nodes in the output of EXPLAIN AST graph = 1 are numbered sequentially instead of being identified by memory addresses, so the output is the same on every run. (Raúl Marín).
featureBackported in: Fatal error reports no longer contain runtime memory addresses: stack frames and the fault address are printed as offsets inside the executable or a library, which can be passed to addr2line, and other addresses are hidden. system.crash_log.fault_address now contains the offset…
featureBackported in: A JOIN whose ON condition has a constant-false conjunct now works with the experimental parallel_replicas_plan_based setting when the join uses grace_hash, spills to disk, or runs with join_use_nulls = 1, instead of terminating the server or failing with NOT_FOUND_COLUMN_IN_BLOCK.…
featureBackported in: Fix a possible crash or out-of-bounds memory access when reading from HDFS if a DataNode or NameNode sends malformed responses. (Alexey Milovidov).
featureBackported in: Adds a minimum threshold for spilling in-memory data when external aggregation is enabled. (Mikhail Artemenko).
featureBackported in: System tables no longer contain runtime memory addresses: stack frames outside the main binary are stored as 0, system.trace_log.ptr is an identifier instead of an address, and the ids in system.processors_profile_log are indices within the query. (Raúl Marín).
featureBackported in: Improve glue catalog cache. Let's cache only mapping column name -> timestamp, not the whole metadata. (Konstantin Vedernikov).
featureBackported in: The obfuscate table function and the clickhouse obfuscator tool now support LowCardinality, Enum, Date32, DateTime64, Decimal, wide integers, IPv4, IPv6, BFloat16, Tuple and Map columns. The exception for an unsupported type now names the type and the column. (Alexey Milovidov).
featureBackported in: Hardening: certificate chains containing the compromised eMudhra intermediate CAs or the roots that issued them (emSign Root TLS CA - G3, emSign ECC Root CA - G3) are rejected even if the trust store of the operating system still trusts them. The CA certificates embedded into the…
featureBackported in: This patch supports writeFileUsingBlobWritingFunction for disks with multiple configured locations. (Mikhail Artemenko).
featureNO CL ENTRY: 'Revert "Backport to 26.10: Lower Bound External Group By Spill"'. (Mikhail Artemenko).
featureBackported in: Make 03673_columns_description_cache and 04257_102926_columns_descriptions_cache_nested_eviction robust to asynchronous part removal, applying the fix already made to their sibling 04510_shared_part_schema_metadata_eviction. (Groene AI).
featureBackported in: Query cache: do not store a partial subquery result. (Konstantin Bogdanov).
featureBackported in: Rewrite arrayJoin(emptyArrayToSingle(x)) -> LEFT ARRAY JOIN x. (Yarik Briukhovetskyi).
featureBackported in: Fix h3CellAreaM2/h3CellAreaRads2 precision loss for cells crossing the antimeridian. (Konstantin Bogdanov).
featureBackported in: Fix flaky integration test test_prometheus_protocols/test_evaluation.py::test_multiple_instant_vectors, which compared the series of an instant vector in a fixed order. (Groene AI).
featureBackported in: Use node ids instead of addresses in pipeline diagnostics. (Raúl Marín).
featureBackported in: Exit early in sliceContains for short and early-hit searches. (Raúl Marín).
featureBackported in: Fix Broken pipe in test 05345_robin_hood_large_hash_tables. (Alexey Milovidov).
featureBackported in: Lazily replicated ARRAY JOIN passenger columns hold only the rows of their output block again, so materialized views, max_result_bytes and squashing size ARRAY JOIN output correctly. (Groene AI).
featureBackported in: With distributed_plan_join_runtime_filters, a runtime filter that is no longer needed by its receiver no longer produces EXCHANGE_PEER_DISCONNECTED errors in system.errors and in the log. (Alexander Gololobov).
featureBackported in: Rename integer division setting to sql_compatible_division_for_integers. (Ilya Yatsishin).
featureBackported in: Revert "SLRU filesystem cache: promote partially downloaded file segments". (Sema Checherinda).
featureBackported in: Pin the old server image of test_custom_s3_disk_remote_url_allow_hosts to 26.8.26.12. (Groene AI).
featureBackported in: Decline automatic parallel replicas when the coordinated read gets another read's analysis. (Nikita Taranov).
featureBackported in: Keep the sliceContains block loop independent of the first-vector test on AArch64. (Groene AI).
+61 more items in the release notesfixBackported in: Fixed a server crash and wrong results of a JOIN onto a COMPLEX_KEY_DIRECT or COMPLEX_KEY_CACHE dictionary when the left join key is a constant (for example SELECT 'a' AS k), comes out of an ARRAY JOIN, or is stored with sparse serialization. (Groene AI).
otherBackported in: This patch changes the isRemote outcome for DiskObjectStorage over local object storage and improves local paths check for complex disks. (Mikhail Artemenko).
breakingBackported in: CREATE HANDLER, ALTER HANDLER, DROP HANDLER and SHOW HANDLERS now form the new HANDLER ADMIN privilege group and are no longer part of the CREATE, ALTER and DROP groups. Previously GRANT CREATE ON .* or GRANT ALTER ON *. was enough to define or rewrite an HTTP handler, whose query…
fixBackported in: Fix NOT_FOUND_COLUMN_IN_BLOCK and wrong results when a GROUP BY key is used inside an if chain with optimize_if_chain_to_multiif = 1, or is a tuple used in ORDER BY (for example if(1, tuple(a), tuple(0)) AS k ... GROUP BY k ORDER BY k). With group_by_use_nulls = 1, such an if key…
fixBackported in: Pad the buffer an Azure read owns with PADDING_FOR_SIMD. (Azat Khuzhin).
fixBackported in: Fixed filtered WRITE grants (such as GRANT WRITE ON S3('')) being bypassed by INSERT INTO FUNCTION into url, s3, azureBlobStorage and hdfs. Previously only the URI as typed was checked, so a PARTITION BY value like ../other/x, or a file renamed by s3_create_new_file_on_insert, could…
fixBackported in: Fix a possible crash of the RabbitMQ table engine when the broker confirms a message with an unknown delivery tag. (Alexey Milovidov).
fixBackported in: Fix a crash (double free) when an allocation failed, e.g. because of the memory limit, while an aggregate function used as a window function moved to a new partition or frame, or while an aggregate function with the -ArgMin / -ArgMax combinator reset its state for a new extreme…
otherBackported in: Retry the forced kill in the integration cluster shutdown. (Groene AI).
otherBackported in: Not required. (Groene AI).
fixBackported in: Fix cubic complexity of enumerating subcolumns of deeply nested Array types. (Alexey Milovidov).
otherBackported in: Parsing row-based input formats and Native into tables with nested Tuple columns is faster for small blocks (streaming engines, async inserts): the per-block columns are now created once per nested element instead of once per nesting level. Closes. (Groene AI).
featureBackported in: Add AI function request time, retry backoff time, and prompt-cache token counts to ProfileEvents. Include cached Anthropic input tokens in total input usage and query quotas. (Ravi Kumar L).
fixBackported in: Fixed projections returning rows removed by a lightweight DELETE after ALTER UPDATE, MATERIALIZE PROJECTION or CLEAR COLUMN rebuilt them on a Wide part. A query with apply_deleted_mask = 0 no longer uses projections when the table has lightweight-deleted rows, since projections do…
fixBackported in: Fixed NOT_FOUND_COLUMN_IN_BLOCK for a constant-condition if/multiIf GROUP BY key reused through an alias with enable_identifier_resolve_cache (default since 26.6) or read back under group_by_use_nulls, lost grouping sets when such a key collapses to another key, a Bad cast logical…
fixBackported in: Check access rights before loading a dictionary or reading its definition in the dictionary table function, dictGet-family functions, naiveBayesClassifier, Dictionary tables and CREATE TABLE ... ENGINE = Dictionary. Queries without the required grants no longer trigger the…
fixBackported in: Fixed a filtered source grant (e.g. GRANT WRITE ON S3('https://bucket/allowed/.')) authorizing a location outside the filter. BACKUP/RESTORE and table functions like s3, url and azureBlobStorage with ./.. or empty path segments, a fragment, escapes that change the name, a query in…
fixBackported in: Fixed CREATE WORKLOAD, DROP WORKLOAD, CREATE RESOURCE and DROP RESOURCE with workload_zookeeper_path overwriting definitions written by other replicas when the query was the first to use a renewed Keeper session. (Groene AI).
fixBackported in: Fix out-of-bounds memory access with an aggregate state containing a JSON value with a repeated path. Now such a state is rejected with INCORRECT_DATA. (Alexey Milovidov).
fixBackported in: The /binary web UI now displays the symbol name and source line in the popup as text instead of interpreting the server response as HTML. (Alexey Milovidov).
fixBackported in: Fix a crash in the Arrow and ArrowStream input formats when a requested type changed how a nested field was decoded while another requested column read that field with a type that does not describe it: a struct column together with a dotted subcolumn of it, such as t String, "t.s"…
fixBackported in: Fixed a memory leak in queries answered by _minmax_count_projection that compute min or max of a Tuple, Array or FixedString primary key or partition column: every part read leaked one aggregate state. (Groene AI).
fixThe url of an HTTP dictionary source is hidden in SHOW CREATE, system.tables and the query log, and its userinfo in system.dictionaries. (George Larionov).
otherBackported in: Update postgres to 18.6. (Actuele AI).
securityUpdate arrow and parquet Rust crates used by Delta Lake support to 58.4.1 (CVE-2026-111959), and chdig to v26.11.1. (Konstantin Bogdanov).
breakingBackported in: Removing data parts from a disk with metadata_type = plain_rewritable (cleanup of outdated parts, TRUNCATE, DROP PARTITION, DROP TABLE) no longer copies every file of the part to a temporary object before deleting it, and no longer holds the disk metadata lock for those copies. The…
otherBackported in: Credentials in the URL of a url wildcard expanded from HTTP index pages (allow_url_wildcard_from_index_pages), or of a web_index disk, are now masked in the errors about an index page redirected to a different origin and about an index page over max_http_index_page_size. (Groene AI).
fixBackported in: ATTACH TABLE ... AS REPLICATED and ATTACH TABLE ... AS NOT REPLICATED now check the TABLE ENGINE grant on the engine the table is converted to before changing anything. Previously a query refused for this grant had already rewritten the stored definition of the detached table, so a…
fixBackported in: When http_forbid_headers forbids Authorization, Basic credentials that would be sent in that header are now refused too: the userinfo of url, urlCluster and URL table URLs (including url wildcards and web disks), credentials of HTTP dictionaries created by DDL, the userinfo of…
fixBackported in: Fix server termination when outdated data parts cannot be scheduled for loading, e.g. when the global thread pool is exhausted. (Nikolay Degterinsky).
fixBackported in: Fixed a type confusion (possible crash or out-of-bounds read) triggered by a client sending a column with a Sparse or Replicated serialization kind, or a Tuple with a Replicated element, in data over the native protocol. (Vladimir Cherkasov).
fixBackported in: Fixed parsing of decimal text with an exponent close to the Int32 limits: values such as 1e2147483647 were read as 0 instead of being rejected as too big. (Alexey Milovidov).
fixBackported in: The URL ... is not allowed in configuration file, see error now shows only the host and port of the URL, so secrets in its path or query string are no longer exposed. (George Larionov).
otherBackported in: Update wasmtime to v50.0.1. (Konstantin Bogdanov).
fixBackported in: Prevent impersonation via forged SECONDARY_QUERY on secret clusters. (Vitaly Baranov).
fixBackported in: Projections no longer provide _block_number, _block_offset and _row_exists unless they store them, so queries reading these columns use the main table. Previously the values came from the projection part, which caused wrong results and made incremental refreshable materialized views…
fixBackported in: The error of AI functions for an insecure endpoint no longer contains the endpoint of the named collection, which could carry a secret not visible to the user. (George Larionov).
fixBackported in: Fix a possible out-of-bounds read in the Parquet reader when PREWHERE filters out a whole page of a PLAIN-encoded string column read through a conversion (e.g. to Geometry). (Alexey Milovidov).
fixBackported in: SYSTEM SYNC DATABASE REPLICA without ON CLUSTER now requires the SYSTEM SYNC DATABASE REPLICA grant on the database. Before, any user could run it. (Lazizbek Ergashev).
fixBackported in: Fix an asynchronous INSERT ... FROM INFILE sent directly to the server opening the file on the server before the query was rejected. (Sema Checherinda).
fixBackported in: Fix a server crash when deserializing a malformed aggregate state that contains a LowCardinality(String) value. (Raúl Marín).