Contributed to open source
Fixed a bug
Fixed a bug in the query planner in ClickHouse. It couldn't handle certain queries with both ORDER BY and LIMIT BY clauses in distributed mode.

https://github.com/ClickHouse/ClickHouse/pull/5407