ClickHouse 26.10.7.24 → 26.11.7.10
20 releases · 41 breaking changes · 2 security fixes · 0 advisories fixed
2security41breaking0deprecated7feature143fix
Breaking changes
- breaking Removed the per-query filesystem cache write limit, which capped how much a single query could write into one filesystem cache. Its accounting never reflected what a query had actually written, and it cost a second priority queue per query on the cache reservation hot path. The settings… in 26.11.1.2942
- breaking hash and parallel_hash are now one join implementation. parallel_hash is an obsolete alias of hash: it is removed from the default join_algorithm, still accepted, and reads back as hash. A hash join now picks its layout from parallel_hash_join_threshold and the estimated size of the right table,… in 26.11.1.2942
- breaking By default (when --path is not specified), clickhouse-local now stores its data in a designated directory inside the home directory ($XDG_DATA_HOME/clickhouse-local or ~/.local/share/clickhouse-local on Linux, ~/Library/Application Support/clickhouse-local on macOS), so the data survives between… in 26.11.1.2942
- breaking Reading the columns of system.tables that describe a table's schema requires the SHOW COLUMNS privilege on that table, the same privilege DESCRIBE and SHOW CREATE TABLE require: create_table_query, engine_full, as_select, partition_key, sorting_key, primary_key, sampling_key, unique_key,… in 26.11.1.2942
- breaking extractGroups now rejects a regular expression with more than 127 capturing groups, the same limit extractAllGroupsHorizontal and extractAllGroupsVertical have always enforced. A pattern with 128 or more capturing groups that previously returned results now throws BAD_ARGUMENTS. In the Kusto… in 26.11.1.2942
- breaking 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. (Yaroslav Briukhovetskyi). in 26.11.1.2942
- breaking LOCAL between a table and a join, as in SELECT * FROM a LOCAL JOIN b ON a.k = b.k, is now parsed as the join locality qualifier, like GLOBAL, instead of being silently taken as an implicit alias of a. A query that relies on such an implicit local alias, for example SELECT * FROM t local JOIN u ON… in 26.11.1.2942
- breaking Azure Blob Storage access from user SQL no longer uses the server's own workload or managed identity unless allow_server_credentials_in_user_queries (formerly s3_allow_server_credentials_in_user_queries) is enabled; provide explicit credentials instead: account_name and account_key, a connection… in 26.11.1.2942
- breaking The function toStartOfInterval (and its aliases time_bucket and date_bin) now returns a value of the same type as its argument (Date, Date32, DateTime, or DateTime64 with the same scale) instead of a type determined by the interval unit, which wrapped values outside the range of Date and DateTime.… in 26.11.1.2942
- breaking CREATE TABLE and ALTER TABLE now reject an alias in PARTITION BY, PRIMARY KEY, ORDER BY, UNIQUE KEY, SAMPLE BY, the table and column TTL, skip index (also via an ALIAS column it uses) and constraint expressions with BAD_ARGUMENTS; write the expression without the alias. Such an alias was accepted… in 26.11.1.2942
- breaking A writable disk with table_disk = true now holds the data of only one table: creating or attaching another table on the same path of the same storage, or on a path inside or above it, throws BAD_ARGUMENTS; tables over a read-only disk on that path are still allowed. Previously such tables returned… in 26.11.1.2942
- breaking A filesystem cache with the SLRU policy (the default) now requires max_file_segment_size <= max_size * min(slru_size_ratio, 1 - slru_size_ratio) (of each part with use_split_cache), so that a file segment fits whole into each SLRU queue. With the default settings, a cache smaller than 80 MiB must… in 26.11.1.2942
- breaking kill_throw_if_noop now defaults to true. A compatibility level below 26.11 keeps the previous default. (Ye Yuan). in 26.11.1.2942
- breaking Iceberg time columns read from Parquet data files are now returned as microseconds since midnight, as documented, instead of whole seconds. The value now agrees with the manifest statistics and partition values, so WHERE on such a column no longer misses rows and the unit no longer depends on the… in 26.11.1.2942
- breaking The enable_hard_links setting of disks with the plain_rewritable metadata is enabled by default, so ALTER operations and mutations of MergeTree tables are supported on such disks. After the first hard link is created on a disk (by a mutation, an ALTER, a FREEZE or a backup), the disk is not… in 26.11.1.2942
- breaking icebergTruncate now returns UInt64 for a UInt64 value; previously it returned Int64, so results of 2^63 and more came back negative, also as MergeTree partition IDs. It is also no longer treated as monotonic for Int64, whose lowest values wrap around, so filters on its argument no longer skip… in 26.11.1.2942
- breaking parseDateTime now rejects ISO week 53 for ISO week-years that have only 52 weeks, instead of silently normalizing those dates into the following calendar year. (Henry Su). in 26.11.1.2942
- breaking A vector_similarity index now rejects hnsw_max_connections_per_layer greater than 512 and hnsw_candidate_list_size_for_construction greater than 3200, because building an index with a huge hnsw_max_connections_per_layer could get the server killed by the OOM killer. Existing tables with larger… in 26.11.1.2942
- breaking INSERT ... FROM INFILE in clickhouse-client and clickhouse-local inserts only the data from the file and no longer also inserts the data piped to stdin. This also fixes the query waiting for an open stdin pipe to close. (Jay Pokale). in 26.11.1.2942
- breaking An INSERT into a non-empty file through the File table engine or the file table function now fails with CANNOT_APPEND_TO_FILE for JSONCompact, JSONCompactStrings, ProtobufList, ProtobufSingle, for JSONEachRow and its aliases with output_format_json_array_of_rows = 1, for Template with a non-empty… in 26.11.1.2942
- breaking Tables with the S3, AzureBlobStorage, HDFS and data lake engines take format settings (e.g. format_csv_delimiter) from the server's settings and the table's SETTINGS clause, as File and URL do, and no longer from the session that creates them. Before, the session's values applied only until the… in 26.11.1.2942
- breaking Added the AI FUNCTIONS privilege group and per-function privileges (aiGenerate, aiEmbed, etc.) that control who can call AI functions, e.g. GRANT AI FUNCTIONS ON .* TO role or GRANT aiGenerate, aiClassify ON *. TO role. Calling an AI function now requires its privilege in addition to NAMED… in 26.11.1.2942
- breaking Removed the experimental functions detectCharset and detectLanguageUnknown, because the data they relied on has an unknown license. Use detectLanguage for language detection. (Alexey Milovidov). in 26.11.1.2942
- breaking Setting after_processing_move_uri or after_processing_move_connection_string of an S3Queue or AzureQueue table now requires WRITE ON S3 for the destination URL (or WRITE ON AZURE), and ALTER TABLE ... MODIFY SETTING also requires SELECT on the table. Before, the ALTER SETTINGS grant was enough.… in 26.11.1.2942
- breaking REVOKE ON ('') now revokes only the grant with exactly this source filter. Previously, it revoked all grants of the privilege on the source, including other filters or the grant without a filter. To revoke everything on a source, use REVOKE ON without a filter. Revoking a filter that produces a… in 26.11.1.2942
- breaking A storage policy can no longer contain two disks that store data in the same directory, such as several cache disks over one disk, a cache disk together with the disk it wraps, or an encrypted disk without its own path over one of them. Such a policy makes every storage policy lookup fail with… in 26.11.1.2942
- breaking The install script (curl https://clickhouse.com/ | sh) now downloads the newest release branch instead of master. To get the master build as before, run curl https://clickhouse.com/ | CLICKHOUSE_BRANCH=master sh. CLICKHOUSE_BRANCH also accepts a branch such as 26.9. (Alexei Fedotov). in 26.11.1.2942
- breaking The compression method of file (the explicit argument or the one detected from the file name) now applies to a file inside an archive, like for a plain file, e.g. file('a.tar :: data.json.gz') is decompressed. Previously the argument was ignored for archives, so file('x.tar.gz :: a.csv', CSV,… in 26.11.1.2942
- breaking The legacy Delta Lake reader was removed, and Delta Lake tables are always read with delta-kernel-rs. The setting allow_delta_kernel_rs (allow_experimental_delta_kernel_rs) is obsolete and has no effect. Delta Lake tables on GCS that rely on http_client = 'gcp_oauth' and Azure blobs with a leading… in 26.11.1.2942
- breaking 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 runs with the… in 26.11.1.2942
- breaking Servers older than 23.3 can no longer exchange distributed queries with newer servers over a cluster with a : the legacy interserver mode without a nonce has been removed. (Raúl Marín). in 26.11.1.2942
- breaking The max_distributed_connections setting no longer accepts 0. Setting it to 0 in a query, a session or a settings profile now fails with BAD_ARGUMENTS, and a server whose users configuration sets it to 0 in a profile does not start (CANNOT_LOAD_CONFIG); use 1 instead. Background inserts into a… in 26.11.1.2942
- breaking Floating-point values with magnitude 2^63 or more are now converted exactly to Int128, UInt128, Int256, UInt256, Decimal128 and Decimal256, and the result is the same on every platform. Previously, for example, toInt128(1e20) returned 100000000000000000003, accurateCast(1e20, 'Int128') threw an… in 26.11.1.2942
- breaking Setting count_distinct_optimization is obsolete and has no effect. It rewrote count(DISTINCT x) into count() over a GROUP BY x subquery, which is no longer faster than the radix partitioned uniqExact used for count(DISTINCT x) without GROUP BY (optimize_uniq_exact_radix_partitioning). (Raúl Marín). in 26.11.1.2942
- breaking ClickHouse refuses to start if shared objects are injected into its process with /etc/ld.so.preload, ld.so --preload, or auditing libraries. Previously only the LD_PRELOAD and similar environment variables were handled, by removing them and re-executing. (Alexey Milovidov). in 26.11.1.2942
- breaking CREATE WORKLOAD, CREATE RESOURCE, DROP WORKLOAD and DROP RESOURCE are no longer part of the CREATE and DROP privilege groups and have to be granted explicitly (GRANT ALL still includes them). Previously GRANT CREATE ON .* was enough to create a default workload that throttles the queries of every… in 26.11.1.2942
- breaking Removed support for files in the async insert queue of Distributed tables written by ClickHouse versions older than 19.18. Such files are moved to the broken directory instead of being sent. (Alexey Milovidov). in 26.11.1.2942
- breaking MongoDB connection strings can no longer make the server authenticate with its own credentials: the MONGODB-OIDC, MONGODB-AWS, GSSAPI and MONGODB-X509 authentication mechanisms and the tlsCertificateKeyFile option. In the mongodb table function and MongoDB tables they are refused unless… in 26.11.1.2942
- breaking You can now drop a cached Vector Similarity Index for a specific table: SYSTEM DROP VECTOR SIMILARITY INDEX CACHE [ON CLUSTER c] [FOR TABLE [db.]table] , while the indexes of other tables stay cached. (Yan Alexandre). in 26.11.1.2942
- breaking Backported in: Not for changelog: removes undefined behaviour (a dangling reference read) with no observable behaviour change. (Groene AI). in 26.10.20.19
- 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.10.9.12
Security changes
- security A SQL SECURITY DEFINER view queried by its own definer is no longer read as an opaque step, so the optimizations of the query apply to it again, as before 26.10 (for example, ORDER BY ... LIMIT reads in order through it). Other users, and sessions of the definer that are limited by the GRANTS of… in 26.11.1.2942
- security Backported in: Alpine-based clickhouse-server and clickhouse-keeper images now run apk upgrade at build time, so they pick up security fixes for packages that are already in the alpine base image, such as OpenSSL. (Joel Bandi). in 26.10.16.15
Every release in between
otherBackported in: Reading parts in packed storage from encrypted disks on object storage no longer makes an extra S3 request for every file inside the part, because the encryption header is cached. (Christoph Wurm).
fixBackported in: Lazy materialization over joins (query_plan_lazy_materialization_for_join) now reads again after the LIMIT a column that a filter, a JOIN ON condition, or a join key uses and that the result also needs, instead of carrying it through the joins. This reduces the memory required for a…
fixBackported in: New setting to disable the deduplication cache for asynchronous inserts. (Kirill Kopnev).
fixBackported in: Fix a client bypassing the grant check of forwarded roles with a forged TCP_INTERSERVER interface. (Azat Khuzhin).
fixBackported in: Fixed BACKUP and RESTORE ON CLUSTER using the Keeper retries meant for error handling when finishing successfully, and the other way round: a successful operation could fail after 20 retries on a temporary Keeper failure, and a failed one which was killed could leave the initiator…
fixBackported in: CREATE HYPOTHETICAL INDEX now rejects an unsupported index type before it validates the arguments of the type. (Yaroslav Briukhovetskyi).
fixBackported in: Fix a grant on an exact database or table name being lost after a server restart if it was made after a revoke on a wildcard with the same name, e.g. REVOKE SELECT ON db*. followed by GRANT SELECT ON db.. SHOW GRANTS and the stored definition of the user or role listed the grant…
fixBackported in: GRANT CURRENT GRANTS and RESTORE with the setting restore_access_entities_with_current_grants no longer grant a privilege for which the grant option of the current user was revoked with REVOKE GRANT OPTION FOR. (pufit).
otherBackported in: Not required. (Groene AI).
otherBackported in: Reads from encrypted disks on remote storage no longer open an extra S3 request for every column file when reading the encryption header. (Christoph Wurm).
otherBackported in: The server now reports in system.warnings when it listens on a non-loopback address while the default user, or the user named by the default_session_user server setting, can log in without a password from any host. The warning is re-checked when users change or the configuration is…
fixBackported in: A user is not allowed to log in if a user with the same name exists in another user directory (for example, an LDAP user and a local user with the same name). CREATE USER without IN, CREATE USER OR REPLACE and ALTER USER ... RENAME TO now also refuse to use a user name that is…
fixBackported in: Fix excessive I/O during mutation and lightweight DELETE prechecks on tables with bucketed Map serialization by allowing m['key'] predicates to be rewritten to Map key subcolumns. (Rushikesh Sudhir Kulkarni).
fixBackported in: Fixed background merges and OPTIMIZE of a table that has a column TTL on an ALIAS or EPHEMERAL column: once the TTL was due, they failed with There is no physical column ... in table. (NO_SUCH_COLUMN_IN_TABLE) and the merge was retried forever. Closes. (Groene AI).
fixBackported in: Fix dictionaries with a remote ClickHouse source over Distributed with a cluster secret. (Azat Khuzhin).
fixBackported in: A deeply nested PromQL query terminated the server with a segmentation fault. Now such queries fail with TOO_DEEP_RECURSION error. bool, group_left, group_right, on, ignoring, atan2 are not allowed as unquoted metric names anymore. ( after group_left/group_right always starts the…
fixBackported in: A table of a Filesystem database is now required to be a file inside the directory of the database. (Alexander Tokmakov).
otherBackported in: Update mongo-c-driver from 2.5.8 to 2.5.10. (Actuele AI).
otherBackported in: Apply the memory limit of 05828_remerge_sort_memory_bounded only to the queries under test. (Groene AI).
otherBackported in: A JOIN whose input repeats the join key under the same name, for example (SELECT id, id FROM l) AS s JOIN r ON r.l_id = s.id, now removes unused columns as for any other join and supports lazy materialization for LIMIT queries over joins (query_plan_lazy_materialization_for_join).…
fixBackported in: Fix ALTER DELETE/ALTER UPDATE silently skipping rows when the predicate contains IN . The default-enabled optimize_mutations_with_partition_pruning evaluated that set at submission time and narrowed the mutation's block_numbers, so a partition matching only the execution-time set…
fixBackported in: Fix incorrect results from multi-block INSERT queries into order-sensitive table engines when max_insert_threads enables parallel writes. Plain inserts and single-stream INSERT SELECT preserve input order for CollapsingMergeTree, CoalescingMergeTree, GraphiteMergeTree,…
fixBackported in: Reading a Parquet variant column whose metadata or value field has a logical or converted type annotation now gives an INCORRECT_DATA error. Such a field could previously be decoded as a non-string column and read incorrectly. A Parquet file whose schema needs more elements than the…
fixBackported in: Fixed wrong results of a join stacked above a RIGHT or FULL hash join with query_plan_join_shard_by_pk_ranges: the rows that only the right table has were not matched by the join above. Joins above a RIGHT or FULL hash join are no longer sharded by primary-key ranges. Closes.…
fixBackported in: This patch adds a guardrail for disk declaration. It will no longer be possible to set up 2 disks with a shared underlying directory. (Mikhail Artemenko).
fixBackported in: Fixed UNKNOWN_IDENTIFIER for a qualified column when the qualifier also matches the name or the alias of another table in the JOIN that has no such column, e.g. SELECT one.x FROM (SELECT 1 AS x) AS one JOIN system.one AS o ON o.dummy + 1 = one.x, or two tables with the same name…
fixBackported in: Fix join orders changed by floating-point rounding when query_plan_join_order_use_interesting_orders is enabled, which made some TPC-DS queries slower. (Fisnik Kastrati).
fixBackported in: Fix a server crash, a logical error, or an ILLEGAL_COLUMN exception when a query to the url table function or the URL table engine reads the _headers virtual column together with another virtual column requested after it, such as in SELECT _headers, _size FROM url(...). Fix an empty…
otherBackported in: Update krb5 from 1.22.2-final to 1.22.3-final. (Actuele AI).
otherBackported in: With parallel replicas, every replica now applies its own query condition cache to the ranges the coordinator assigns it. Previously only the replica whose index analysis drove the assignment benefited from the cache. (Nikita Taranov).
otherBackported in: Wake idle ThreadPool thread after releasing the pool mutex. (Azat Khuzhin).
fixBackported in: Do not use non-deterministic table defaults for lazy column materialization. Otherwise, the result could be inconsistent. (Nikolai Kochetov).
fixBackported in: Fix slow or failing DNS resolution of one host blocking HTTP and S3 requests to all other hosts and the SYSTEM CLEAR DNS CACHE query, because the resolution was done under a global lock. (Konstantin Bogdanov).
fixBackported in: ATTACH MATERIALIZED VIEW with a full definition now validates the SELECT query the same way as CREATE MATERIALIZED VIEW. (Alexander Tokmakov).
fixBackported in: With access_control_improvements.readonly_restricts_set_role enabled, SET DEFAULT ROLE is now refused in readonly mode as well as SET ROLE. Previously a readonly session could change its own default roles and so start the next session with another role. (Vadim Skipin).
fixBackported in: Fix substring conditions (LIKE, endsWith, ...) on a String column of the sorting key ignoring a lightweight DELETE or UPDATE that is not merged into the part yet (deleted rows were returned, updated values were not seen), when apply_string_filters_during_scan is enabled (the…
fixBackported in: Fixed a heap-use-after-free in text index queries over overlapping parts, for example in a FINAL query with use_skip_indexes_if_final_exact_mode = 0. (Groene AI).
otherBackported in: Update zstd to v1.6.0. (Actuele AI).
fixBackported in: Fix data loss in other subcolumns of a Nested column when a column TTL expires values of one of its subcolumns. (Lazizbek Ergashev).
fixBackported in: The Kafka table engine no longer accepts librdkafka properties that refer to files on the server (for example, kafka.ssl_ca_location, kafka.ssl_key_location, kafka.sasl_kerberos_keytab) from a named collection created with CREATE NAMED COLLECTION. Such a table fails with…
otherBackported in: When a MergeTree table was created with table_disk=1, it stores all data (parts/tmp files/detached directory) in the root of this disk, and when this table is dropped, dropAllData calls remove-recursive on the root folder. When this table was located on the encrypted disk, this call…
breakingRemoved the per-query filesystem cache write limit, which capped how much a single query could write into one filesystem cache. Its accounting never reflected what a query had actually written, and it cost a second priority queue per query on the cache reservation hot path. The settings…
breakinghash and parallel_hash are now one join implementation. parallel_hash is an obsolete alias of hash: it is removed from the default join_algorithm, still accepted, and reads back as hash. A hash join now picks its layout from parallel_hash_join_threshold and the estimated size of the right table,…
breakingBy default (when --path is not specified), clickhouse-local now stores its data in a designated directory inside the home directory ($XDG_DATA_HOME/clickhouse-local or ~/.local/share/clickhouse-local on Linux, ~/Library/Application Support/clickhouse-local on macOS), so the data survives between…
breakingReading the columns of system.tables that describe a table's schema requires the SHOW COLUMNS privilege on that table, the same privilege DESCRIBE and SHOW CREATE TABLE require: create_table_query, engine_full, as_select, partition_key, sorting_key, primary_key, sampling_key, unique_key,…
breakingextractGroups now rejects a regular expression with more than 127 capturing groups, the same limit extractAllGroupsHorizontal and extractAllGroupsVertical have always enforced. A pattern with 128 or more capturing groups that previously returned results now throws BAD_ARGUMENTS. In the Kusto…
breakingCREATE 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. (Yaroslav Briukhovetskyi).
breakingLOCAL between a table and a join, as in SELECT * FROM a LOCAL JOIN b ON a.k = b.k, is now parsed as the join locality qualifier, like GLOBAL, instead of being silently taken as an implicit alias of a. A query that relies on such an implicit local alias, for example SELECT * FROM t local JOIN u ON…
breakingAzure Blob Storage access from user SQL no longer uses the server's own workload or managed identity unless allow_server_credentials_in_user_queries (formerly s3_allow_server_credentials_in_user_queries) is enabled; provide explicit credentials instead: account_name and account_key, a connection…
breakingThe function toStartOfInterval (and its aliases time_bucket and date_bin) now returns a value of the same type as its argument (Date, Date32, DateTime, or DateTime64 with the same scale) instead of a type determined by the interval unit, which wrapped values outside the range of Date and DateTime.…
breakingCREATE TABLE and ALTER TABLE now reject an alias in PARTITION BY, PRIMARY KEY, ORDER BY, UNIQUE KEY, SAMPLE BY, the table and column TTL, skip index (also via an ALIAS column it uses) and constraint expressions with BAD_ARGUMENTS; write the expression without the alias. Such an alias was accepted…
breakingA writable disk with table_disk = true now holds the data of only one table: creating or attaching another table on the same path of the same storage, or on a path inside or above it, throws BAD_ARGUMENTS; tables over a read-only disk on that path are still allowed. Previously such tables returned…
breakingA filesystem cache with the SLRU policy (the default) now requires max_file_segment_size <= max_size * min(slru_size_ratio, 1 - slru_size_ratio) (of each part with use_split_cache), so that a file segment fits whole into each SLRU queue. With the default settings, a cache smaller than 80 MiB must…
breakingkill_throw_if_noop now defaults to true. A compatibility level below 26.11 keeps the previous default. (Ye Yuan).
breakingIceberg time columns read from Parquet data files are now returned as microseconds since midnight, as documented, instead of whole seconds. The value now agrees with the manifest statistics and partition values, so WHERE on such a column no longer misses rows and the unit no longer depends on the…
breakingThe enable_hard_links setting of disks with the plain_rewritable metadata is enabled by default, so ALTER operations and mutations of MergeTree tables are supported on such disks. After the first hard link is created on a disk (by a mutation, an ALTER, a FREEZE or a backup), the disk is not…
breakingicebergTruncate now returns UInt64 for a UInt64 value; previously it returned Int64, so results of 2^63 and more came back negative, also as MergeTree partition IDs. It is also no longer treated as monotonic for Int64, whose lowest values wrap around, so filters on its argument no longer skip…
breakingparseDateTime now rejects ISO week 53 for ISO week-years that have only 52 weeks, instead of silently normalizing those dates into the following calendar year. (Henry Su).
breakingA vector_similarity index now rejects hnsw_max_connections_per_layer greater than 512 and hnsw_candidate_list_size_for_construction greater than 3200, because building an index with a huge hnsw_max_connections_per_layer could get the server killed by the OOM killer. Existing tables with larger…
breakingINSERT ... FROM INFILE in clickhouse-client and clickhouse-local inserts only the data from the file and no longer also inserts the data piped to stdin. This also fixes the query waiting for an open stdin pipe to close. (Jay Pokale).
breakingAn INSERT into a non-empty file through the File table engine or the file table function now fails with CANNOT_APPEND_TO_FILE for JSONCompact, JSONCompactStrings, ProtobufList, ProtobufSingle, for JSONEachRow and its aliases with output_format_json_array_of_rows = 1, for Template with a non-empty…
breakingTables with the S3, AzureBlobStorage, HDFS and data lake engines take format settings (e.g. format_csv_delimiter) from the server's settings and the table's SETTINGS clause, as File and URL do, and no longer from the session that creates them. Before, the session's values applied only until the…
breakingAdded the AI FUNCTIONS privilege group and per-function privileges (aiGenerate, aiEmbed, etc.) that control who can call AI functions, e.g. GRANT AI FUNCTIONS ON .* TO role or GRANT aiGenerate, aiClassify ON *. TO role. Calling an AI function now requires its privilege in addition to NAMED…
breakingRemoved the experimental functions detectCharset and detectLanguageUnknown, because the data they relied on has an unknown license. Use detectLanguage for language detection. (Alexey Milovidov).
breakingSetting after_processing_move_uri or after_processing_move_connection_string of an S3Queue or AzureQueue table now requires WRITE ON S3 for the destination URL (or WRITE ON AZURE), and ALTER TABLE ... MODIFY SETTING also requires SELECT on the table. Before, the ALTER SETTINGS grant was enough.…
breakingREVOKE ON ('') now revokes only the grant with exactly this source filter. Previously, it revoked all grants of the privilege on the source, including other filters or the grant without a filter. To revoke everything on a source, use REVOKE ON without a filter. Revoking a filter that produces a…
breakingA storage policy can no longer contain two disks that store data in the same directory, such as several cache disks over one disk, a cache disk together with the disk it wraps, or an encrypted disk without its own path over one of them. Such a policy makes every storage policy lookup fail with…
breakingThe install script (curl https://clickhouse.com/ | sh) now downloads the newest release branch instead of master. To get the master build as before, run curl https://clickhouse.com/ | CLICKHOUSE_BRANCH=master sh. CLICKHOUSE_BRANCH also accepts a branch such as 26.9. (Alexei Fedotov).
breakingThe compression method of file (the explicit argument or the one detected from the file name) now applies to a file inside an archive, like for a plain file, e.g. file('a.tar :: data.json.gz') is decompressed. Previously the argument was ignored for archives, so file('x.tar.gz :: a.csv', CSV,…
breakingThe legacy Delta Lake reader was removed, and Delta Lake tables are always read with delta-kernel-rs. The setting allow_delta_kernel_rs (allow_experimental_delta_kernel_rs) is obsolete and has no effect. Delta Lake tables on GCS that rely on http_client = 'gcp_oauth' and Azure blobs with a leading…
breakingCREATE 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 runs with the…
breakingServers older than 23.3 can no longer exchange distributed queries with newer servers over a cluster with a : the legacy interserver mode without a nonce has been removed. (Raúl Marín).
breakingThe max_distributed_connections setting no longer accepts 0. Setting it to 0 in a query, a session or a settings profile now fails with BAD_ARGUMENTS, and a server whose users configuration sets it to 0 in a profile does not start (CANNOT_LOAD_CONFIG); use 1 instead. Background inserts into a…
breakingFloating-point values with magnitude 2^63 or more are now converted exactly to Int128, UInt128, Int256, UInt256, Decimal128 and Decimal256, and the result is the same on every platform. Previously, for example, toInt128(1e20) returned 100000000000000000003, accurateCast(1e20, 'Int128') threw an…
breakingSetting count_distinct_optimization is obsolete and has no effect. It rewrote count(DISTINCT x) into count() over a GROUP BY x subquery, which is no longer faster than the radix partitioned uniqExact used for count(DISTINCT x) without GROUP BY (optimize_uniq_exact_radix_partitioning). (Raúl Marín).
breakingClickHouse refuses to start if shared objects are injected into its process with /etc/ld.so.preload, ld.so --preload, or auditing libraries. Previously only the LD_PRELOAD and similar environment variables were handled, by removing them and re-executing. (Alexey Milovidov).
breakingCREATE WORKLOAD, CREATE RESOURCE, DROP WORKLOAD and DROP RESOURCE are no longer part of the CREATE and DROP privilege groups and have to be granted explicitly (GRANT ALL still includes them). Previously GRANT CREATE ON .* was enough to create a default workload that throttles the queries of every…
breakingRemoved support for files in the async insert queue of Distributed tables written by ClickHouse versions older than 19.18. Such files are moved to the broken directory instead of being sent. (Alexey Milovidov).
breakingMongoDB connection strings can no longer make the server authenticate with its own credentials: the MONGODB-OIDC, MONGODB-AWS, GSSAPI and MONGODB-X509 authentication mechanisms and the tlsCertificateKeyFile option. In the mongodb table function and MongoDB tables they are refused unless…
breakingYou can now drop a cached Vector Similarity Index for a specific table: SYSTEM DROP VECTOR SIMILARITY INDEX CACHE [ON CLUSTER c] [FOR TABLE [db.]table] , while the indexes of other tables stay cached. (Yan Alexandre).
securityA SQL SECURITY DEFINER view queried by its own definer is no longer read as an opaque step, so the optimizations of the query apply to it again, as before 26.10 (for example, ORDER BY ... LIMIT reads in order through it). Other users, and sessions of the definer that are limited by the GRANTS of…
+2447 more items in the release notesotherBackported in: Bloom filter skip indexes are now used for arrayJoin(...) IN (...) with transform_null_in = 1 when the set contains no NULL, and for arrays cast to Dynamic and back to the same type. (Sergey Kuznetsov).
otherBackported in: BACKUP no longer builds a lookup table over the names of all the files it backs up when nothing needs it. A backup of a table with millions of files saves about a gigabyte. (Julia Kartseva).
otherBackported in: A text index on an Array column is now used for arrayJoin(column) = const and arrayJoin(column) [GLOBAL] IN (set), also with transform_null_in = 1, in the same way as for has(column, const) and hasAny(column, set). Before, these conditions read every granule. (Yaroslav…
featureBackported in: A text index on an Array column is now used for LEFT ARRAY JOIN with a condition = const or [GLOBAL] IN (set) on the element, in the same way as for ARRAY JOIN. The index is not used if the condition accepts the default element that LEFT ARRAY JOIN adds for an empty array. Before,…
otherBackported in: Automatic parallel replicas (automatic_parallel_replicas_mode) no longer reuses the index analysis of the single-node plan for reads that use a different storage snapshot, which could return wrong results with enable_shared_storage_snapshot_in_query = 0 while the table was being…
fixBackported in: Fix wrong order of rows and wrong results of LIMIT WITH TIES when a sort key follows the same key with COLLATE, or is a function of another sort key in a query with ROLLUP, CUBE or GROUPING SETS. Fix lost rows in LIMIT BY when ORDER BY has the same key twice. (eoger-ant).
fixBackported in: Fix wrong results of uniq over a subquery with GROUP BY or DISTINCT with distributed_group_by_no_merge, for an empty set of Nullable values, as a window function over subtotals, with repeated arguments, or of a correlated column, and an exception for uniqCombined with parameters.…
fixBackported in: RESTORE of users, roles and settings profiles now checks their settings against the settings constraints of the user running it, as CREATE USER, CREATE ROLE and CREATE SETTINGS PROFILE do. Before, a user bound by e.g. allow_ddl = 0 CONST could restore a user with allow_ddl = 1 from…
fixBackported in: getMacro, getServerSetting and getMergeTreeSetting now respect row policies on system.macros, system.server_settings and system.merge_tree_settings: they throw ACCESS_DENIED if a non-trivial SELECT row policy applies, the same as joinGet for Join tables. (Matheus Nerone).
fixBackported in: Fixed a crash of clickhouse-client when it parses INSERT ... VALUES data itself (async_insert = 0) and a value calls getServerSetting, for example INSERT INTO t SETTINGS async_insert = 0 VALUES (getServerSetting('mark_cache_size')). (Groene AI).
fixBackported in: Fix a server abort when loading a regexp_tree dictionary from a table where a row has fewer elements in values than in keys. Now a row with different sizes of keys and values is rejected with INCORRECT_DICTIONARY_DEFINITION. (Alexey Milovidov).
fixFix a crash on INSERT of a Native block whose Tuple column has fewer elements than the column of the table, with input_format_native_allow_types_conversion = 0. (Alexey Milovidov).
fixBackported in: Fix the termination of the server (vector[] index out of bounds in ProfileEvents::getProfileEvents) when a remote server of a distributed query sends a ProfileEvents packet with a block of an unexpected structure. Such a packet is now refused with the UNEXPECTED_PACKET_FROM_SERVER…
fixBackported in: Fix a crash in the stem function on a word of 2 GiB or more. The function now throws an exception for words longer than 64 MiB. (Alexey Milovidov).
fixBackported in: Fix a crash or a read of unrelated memory in the Template output format when ${min} or ${max} is printed and the extremes received from a remote server (or by clickhouse-client from its server) do not have exactly two rows. Such extremes are now also rejected when they are received…
fixBackported in: Fixed a crash when a lambda or a SQL user defined function with an aggregate function in its body is called with a GROUP BY key as an argument, or when APPLY transformers are chained into an aggregate function, with group_by_use_nulls and ROLLUP, CUBE or GROUPING SETS. The aggregate…
fixBackported in: Fixed a crash on CREATE TABLE or a full ATTACH of a Kafka table that stores its offsets in Keeper (experimental allow_kafka_offsets_storage_in_keeper) and takes kafka_keeper_path and kafka_replica_name from a named collection alone. Keeper settings taken from a named collection are…
breakingBackported in: Not for changelog: removes undefined behaviour (a dangling reference read) with no observable behaviour change. (Groene AI).
otherBackported in: KILL QUERY and max_execution_time now take effect while a query is connecting to MySQL. Previously a query using mysql() or a MySQL engine table against an unresponsive host stayed in system.processes with is_cancelled = 1 for up to connection_max_tries * connect_timeout. (Groene AI).
otherBackported in: Update the dependency apache/datasketches-cpp to release 5.3.0. (Christoph Viebig).
fixBackported in: GROUP BY keys computed by different expressions of the same type, for example intDiv(a, 1000000) and a + 1 in SELECT k FROM (SELECT ... AS k FROM t) GROUP BY k, no longer share one hash table size statistics entry, so an aggregation preallocates its hash table for its own number of…
fixBackported in: Fix incorrect results from multi-block INSERT queries into order-sensitive table engines when max_insert_threads enables parallel writes. Plain inserts and single-stream INSERT SELECT preserve input order for CollapsingMergeTree, CoalescingMergeTree, GraphiteMergeTree,…
fixBackported in: Fix a stall, and expiration of the session, of a secure ZooKeeper/Keeper client connection (1) when a large request and a large response overlap. (eoger-ant).
fixBackported in: Fixed potential row loss when MOVE PART TO SHARD runs while a source part changes. (wangshun).
fixBackported in: The password in the connection string of the odbc and jdbc table functions and of the ODBC and JDBC table engines is no longer shown in cleartext in the bridge request URL quoted by errors, system.query_log, the server log and system.schema_inference_cache. The query itself already…
fixBackported in: Reading a Parquet variant column whose metadata or value field has a logical or converted type annotation now gives an INCORRECT_DATA error. Such a field could previously be decoded as a non-string column and read incorrectly. A Parquet file whose schema needs more elements than the…
fixBackported in: A MySQL or PostgreSQL dictionary created with CREATE DICTIONARY now sends only SELECT queries to the database, as the ClickHouse source already does: query, where, update_field and invalidate_query must form a SELECT that the ClickHouse parser reads, without comments, backslashes in…
fixBackported in: RESTORE of a materialized view requires SELECT on the tables that its query reads, the same as CREATE MATERIALIZED VIEW. (Nikolay Degterinsky).
fixBackported in: CREATE TABLE x AS src inherits the credentials in the column definitions or other expressions, 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. (Pervakov Grigorii).
fixBackported in: New setting to disable the deduplication cache for asynchronous inserts. (Kirill Kopnev).
fixBackported in: Fix a client bypassing the grant check of forwarded roles with a forged TCP_INTERSERVER interface. (Azat Khuzhin).
fixBackported in: CREATE HYPOTHETICAL INDEX now rejects an unsupported index type before it validates the arguments of the type. (Yaroslav Briukhovetskyi).
fixBackported in: Fix a grant on an exact database or table name being lost after a server restart if it was made after a revoke on a wildcard with the same name, e.g. REVOKE SELECT ON db*. followed by GRANT SELECT ON db.. SHOW GRANTS and the stored definition of the user or role listed the grant…
fixBackported in: Fixed a crash (segmentation fault) when a memory allocation fails while starting zlib compression, for example when writing ORC files with zlib compression. Closes. (Groene AI).
fixBackported in: Parallel replicas with a custom key (parallel_replicas_mode = 'custom_key_sampling' or 'custom_key_range') are no longer used for a query with additional_table_filters, which a replica could apply differently from the initiator. Such a query reads without parallel replicas, or fails…
fixBackported in: Fix a possible stack overflow when a Glue or Hive catalog returns a column with a deeply nested type. The server now throws an exception for such a type. (Asya Shneerson).
fixBackported in: Fix SQL injection into queries sent to MySQL servers which have NO_BACKSLASH_ESCAPES in sql_mode, through filters of MySQL tables and the mysql table function, INSERT values and MySQL dictionary keys, and through INSERT values with output_format_values_escape_quote_with_quote…
fixBackported in: Fixed RESTORE failing when a materialized view in the backup reads a table function that cannot be resolved at the time of the restore, for example one over a named collection that does not exist yet. (Nikolay Degterinsky).
fixBackported in: A connection to a MySQL server with a configured CA (ssl_ca or ssl_ca_pem) is now refused if the server does not offer TLS, instead of sending the credentials and the queries without encryption. (Raúl Marín).
otherBackported in: The self-extracting clickhouse binary is compressed in parallel, which speeds up builds with ENABLE_CLICKHOUSE_SELF_EXTRACTING. The output is unchanged. (Raúl Marín).
fixFix 05872_create_as_secret_expressions_require_select syntax error in 26.10. (Azat Khuzhin).
otherBackported in: Reading parts in packed storage from encrypted disks on object storage no longer makes an extra S3 request for every file inside the part, because the encryption header is cached. (Christoph Wurm).
fixBackported in: A user is not allowed to log in if a user with the same name exists in another user directory (for example, an LDAP user and a local user with the same name). CREATE USER without IN, CREATE USER OR REPLACE and ALTER USER ... RENAME TO now also refuse to use a user name that is…
fixBackported in: Fix a server crash, a logical error, or an ILLEGAL_COLUMN exception when a query to the url table function or the URL table engine reads the _headers virtual column together with another virtual column requested after it, such as in SELECT _headers, _size FROM url(...). Fix an empty…
featureBackported in: Add the RabbitMQ table setting rabbitmq_max_idle_producer_connections, which keeps idle connections with their channels open and reuses them across INSERT queries. This removes the connection setup from every insert, which is especially costly for materialized views that fire often,…
fixBackported in: Fix ALTER DELETE/ALTER UPDATE silently skipping rows when the predicate contains IN . The default-enabled optimize_mutations_with_partition_pruning evaluated that set at submission time and narrowed the mutation's block_numbers, so a partition matching only the execution-time set…
fixBackported in: A projection ORDER BY tuple containing an aliased element is now stored in a form that can be parsed back, so it no longer makes SHOW CREATE TABLE or server startup fail. (Ankit Nakhawa).
fixBackported in: Fix excessive I/O during mutation and lightweight DELETE prechecks on tables with bucketed Map serialization by allowing m['key'] predicates to be rewritten to Map key subcolumns. (Rushikesh Sudhir Kulkarni).
fixBackported in: Fix abrupt server termination when MongoDB returns malformed query results. (János Benjamin Antal).
fixBackported in: Fixed wrong results of a join stacked above a RIGHT or FULL hash join with query_plan_join_shard_by_pk_ranges: the rows that only the right table has were not matched by the join above. Joins above a RIGHT or FULL hash join are no longer sharded by primary-key ranges. Closes.…
fixBackported in: Fixed background merges and OPTIMIZE of a table that has a column TTL on an ALIAS or EPHEMERAL column: once the TTL was due, they failed with There is no physical column ... in table. (NO_SUCH_COLUMN_IN_TABLE) and the merge was retried forever. Closes. (Groene AI).
fixBackported in: Fix dictionaries with a remote ClickHouse source over Distributed with a cluster secret. (Azat Khuzhin).
fixBackported in: A deeply nested PromQL query terminated the server with a segmentation fault. Now such queries fail with TOO_DEEP_RECURSION error. bool, group_left, group_right, on, ignoring, atan2 are not allowed as unquoted metric names anymore. ( after group_left/group_right always starts the…
fixBackported in: A table of a Filesystem database is now required to be a file inside the directory of the database. (Alexander Tokmakov).
securityBackported in: Alpine-based clickhouse-server and clickhouse-keeper images now run apk upgrade at build time, so they pick up security fixes for packages that are already in the alpine base image, such as OpenSSL. (Joel Bandi).
otherBackported in: Update mongo-c-driver from 2.5.8 to 2.5.10. (Actuele AI).
otherBackported in: Let backport PR builds from this repository write to the shared sccache. (Groene AI).
otherBackported in: Apply the memory limit of 05828_remerge_sort_memory_bounded only to the queries under test. (Groene AI).
otherBackported in: The statistics of data parts are loaded in parallel (up to max_threads threads) for part pruning by statistics, the ordering of PREWHERE conditions and min/max/count from statistics. This speeds up the first queries over tables with many parts on a cold disk. (Alexey Milovidov).
featureBackported in: The hash tables of large hash JOINs no longer switch to the Robin Hood mode by default (it was enabled in 26.10). This makes joins with random keys up to 1.8 times faster, but the hash table takes up to 1.75 times more memory and joins on dense keys can be up to 1.3 times slower.…
otherBackported in: A WHERE condition on the only column of ORDER BY ... LIMIT, like in SELECT s FROM t WHERE s != '' ORDER BY s LIMIT 10, is now moved to PREWHERE next to the top-K filter, which reads that column anyway, so the query condition cache remembers the granules the condition rejects.…
fixBackported in: Fixed NOT_FOUND_COLUMN_IN_BLOCK for a SELECT whose first join is a FULL JOIN ... USING on keys of different types, followed by another USING join and a WHERE over the second join's key. The equi-key filter push-down substituted the coalesced USING key by a name the join computes…
fixBackported in: Fixed a heap-use-after-free in text index queries over overlapping parts, for example in a FINAL query with use_skip_indexes_if_final_exact_mode = 0. (Groene AI).
fixBackported in: Fix join orders changed by floating-point rounding when query_plan_join_order_use_interesting_orders is enabled, which made some TPC-DS queries slower. (Fisnik Kastrati).
otherBackported in: Update krb5 from 1.22.2-final to 1.22.3-final. (Actuele AI).
otherBackported in: Update zstd to v1.6.0. (Actuele AI).
otherBackported in: Follow-up to the per-part statistics cache: weight of composite fields and structure of cloned statistics. (Alexey Milovidov).
otherBackported in: Reduced CPU usage when many threads schedule jobs into a full thread pool, for example while loading many tables at server startup. (Nikolay Degterinsky).
otherBackported in: With parallel replicas, every replica now applies its own query condition cache to the ranges the coordinator assigns it. Previously only the replica whose index analysis drove the assignment benefited from the cache. (Nikita Taranov).
otherBackported in: Reads from encrypted disks on remote storage no longer open an extra S3 request for every column file when reading the encryption header. (Christoph Wurm).
otherBackported in: Wake idle ThreadPool thread after releasing the pool mutex. (Azat Khuzhin).
fixBackported in: Fix tupleElement with a default argument over an ARRAY JOIN-ed Nested column, when the default references another subcolumn of an ARRAY JOIN-ed column. (Henry Su).
fixBackported in: CREATE, ALTER, DROP and MOVE ROW POLICY ... ON CLUSTER with a table name without a database now apply to the table in the current database, the one the privileges are checked against. Previously every host applied them to the table with that name in the server's default database.…
fixBackported in: The Kafka table engine no longer accepts librdkafka properties that refer to files on the server (for example, kafka.ssl_ca_location, kafka.ssl_key_location, kafka.sasl_kerberos_keytab) from a named collection created with CREATE NAMED COLLECTION. Such a table fails with…
fixBackported in: ATTACH MATERIALIZED VIEW with a full definition now validates the SELECT query the same way as CREATE MATERIALIZED VIEW. (Alexander Tokmakov).
fixBackported in: Fix a segfault in a SELECT from a MergeTree table with the old analyzer (enable_analyzer = 0) when query_plan_optimize_prewhere or query_plan_enable_optimizations is disabled. (Alexey Milovidov).
fixBackported in: With access_control_improvements.readonly_restricts_set_role enabled, SET DEFAULT ROLE is now refused in readonly mode as well as SET ROLE. Previously a readonly session could change its own default roles and so start the next session with another role. (Vadim Skipin).
fixBackported in: Fix substring conditions (LIKE, endsWith, ...) on a String column of the sorting key ignoring a lightweight DELETE or UPDATE that is not merged into the part yet (deleted rows were returned, updated values were not seen), when apply_string_filters_during_scan is enabled (the…
fixBackported in: Fix TOO_SLOW in external aggregation overflow any tests. (Azat Khuzhin).
otherBackported in: When a MergeTree table was created with table_disk=1, it stores all data (parts/tmp files/detached directory) in the root of this disk, and when this table is dropped, dropAllData calls remove-recursive on the root folder. When this table was located on the encrypted disk, this call…
otherBackported in: Automatic parallel replicas no longer builds a plan with parallel replicas for a query whose correlated subquery rules them out. (Nikita Taranov).
otherBackported in: ORDER BY ... LIMIT over several ARRAY JOIN clauses now sorts and limits the rows before all of them, not only before the last one, when the sort key does not use the joined columns. (Yaroslav Briukhovetskyi).
featureBackported in: Added the hostname column to system.dead_letter_queue. (Nikolay Degterinsky).
fixBackported in: Fixed a LOGICAL_ERROR exception when pruning columns of an ARRAY JOIN that uses Nullable values or a USING reference. (Groene AI).
fixBackported in: Fix duplicated rows from a merge join of a distributed query plan (make_distributed_plan) when query_plan_join_shard_by_pk_ranges is enabled. (Alexey Milovidov).
fixBackported in: Fixed LOGICAL_ERROR Directory '...' is virtual on the first INSERT into a Set or Join table whose disk setting names a plain_rewritable disk, on ALTER TABLE ... DELETE of such a Join table, and on clickhouse-disks move or link into a directory that mkdir --parents created only as a…
fixBackported in: The CGroupMaxCPU asynchronous metric now takes the effective cpuset of the cgroup into account, as the minimum of the CPU quota and the number of CPUs in the cpuset. Previously it was not reported for containers with exclusive CPUs and no CFS quota, such as Kubernetes pods with the…
fixBackported in: Fix high memory usage of MATERIALIZE INDEX for text indexes on packed or compact parts. (Elmi Ahmadov).
fixBackported in: Fixed CREATE TABLE ... AS filesystem(...) with an explicit column list not checking READ ON FILE, which let a user with WRITE ON FILE (or with no FILE grant at all, via ON CLUSTER) read any file under user_files through the new table. Such a table now needs READ and WRITE on FILE,…
fixBackported in: Fix wrong result of a join reordered by DPsub with query_plan_join_order_use_interesting_orders when a join key class mixed column types such as Date and DateTime in different time zones. (Fisnik Kastrati).
otherBackported in: Read columns of Compact part in the order of the file (to avoid backward seeks). (Azat Khuzhin).
otherBackported in: ORDER BY ... LIMIT whose sorted input blocks are smaller than max_block_size re-merges its accumulated blocks again, as in 26.9, instead of switching the re-merge off after its first run, so its peak memory no longer grows with the input. On the query from the peak goes from 1.38 GB…
fixBackported in: Fix wrong results after external GROUP BY and max_rows_to_group_by>0 (can lead to excessive spills with max_rows_to_group_by>0 and group_by_overflow_mode=any, but only in case of spilling limit is small). (Azat Khuzhin).
fixBackported in: Iceberg tables created or written through DataLakeCatalog with catalog_type = 'glue' now register their columns in the Glue table definition, so they can be queried by Athena and other Glue consumers. Previously the Glue entry had an empty column list and Athena failed with…
fixBackported in: Fixed toUTCTimestamp (to_utc_timestamp) returning a time one hour off for local times in the hours around a daylight saving time change, for both DateTime and DateTime64. It now converts a local time as toDateTime(s, time_zone) does, also a local time that happens twice or does not…
fixBackported in: Fixed a table with the keeper_path of another S3Queue or AzureQueue making it delete, move or tag its source files. The source must now match, and these actions need the WRITE grant. (Samuel Krempaský).
fixBackported in: Fix data loss in other subcolumns of a Nested column when a column TTL expires values of one of its subcolumns. (Lazizbek Ergashev).
fixBackported in: Fix a crash and incorrect results in the CapnProto format when the schema contains groups or named unions declared inline in a struct (g :group { ... }, u :union { ... }). (Nikita Mikhaylov).
fixBackported in: ATTACH MASKING POLICY is no longer accepted as a query. It skipped the checks of CREATE MASKING POLICY. (Nikolay Degterinsky).
fixBackported in: The secret first key argument of "keyed" SipHash SQL functions is now masked in system.query_log. (Robert Schulze).
fixBackported in: Fix a ppc64le bug where the bundled libunwind's unw_getcontext left callee-saved vector registers byte-swapped, which could make clickhouse-server fail to start intermittently. (Shichao Jin).
otherBackported in: Do not consult the query condition cache under a masking policy. (Groene AI).
otherBackported in: GROUP BY ... LIMIT queries over parallel replicas now prune the aggregation on every replica with the top-K heap (enable_group_by_top_k_optimization), with or without ORDER BY by the keys, and automatic parallel replicas decides after the plan is optimized, so it compares the plan…
otherBackported in: Faster PREWHERE with several conditions: the block is filtered once instead of after every condition when the later conditions cannot throw. ClickBench Q38 is up to 10% faster. (Groene AI).
fixBackported in: Fixed s3, s3Cluster, azureBlobStorage, gcs, hdfs and the other object storage table functions returning the data of the first entry for every entry of an archive that contains several entries with the same name (for example a tar archive to which tar -r appended a file again). The…
fixBackported in: Fixed INSERT, MATERIALIZE PROJECTION and merges failing with LOGICAL_ERROR Projection ... calculated the columns ... while its metadata describes the columns ... for a table with a projection that has a subquery (x IN (SELECT ...), EXISTS (SELECT ...)) in its SELECT list or GROUP BY…
fixBackported in: Fixed connecting over the native protocol (clickhouse-client, remote, Distributed without an interserver secret) to an older server whose settings profile has a negative or overflowing value of a Seconds setting, for example max_execution_time = -1: the connection failed with A…
fixBackported in: Fix type confusion when deserializing a query plan whose aggregate functions do not match the types of their input columns. Now such a plan is rejected with INCORRECT_DATA. (Alexey Milovidov).
fixBackported in: Fixed wrong results of GROUP BY, LIMIT BY and ORDER BY after GROUP BY with an injective function and a NULL argument: with concatAssumeInjective or partitionId and a typed NULL constant or a Nullable column, rows where that argument is NULL were split into several groups instead of…
fixBackported in: Fixed EXISTS returning 1 (and NOT EXISTS returning 0) when its subquery returns no rows because an arrayJoin in it expands an empty array. (Groene AI).
fixBackported in: Removed the background task that cleaned up unused directories in store/. With async_load_databases enabled, it could revoke all access rights from the data directory of an attached table (queries to the table failed with Permission denied) and delete the directory 30 days later. It…
fixBackported in: Fixed JSON schema inference that, depending on memory reuse, could reject valid input with TYPE_MISMATCH (for example {"x":0}, {"x":-1}, {"y":1}, {"y":18446744073709551615} in JSONEachRow) or infer a wrong type such as Array(Dynamic) instead of Array(Nullable(UInt64)). It also…
fixBackported in: Fix Iceberg manifest-list pruning skipping NULL partitions for ifNull/coalesce filters. (Groene AI).
otherBackported in: Automatic parallel replicas (automatic_parallel_replicas_mode = 1) no longer builds the plan with parallel replicas on every execution of a query whose last build ended without a decision: the execution after the first such build builds it again at once, and from then on one in…
otherBackported in: Make 04413_documentation_no_indented_lines linear in the number of lines. (Christoph Viebig).
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…
otherBackported in: Automatic parallel replicas no longer repeats the index analysis of a join's tables when it builds the plan with parallel replicas to decide whether to use them. (Nikita Taranov).
otherBackported in: A query that combines x IN (subquery) with other conditions by AND now stops reading as soon as the subquery returns an empty set also when compile_expressions has compiled the AND (by default once the same expression has been seen min_count_to_compile_expression times). Before,…
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: 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: Fixed a Merge table or the merge table function over a Distributed table returning one column when the query selects the same column more than once, for example SELECT k, k. (Groene AI).
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…
fixFix a heap-buffer-overflow when parsing text formats read from Azure Blob Storage. (Alexey Milovidov).
fixFixed compatibility = '26.8' setting iceberg_manifest_decode_concurrency to 2 instead of the 4 that 26.8 ships. (Nikita Fomichev).
otherBackported in: Not required. (Groene AI).
featureBackported in: The dpsub join order algorithm is now aware of the sort order of the joined tables: for each inner equi-join it chooses between a hash join and full_sorting_merge by cost, and keeps join results sorted by a join key when a later join can use that order. Joins of large MergeTree…
otherBackported in: A JOIN executed with the ie_join algorithm (by default, a JOIN whose ON section has only inequality conditions) no longer slows down quadratically when one side is much larger than the other: a range join of 1 million rows against a 16-row table now takes 0.1 seconds instead of 3.6…
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).
featureBackported in: Add the allow_ai_functions setting, which disables AI functions when set to 0. (George Larionov).
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: Fix a server abort in ORDER BY ... WITH FILL ... INTERPOLATE (...) when the same column is named as an INTERPOLATE output more than once, for example INTERPOLATE (b AS b, b AS b). Such a query is now rejected with INVALID_WITH_FILL_EXPRESSION during query analysis instead of…
fixBackported in: Fix a server crash when a RIGHT JOIN/FULL JOIN is planned for parallel replicas (parallel_replicas_plan_based=1) and the join output header declares a column by type only — e.g. the residual column of a constant NULL conjunct in the ON clause. Type-only header columns are now…
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 an exception (such as Division by zero or Cannot parse input) when a _part_offset projection used as an index evaluated the query filter on rows the query does not read. (Groene AI).
fixBackported in: Fix ALTER TABLE ... DROP PARTITION for Iceberg tables. When the parent snapshot was an overwrite, the command failed with Duplicate key in SnapshotSummary, or it copied the delete counters of the parent snapshot to the new snapshot. (Den Kalantaevskii).
fixBackported in: Fixed Reading in parallel from replicas is enabled but cluster to execute query is not provided (CLUSTER_DOESNT_EXIST) when selecting from a Distributed table whose cluster is not declared in remote_servers - the cluster of a Replicated database, or one found by cluster discovery -…
fixBackported in: Fixed the primary key and minmax indices skipping matching rows when a Decimal column was compared with a float constant under a key expression such as toFloat64(d), for example WHERE d = toFloat32(1), or with the floats of an IN subquery. Such a comparison with a BFloat16 value no…
fixBackported in: Fixed a heap-buffer-overflow when merging a corrupted uniqCombined, uniqCombined64 or uniqHLL12 state. Such states, and states whose rank counts or stored number of zero registers don't add up, now throw INCORRECT_DATA. (Groene AI).
fixBackported in: Fixed a server abort or a LOGICAL_ERROR ("Invalid number of rows in Chunk") in ORDER BY ... WITH FILL ... INTERPOLATE when the alias of an INTERPOLATE target is the name of another column of the query, for example when count() is aliased to its own name so that it can be…
fixBackported in: Fix a server crash (stack overflow) when a query in the clickhouse_json dialect or a call to formatQueryFromJSON contains very deeply nested JSON. (Konstantin Bogdanov).
fixBackported in: Fixed a skip index whose type was written in uppercase (e.g. TYPE TEXT(...)) not getting the default granularity the lowercase form gets. For a text index this made its mark-cache prewarm throw (wedging a SharedMergeTree replica's startup) and could make queries using the index…
fixBackported in: Fixed EmbeddedRocksDB, KeeperMap and Redis tables with a Decimal, DateTime64 or Time64 primary key returning no rows for a float constant such as WHERE key = 19.99 or key IN (SELECT 19.99) when the key holds the matching value, and ALTER TABLE ... DELETE / UPDATE with such a…
fixBackported in: Fixed a server abort while reading files from a zip archive (for example with s3) when the query reaches its memory limit. (Groene AI).
fixBackported in: A user defined in the server configuration (users.xml) can no longer escape its own settings constraints by selecting another settings profile with SET profile, a SETTINGS profile = ... clause or the HTTP profile parameter. Since 26.10 such a switch replaced settings pinned with…
fixBackported in: Fixed an exception (for example from throwIf) in a query whose PREWHERE had several substring conditions on one String column, pushed into the scan by apply_string_filters_during_scan, when the result of one of them was also used elsewhere in PREWHERE. (Groene AI).
fixBackported in: Fixed the compatibility setting restoring the old default of a setting whose new default was backported to the pinned release. With compatibility set to that release, iceberg_tolerate_conflicting_manifest_schemas, backup_s3_expired_token_retry_timeout_ms,…
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 missing rows when reading an Iceberg table partitioned by several columns with a filter such as a = 2 AND b IS NULL: manifest-list partition pruning (use_iceberg_manifest_list_partition_pruning, enabled by default since 26.9) skipped manifests that hold a NULL partition value,…
fixBackported 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).
fixBackported in:. (Melvyn Peignon).
fixBackported in: Fixed count() counting rows with a NULL key value that the filter rejects, when the filter has NOT IN (or NOT (... IN ...)) over a Nullable primary key column that the in-memory primary index does not load (it follows a high-cardinality key prefix), with allow_nullable_key = 1 and…
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: Fixed a constant column of a subquery returning the type default (0, '', []) instead of its value for the unmatched rows of an outer join, or failing with ILLEGAL_COLUMN, when join reordering merges the subquery's projection into the join (query_plan_merge_expression_into_join).…
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 wrong results and a possible server abort of queries using the query condition cache when a MergeTree table was attached again (DETACH/ATTACH TABLE or ATTACH DATABASE) after TRUNCATE or ALTER TABLE ... DROP PARTITION, so that a new part got the name of a removed one. (Groene…
fixBackported in: Fix Upgrade check errors from the empty part left by DETACH PART in 04653. (Shaohua Wang).
otherBackported in: Run the settings-history style check on backport CI. (Max Kainov).