ClickHouse 26.10.4.207 → 26.10.6.18
2 releases · 1 breaking change · 1 security fix · 0 advisories fixed
1security1breaking0deprecated1feature49fix
Breaking changes
- breaking Backported in: Settings of type Seconds (for example max_execution_time or lock_acquire_timeout) now reject a negative value with BAD_ARGUMENTS. A negative max_execution_time meant no limit and passed a MAX constraint; a value whose microseconds round to 2^63 (for example 9223372036854.775) was… in 26.10.5.57
Security changes
- security Backported in: 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… in 26.10.5.57
Every release in between
fixBackported in: Fix cubic complexity of enumerating subcolumns of deeply nested Array types. (Alexey Milovidov).
otherBackported in: Parsing row-based input formats and Native into tables with nested Tuple columns is faster for small blocks (streaming engines, async inserts): the per-block columns are now created once per nested element instead of once per nesting level. Closes. (Groene AI).
otherBackported in: SELECT ... FINAL WHERE LIMIT n on a ReplacingMergeTree table with enable_vertical_final (the default) now stops reading early when the rows that pass the filter come from a small part, instead of reading the whole table. Closes. (Groene AI).
fixBackported in: Fixed queries and merges on encrypted disks over remote storage discarding the first prefetch of every column and reading it again synchronously. (Christoph Wurm).
otherBackported in: Range conditions such as x < 100 on a column with tdigest statistics are now estimated correctly on tables with several parts. Previously the estimate depended on the order of the parts and could be zero, so the planner could pick a worse join order, PREWHERE order or distributed…
fixBackported in: Improved logic of matching read steps between single-node and parallel replicas plans. This fixes a potential wrong query result in case of an incorrect matching and also makes the automatic parallel replicas optimization applicable to more queries. (Nikita Taranov).
fixBackported in: Fix a valid JOIN ON query rejected with CANNOT_CONVERT_TYPE by optimize_extract_common_expressions when the extraction removes the only Nothing-typed operand, for example a comparison with an ARRAY JOIN [] alias. Closes. (Groene AI).
fixBackported in: Prevent impersonation via forged SECONDARY_QUERY on secret clusters. (Vitaly Baranov).
fixBackported in: Projections no longer provide _block_number, _block_offset and _row_exists unless they store them, so queries reading these columns use the main table. Previously the values came from the projection part, which caused wrong results and made incremental refreshable materialized views…
fixBackported in: Fix server termination when outdated data parts cannot be scheduled for loading, e.g. when the global thread pool is exhausted. (Nikolay Degterinsky).
fixBackported in: Fix the logical error Context has expired when the Kusto * operator (kqlMultiply) is used in a query with parallel replicas. (Alexey Milovidov).
fixBackported in: The error of AI functions for an insecure endpoint no longer contains the endpoint of the named collection, which could carry a secret not visible to the user. (George Larionov).
fixBackported in: SYSTEM SYNC DATABASE REPLICA without ON CLUSTER now requires the SYSTEM SYNC DATABASE REPLICA grant on the database. Before, any user could run it. (Lazizbek Ergashev).
fixBackported in: Fix an asynchronous INSERT ... FROM INFILE sent directly to the server opening the file on the server before the query was rejected. (Sema Checherinda).
fixBackported in: Fix a server crash when deserializing a malformed aggregate state that contains a LowCardinality(String) value. (Raúl Marín).
otherBackported in: Update wasmtime to v50.0.1. (Konstantin Bogdanov).
otherBackported in: Keep the identity of a set in the cache key of an expression. (Nikita Taranov).
breakingBackported in: Settings of type Seconds (for example max_execution_time or lock_acquire_timeout) now reject a negative value with BAD_ARGUMENTS. A negative max_execution_time meant no limit and passed a MAX constraint; a value whose microseconds round to 2^63 (for example 9223372036854.775) was…
securityBackported in: 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…
featureBackported in: Add setting automatic_parallel_replicas_statistics_drift_ratio (default 1.5, previously a fixed 2): how much the rows a read selects may differ from the ones its statistics were collected on before automatic parallel replicas collects the statistics again. (Nikita Taranov).
fixBackported in: Fixed wrong row order for ORDER BY (and GROUP BY with optimize_aggregation_in_order) when reading in order from a sorted object storage table, e.g. an Iceberg table whose files carry its sort order. ORDER BY ... DESC on such tables no longer returns ascending rows. (Groene AI).
fixBackported in: Fixed a wrong result when an alias of sumIf(k, cond) or sum(if(cond, 0, k)) with a constant k other than 1 is referenced more than once, for example SELECT sumIf(2, cond) AS r, r + 0, r + 1 or HAVING r > 3 AND r < 15: every reference after the first returned countIf without the…
fixBackported in: Fix computation of the predicted size for MergeTree readers involving PREWHERE clause. The columns that are read just to execute the prewhere clause are also considered for the block size, preventing out-of-memory errors. (Javier G. Sogo).
fixBackported in: Fixed NOT_FOUND_COLUMN_IN_BLOCK for a query whose SELECT alias is an extract call with a pattern ending in more than one .$ and is reused by GROUP BY together with ORDER BY, HAVING, WHERE or another alias, for example SELECT extract(s, '(1).$.*$') AS r FROM t GROUP BY r ORDER BY r.…
fixBackported in: Fixed a server crash in INSERT ... SELECT with parallel replicas (parallel_distributed_insert_select = 2) when the SELECT's own SETTINGS rule out the local plan that the explicit INSERT-level settings allow, for example INSERT INTO t SETTINGS parallel_replicas_local_plan = 1 SELECT…
fixBackported in: Fixes a query hanging during planning when max_rows_to_read with read_overflow_mode = 'throw' is below the rows of a table where a normal projection exists in only some parts. EXPLAIN projections = 1 now also lists the projections of such a read. (Vincent Voyer).
fixBackported in: Fixed an exception (LOGICAL_ERROR Bad cast from type ... or ILLEGAL_COLUMN) in distributed queries that select the same column more than once with LIMIT or distributed_group_by_no_merge = 2, when the column type of the Distributed table differs from the type on the shards. (Groene…
fixBackported in: Lazy materialization for LIMIT queries over joins now also works when the query has ARRAY JOIN: the columns of a table below the ARRAY JOIN are read only for the rows that the LIMIT returns. (Nikolai Kochetov).
fixBackported in: Fix RegexpFunctionRewritePass mis-rewriting replaceRegexpAll to replaceRegexpOne when a leading ^ is inside or followed by an empty inline flag group (?) (closes, closes). (duongynhi000005-oss).
fixBackported in: Fixed NOT_FOUND_COLUMN_IN_BLOCK for a LIMIT BY key that is a GROUP BY key spelled with a different alias, for example a positional LIMIT 1 BY 1 over GROUP BY toString(c0) WITH ROLLUP, WITH CUBE or WITH TOTALS. Closes. (Groene AI).
fixBackported in: Fixed additional_result_filter being applied to a non-correlated EXISTS subquery, which made such queries fail with UNKNOWN_IDENTIFIER, or with TOO_DEEP_RECURSION when the filter itself contained EXISTS. (Groene AI).
fixBackported in: Fix DeltaLake file pruning for comparisons over a non-nullable Date/Date32 cast of a Nullable(Date32) column, e.g. d::Date = '2026-01-01' with the default cast_keep_nullable = 0. Previously such filters scanned every data file. (Arsen Muk).
fixBackported in: A Merge table and the merge table function no longer count the matched tables the user cannot see (no SHOW TABLES) when count() is answered from metadata or in system.tables total_rows/total_bytes, and their system.columns sizes include only the columns the user can see (SHOW…
fixBackported in: Fixed addDate, subDate, the add*/subtract* interval functions and +/- with an INTERVAL throwing CANNOT_PARSE_DATETIME for the NULL rows of a Nullable(String) date. Since 26.10 this also happened for the result of formatDateTime over a Nullable column, for example…
fixBackported in: Fix a crash and wrong query results when a table has a column literally named mapKeys(m) or mapValues(m) with a bloom_filter index on it. (Elmi Ahmadov).
fixBackported in: Fix a wrong order of rows for a query like SELECT ... WHERE toDate(ts) = '2024-01-01' ORDER BY toDate(ts), b LIMIT 5 over a table with the sorting key (ts, b) when optimize_read_in_order is enabled. A query that filters a leading sorting key column by equality and lists it in ORDER…
fixBackported in: Fixed a use-after-free on reading a Delta Lake table with column mapping in which a column is stored under the name of another column (for example, after column mapping is enabled on an existing table and columns are renamed), when the columns are requested in a particular order,…
fixBackported in: On a cluster without an interserver secret, remote nodes now apply the row policies of the roles set by SET ROLE on the initiator, not of the default roles of the user. Original fix by @fm4v. (Alexey Milovidov).
fixBackported in: Fix a server crash on a Decimal parameter with a scale above the maximum precision. (Konstantin Bogdanov).
fixBackported in: Check the scale of a Decimal value before formatting it as text, so a value with an out-of-range scale produces an exception instead of undefined behavior. (Alexey Milovidov).
fixBackported in: Fixed Unsupported storage type: abfs:// when reading a table from a DataLakeCatalog database (for example OneLake) whose catalog reports table locations with the plain abfs:// scheme. Previously only abfss:// was accepted, although both name the same ADLS Gen2 storage. (Nikita…
fixBackported in: Fixed a memory leak when the merge of the per-thread hash tables of GROUP BY failed with an exception, for example on max_memory_usage: the states of aggregate functions such as uniqExact or quantileExact that waited to be merged were never freed. (Groene AI).
fixBackported in: Fixed DROP WORKLOAD removing a resource with the same name and DROP RESOURCE removing a workload with the same name when workload entities are stored in Keeper (workload_zookeeper_path). A user with only one of the two privileges could remove the other kind of entity. (Groene AI).
fixBackported in: Fixed CREATE WORKLOAD, DROP WORKLOAD, CREATE RESOURCE and DROP RESOURCE with workload_zookeeper_path overwriting definitions written by other replicas when the query was the first to use a renewed Keeper session. (Groene AI).
fixBackported in: Fix a possible crash of the Template input format when the format string for the result set does not contain ${data}. Now it is an error. (Alexey Milovidov).
fixBackported in: Fix a server abort when merging a malformed serialized state of a -Map aggregate function with a FixedString key. Now such a state is rejected with INCORRECT_DATA. (Alexey Milovidov).
fixBackported in: Fix a possible crash when an exception (for example, a memory limit) is thrown during the short-circuit evaluation of a function returning an AggregateFunction state. (Alexey Milovidov).
fixBackported in: Fix a possible crash of the PostgreSQL table engine, table function and database engine when the remote server reports an absurd number of array dimensions. (Alexey Milovidov).
fixBackported in: Fix a stack overflow in the ParquetMetadata format for files with a very deeply nested schema. The depth is now limited by max_parser_depth, as in the Parquet format, and never exceeds 1000. (Alexey Milovidov).
fixBackported in: Fix out-of-bounds reads when deserializing a query plan with a step lacking some of its inputs or having extra children. Now such a plan is rejected with INCORRECT_DATA. (Alexey Milovidov).
fixBackported in: Fix a crash of the DWARF input format on an ELF file with a malformed attribute length. (Alexey Milovidov).
fixBackported in: Fix out-of-bounds reads when deserializing a query plan with a FillingStep repeating an INTERPOLATE column. Now such a plan is rejected with INCORRECT_DATA. (Alexey Milovidov).
fixBackported in: Fix out-of-bounds memory access with a state of mergedJSONPatch containing a repeated path. Now such a state is rejected with INCORRECT_DATA. (Alexey Milovidov).
fixBackported in: Fix a one-byte heap overflow when reading a String state of any/min/max (and similar) aggregate functions in an old format that ends without the zero terminator. Original fix by @motsc. (Alexey Milovidov).
fixBackported in: Fix a possible out-of-bounds read in the Parquet reader when PREWHERE filters out a whole page of a PLAIN-encoded string column read through a conversion (e.g. to Geometry). (Alexey Milovidov).
fixBackported in: Fix a possible crash when restoring a backup from a zip archive with a password if an encrypted entry of the archive is smaller than the encryption header. (Alexey Milovidov).
fixBackported in: Fix a regression from where (range) OR x IS NULL, with x a Nullable cast of a sort key expression (for example a column of a UNION ALL view whose other branch returns NULL), could not use the primary key or partition pruning and read all parts. (Seva Potapov).
+15 more items in the release notes