* use AggregationMethod ctor with reserve
* add new settings
* add HashTablesStatistics
* support queries with limit
* support distributed and with external aggregation
* add new profile events
* add some tests
* add perf test
* export cache stats through AsynchronousMetrics
* rm redundant trace
* fix style
* fix 02122_parallel_formatting test
* review fixes
* fix 02122_parallel_formatting test
* apply also to two-level HTs
* try simpler strategy
* increase max_size_to_preallocate_for_aggregation for experiment
* fixes
* Revert "increase max_size_to_preallocate_for_aggregation for experiment"
This reverts commit 6cf6f75704.
* fix test
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
02015_shard_crash_clang_12_build OK 30.39
01014_lazy_database_concurrent_recreate_reattach_and_show_tables OK 31.27
01034_move_partition_from_table_zookeeper OK 32.34
01035_concurrent_move_partition_from_table_zookeeper OK 35.35
00183_skip_unavailable_shards OK 36.69
01593_concurrent_alter_mutations_kill OK 38.36
02122_parallel_formatting OK 39.27
02100_multiple_hosts_command_line_set OK 44.04
01114_database_atomic OK 45.67
01287_max_execution_speed OK 90.98
01599_multiline_input_and_singleline_comments OK 180.09