* N-gram distance was added for fuzzy string comparison. It is similar to q-gram metrics in R language. [#4466](https://github.com/yandex/ClickHouse/pull/4466)([Danila Kutenin](https://github.com/danlark1))
* Combine rules for graphite rollup from dedicated aggregation and retention patterns. [#4426](https://github.com/yandex/ClickHouse/pull/4426)([Mikhail f. Shiryaev](https://github.com/Felixoid))
* Added `max_execution_speed` and `max_execution_speed_bytes` to limit resource usage. Added `min_execution_speed_bytes` setting to complement the `min_execution_speed`. [#4430](https://github.com/yandex/ClickHouse/pull/4430)([Winter Zhang](https://github.com/zhang2014))
* Implemented function `flatten`[#4555](https://github.com/yandex/ClickHouse/pull/4555)[#4409](https://github.com/yandex/ClickHouse/pull/4409) ([alexey-milovidov](https://github.com/alexey-milovidov)[kzon](https://github.com/kzon))
* Added functions `arrayEnumerateDenseRanked` and `arrayEnumerateUniqRanked` (it's like `arrayEnumerateUniq` but allows to fine tune array depth to look for multidimensional arrays). [#4475](https://github.com/yandex/ClickHouse/pull/4475)([proller](https://github.com/proller))
* Multiple JOINS with some restrictions: no asterisks, no complex aliases in ON/WHERE/GROUP BY/... [#4462](https://github.com/yandex/ClickHouse/pull/4462)([Artem Zuikov](https://github.com/4ertus2))
* Cleanup distributed DDL queue in a separate thread so that it doesn't slow down the main loop that processes distributed DDL tasks. [#4502](https://github.com/yandex/ClickHouse/pull/4502)([Alex Zatelepin](https://github.com/ztlpn))
* Fixed undefined behaviour in ThreadPool [#4612](https://github.com/yandex/ClickHouse/pull/4612)([alexey-milovidov](https://github.com/alexey-milovidov))
* Fix compilation on Mac. [#4371](https://github.com/yandex/ClickHouse/pull/4371)([Vitaly Baranov](https://github.com/vitlibar))
* Improve push-down logic for joined statements. [#4387](https://github.com/yandex/ClickHouse/pull/4387)([Ivan](https://github.com/abyss7))
* Fixed bug in data skipping indices: order of granules after INSERT was incorrect. [#4407](https://github.com/yandex/ClickHouse/pull/4407)([Nikita Vasilev](https://github.com/nikvas0))
* Build fixes for FreeBSD. [#4444](https://github.com/yandex/ClickHouse/pull/4444)([proller](https://github.com/proller))
* Added queries from the benchmark on the website to automated performance tests. [#4496](https://github.com/yandex/ClickHouse/pull/4496)([alexey-milovidov](https://github.com/alexey-milovidov))
* Fixed a case when `quantileTiming` aggregate function can be called with negative or floating point argument (this fixes fuzz test with undefined behaviour sanitizer). [#4506](https://github.com/yandex/ClickHouse/pull/4506)([alexey-milovidov](https://github.com/alexey-milovidov))
* Added support for clang-9 [#4604](https://github.com/yandex/ClickHouse/pull/4604)([alexey-milovidov](https://github.com/alexey-milovidov))
* Support aliases in JOIN ON section for right table columns [#4412](https://github.com/yandex/ClickHouse/pull/4412)([Artem Zuikov](https://github.com/4ertus2))
*Multiple JOINS with some restrictions: no asterisks, no complex aliases in ON/WHERE/GROUP BY/... [#4462](https://github.com/yandex/ClickHouse/pull/4462)([Artem Zuikov](https://github.com/4ertus2))
*Cleanup distributed DDL queue in a separate thread so that it doesn't slow down the main loop that processes distributed DDL tasks. [#4502](https://github.com/yandex/ClickHouse/pull/4502)([Alex Zatelepin](https://github.com/ztlpn))
* Result of multiple JOINs need correct result names to be used in subselects. Replace flat aliases with source names in result. [#4474](https://github.com/yandex/ClickHouse/pull/4474)([Artem Zuikov](https://github.com/4ertus2))
* Improved heuristics of "move to PREWHERE" optimization. [#4405](https://github.com/yandex/ClickHouse/pull/4405)([alexey-milovidov](https://github.com/alexey-milovidov))
* Use proper lookup tables that uses HashTable's API for 8-bit and 16-bit keys. [#4536](https://github.com/yandex/ClickHouse/pull/4536)([Amos Bird](https://github.com/amosbird))
* Improved performance of string comparison. [#4564](https://github.com/yandex/ClickHouse/pull/4564)([alexey-milovidov](https://github.com/alexey-milovidov))
* When `min_bytes_to_use_direct_io` is set to 1, not every file was opened with O_DIRECT mode because the data size to read was sometimes underestimated by the size of one compressed block. [#4526](https://github.com/yandex/ClickHouse/pull/4526)([alexey-milovidov](https://github.com/alexey-milovidov))