ClickHouse 26.9.37.5 → 26.10.4.207
2 releases · 7 breaking changes · 0 security fixes · 0 advisories fixed
0security7breaking0deprecated45feature28fix
Breaking changes
- breaking Backported in: 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… in 26.10.4.207
- breaking Backported in: 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… in 26.10.4.207
- breaking Backported in: 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… in 26.10.4.207
- breaking Backported in: Introspection functions and system.symbols work only with offsets inside the main binary: addressToSymbol no longer accepts absolute addresses, system.symbols no longer lists symbols of shared libraries, and flameGraph requires the INTROSPECTION grant. gRPC library logs are no… in 26.10.4.207
- breaking Backported in: Remove HTTP debug log with a heap address. (Raúl Marín). in 26.10.4.207
- breaking Remove an unused repository switch from ReleaseBranchCI. (Alexei Fedotov). in 26.10.4.207
- breaking Backported in: CREATE TABLE x AS src inherits the credentials embedded in the engine of src, which are masked in SHOW CREATE TABLE. It now requires the SELECT privilege on src when the inherited definition can carry credentials, instead of only SHOW COLUMNS. (Yarik Briukhovetskyi). in 26.10.2.103
Security changes
None in the release notes.
Every release in between
breakingBackported in: 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…
breakingBackported in: 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…
breakingBackported in: 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…
featureBackported in: Added the SHARED modifier for typed paths of the JSON type, for example JSON(SHARED a UInt32, SHARED b String). In MergeTree parts such paths are stored together in a constant set of files instead of a set of files per path, which keeps the number of files and object storage…
featureBackported in: DPsub is now the default join order algorithm (query_plan_optimize_join_order_algorithm = 'dpsub,greedy'), together with the CD-C conflict detector, which also lets semi and anti joins take part in reordering. Queries with more than 12 joined tables fall back to the greedy…
fixBackported in: Fixed a performance regression of dictGet with direct dictionaries (and of x IN () in general): constant literals are converted to the column type directly instead of through a CAST function per value. Closes. (Manuel).
featureBackported in: Merging large uniqExact states is several times faster with the new Robin Hood hash tables: the destination set now grows before the merge, so its inserts no longer pile up at the higher load factor. This affects uniqExactMerge, merges of AggregatingMergeTree parts with uniqExact…
featureBackported in: AI functions issue provider requests concurrently from a server-wide thread pool (ai_function_max_thread_pool_size), with up to ai_function_max_concurrent_requests_per_thread requests in flight per query thread (default 8). ai_function_max_retries defaults to 3, and new…
fixBackported in: Fixed DECIMAL_OVERFLOW thrown by =, !=, IN, NOT IN and non-Nullable IS [NOT] DISTINCT FROM when a decimal is compared with a decimal constant that does not fit its type at its scale, e.g. d IN (toDecimal128(1000000000, 0)) for d Decimal(38, 30), on sorting and partition keys, minmax…
featureBackported in: The ORC format is now read and written by a native implementation instead of the Apache ORC C++ library, with the same behavior and the same files on output. The values are read and written directly into and from ClickHouse columns: reading is 1.4 to 2.3 times faster and writing is…
fixBackported in: Reading a LowCardinality column from a corrupted data part whose indexes point past the dictionary now throws INCORRECT_DATA instead of reading past the end of the keys, which could crash the server. (Groene AI).
breakingBackported in: Introspection functions and system.symbols work only with offsets inside the main binary: addressToSymbol no longer accepts absolute addresses, system.symbols no longer lists symbols of shared libraries, and flameGraph requires the INTROSPECTION grant. gRPC library logs are no…
fixBackported in: Fix double counting in the network charts on the dashboard.html. (Azat Khuzhin).
featureBackported in: Allow jemalloc percpu arenas even if CPU counts are non deterministic. (Azat Khuzhin).
fixBackported in: Fix undefined behavior when a refreshable materialized view uses a very large RANDOMIZE FOR window. The random offset was converted from double to Int64 milliseconds and widened to microseconds without range checks, so such a window produced a meaningless next refresh time or…
fixBackported in: Fixed a server abort when reading Parquet with a declared structure carrying a DEFAULT expression, on a count-only read or with input_format_defaults_for_omitted_fields disabled. (Groene AI).
fixBackported in: Fix lightweight updates on replicated tables silently skipping rows that arrived on the initiating replica during the update_sequential_consistency sync. The update reused a storage snapshot taken before the sync, so the UPDATE returned success while those acknowledged rows kept…
fixBackported in: Fixed Arrow, ArrowStream and Arrow Flight output failing with Capacity error: array cannot contain more than 2147483646 bytes or Arrow IPC string offset exceeds 32 bits when a block held more than 2 GiB of String data. Such a block is now written as several Arrow record batches.…
fixBackported in: Fix a privilege escalation where a scheduled refresh of a SQL SECURITY DEFINER refreshable materialized view reading from a Distributed table over a cluster with an interserver was executed on remote shards without authentication, bypassing the definer's access rights. The remote…
fixBackported in: Fixed leftovers of the nested SETTINGS constraints fix (): use_query_cache set inside a subquery or a CTE could still enable the query result cache despite a CONST or readonly constraint, and a nested clause was forwarded to the shards of a Distributed query as written, bypassing…
fixBackported in: Respect remote_url_allow_hosts in the Hive metastore catalog. (Smita Kulkarni).
fixBackported in: Fixed a privilege check bypass in text index preprocessor and postprocessor expressions. They were resolved under an internal full-access context, so functions requiring a grant, such as demangle and addressToLine, could be used without it. These expressions are now authorized…
fixBackported in: Fixed a wrong result where a RIGHT, LEFT, FULL or ANY outer JOIN returned too few rows when the WHERE value came from assumeNotNull of a NULL. The query plan converted such a join to INNER, SEMI or ANTI after evaluating the filter over constants, where assumeNotNull reads a…
fixBackported in: Fixed wrong results when WHERE wraps a Nullable partition key in a NULL-erasing function: assumeNotNull, isNull/isNotNull compared with a constant ((c IS NULL) >= true), or ifNull/coalesce under NOT or with allow_key_condition_coalesce_rewrite = 0. Partition pruning discarded the…
fixBackported in: Fixed a logical error (Bad cast from type DB::ColumnReplicated to DB::ColumnNullable) in an ASOF JOIN whose right side has a Nullable ASOF key produced through lazy column replication, for example by arrayJoin or a nested JOIN. enable_lazy_columns_replication is on by default, and…
fixBackported in: Fixes a server abort when a query with LIMIT AFTER or LIMIT UNTIL has a lambda in its SELECT list that the boundary expression repeats, or once its expressions are JIT-compiled (by default on its fourth run). Such a query over remote shards also no longer fails with Serialization is…
fixBackported in: A valid query over a JOIN whose WHERE guards a conjunct that can throw could be rejected with an error such as CANNOT_PARSE_DATETIME. Filter push-down into the JOIN, merging a filter into the JOIN condition, and an aggregate projection's residual filter each rebuilt the conjuncts…
fixBackported in: Fixed ssd_cache and complex_key_ssd_cache dictionaries that share a PATH returning each other's values from dictGet, and Cache data corrupted errors in queries that run during SYSTEM RELOAD DICTIONARY of an SSD cache dictionary. Each dictionary instance now creates its own cache…
fixBackported in: Fixed wrong results and NOT_FOUND_COLUMN_IN_BLOCK errors in ORDER BY ... LIMIT queries with use_top_k_dynamic_filtering (enabled by default) when the query sorts by _part_offset and is served by a projection that stores _part_offset, and when the table has a column named…
fixBackported in: Fixed AzureBlobStorage tables created with PARTITION BY under file_like_engine_default_partition_strategy = 'wildcard' (the default for compatibility older than 26.6) that could not be attached again, so the server did not start after a restart. The engine now reads back the…
fixBackported in: Fixed secret masking of the Azure table functions and engines: a SAS token, account key or client secret was logged in clear in system.query_log for the azureBlobStorage(url, sas_token) form, argument lists with a key = value argument, extra_credentials(...) (now hidden whole),…
fixBackported in: Fixed reading a subcolumn of a Nested member added by ALTER TABLE ... ADD COLUMN (sizeN, or a JSON path below the member's array) from parts written before the ALTER. It failed with There is no subcolumn, or produced a column of the wrong type, which returned garbage values or…
fixBackported in: Fixed NOT_FOUND_COLUMN_IN_BLOCK for a query that groups by an alias of an OR chain of LIKE/ILIKE conditions and reuses that alias in ORDER BY or HAVING, for example SELECT (s LIKE '%a%' OR s LIKE '%b%' OR s LIKE '%c%' OR s LIKE '%1%') AS r FROM t GROUP BY r ORDER BY r. (Groene AI).
fixBackported in: Fixed wrong results of comparisons, has / indexOf and casts of Decimal128 / Decimal256 values when bringing a value to a larger scale does not fit the type: toDecimal128(1, 30) < 1000000000 returned 0, and CAST(toDecimal128(1000000000, 0) AS Decimal(38, 30)) returned a wrapped…
fixBackported in: Fix CANNOT_RESTORE_TABLE when restoring a Alias Engine tabel. (Han Fei).
fixBackported in: Fixed a query that never finished planning, ignoring max_execution_time and KILL QUERY, when a filter over expressions that reuse the same subexpression (such as x + x across nested subqueries) is pushed down to a JOIN or checked for the ANY to SEMI/ANTI join conversion. (Groene AI).
fixBackported in: Fixed NOT_FOUND_COLUMN_IN_BLOCK when the optimize_and_compare_chain_max_hash_work budget ran out between two copies of an expression, for example a SELECT alias of an AND chain of comparisons that is reused in GROUP BY. The transitive comparisons of optimize_and_compare_chain are…
fixBackported in: A query that started while CPU slots were busy, or whose threads were stopped by CPU preemption, now starts threads for the slots granted to it later as soon as they are granted. Previously such slots could stay unused for seconds, and other queries could not use them either.…
breakingBackported in: Remove HTTP debug log with a heap address. (Raúl Marín).
breakingRemove an unused repository switch from ReleaseBranchCI. (Alexei Fedotov).
+155 more items in the release notesbreakingBackported in: CREATE TABLE x AS src inherits the credentials embedded in the engine of src, which are masked in SHOW CREATE TABLE. It now requires the SELECT privilege on src when the inherited definition can carry credentials, instead of only SHOW COLUMNS. (Yarik Briukhovetskyi).
featureBackported in: Added the experimental Elasticsearch table engine and elasticsearch table function for reading documents from an Elasticsearch index as a JSON column, with the document id and index name available as virtual columns. Enable them with the enable_elasticsearch setting. (Kirill Kopnev).
featureThe setting use_query_condition_cache_for_time_conditions (using the query condition cache for conditions involving the current time) is now experimental and disabled by default. (Alexey Milovidov).
featureBackported in: Column statistics of MergeTree data parts are cached per data part and column in a new statistics cache (server settings statistics_cache_size, statistics_cache_policy, statistics_cache_size_ratio; SYSTEM DROP STATISTICS CACHE), loaded on demand and merged on the fly for every…
featureBackported in: Lazy materialization now works for LIMIT N queries over JOINs. Controlled by the new setting query_plan_lazy_materialization_for_join, enabled by default. . (Nikolai Kochetov).
featureBackported in: Sets of IN with a subquery spill to disk by default: max_bytes_ratio_before_external_set now defaults to 0.5, so a set spills once query memory exceeds half of the memory that the server or user memory limits leave. Set it to 0 to keep such sets in memory. Sets on disk are built and…
featureBackported in: Estimating subcolumn sizes for PREWHERE (for example m['key'] of a Map(LowCardinality(String), String) column) no longer reads the LowCardinality dictionary or the Variant discriminators header of every data part, which made planning slow on object storage, especially for each new…
featureBackported in: Improved automatic_parallel_replicas observability by adding outcome-specific ProfileEvents, split optimization/plan-build timing counters, and runtime statistics-collection timing in query_log. (Nikita Taranov).
featureBackported in: Queries with FINAL now use the virtual row optimization of reading in order. Supported for ReplacingMergeTree, CollapsingMergeTree, VersionedCollapsingMergeTree, SummingMergeTree, AggregatingMergeTree and CoalescingMergeTree. (Vladimir Cherkasov).
featureBackported in: Reduced the memory usage of incremental BACKUP: the base backup keeps only the sizes and checksums of its files instead of the full information about each file. For a base backup of millions of files this saves gigabytes. (Julia Kartseva).
featureBackported in: Compare TOTP codes and plaintext_password passwords in constant time, so that the response time does not depend on how many leading characters are correct or on which time window matched. (Vladimir Cherkasov).
featureBackported in: A replica that takes part in a parallel replicas read now follows the initiator even when its own automatic_parallel_replicas_mode is not 0, for example when allow_feature_tier drops the value the initiator sends, or when INSERT ... SETTINGS automatic_parallel_replicas_mode = 2…
featureBackported in: The "Format" button in the Web UI now supports inputs with multiple queries: each query is formatted separately and replaced in place, keeping the comments and delimiters between them. (Alexey Milovidov).
featureBackported in: Automatic parallel replicas settings (automatic_parallel_replicas_mode, automatic_parallel_replicas_min_bytes_per_replica) are now production tier instead of experimental. (Nikita Taranov).
featureBackported in: The nodes in the output of EXPLAIN AST graph = 1 are numbered sequentially instead of being identified by memory addresses, so the output is the same on every run. (Raúl Marín).
featureBackported in: Fatal error reports no longer contain runtime memory addresses: stack frames and the fault address are printed as offsets inside the executable or a library, which can be passed to addr2line, and other addresses are hidden. system.crash_log.fault_address now contains the offset…
featureBackported in: A JOIN whose ON condition has a constant-false conjunct now works with the experimental parallel_replicas_plan_based setting when the join uses grace_hash, spills to disk, or runs with join_use_nulls = 1, instead of terminating the server or failing with NOT_FOUND_COLUMN_IN_BLOCK.…
featureBackported in: Fix a possible crash or out-of-bounds memory access when reading from HDFS if a DataNode or NameNode sends malformed responses. (Alexey Milovidov).
featureBackported in: Adds a minimum threshold for spilling in-memory data when external aggregation is enabled. (Mikhail Artemenko).
featureBackported in: System tables no longer contain runtime memory addresses: stack frames outside the main binary are stored as 0, system.trace_log.ptr is an identifier instead of an address, and the ids in system.processors_profile_log are indices within the query. (Raúl Marín).
featureBackported in: Improve glue catalog cache. Let's cache only mapping column name -> timestamp, not the whole metadata. (Konstantin Vedernikov).
featureBackported in: The obfuscate table function and the clickhouse obfuscator tool now support LowCardinality, Enum, Date32, DateTime64, Decimal, wide integers, IPv4, IPv6, BFloat16, Tuple and Map columns. The exception for an unsupported type now names the type and the column. (Alexey Milovidov).
featureBackported in: Hardening: certificate chains containing the compromised eMudhra intermediate CAs or the roots that issued them (emSign Root TLS CA - G3, emSign ECC Root CA - G3) are rejected even if the trust store of the operating system still trusts them. The CA certificates embedded into the…
featureBackported in: This patch supports writeFileUsingBlobWritingFunction for disks with multiple configured locations. (Mikhail Artemenko).
featureNO CL ENTRY: 'Revert "Backport to 26.10: Lower Bound External Group By Spill"'. (Mikhail Artemenko).
featureBackported in: Make 03673_columns_description_cache and 04257_102926_columns_descriptions_cache_nested_eviction robust to asynchronous part removal, applying the fix already made to their sibling 04510_shared_part_schema_metadata_eviction. (Groene AI).
featureBackported in: Query cache: do not store a partial subquery result. (Konstantin Bogdanov).
featureBackported in: Rewrite arrayJoin(emptyArrayToSingle(x)) -> LEFT ARRAY JOIN x. (Yarik Briukhovetskyi).
featureBackported in: Fix h3CellAreaM2/h3CellAreaRads2 precision loss for cells crossing the antimeridian. (Konstantin Bogdanov).
featureBackported in: Fix flaky integration test test_prometheus_protocols/test_evaluation.py::test_multiple_instant_vectors, which compared the series of an instant vector in a fixed order. (Groene AI).
featureBackported in: Use node ids instead of addresses in pipeline diagnostics. (Raúl Marín).
featureBackported in: Exit early in sliceContains for short and early-hit searches. (Raúl Marín).
featureBackported in: Fix Broken pipe in test 05345_robin_hood_large_hash_tables. (Alexey Milovidov).
featureBackported in: Lazily replicated ARRAY JOIN passenger columns hold only the rows of their output block again, so materialized views, max_result_bytes and squashing size ARRAY JOIN output correctly. (Groene AI).
featureBackported in: With distributed_plan_join_runtime_filters, a runtime filter that is no longer needed by its receiver no longer produces EXCHANGE_PEER_DISCONNECTED errors in system.errors and in the log. (Alexander Gololobov).
featureBackported in: Rename integer division setting to sql_compatible_division_for_integers. (Ilya Yatsishin).
featureBackported in: Revert "SLRU filesystem cache: promote partially downloaded file segments". (Sema Checherinda).
featureBackported in: Pin the old server image of test_custom_s3_disk_remote_url_allow_hosts to 26.8.26.12. (Groene AI).
featureBackported in: Decline automatic parallel replicas when the coordinated read gets another read's analysis. (Nikita Taranov).
featureBackported in: Keep the sliceContains block loop independent of the first-vector test on AArch64. (Groene AI).
+61 more items in the release notes