VersionDrift
Product

ClickHouse 26.10.14.14 → 26.11.8.18

14 releases · 40 breaking changes · 2 security fixes · 0 advisories fixed

2security40breaking0deprecated3feature86fix

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

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: Faster index analysis and casts when a Decimal, DateTime64 or Time64 value is compared with or converted to another scale, for example minmax skip index analysis of a DateTime64(9) column compared with a DateTime constant, or CAST(toDateTime64(x, 3) AS Decimal256(30)): the overflow…
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: 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…
otherBackported in: The Cannot access sqlite database error that the SQLite database and table engines log when they load a database or table at server startup now names the database file, so it shows which database or table failed. (Groene AI).
fixBackported in: Fixed potential row loss when MOVE PART TO SHARD runs while a source part changes. (wangshun).
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 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: Fix SIGSEGV when loading vector similarity indexes on inactive (merged) parts. (Robert Schulze).
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: Fixed a server crash in EXPLAIN WHATIF for a hypothetical index with a GRANULARITY close to the maximum of UInt64. (Yaroslav Briukhovetskyi).
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: 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…
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).
otherBackported in: Keep one row group in 05452_parquet_native_encoders_encodings under the randomized Parquet byte limit. (Groene AI).
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 notes
otherBackported 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).
See how far your stack has drifted from upstream. Release data from vendors’ own sources · feed under CC BY 4.0 · Code under AGPL-3.0 Settings Feed status