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

sidebar_position: 1 sidebar_label: 2022 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 transformation of disjunctions chain to `IN` (controlled by settings `optimizeminequalitydisjunctionchainlength`) in distributed queries with settings `legacycolumnnameoftupleliteral = 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 the number of arguments required by s2RectAdd and s2RectContains functions. (). Backported in : Add Settings.Names, Settings.Values aliases for system.processes table. (). Backported in : Fix the coredump in the creation of distributed tables, when the parameters passed in are wrong. (). Backported in : Fix possible crash for `SELECT` with partially created aggregate projection in case of exception. (). Backported in : Fix benign race condition in ReplicatedMergeTreeQueue. Shouldn't be visible for user, but can lead to subtle bugs. (). Backported in : Fix extremely rare case when ReplicatedMergeTree replicas can diverge after hard reboot of all replicas. The error looks like `Part ... intersects (previous|next) part ...`. (). Backported in : Fix expressions compilation with short circuit evaluation. (). Backported in : Fixed a race condition between `DROP PART` and `REPLACE/MOVE PARTITION` that might cause replicas to diverge in rare cases. (). Backported in : Fix reading of subcolumns from compact parts. (). Backported in : Fix bug with LowCardinality in short-curcuit function evaluation. Closes . (). Backported in : Fix queries to external databases (i.e. MySQL) with multiple columns in IN ( i.e. `(k,v) IN ((1, 2))` ) (but note that this has some backward incompatibility for the `clickhouse-copier` since it uses alias for tuple element). (). Backported in : Fix waiting for mutation with `mutations_sync=2`. (). Backported in : Fix higher-order array functions (`SIGSEGV` for `arrayCompact`/`ILLEGAL_COLUMN` for `arrayDifference`/`arrayCumSumNonNegative`) with consts. (). Backported in : Fix bad optimizations of ORDER BY if it contains WITH FILL. This closes . This closes . (). Backported in : Fix the number of threads used in `GLOBAL IN` subquery (it was executed in single threads since bugfix). (). 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 : Fix segfault while inserting into column with type LowCardinality(Nullable) in Avro input format. (). 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

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 null deference for `GROUP BY WITH TOTALS HAVING` (when the column from `HAVING` wasn't selected). (). 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 : Fix INSERT SELECT incorrectly fills MATERIALIZED column based of Nullable column. (). 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. (). Fix usage of nested columns with non-array columns with the same prefix (). Lower compiledexpressioncache_size to 128MB (). Column default dictGet identifier fix (). Do not add const group by key for query with only having. (). Merging (). Fix terminate on uncaught exception (). Fix arcadia (pre)stable 21.10 build (). May be fix s3 tests (). Remove unnecessary PEERDIR to libcxx-filesystem (). Update BoringSSL (). SQL user defined functions fix alias ().