Project: ClickHouse (App Definition and Development / Database)
File: v21.9.5.16-stable.md

sidebar_position: 1 sidebar_label: 2022 Backported in : Added partitioned table prefix 'p' for the query for fetching replica identity index. (). Backported in : Update zoneinfo files to 2021c. (). Backported in : Allow using a materialized column as the sharding key in a distributed table even if `insertallowmaterialized_columns=0`:. (). Backported in : Fix bug in `clickhouse-keeper-converter` which can lead to incorrect ZooKeeper log deserialization. (). Backported in : Fix shutdown of `AccessControlManager`. Now there can't be reloading of the configuration after AccessControlManager has been destroyed. This PR fixes the flaky test .html). (). Backported in : Fix releasing query ID and session ID at the end of query processing while handing gRPC call. This PR fixes flaky test .html). (). Backported in : Fix invalid constant type conversion when nullable or lowcardinality primary key is used. (). Backported in : Fix waiting for mutation with `mutations_sync=2`. (). Backported in : Do not allow to reuse previous credentials in case of inter-server secret (Before INSERT via Buffer/Kafka to Distributed table with interserver secret configured for that cluster, may re-use previously set user for that connection). (). Backported in : Send normal `Database doesn't exist error` (`UNKNOWNDATABASE`) to the client (via TCP) instead of `Attempt to read after eof` (`ATTEMPTTOREADAFTER_EOF`). (). Backported in : Fix possible `Table columns structure in ZooKeeper is different from local table structure` exception while recreating or creating new replicas of `ReplicatedMergeTree`, when one of table columns have default expressions with case-insensitive functions. (). Backported in : Fix failed assertion in ReadBufferFromHDFS. Update libhdfs3 library to be able to run in tests in debug. Closes . Closes . (). Backported in : Fix connection timeouts (`sendtimeout`/`receivetimeout`). (). Backported in : Remove window function `nth_value` as it is not memory-safe. This closes . (). Backported in : Fix replicated access storage not shutting down cleanly when misconfigured. (). Backported in : Fix Logical error `Cannot capture columns` in functions greatest/least. Closes . (). Backported in : Fix possible `Block structure mismatch` for subqueries with pushed-down `HAVING` predicate. Fixes . (). Backported in : In ODBC bridge add retries for error Invalid cursor state. It is a retriable error. Closes .

Backported in : Fix bug in check `pathStartsWith` becuase there was bug with the usage of `std::mismatch`: ` The behavior is undefined if the second range is shorter than the first range.`. (). Backported in : Fix rare segfault in `ALTER MODIFY` query when using incorrect table identifier in `DEFAULT` expression like `x.y.z...` Fixes . (). Backported in : Fix JIT expression compilation with aliases and short-circuit expression evaluation. Closes . (). Backported in : Condition in filter predicate could be lost after push-down optimisation. (). Backported in : Fix concurrent access to `LowCardinality` during `GROUP BY` (leads to SIGSEGV). (). Backported in : Fix bad cast in `ATTACH TABLE ... FROM 'path'` query when non-string literal is used instead of path. It may lead to reading of uninitialized memory. (). Backported in : Avoid `Timeout exceeded: elapsed 18446744073.709553 seconds` error that might happen in extremely rare cases, presumably due to some bug in kernel. Fixes . (). Backported in : MaterializedMySQL: Fix an issue where if the connection to MySQL was lost, only parts of a transaction could be processed. (). Backported in : Fix system tables recreation check (fails to detect changes in enum values). (). Backported in : Fix potential resource leak of the concurrent query limit of merge tree tables introduced in https://github.com/ClickHouse/ClickHouse/pull/19544 . (). Backported in : Fix data-race between `LogSink::writeMarks()` and `LogSource` in `StorageLog`. (). Backported in : Fix possible data-race between `FileChecker` and `StorageLog`/`StorageStripeLog`. (). Backported in : Fix crash of sample by `tuple()`, closes . (). Backported in : Dropped `Memory` database might reappear after server restart, it's fixed (). Also added `forceremovedatarecursivelyon_drop` setting as a workaround for `Directory not empty` error when dropping `Ordinary` database (because it's not possible to remove data leftovers manually in cloud environment). (). Backported in : FlatDictionary, HashedDictionary fix bytes_allocated calculation for nullable attributes. (). Backported in : Fix crash with shortcircuit and lowcardinality in multiIf. (). Backported in : Fix ComplexKeyHashedDictionary, ComplexKeySparseHashedDictionary parsing `preallocate` option from layout config. (). Avoid deadlocks when reading and writting on JOIN Engine tables at the same time. (). Maybe fix livelock in ZooKeeper client (). May be fix s3 tests (). Update BoringSSL ().