ClickHouse 26.10.13.11 → 26.11.1.2942
1 release · 39 breaking changes · 1 security fix · 0 advisories fixed
1security39breaking0deprecated0feature0fix
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
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
Every release in between
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 notes