diff --git a/.github/ISSUE_TEMPLATE/backward-compatibility.md b/.github/ISSUE_TEMPLATE/backward-compatibility.md index f40a9d6a915..8f87197e73d 100644 --- a/.github/ISSUE_TEMPLATE/backward-compatibility.md +++ b/.github/ISSUE_TEMPLATE/backward-compatibility.md @@ -17,7 +17,7 @@ A clear and concise description of what works not as it is supposed to. * Which interface to use, if matters * Non-default settings, if any * `CREATE TABLE` statements for all tables involved -* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary +* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary * Queries to run that lead to unexpected result **Error message and/or stacktrace** diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index eb73dc3e435..1445af4b051 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -17,7 +17,7 @@ A clear and concise description of what works not as it is supposed to. * Which interface to use, if matters * Non-default settings, if any * `CREATE TABLE` statements for all tables involved -* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary +* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary * Queries to run that lead to unexpected result **Expected behavior** diff --git a/.github/ISSUE_TEMPLATE/performance-issue.md b/.github/ISSUE_TEMPLATE/performance-issue.md index 96c8cb77afb..d0e549039a6 100644 --- a/.github/ISSUE_TEMPLATE/performance-issue.md +++ b/.github/ISSUE_TEMPLATE/performance-issue.md @@ -17,7 +17,7 @@ What exactly works slower than expected? * Which interface to use, if matters * Non-default settings, if any * `CREATE TABLE` statements for all tables involved -* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary +* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary * Queries to run that lead to slow performance **Expected performance** diff --git a/.github/ISSUE_TEMPLATE/unexpected-behaviour.md b/.github/ISSUE_TEMPLATE/unexpected-behaviour.md index 25557693140..27ab217ca33 100644 --- a/.github/ISSUE_TEMPLATE/unexpected-behaviour.md +++ b/.github/ISSUE_TEMPLATE/unexpected-behaviour.md @@ -17,7 +17,7 @@ A clear and concise description of what works not as it is supposed to. * Which interface to use, if matters * Non-default settings, if any * `CREATE TABLE` statements for all tables involved -* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary +* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary * Queries to run that lead to unexpected result **Expected behavior** diff --git a/.github/ISSUE_TEMPLATE/usability-issue.md b/.github/ISSUE_TEMPLATE/usability-issue.md index daa83878182..6a084a72619 100644 --- a/.github/ISSUE_TEMPLATE/usability-issue.md +++ b/.github/ISSUE_TEMPLATE/usability-issue.md @@ -17,7 +17,7 @@ A clear and concise description of what works not as it is supposed to. * Which interface to use, if matters * Non-default settings, if any * `CREATE TABLE` statements for all tables involved -* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary +* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary * Queries to run that lead to unexpected result **Expected behavior** diff --git a/.gitignore b/.gitignore index 6aa331edc84..703306f9232 100644 --- a/.gitignore +++ b/.gitignore @@ -73,100 +73,100 @@ contrib/libpoco/Poco/ contrib/libpoco/bin/ contrib/libpoco/cmake_uninstall.cmake contrib/libre2/re2_st/ -dbms/src/Client/clickhouse-benchmark -dbms/src/Client/clickhouse-client -dbms/src/Client/tests/test-connect -dbms/src/Common/tests/arena_with_free_lists -dbms/src/Common/tests/auto_array -dbms/src/Common/tests/compact_array -dbms/src/Common/tests/hash_table -dbms/src/Common/tests/hashes_test -dbms/src/Common/tests/int_hashes_perf -dbms/src/Common/tests/lru_cache -dbms/src/Common/tests/parallel_aggregation -dbms/src/Common/tests/parallel_aggregation2 -dbms/src/Common/tests/radix_sort -dbms/src/Common/tests/shell_command_test -dbms/src/Common/tests/simple_cache -dbms/src/Common/tests/sip_hash -dbms/src/Common/tests/sip_hash_perf -dbms/src/Common/tests/small_table -dbms/src/Core/tests/exception -dbms/src/Core/tests/field -dbms/src/Core/tests/rvo_test -dbms/src/Core/tests/string_pool -dbms/src/DataStreams/tests/aggregating_stream -dbms/src/DataStreams/tests/block_tab_separated_streams -dbms/src/DataStreams/tests/collapsing_sorted_stream -dbms/src/DataStreams/tests/expression_stream -dbms/src/DataStreams/tests/filter_stream -dbms/src/DataStreams/tests/filter_stream_hitlog -dbms/src/DataStreams/tests/fork_streams -dbms/src/DataStreams/tests/glue_streams -dbms/src/DataStreams/tests/json_streams -dbms/src/DataStreams/tests/native_streams -dbms/src/DataStreams/tests/sorting_stream -dbms/src/DataStreams/tests/tab_separated_streams -dbms/src/DataStreams/tests/union_stream -dbms/src/DataStreams/tests/union_stream2 -dbms/src/DataTypes/tests/data_type_string -dbms/src/DataTypes/tests/data_types_number_fixed -dbms/src/Functions/tests/functions_arithmetic -dbms/src/Functions/tests/logical_functions_performance -dbms/src/Functions/tests/number_traits -dbms/src/IO/tests/async_write -dbms/src/IO/tests/cached_compressed_read_buffer -dbms/src/IO/tests/compressed_buffer -dbms/src/IO/tests/hashing_read_buffer -dbms/src/IO/tests/hashing_write_buffer -dbms/src/IO/tests/io_and_exceptions -dbms/src/IO/tests/io_operators -dbms/src/IO/tests/mempbrk -dbms/src/IO/tests/o_direct_and_dirty_pages -dbms/src/IO/tests/parse_int_perf -dbms/src/IO/tests/parse_int_perf2 -dbms/src/IO/tests/read_buffer -dbms/src/IO/tests/read_buffer_aio -dbms/src/IO/tests/read_buffer_perf -dbms/src/IO/tests/read_escaped_string -dbms/src/IO/tests/read_float_perf -dbms/src/IO/tests/read_write_int -dbms/src/IO/tests/valid_utf8 -dbms/src/IO/tests/valid_utf8_perf -dbms/src/IO/tests/var_uint -dbms/src/IO/tests/write_buffer -dbms/src/IO/tests/write_buffer_aio -dbms/src/IO/tests/write_buffer_perf -dbms/src/Interpreters/tests/address_patterns -dbms/src/Interpreters/tests/aggregate -dbms/src/Interpreters/tests/compiler_test -dbms/src/Interpreters/tests/create_query -dbms/src/Interpreters/tests/expression -dbms/src/Interpreters/tests/expression_analyzer -dbms/src/Interpreters/tests/hash_map -dbms/src/Interpreters/tests/hash_map2 -dbms/src/Interpreters/tests/hash_map3 -dbms/src/Interpreters/tests/hash_map_string -dbms/src/Interpreters/tests/hash_map_string_2 -dbms/src/Interpreters/tests/hash_map_string_3 -dbms/src/Interpreters/tests/hash_map_string_small -dbms/src/Interpreters/tests/in_join_subqueries_preprocessor -dbms/src/Interpreters/tests/logical_expressions_optimizer -dbms/src/Interpreters/tests/select_query -dbms/src/Interpreters/tests/two_level_hash_map -dbms/src/Interpreters/tests/users -dbms/src/Parsers/tests/create_parser -dbms/src/Parsers/tests/select_parser -dbms/src/Server/clickhouse-server -dbms/src/Server/clickhouse-server.init -dbms/src/Storages/tests/hit_log -dbms/src/Storages/tests/merge_tree -dbms/src/Storages/tests/part_checker -dbms/src/Storages/tests/part_name -dbms/src/Storages/tests/pk_condition -dbms/src/Storages/tests/seek_speed_test -dbms/src/Storages/tests/storage_log -dbms/src/Storages/tests/system_numbers +dbms/Client/clickhouse-benchmark +dbms/Client/clickhouse-client +dbms/Client/tests/test-connect +dbms/Common/tests/arena_with_free_lists +dbms/Common/tests/auto_array +dbms/Common/tests/compact_array +dbms/Common/tests/hash_table +dbms/Common/tests/hashes_test +dbms/Common/tests/int_hashes_perf +dbms/Common/tests/lru_cache +dbms/Common/tests/parallel_aggregation +dbms/Common/tests/parallel_aggregation2 +dbms/Common/tests/radix_sort +dbms/Common/tests/shell_command_test +dbms/Common/tests/simple_cache +dbms/Common/tests/sip_hash +dbms/Common/tests/sip_hash_perf +dbms/Common/tests/small_table +dbms/Core/tests/exception +dbms/Core/tests/field +dbms/Core/tests/rvo_test +dbms/Core/tests/string_pool +dbms/DataStreams/tests/aggregating_stream +dbms/DataStreams/tests/block_tab_separated_streams +dbms/DataStreams/tests/collapsing_sorted_stream +dbms/DataStreams/tests/expression_stream +dbms/DataStreams/tests/filter_stream +dbms/DataStreams/tests/filter_stream_hitlog +dbms/DataStreams/tests/fork_streams +dbms/DataStreams/tests/glue_streams +dbms/DataStreams/tests/json_streams +dbms/DataStreams/tests/native_streams +dbms/DataStreams/tests/sorting_stream +dbms/DataStreams/tests/tab_separated_streams +dbms/DataStreams/tests/union_stream +dbms/DataStreams/tests/union_stream2 +dbms/DataTypes/tests/data_type_string +dbms/DataTypes/tests/data_types_number_fixed +dbms/Functions/tests/functions_arithmetic +dbms/Functions/tests/logical_functions_performance +dbms/Functions/tests/number_traits +dbms/IO/tests/async_write +dbms/IO/tests/cached_compressed_read_buffer +dbms/IO/tests/compressed_buffer +dbms/IO/tests/hashing_read_buffer +dbms/IO/tests/hashing_write_buffer +dbms/IO/tests/io_and_exceptions +dbms/IO/tests/io_operators +dbms/IO/tests/mempbrk +dbms/IO/tests/o_direct_and_dirty_pages +dbms/IO/tests/parse_int_perf +dbms/IO/tests/parse_int_perf2 +dbms/IO/tests/read_buffer +dbms/IO/tests/read_buffer_aio +dbms/IO/tests/read_buffer_perf +dbms/IO/tests/read_escaped_string +dbms/IO/tests/read_float_perf +dbms/IO/tests/read_write_int +dbms/IO/tests/valid_utf8 +dbms/IO/tests/valid_utf8_perf +dbms/IO/tests/var_uint +dbms/IO/tests/write_buffer +dbms/IO/tests/write_buffer_aio +dbms/IO/tests/write_buffer_perf +dbms/Interpreters/tests/address_patterns +dbms/Interpreters/tests/aggregate +dbms/Interpreters/tests/compiler_test +dbms/Interpreters/tests/create_query +dbms/Interpreters/tests/expression +dbms/Interpreters/tests/expression_analyzer +dbms/Interpreters/tests/hash_map +dbms/Interpreters/tests/hash_map2 +dbms/Interpreters/tests/hash_map3 +dbms/Interpreters/tests/hash_map_string +dbms/Interpreters/tests/hash_map_string_2 +dbms/Interpreters/tests/hash_map_string_3 +dbms/Interpreters/tests/hash_map_string_small +dbms/Interpreters/tests/in_join_subqueries_preprocessor +dbms/Interpreters/tests/logical_expressions_optimizer +dbms/Interpreters/tests/select_query +dbms/Interpreters/tests/two_level_hash_map +dbms/Interpreters/tests/users +dbms/Parsers/tests/create_parser +dbms/Parsers/tests/select_parser +dbms/Server/clickhouse-server +dbms/Server/clickhouse-server.init +dbms/Storages/tests/hit_log +dbms/Storages/tests/merge_tree +dbms/Storages/tests/part_checker +dbms/Storages/tests/part_name +dbms/Storages/tests/pk_condition +dbms/Storages/tests/seek_speed_test +dbms/Storages/tests/storage_log +dbms/Storages/tests/system_numbers libs/libcommon/src/revision.h libs/libcommon/src/tests/date_lut2 libs/libcommon/src/tests/date_lut3 @@ -184,15 +184,15 @@ libs/libzkutil/src/tests/zkutil_zookeeper_holder utils/zookeeper-create-entry-to-download-part/zookeeper-create-entry-to-download-part utils/zookeeper-dump-tree/zookeeper-dump-tree utils/zookeeper-remove-by-list/zookeeper-remove-by-list -dbms/src/Storages/tests/remove_symlink_directory +dbms/Storages/tests/remove_symlink_directory libs/libcommon/src/tests/json_test utils/compressor/zstd_test utils/wikistat-loader/wikistat-loader -dbms/src/Common/tests/pod_array +dbms/Common/tests/pod_array -dbms/src/Server/data/* -dbms/src/Server/metadata/* -dbms/src/Server/status +dbms/Server/data/* +dbms/Server/metadata/* +dbms/Server/status config-9001.xml *-preprocessed.xml @@ -242,7 +242,7 @@ website/package-lock.json */.DS_Store # Ignore files for locally disabled tests -/dbms/tests/queries/**/*.disabled +/dbms/queries/**/*.disabled # cquery cache /.cquery-cache diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d9f207a06d4..972edf11384 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,11 +31,11 @@ build: - docker pull $CI_REGISTRY/yandex/clickhouse-builder - docker run --rm --volumes-from "${HOSTNAME}-build" --workdir "${CI_PROJECT_DIR}" --env CI_PROJECT_DIR=${CI_PROJECT_DIR} $CI_REGISTRY/yandex/clickhouse-builder /build_gitlab_ci.sh # You can upload your binary to nexus - - curl -v --keepalive-time 60 --keepalive --user "$NEXUS_USER:$NEXUS_PASSWORD" -XPUT "http://$NEXUS_HOST/repository/binaries/$CI_PROJECT_NAME" --upload-file ./dbms/src/Server/clickhouse + - curl -v --keepalive-time 60 --keepalive --user "$NEXUS_USER:$NEXUS_PASSWORD" -XPUT "http://$NEXUS_HOST/repository/binaries/$CI_PROJECT_NAME" --upload-file ./dbms/Server/clickhouse # Or download artifacts from gitlab artifacts: paths: - - ./dbms/src/Server/clickhouse + - ./dbms/Server/clickhouse expire_in: 1 day tags: - - docker \ No newline at end of file + - docker diff --git a/CHANGELOG.md b/CHANGELOG.md index f588adb7ef0..a0ea7f62b6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -234,7 +234,7 @@ * Updated checking for hung queries in clickhouse-test script [#8858](https://github.com/ClickHouse/ClickHouse/pull/8858) ([Alexander Kazakov](https://github.com/Akazz)) * Removed some useless files from repository. [#8843](https://github.com/ClickHouse/ClickHouse/pull/8843) ([alexey-milovidov](https://github.com/alexey-milovidov)) * Changed type of math perftests from `once` to `loop`. [#8783](https://github.com/ClickHouse/ClickHouse/pull/8783) ([Nikolai Kochetov](https://github.com/KochetovNicolai)) -* Add docker image which allows to build interactive code browser HTML report for our codebase. [#8781](https://github.com/ClickHouse/ClickHouse/pull/8781) ([alesapin](https://github.com/alesapin)) See [Woboq Code Browser](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/src/index.html) +* Add docker image which allows to build interactive code browser HTML report for our codebase. [#8781](https://github.com/ClickHouse/ClickHouse/pull/8781) ([alesapin](https://github.com/alesapin)) See [Woboq Code Browser](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/index.html) * Suppress some test failures under MSan. [#8780](https://github.com/ClickHouse/ClickHouse/pull/8780) ([Alexander Kuzmenkov](https://github.com/akuzm)) * Speedup "exception while insert" test. This test often time out in debug-with-coverage build. [#8711](https://github.com/ClickHouse/ClickHouse/pull/8711) ([alexey-milovidov](https://github.com/alexey-milovidov)) * Updated `libcxx` and `libcxxabi` to master. In preparation to [#9304](https://github.com/ClickHouse/ClickHouse/issues/9304) [#9308](https://github.com/ClickHouse/ClickHouse/pull/9308) ([alexey-milovidov](https://github.com/alexey-milovidov)) @@ -341,7 +341,7 @@ [#9513](https://github.com/ClickHouse/ClickHouse/pull/9513) [(filimonov)](https://github.com/filimonov) #### New Feature -* Add `deduplicate_blocks_in_dependent_materialized_views` option to control the behaviour of idempotent inserts into tables with materialized views. This new feature was added to the bugfix release by a special request from Altinity. +* Add `deduplicate_blocks_in_dependent_materialized_views` option to control the behaviour of idempotent inserts into tables with materialized views. This new feature was added to the bugfix release by a special request from Altinity. [#9070](https://github.com/ClickHouse/ClickHouse/pull/9070) [(urykhy)](https://github.com/urykhy) ### ClickHouse release v20.1.2.4, 2020-01-22 diff --git a/CMakeLists.txt b/CMakeLists.txt index 8feb5d8c129..c1342a5ca97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -380,8 +380,13 @@ macro (add_executable target) endif() endmacro() +set(ConfigIncludePath ${CMAKE_CURRENT_BINARY_DIR}/includes/configs CACHE INTERNAL "Path to generated configuration files.") +include_directories(${ConfigIncludePath}) + add_subdirectory (base) -add_subdirectory (utils) add_subdirectory (dbms) +add_subdirectory (programs) +add_subdirectory (tests) +add_subdirectory (utils) include (cmake/print_include_directories.cmake) diff --git a/dbms/benchmark/benchmark.sh b/benchmark/benchmark.sh similarity index 100% rename from dbms/benchmark/benchmark.sh rename to benchmark/benchmark.sh diff --git a/dbms/benchmark/clickhouse/benchmark-chyt.sh b/benchmark/clickhouse/benchmark-chyt.sh similarity index 100% rename from dbms/benchmark/clickhouse/benchmark-chyt.sh rename to benchmark/clickhouse/benchmark-chyt.sh diff --git a/dbms/benchmark/clickhouse/benchmark-new.sh b/benchmark/clickhouse/benchmark-new.sh similarity index 100% rename from dbms/benchmark/clickhouse/benchmark-new.sh rename to benchmark/clickhouse/benchmark-new.sh diff --git a/dbms/benchmark/clickhouse/benchmark-yql.sh b/benchmark/clickhouse/benchmark-yql.sh similarity index 100% rename from dbms/benchmark/clickhouse/benchmark-yql.sh rename to benchmark/clickhouse/benchmark-yql.sh diff --git a/dbms/benchmark/clickhouse/queries.sql b/benchmark/clickhouse/queries.sql similarity index 100% rename from dbms/benchmark/clickhouse/queries.sql rename to benchmark/clickhouse/queries.sql diff --git a/dbms/benchmark/create_dump.sh b/benchmark/create_dump.sh similarity index 100% rename from dbms/benchmark/create_dump.sh rename to benchmark/create_dump.sh diff --git a/dbms/benchmark/greenplum/README b/benchmark/greenplum/README similarity index 100% rename from dbms/benchmark/greenplum/README rename to benchmark/greenplum/README diff --git a/dbms/benchmark/greenplum/benchmark.sh b/benchmark/greenplum/benchmark.sh similarity index 100% rename from dbms/benchmark/greenplum/benchmark.sh rename to benchmark/greenplum/benchmark.sh diff --git a/dbms/benchmark/greenplum/dump_dataset_from_ch.sh b/benchmark/greenplum/dump_dataset_from_ch.sh similarity index 100% rename from dbms/benchmark/greenplum/dump_dataset_from_ch.sh rename to benchmark/greenplum/dump_dataset_from_ch.sh diff --git a/dbms/benchmark/greenplum/load_data_set.sql b/benchmark/greenplum/load_data_set.sql similarity index 100% rename from dbms/benchmark/greenplum/load_data_set.sql rename to benchmark/greenplum/load_data_set.sql diff --git a/dbms/benchmark/greenplum/queries.sql b/benchmark/greenplum/queries.sql similarity index 100% rename from dbms/benchmark/greenplum/queries.sql rename to benchmark/greenplum/queries.sql diff --git a/dbms/benchmark/greenplum/result_parser.py b/benchmark/greenplum/result_parser.py similarity index 100% rename from dbms/benchmark/greenplum/result_parser.py rename to benchmark/greenplum/result_parser.py diff --git a/dbms/benchmark/greenplum/schema.sql b/benchmark/greenplum/schema.sql similarity index 100% rename from dbms/benchmark/greenplum/schema.sql rename to benchmark/greenplum/schema.sql diff --git a/dbms/benchmark/hive/conf.sh b/benchmark/hive/conf.sh similarity index 100% rename from dbms/benchmark/hive/conf.sh rename to benchmark/hive/conf.sh diff --git a/dbms/benchmark/hive/define_schema.sql b/benchmark/hive/define_schema.sql similarity index 100% rename from dbms/benchmark/hive/define_schema.sql rename to benchmark/hive/define_schema.sql diff --git a/dbms/benchmark/hive/expect.tcl b/benchmark/hive/expect.tcl similarity index 100% rename from dbms/benchmark/hive/expect.tcl rename to benchmark/hive/expect.tcl diff --git a/dbms/benchmark/hive/log/log_100m_tuned b/benchmark/hive/log/log_100m_tuned similarity index 100% rename from dbms/benchmark/hive/log/log_100m_tuned rename to benchmark/hive/log/log_100m_tuned diff --git a/dbms/benchmark/hive/log/log_10m/log_10m_ b/benchmark/hive/log/log_10m/log_10m_ similarity index 100% rename from dbms/benchmark/hive/log/log_10m/log_10m_ rename to benchmark/hive/log/log_10m/log_10m_ diff --git a/dbms/benchmark/hive/log/log_10m/log_10m_1 b/benchmark/hive/log/log_10m/log_10m_1 similarity index 100% rename from dbms/benchmark/hive/log/log_10m/log_10m_1 rename to benchmark/hive/log/log_10m/log_10m_1 diff --git a/dbms/benchmark/hive/log/log_10m/log_10m_2 b/benchmark/hive/log/log_10m/log_10m_2 similarity index 100% rename from dbms/benchmark/hive/log/log_10m/log_10m_2 rename to benchmark/hive/log/log_10m/log_10m_2 diff --git a/dbms/benchmark/hive/log/log_10m/log_10m_3 b/benchmark/hive/log/log_10m/log_10m_3 similarity index 100% rename from dbms/benchmark/hive/log/log_10m/log_10m_3 rename to benchmark/hive/log/log_10m/log_10m_3 diff --git a/dbms/benchmark/hive/log/log_10m/log_10m_tuned b/benchmark/hive/log/log_10m/log_10m_tuned similarity index 100% rename from dbms/benchmark/hive/log/log_10m/log_10m_tuned rename to benchmark/hive/log/log_10m/log_10m_tuned diff --git a/dbms/benchmark/hive/log/log_10m/log_hits_10m b/benchmark/hive/log/log_10m/log_hits_10m similarity index 100% rename from dbms/benchmark/hive/log/log_10m/log_hits_10m rename to benchmark/hive/log/log_10m/log_hits_10m diff --git a/dbms/benchmark/hive/queries.sql b/benchmark/hive/queries.sql similarity index 100% rename from dbms/benchmark/hive/queries.sql rename to benchmark/hive/queries.sql diff --git a/dbms/benchmark/hive/run_hive.sh b/benchmark/hive/run_hive.sh similarity index 100% rename from dbms/benchmark/hive/run_hive.sh rename to benchmark/hive/run_hive.sh diff --git a/dbms/benchmark/infinidb/conf.sh b/benchmark/infinidb/conf.sh similarity index 100% rename from dbms/benchmark/infinidb/conf.sh rename to benchmark/infinidb/conf.sh diff --git a/dbms/benchmark/infinidb/define_schema.sql b/benchmark/infinidb/define_schema.sql similarity index 100% rename from dbms/benchmark/infinidb/define_schema.sql rename to benchmark/infinidb/define_schema.sql diff --git a/dbms/benchmark/infinidb/expect.tcl b/benchmark/infinidb/expect.tcl similarity index 100% rename from dbms/benchmark/infinidb/expect.tcl rename to benchmark/infinidb/expect.tcl diff --git a/dbms/benchmark/infinidb/log/log_100m b/benchmark/infinidb/log/log_100m similarity index 100% rename from dbms/benchmark/infinidb/log/log_100m rename to benchmark/infinidb/log/log_100m diff --git a/dbms/benchmark/infinidb/log/log_100m_tuned b/benchmark/infinidb/log/log_100m_tuned similarity index 100% rename from dbms/benchmark/infinidb/log/log_100m_tuned rename to benchmark/infinidb/log/log_100m_tuned diff --git a/dbms/benchmark/infinidb/log/log_10m b/benchmark/infinidb/log/log_10m similarity index 100% rename from dbms/benchmark/infinidb/log/log_10m rename to benchmark/infinidb/log/log_10m diff --git a/dbms/benchmark/infinidb/log/log_10m_tuned b/benchmark/infinidb/log/log_10m_tuned similarity index 100% rename from dbms/benchmark/infinidb/log/log_10m_tuned rename to benchmark/infinidb/log/log_10m_tuned diff --git a/dbms/benchmark/infinidb/queries.sql b/benchmark/infinidb/queries.sql similarity index 100% rename from dbms/benchmark/infinidb/queries.sql rename to benchmark/infinidb/queries.sql diff --git a/dbms/benchmark/infobright/conf.sh b/benchmark/infobright/conf.sh similarity index 100% rename from dbms/benchmark/infobright/conf.sh rename to benchmark/infobright/conf.sh diff --git a/dbms/benchmark/infobright/define_schema.sql b/benchmark/infobright/define_schema.sql similarity index 100% rename from dbms/benchmark/infobright/define_schema.sql rename to benchmark/infobright/define_schema.sql diff --git a/dbms/benchmark/infobright/expect.tcl b/benchmark/infobright/expect.tcl similarity index 100% rename from dbms/benchmark/infobright/expect.tcl rename to benchmark/infobright/expect.tcl diff --git a/dbms/benchmark/infobright/log-community/log_10m b/benchmark/infobright/log-community/log_10m similarity index 100% rename from dbms/benchmark/infobright/log-community/log_10m rename to benchmark/infobright/log-community/log_10m diff --git a/dbms/benchmark/infobright/queries.sql b/benchmark/infobright/queries.sql similarity index 100% rename from dbms/benchmark/infobright/queries.sql rename to benchmark/infobright/queries.sql diff --git a/dbms/benchmark/memsql/benchmark.sh b/benchmark/memsql/benchmark.sh similarity index 100% rename from dbms/benchmark/memsql/benchmark.sh rename to benchmark/memsql/benchmark.sh diff --git a/dbms/benchmark/memsql/instructions.txt b/benchmark/memsql/instructions.txt similarity index 100% rename from dbms/benchmark/memsql/instructions.txt rename to benchmark/memsql/instructions.txt diff --git a/dbms/benchmark/memsql/queries.sql b/benchmark/memsql/queries.sql similarity index 100% rename from dbms/benchmark/memsql/queries.sql rename to benchmark/memsql/queries.sql diff --git a/dbms/benchmark/monetdb/conf.sh b/benchmark/monetdb/conf.sh similarity index 100% rename from dbms/benchmark/monetdb/conf.sh rename to benchmark/monetdb/conf.sh diff --git a/dbms/benchmark/monetdb/define_schema.sql b/benchmark/monetdb/define_schema.sql similarity index 100% rename from dbms/benchmark/monetdb/define_schema.sql rename to benchmark/monetdb/define_schema.sql diff --git a/dbms/benchmark/monetdb/expect.tcl b/benchmark/monetdb/expect.tcl similarity index 100% rename from dbms/benchmark/monetdb/expect.tcl rename to benchmark/monetdb/expect.tcl diff --git a/dbms/benchmark/monetdb/log/log_100m b/benchmark/monetdb/log/log_100m similarity index 100% rename from dbms/benchmark/monetdb/log/log_100m rename to benchmark/monetdb/log/log_100m diff --git a/dbms/benchmark/monetdb/log/log_100m_1 b/benchmark/monetdb/log/log_100m_1 similarity index 100% rename from dbms/benchmark/monetdb/log/log_100m_1 rename to benchmark/monetdb/log/log_100m_1 diff --git a/dbms/benchmark/monetdb/log/log_100m_corrected b/benchmark/monetdb/log/log_100m_corrected similarity index 100% rename from dbms/benchmark/monetdb/log/log_100m_corrected rename to benchmark/monetdb/log/log_100m_corrected diff --git a/dbms/benchmark/monetdb/log/log_100m_corrected_1 b/benchmark/monetdb/log/log_100m_corrected_1 similarity index 100% rename from dbms/benchmark/monetdb/log/log_100m_corrected_1 rename to benchmark/monetdb/log/log_100m_corrected_1 diff --git a/dbms/benchmark/monetdb/log/log_100m_corrected_2 b/benchmark/monetdb/log/log_100m_corrected_2 similarity index 100% rename from dbms/benchmark/monetdb/log/log_100m_corrected_2 rename to benchmark/monetdb/log/log_100m_corrected_2 diff --git a/dbms/benchmark/monetdb/log/log_10m b/benchmark/monetdb/log/log_10m similarity index 100% rename from dbms/benchmark/monetdb/log/log_10m rename to benchmark/monetdb/log/log_10m diff --git a/dbms/benchmark/monetdb/log/log_10m_corrected b/benchmark/monetdb/log/log_10m_corrected similarity index 100% rename from dbms/benchmark/monetdb/log/log_10m_corrected rename to benchmark/monetdb/log/log_10m_corrected diff --git a/dbms/benchmark/monetdb/log/log_10m_corrected_1 b/benchmark/monetdb/log/log_10m_corrected_1 similarity index 100% rename from dbms/benchmark/monetdb/log/log_10m_corrected_1 rename to benchmark/monetdb/log/log_10m_corrected_1 diff --git a/dbms/benchmark/monetdb/log/log_upload_100m b/benchmark/monetdb/log/log_upload_100m similarity index 100% rename from dbms/benchmark/monetdb/log/log_upload_100m rename to benchmark/monetdb/log/log_upload_100m diff --git a/dbms/benchmark/monetdb/log/log_upload_1b b/benchmark/monetdb/log/log_upload_1b similarity index 100% rename from dbms/benchmark/monetdb/log/log_upload_1b rename to benchmark/monetdb/log/log_upload_1b diff --git a/dbms/benchmark/monetdb/queries.sql b/benchmark/monetdb/queries.sql similarity index 100% rename from dbms/benchmark/monetdb/queries.sql rename to benchmark/monetdb/queries.sql diff --git a/dbms/benchmark/vertica/README b/benchmark/vertica/README similarity index 100% rename from dbms/benchmark/vertica/README rename to benchmark/vertica/README diff --git a/dbms/benchmark/vertica/benchmark.sh b/benchmark/vertica/benchmark.sh similarity index 100% rename from dbms/benchmark/vertica/benchmark.sh rename to benchmark/vertica/benchmark.sh diff --git a/dbms/benchmark/vertica/hits_define_schema.sql b/benchmark/vertica/hits_define_schema.sql similarity index 100% rename from dbms/benchmark/vertica/hits_define_schema.sql rename to benchmark/vertica/hits_define_schema.sql diff --git a/dbms/benchmark/vertica/queries.sql b/benchmark/vertica/queries.sql similarity index 100% rename from dbms/benchmark/vertica/queries.sql rename to benchmark/vertica/queries.sql diff --git a/cmake/lib_name.cmake b/cmake/lib_name.cmake index 51a424cb4e2..9f53c7bc6d8 100644 --- a/cmake/lib_name.cmake +++ b/cmake/lib_name.cmake @@ -1,5 +1,5 @@ set(DIVIDE_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/libdivide) -set(DBMS_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/dbms/src ${ClickHouse_BINARY_DIR}/dbms/src) +set(DBMS_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/dbms ${ClickHouse_BINARY_DIR}/dbms) set(DOUBLE_CONVERSION_CONTRIB_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/double-conversion) set(METROHASH_CONTRIB_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/libmetrohash/src) set(PCG_RANDOM_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/libpcg-random/include) diff --git a/cmake/sanitize.cmake b/cmake/sanitize.cmake index 3d192f1fe76..7d906de7602 100644 --- a/cmake/sanitize.cmake +++ b/cmake/sanitize.cmake @@ -23,7 +23,7 @@ if (SANITIZE) # RelWithDebInfo, and downgrade optimizations to -O1 but not to -Og, to # keep the binary size down. # TODO: try compiling with -Og and with ld.gold. - set (MSAN_FLAGS "-fsanitize=memory -fsanitize-memory-track-origins -fno-optimize-sibling-calls -fsanitize-blacklist=${CMAKE_SOURCE_DIR}/dbms/tests/msan_suppressions.txt") + set (MSAN_FLAGS "-fsanitize=memory -fsanitize-memory-track-origins -fno-optimize-sibling-calls -fsanitize-blacklist=${CMAKE_SOURCE_DIR}/tests/msan_suppressions.txt") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} ${MSAN_FLAGS}") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SAN_FLAGS} ${MSAN_FLAGS}") diff --git a/dbms/src/Access/AccessControlManager.cpp b/dbms/Access/AccessControlManager.cpp similarity index 100% rename from dbms/src/Access/AccessControlManager.cpp rename to dbms/Access/AccessControlManager.cpp diff --git a/dbms/src/Access/AccessControlManager.h b/dbms/Access/AccessControlManager.h similarity index 100% rename from dbms/src/Access/AccessControlManager.h rename to dbms/Access/AccessControlManager.h diff --git a/dbms/src/Access/AccessFlags.h b/dbms/Access/AccessFlags.h similarity index 100% rename from dbms/src/Access/AccessFlags.h rename to dbms/Access/AccessFlags.h diff --git a/dbms/src/Access/AccessRights.cpp b/dbms/Access/AccessRights.cpp similarity index 100% rename from dbms/src/Access/AccessRights.cpp rename to dbms/Access/AccessRights.cpp diff --git a/dbms/src/Access/AccessRights.h b/dbms/Access/AccessRights.h similarity index 100% rename from dbms/src/Access/AccessRights.h rename to dbms/Access/AccessRights.h diff --git a/dbms/src/Access/AccessRightsElement.cpp b/dbms/Access/AccessRightsElement.cpp similarity index 100% rename from dbms/src/Access/AccessRightsElement.cpp rename to dbms/Access/AccessRightsElement.cpp diff --git a/dbms/src/Access/AccessRightsElement.h b/dbms/Access/AccessRightsElement.h similarity index 100% rename from dbms/src/Access/AccessRightsElement.h rename to dbms/Access/AccessRightsElement.h diff --git a/dbms/src/Access/AccessType.h b/dbms/Access/AccessType.h similarity index 100% rename from dbms/src/Access/AccessType.h rename to dbms/Access/AccessType.h diff --git a/dbms/src/Access/AllowedClientHosts.cpp b/dbms/Access/AllowedClientHosts.cpp similarity index 100% rename from dbms/src/Access/AllowedClientHosts.cpp rename to dbms/Access/AllowedClientHosts.cpp diff --git a/dbms/src/Access/AllowedClientHosts.h b/dbms/Access/AllowedClientHosts.h similarity index 100% rename from dbms/src/Access/AllowedClientHosts.h rename to dbms/Access/AllowedClientHosts.h diff --git a/dbms/src/Access/Authentication.cpp b/dbms/Access/Authentication.cpp similarity index 100% rename from dbms/src/Access/Authentication.cpp rename to dbms/Access/Authentication.cpp diff --git a/dbms/src/Access/Authentication.h b/dbms/Access/Authentication.h similarity index 100% rename from dbms/src/Access/Authentication.h rename to dbms/Access/Authentication.h diff --git a/dbms/src/Access/CMakeLists.txt b/dbms/Access/CMakeLists.txt similarity index 100% rename from dbms/src/Access/CMakeLists.txt rename to dbms/Access/CMakeLists.txt diff --git a/dbms/src/Access/ContextAccess.cpp b/dbms/Access/ContextAccess.cpp similarity index 100% rename from dbms/src/Access/ContextAccess.cpp rename to dbms/Access/ContextAccess.cpp diff --git a/dbms/src/Access/ContextAccess.h b/dbms/Access/ContextAccess.h similarity index 100% rename from dbms/src/Access/ContextAccess.h rename to dbms/Access/ContextAccess.h diff --git a/dbms/src/Access/DiskAccessStorage.cpp b/dbms/Access/DiskAccessStorage.cpp similarity index 100% rename from dbms/src/Access/DiskAccessStorage.cpp rename to dbms/Access/DiskAccessStorage.cpp diff --git a/dbms/src/Access/DiskAccessStorage.h b/dbms/Access/DiskAccessStorage.h similarity index 100% rename from dbms/src/Access/DiskAccessStorage.h rename to dbms/Access/DiskAccessStorage.h diff --git a/dbms/src/Access/EnabledQuota.cpp b/dbms/Access/EnabledQuota.cpp similarity index 100% rename from dbms/src/Access/EnabledQuota.cpp rename to dbms/Access/EnabledQuota.cpp diff --git a/dbms/src/Access/EnabledQuota.h b/dbms/Access/EnabledQuota.h similarity index 100% rename from dbms/src/Access/EnabledQuota.h rename to dbms/Access/EnabledQuota.h diff --git a/dbms/src/Access/EnabledRoles.cpp b/dbms/Access/EnabledRoles.cpp similarity index 100% rename from dbms/src/Access/EnabledRoles.cpp rename to dbms/Access/EnabledRoles.cpp diff --git a/dbms/src/Access/EnabledRoles.h b/dbms/Access/EnabledRoles.h similarity index 100% rename from dbms/src/Access/EnabledRoles.h rename to dbms/Access/EnabledRoles.h diff --git a/dbms/src/Access/EnabledRolesInfo.cpp b/dbms/Access/EnabledRolesInfo.cpp similarity index 100% rename from dbms/src/Access/EnabledRolesInfo.cpp rename to dbms/Access/EnabledRolesInfo.cpp diff --git a/dbms/src/Access/EnabledRolesInfo.h b/dbms/Access/EnabledRolesInfo.h similarity index 100% rename from dbms/src/Access/EnabledRolesInfo.h rename to dbms/Access/EnabledRolesInfo.h diff --git a/dbms/src/Access/EnabledRowPolicies.cpp b/dbms/Access/EnabledRowPolicies.cpp similarity index 100% rename from dbms/src/Access/EnabledRowPolicies.cpp rename to dbms/Access/EnabledRowPolicies.cpp diff --git a/dbms/src/Access/EnabledRowPolicies.h b/dbms/Access/EnabledRowPolicies.h similarity index 100% rename from dbms/src/Access/EnabledRowPolicies.h rename to dbms/Access/EnabledRowPolicies.h diff --git a/dbms/src/Access/EnabledSettings.cpp b/dbms/Access/EnabledSettings.cpp similarity index 100% rename from dbms/src/Access/EnabledSettings.cpp rename to dbms/Access/EnabledSettings.cpp diff --git a/dbms/src/Access/EnabledSettings.h b/dbms/Access/EnabledSettings.h similarity index 100% rename from dbms/src/Access/EnabledSettings.h rename to dbms/Access/EnabledSettings.h diff --git a/dbms/src/Access/ExtendedRoleSet.cpp b/dbms/Access/ExtendedRoleSet.cpp similarity index 100% rename from dbms/src/Access/ExtendedRoleSet.cpp rename to dbms/Access/ExtendedRoleSet.cpp diff --git a/dbms/src/Access/ExtendedRoleSet.h b/dbms/Access/ExtendedRoleSet.h similarity index 100% rename from dbms/src/Access/ExtendedRoleSet.h rename to dbms/Access/ExtendedRoleSet.h diff --git a/dbms/src/Access/IAccessEntity.cpp b/dbms/Access/IAccessEntity.cpp similarity index 100% rename from dbms/src/Access/IAccessEntity.cpp rename to dbms/Access/IAccessEntity.cpp diff --git a/dbms/src/Access/IAccessEntity.h b/dbms/Access/IAccessEntity.h similarity index 100% rename from dbms/src/Access/IAccessEntity.h rename to dbms/Access/IAccessEntity.h diff --git a/dbms/src/Access/IAccessStorage.cpp b/dbms/Access/IAccessStorage.cpp similarity index 100% rename from dbms/src/Access/IAccessStorage.cpp rename to dbms/Access/IAccessStorage.cpp diff --git a/dbms/src/Access/IAccessStorage.h b/dbms/Access/IAccessStorage.h similarity index 100% rename from dbms/src/Access/IAccessStorage.h rename to dbms/Access/IAccessStorage.h diff --git a/dbms/src/Access/MemoryAccessStorage.cpp b/dbms/Access/MemoryAccessStorage.cpp similarity index 100% rename from dbms/src/Access/MemoryAccessStorage.cpp rename to dbms/Access/MemoryAccessStorage.cpp diff --git a/dbms/src/Access/MemoryAccessStorage.h b/dbms/Access/MemoryAccessStorage.h similarity index 100% rename from dbms/src/Access/MemoryAccessStorage.h rename to dbms/Access/MemoryAccessStorage.h diff --git a/dbms/src/Access/MultipleAccessStorage.cpp b/dbms/Access/MultipleAccessStorage.cpp similarity index 100% rename from dbms/src/Access/MultipleAccessStorage.cpp rename to dbms/Access/MultipleAccessStorage.cpp diff --git a/dbms/src/Access/MultipleAccessStorage.h b/dbms/Access/MultipleAccessStorage.h similarity index 100% rename from dbms/src/Access/MultipleAccessStorage.h rename to dbms/Access/MultipleAccessStorage.h diff --git a/dbms/src/Access/Quota.cpp b/dbms/Access/Quota.cpp similarity index 100% rename from dbms/src/Access/Quota.cpp rename to dbms/Access/Quota.cpp diff --git a/dbms/src/Access/Quota.h b/dbms/Access/Quota.h similarity index 100% rename from dbms/src/Access/Quota.h rename to dbms/Access/Quota.h diff --git a/dbms/src/Access/QuotaCache.cpp b/dbms/Access/QuotaCache.cpp similarity index 100% rename from dbms/src/Access/QuotaCache.cpp rename to dbms/Access/QuotaCache.cpp diff --git a/dbms/src/Access/QuotaCache.h b/dbms/Access/QuotaCache.h similarity index 100% rename from dbms/src/Access/QuotaCache.h rename to dbms/Access/QuotaCache.h diff --git a/dbms/src/Access/QuotaUsageInfo.cpp b/dbms/Access/QuotaUsageInfo.cpp similarity index 100% rename from dbms/src/Access/QuotaUsageInfo.cpp rename to dbms/Access/QuotaUsageInfo.cpp diff --git a/dbms/src/Access/QuotaUsageInfo.h b/dbms/Access/QuotaUsageInfo.h similarity index 100% rename from dbms/src/Access/QuotaUsageInfo.h rename to dbms/Access/QuotaUsageInfo.h diff --git a/dbms/src/Access/Role.cpp b/dbms/Access/Role.cpp similarity index 100% rename from dbms/src/Access/Role.cpp rename to dbms/Access/Role.cpp diff --git a/dbms/src/Access/Role.h b/dbms/Access/Role.h similarity index 100% rename from dbms/src/Access/Role.h rename to dbms/Access/Role.h diff --git a/dbms/src/Access/RoleCache.cpp b/dbms/Access/RoleCache.cpp similarity index 100% rename from dbms/src/Access/RoleCache.cpp rename to dbms/Access/RoleCache.cpp diff --git a/dbms/src/Access/RoleCache.h b/dbms/Access/RoleCache.h similarity index 100% rename from dbms/src/Access/RoleCache.h rename to dbms/Access/RoleCache.h diff --git a/dbms/src/Access/RowPolicy.cpp b/dbms/Access/RowPolicy.cpp similarity index 100% rename from dbms/src/Access/RowPolicy.cpp rename to dbms/Access/RowPolicy.cpp diff --git a/dbms/src/Access/RowPolicy.h b/dbms/Access/RowPolicy.h similarity index 100% rename from dbms/src/Access/RowPolicy.h rename to dbms/Access/RowPolicy.h diff --git a/dbms/src/Access/RowPolicyCache.cpp b/dbms/Access/RowPolicyCache.cpp similarity index 100% rename from dbms/src/Access/RowPolicyCache.cpp rename to dbms/Access/RowPolicyCache.cpp diff --git a/dbms/src/Access/RowPolicyCache.h b/dbms/Access/RowPolicyCache.h similarity index 100% rename from dbms/src/Access/RowPolicyCache.h rename to dbms/Access/RowPolicyCache.h diff --git a/dbms/src/Access/SettingsConstraints.cpp b/dbms/Access/SettingsConstraints.cpp similarity index 100% rename from dbms/src/Access/SettingsConstraints.cpp rename to dbms/Access/SettingsConstraints.cpp diff --git a/dbms/src/Access/SettingsConstraints.h b/dbms/Access/SettingsConstraints.h similarity index 100% rename from dbms/src/Access/SettingsConstraints.h rename to dbms/Access/SettingsConstraints.h diff --git a/dbms/src/Access/SettingsProfile.cpp b/dbms/Access/SettingsProfile.cpp similarity index 100% rename from dbms/src/Access/SettingsProfile.cpp rename to dbms/Access/SettingsProfile.cpp diff --git a/dbms/src/Access/SettingsProfile.h b/dbms/Access/SettingsProfile.h similarity index 100% rename from dbms/src/Access/SettingsProfile.h rename to dbms/Access/SettingsProfile.h diff --git a/dbms/src/Access/SettingsProfileElement.cpp b/dbms/Access/SettingsProfileElement.cpp similarity index 100% rename from dbms/src/Access/SettingsProfileElement.cpp rename to dbms/Access/SettingsProfileElement.cpp diff --git a/dbms/src/Access/SettingsProfileElement.h b/dbms/Access/SettingsProfileElement.h similarity index 100% rename from dbms/src/Access/SettingsProfileElement.h rename to dbms/Access/SettingsProfileElement.h diff --git a/dbms/src/Access/SettingsProfilesCache.cpp b/dbms/Access/SettingsProfilesCache.cpp similarity index 100% rename from dbms/src/Access/SettingsProfilesCache.cpp rename to dbms/Access/SettingsProfilesCache.cpp diff --git a/dbms/src/Access/SettingsProfilesCache.h b/dbms/Access/SettingsProfilesCache.h similarity index 100% rename from dbms/src/Access/SettingsProfilesCache.h rename to dbms/Access/SettingsProfilesCache.h diff --git a/dbms/src/Access/User.cpp b/dbms/Access/User.cpp similarity index 100% rename from dbms/src/Access/User.cpp rename to dbms/Access/User.cpp diff --git a/dbms/src/Access/User.h b/dbms/Access/User.h similarity index 100% rename from dbms/src/Access/User.h rename to dbms/Access/User.h diff --git a/dbms/src/Access/UsersConfigAccessStorage.cpp b/dbms/Access/UsersConfigAccessStorage.cpp similarity index 100% rename from dbms/src/Access/UsersConfigAccessStorage.cpp rename to dbms/Access/UsersConfigAccessStorage.cpp diff --git a/dbms/src/Access/UsersConfigAccessStorage.h b/dbms/Access/UsersConfigAccessStorage.h similarity index 100% rename from dbms/src/Access/UsersConfigAccessStorage.h rename to dbms/Access/UsersConfigAccessStorage.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionAggThrow.cpp b/dbms/AggregateFunctions/AggregateFunctionAggThrow.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionAggThrow.cpp rename to dbms/AggregateFunctions/AggregateFunctionAggThrow.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionArgMinMax.h b/dbms/AggregateFunctions/AggregateFunctionArgMinMax.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionArgMinMax.h rename to dbms/AggregateFunctions/AggregateFunctionArgMinMax.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionArray.cpp b/dbms/AggregateFunctions/AggregateFunctionArray.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionArray.cpp rename to dbms/AggregateFunctions/AggregateFunctionArray.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionArray.h b/dbms/AggregateFunctions/AggregateFunctionArray.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionArray.h rename to dbms/AggregateFunctions/AggregateFunctionArray.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionAvg.cpp b/dbms/AggregateFunctions/AggregateFunctionAvg.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionAvg.cpp rename to dbms/AggregateFunctions/AggregateFunctionAvg.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionAvg.h b/dbms/AggregateFunctions/AggregateFunctionAvg.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionAvg.h rename to dbms/AggregateFunctions/AggregateFunctionAvg.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionAvgWeighted.cpp b/dbms/AggregateFunctions/AggregateFunctionAvgWeighted.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionAvgWeighted.cpp rename to dbms/AggregateFunctions/AggregateFunctionAvgWeighted.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionAvgWeighted.h b/dbms/AggregateFunctions/AggregateFunctionAvgWeighted.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionAvgWeighted.h rename to dbms/AggregateFunctions/AggregateFunctionAvgWeighted.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionBitwise.cpp b/dbms/AggregateFunctions/AggregateFunctionBitwise.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionBitwise.cpp rename to dbms/AggregateFunctions/AggregateFunctionBitwise.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionBitwise.h b/dbms/AggregateFunctions/AggregateFunctionBitwise.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionBitwise.h rename to dbms/AggregateFunctions/AggregateFunctionBitwise.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionBoundingRatio.cpp b/dbms/AggregateFunctions/AggregateFunctionBoundingRatio.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionBoundingRatio.cpp rename to dbms/AggregateFunctions/AggregateFunctionBoundingRatio.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionBoundingRatio.h b/dbms/AggregateFunctions/AggregateFunctionBoundingRatio.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionBoundingRatio.h rename to dbms/AggregateFunctions/AggregateFunctionBoundingRatio.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp b/dbms/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp rename to dbms/AggregateFunctions/AggregateFunctionCategoricalInformationValue.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.h b/dbms/AggregateFunctions/AggregateFunctionCategoricalInformationValue.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionCategoricalInformationValue.h rename to dbms/AggregateFunctions/AggregateFunctionCategoricalInformationValue.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionCombinatorFactory.cpp b/dbms/AggregateFunctions/AggregateFunctionCombinatorFactory.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionCombinatorFactory.cpp rename to dbms/AggregateFunctions/AggregateFunctionCombinatorFactory.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionCombinatorFactory.h b/dbms/AggregateFunctions/AggregateFunctionCombinatorFactory.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionCombinatorFactory.h rename to dbms/AggregateFunctions/AggregateFunctionCombinatorFactory.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionCount.cpp b/dbms/AggregateFunctions/AggregateFunctionCount.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionCount.cpp rename to dbms/AggregateFunctions/AggregateFunctionCount.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionCount.h b/dbms/AggregateFunctions/AggregateFunctionCount.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionCount.h rename to dbms/AggregateFunctions/AggregateFunctionCount.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionEntropy.cpp b/dbms/AggregateFunctions/AggregateFunctionEntropy.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionEntropy.cpp rename to dbms/AggregateFunctions/AggregateFunctionEntropy.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionEntropy.h b/dbms/AggregateFunctions/AggregateFunctionEntropy.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionEntropy.h rename to dbms/AggregateFunctions/AggregateFunctionEntropy.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionFactory.cpp b/dbms/AggregateFunctions/AggregateFunctionFactory.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionFactory.cpp rename to dbms/AggregateFunctions/AggregateFunctionFactory.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionFactory.h b/dbms/AggregateFunctions/AggregateFunctionFactory.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionFactory.h rename to dbms/AggregateFunctions/AggregateFunctionFactory.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionForEach.cpp b/dbms/AggregateFunctions/AggregateFunctionForEach.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionForEach.cpp rename to dbms/AggregateFunctions/AggregateFunctionForEach.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionForEach.h b/dbms/AggregateFunctions/AggregateFunctionForEach.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionForEach.h rename to dbms/AggregateFunctions/AggregateFunctionForEach.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupArray.cpp b/dbms/AggregateFunctions/AggregateFunctionGroupArray.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupArray.cpp rename to dbms/AggregateFunctions/AggregateFunctionGroupArray.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupArray.h b/dbms/AggregateFunctions/AggregateFunctionGroupArray.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupArray.h rename to dbms/AggregateFunctions/AggregateFunctionGroupArray.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupArrayInsertAt.cpp b/dbms/AggregateFunctions/AggregateFunctionGroupArrayInsertAt.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupArrayInsertAt.cpp rename to dbms/AggregateFunctions/AggregateFunctionGroupArrayInsertAt.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupArrayInsertAt.h b/dbms/AggregateFunctions/AggregateFunctionGroupArrayInsertAt.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupArrayInsertAt.h rename to dbms/AggregateFunctions/AggregateFunctionGroupArrayInsertAt.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp b/dbms/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp rename to dbms/AggregateFunctions/AggregateFunctionGroupArrayMoving.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.h b/dbms/AggregateFunctions/AggregateFunctionGroupArrayMoving.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupArrayMoving.h rename to dbms/AggregateFunctions/AggregateFunctionGroupArrayMoving.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupBitmap.cpp b/dbms/AggregateFunctions/AggregateFunctionGroupBitmap.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupBitmap.cpp rename to dbms/AggregateFunctions/AggregateFunctionGroupBitmap.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupBitmap.h b/dbms/AggregateFunctions/AggregateFunctionGroupBitmap.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupBitmap.h rename to dbms/AggregateFunctions/AggregateFunctionGroupBitmap.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h b/dbms/AggregateFunctions/AggregateFunctionGroupBitmapData.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h rename to dbms/AggregateFunctions/AggregateFunctionGroupBitmapData.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupUniqArray.cpp b/dbms/AggregateFunctions/AggregateFunctionGroupUniqArray.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupUniqArray.cpp rename to dbms/AggregateFunctions/AggregateFunctionGroupUniqArray.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionGroupUniqArray.h b/dbms/AggregateFunctions/AggregateFunctionGroupUniqArray.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionGroupUniqArray.h rename to dbms/AggregateFunctions/AggregateFunctionGroupUniqArray.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionHistogram.cpp b/dbms/AggregateFunctions/AggregateFunctionHistogram.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionHistogram.cpp rename to dbms/AggregateFunctions/AggregateFunctionHistogram.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionHistogram.h b/dbms/AggregateFunctions/AggregateFunctionHistogram.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionHistogram.h rename to dbms/AggregateFunctions/AggregateFunctionHistogram.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionIf.cpp b/dbms/AggregateFunctions/AggregateFunctionIf.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionIf.cpp rename to dbms/AggregateFunctions/AggregateFunctionIf.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionIf.h b/dbms/AggregateFunctions/AggregateFunctionIf.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionIf.h rename to dbms/AggregateFunctions/AggregateFunctionIf.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionMLMethod.cpp b/dbms/AggregateFunctions/AggregateFunctionMLMethod.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionMLMethod.cpp rename to dbms/AggregateFunctions/AggregateFunctionMLMethod.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionMLMethod.h b/dbms/AggregateFunctions/AggregateFunctionMLMethod.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionMLMethod.h rename to dbms/AggregateFunctions/AggregateFunctionMLMethod.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionMaxIntersections.cpp b/dbms/AggregateFunctions/AggregateFunctionMaxIntersections.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionMaxIntersections.cpp rename to dbms/AggregateFunctions/AggregateFunctionMaxIntersections.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionMaxIntersections.h b/dbms/AggregateFunctions/AggregateFunctionMaxIntersections.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionMaxIntersections.h rename to dbms/AggregateFunctions/AggregateFunctionMaxIntersections.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionMerge.cpp b/dbms/AggregateFunctions/AggregateFunctionMerge.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionMerge.cpp rename to dbms/AggregateFunctions/AggregateFunctionMerge.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionMerge.h b/dbms/AggregateFunctions/AggregateFunctionMerge.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionMerge.h rename to dbms/AggregateFunctions/AggregateFunctionMerge.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionMinMaxAny.cpp b/dbms/AggregateFunctions/AggregateFunctionMinMaxAny.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionMinMaxAny.cpp rename to dbms/AggregateFunctions/AggregateFunctionMinMaxAny.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionMinMaxAny.h b/dbms/AggregateFunctions/AggregateFunctionMinMaxAny.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionMinMaxAny.h rename to dbms/AggregateFunctions/AggregateFunctionMinMaxAny.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionNothing.h b/dbms/AggregateFunctions/AggregateFunctionNothing.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionNothing.h rename to dbms/AggregateFunctions/AggregateFunctionNothing.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionNull.cpp b/dbms/AggregateFunctions/AggregateFunctionNull.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionNull.cpp rename to dbms/AggregateFunctions/AggregateFunctionNull.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionNull.h b/dbms/AggregateFunctions/AggregateFunctionNull.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionNull.h rename to dbms/AggregateFunctions/AggregateFunctionNull.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionOrFill.cpp b/dbms/AggregateFunctions/AggregateFunctionOrFill.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionOrFill.cpp rename to dbms/AggregateFunctions/AggregateFunctionOrFill.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionOrFill.h b/dbms/AggregateFunctions/AggregateFunctionOrFill.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionOrFill.h rename to dbms/AggregateFunctions/AggregateFunctionOrFill.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionQuantile.cpp b/dbms/AggregateFunctions/AggregateFunctionQuantile.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionQuantile.cpp rename to dbms/AggregateFunctions/AggregateFunctionQuantile.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionQuantile.h b/dbms/AggregateFunctions/AggregateFunctionQuantile.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionQuantile.h rename to dbms/AggregateFunctions/AggregateFunctionQuantile.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionResample.cpp b/dbms/AggregateFunctions/AggregateFunctionResample.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionResample.cpp rename to dbms/AggregateFunctions/AggregateFunctionResample.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionResample.h b/dbms/AggregateFunctions/AggregateFunctionResample.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionResample.h rename to dbms/AggregateFunctions/AggregateFunctionResample.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionRetention.cpp b/dbms/AggregateFunctions/AggregateFunctionRetention.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionRetention.cpp rename to dbms/AggregateFunctions/AggregateFunctionRetention.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionRetention.h b/dbms/AggregateFunctions/AggregateFunctionRetention.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionRetention.h rename to dbms/AggregateFunctions/AggregateFunctionRetention.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionSequenceMatch.cpp b/dbms/AggregateFunctions/AggregateFunctionSequenceMatch.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionSequenceMatch.cpp rename to dbms/AggregateFunctions/AggregateFunctionSequenceMatch.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionSequenceMatch.h b/dbms/AggregateFunctions/AggregateFunctionSequenceMatch.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionSequenceMatch.h rename to dbms/AggregateFunctions/AggregateFunctionSequenceMatch.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionSimpleLinearRegression.cpp b/dbms/AggregateFunctions/AggregateFunctionSimpleLinearRegression.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionSimpleLinearRegression.cpp rename to dbms/AggregateFunctions/AggregateFunctionSimpleLinearRegression.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionSimpleLinearRegression.h b/dbms/AggregateFunctions/AggregateFunctionSimpleLinearRegression.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionSimpleLinearRegression.h rename to dbms/AggregateFunctions/AggregateFunctionSimpleLinearRegression.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionState.cpp b/dbms/AggregateFunctions/AggregateFunctionState.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionState.cpp rename to dbms/AggregateFunctions/AggregateFunctionState.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionState.h b/dbms/AggregateFunctions/AggregateFunctionState.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionState.h rename to dbms/AggregateFunctions/AggregateFunctionState.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionStatistics.cpp b/dbms/AggregateFunctions/AggregateFunctionStatistics.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionStatistics.cpp rename to dbms/AggregateFunctions/AggregateFunctionStatistics.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionStatistics.h b/dbms/AggregateFunctions/AggregateFunctionStatistics.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionStatistics.h rename to dbms/AggregateFunctions/AggregateFunctionStatistics.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionStatisticsSimple.cpp b/dbms/AggregateFunctions/AggregateFunctionStatisticsSimple.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionStatisticsSimple.cpp rename to dbms/AggregateFunctions/AggregateFunctionStatisticsSimple.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h b/dbms/AggregateFunctions/AggregateFunctionStatisticsSimple.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionStatisticsSimple.h rename to dbms/AggregateFunctions/AggregateFunctionStatisticsSimple.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionSum.cpp b/dbms/AggregateFunctions/AggregateFunctionSum.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionSum.cpp rename to dbms/AggregateFunctions/AggregateFunctionSum.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionSum.h b/dbms/AggregateFunctions/AggregateFunctionSum.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionSum.h rename to dbms/AggregateFunctions/AggregateFunctionSum.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionSumMap.cpp b/dbms/AggregateFunctions/AggregateFunctionSumMap.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionSumMap.cpp rename to dbms/AggregateFunctions/AggregateFunctionSumMap.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionSumMap.h b/dbms/AggregateFunctions/AggregateFunctionSumMap.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionSumMap.h rename to dbms/AggregateFunctions/AggregateFunctionSumMap.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.cpp b/dbms/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.cpp rename to dbms/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h b/dbms/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h rename to dbms/AggregateFunctions/AggregateFunctionTimeSeriesGroupSum.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionTopK.cpp b/dbms/AggregateFunctions/AggregateFunctionTopK.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionTopK.cpp rename to dbms/AggregateFunctions/AggregateFunctionTopK.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionTopK.h b/dbms/AggregateFunctions/AggregateFunctionTopK.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionTopK.h rename to dbms/AggregateFunctions/AggregateFunctionTopK.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionUniq.cpp b/dbms/AggregateFunctions/AggregateFunctionUniq.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionUniq.cpp rename to dbms/AggregateFunctions/AggregateFunctionUniq.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionUniq.h b/dbms/AggregateFunctions/AggregateFunctionUniq.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionUniq.h rename to dbms/AggregateFunctions/AggregateFunctionUniq.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionUniqCombined.cpp b/dbms/AggregateFunctions/AggregateFunctionUniqCombined.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionUniqCombined.cpp rename to dbms/AggregateFunctions/AggregateFunctionUniqCombined.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionUniqCombined.h b/dbms/AggregateFunctions/AggregateFunctionUniqCombined.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionUniqCombined.h rename to dbms/AggregateFunctions/AggregateFunctionUniqCombined.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp b/dbms/AggregateFunctions/AggregateFunctionUniqUpTo.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionUniqUpTo.cpp rename to dbms/AggregateFunctions/AggregateFunctionUniqUpTo.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionUniqUpTo.h b/dbms/AggregateFunctions/AggregateFunctionUniqUpTo.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionUniqUpTo.h rename to dbms/AggregateFunctions/AggregateFunctionUniqUpTo.h diff --git a/dbms/src/AggregateFunctions/AggregateFunctionWindowFunnel.cpp b/dbms/AggregateFunctions/AggregateFunctionWindowFunnel.cpp similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionWindowFunnel.cpp rename to dbms/AggregateFunctions/AggregateFunctionWindowFunnel.cpp diff --git a/dbms/src/AggregateFunctions/AggregateFunctionWindowFunnel.h b/dbms/AggregateFunctions/AggregateFunctionWindowFunnel.h similarity index 100% rename from dbms/src/AggregateFunctions/AggregateFunctionWindowFunnel.h rename to dbms/AggregateFunctions/AggregateFunctionWindowFunnel.h diff --git a/dbms/src/AggregateFunctions/CMakeLists.txt b/dbms/AggregateFunctions/CMakeLists.txt similarity index 100% rename from dbms/src/AggregateFunctions/CMakeLists.txt rename to dbms/AggregateFunctions/CMakeLists.txt diff --git a/dbms/src/AggregateFunctions/FactoryHelpers.h b/dbms/AggregateFunctions/FactoryHelpers.h similarity index 100% rename from dbms/src/AggregateFunctions/FactoryHelpers.h rename to dbms/AggregateFunctions/FactoryHelpers.h diff --git a/dbms/src/AggregateFunctions/Helpers.h b/dbms/AggregateFunctions/Helpers.h similarity index 100% rename from dbms/src/AggregateFunctions/Helpers.h rename to dbms/AggregateFunctions/Helpers.h diff --git a/dbms/src/AggregateFunctions/HelpersMinMaxAny.h b/dbms/AggregateFunctions/HelpersMinMaxAny.h similarity index 100% rename from dbms/src/AggregateFunctions/HelpersMinMaxAny.h rename to dbms/AggregateFunctions/HelpersMinMaxAny.h diff --git a/dbms/src/AggregateFunctions/IAggregateFunction.h b/dbms/AggregateFunctions/IAggregateFunction.h similarity index 100% rename from dbms/src/AggregateFunctions/IAggregateFunction.h rename to dbms/AggregateFunctions/IAggregateFunction.h diff --git a/dbms/src/AggregateFunctions/IAggregateFunctionCombinator.h b/dbms/AggregateFunctions/IAggregateFunctionCombinator.h similarity index 100% rename from dbms/src/AggregateFunctions/IAggregateFunctionCombinator.h rename to dbms/AggregateFunctions/IAggregateFunctionCombinator.h diff --git a/dbms/src/AggregateFunctions/QuantileExact.h b/dbms/AggregateFunctions/QuantileExact.h similarity index 100% rename from dbms/src/AggregateFunctions/QuantileExact.h rename to dbms/AggregateFunctions/QuantileExact.h diff --git a/dbms/src/AggregateFunctions/QuantileExactWeighted.h b/dbms/AggregateFunctions/QuantileExactWeighted.h similarity index 100% rename from dbms/src/AggregateFunctions/QuantileExactWeighted.h rename to dbms/AggregateFunctions/QuantileExactWeighted.h diff --git a/dbms/src/AggregateFunctions/QuantileReservoirSampler.h b/dbms/AggregateFunctions/QuantileReservoirSampler.h similarity index 100% rename from dbms/src/AggregateFunctions/QuantileReservoirSampler.h rename to dbms/AggregateFunctions/QuantileReservoirSampler.h diff --git a/dbms/src/AggregateFunctions/QuantileReservoirSamplerDeterministic.h b/dbms/AggregateFunctions/QuantileReservoirSamplerDeterministic.h similarity index 100% rename from dbms/src/AggregateFunctions/QuantileReservoirSamplerDeterministic.h rename to dbms/AggregateFunctions/QuantileReservoirSamplerDeterministic.h diff --git a/dbms/src/AggregateFunctions/QuantileTDigest.h b/dbms/AggregateFunctions/QuantileTDigest.h similarity index 100% rename from dbms/src/AggregateFunctions/QuantileTDigest.h rename to dbms/AggregateFunctions/QuantileTDigest.h diff --git a/dbms/src/AggregateFunctions/QuantileTiming.h b/dbms/AggregateFunctions/QuantileTiming.h similarity index 100% rename from dbms/src/AggregateFunctions/QuantileTiming.h rename to dbms/AggregateFunctions/QuantileTiming.h diff --git a/dbms/src/AggregateFunctions/QuantilesCommon.h b/dbms/AggregateFunctions/QuantilesCommon.h similarity index 100% rename from dbms/src/AggregateFunctions/QuantilesCommon.h rename to dbms/AggregateFunctions/QuantilesCommon.h diff --git a/dbms/src/AggregateFunctions/ReservoirSampler.h b/dbms/AggregateFunctions/ReservoirSampler.h similarity index 100% rename from dbms/src/AggregateFunctions/ReservoirSampler.h rename to dbms/AggregateFunctions/ReservoirSampler.h diff --git a/dbms/src/AggregateFunctions/ReservoirSamplerDeterministic.h b/dbms/AggregateFunctions/ReservoirSamplerDeterministic.h similarity index 100% rename from dbms/src/AggregateFunctions/ReservoirSamplerDeterministic.h rename to dbms/AggregateFunctions/ReservoirSamplerDeterministic.h diff --git a/dbms/src/AggregateFunctions/UniqCombinedBiasData.cpp b/dbms/AggregateFunctions/UniqCombinedBiasData.cpp similarity index 100% rename from dbms/src/AggregateFunctions/UniqCombinedBiasData.cpp rename to dbms/AggregateFunctions/UniqCombinedBiasData.cpp diff --git a/dbms/src/AggregateFunctions/UniqCombinedBiasData.h b/dbms/AggregateFunctions/UniqCombinedBiasData.h similarity index 100% rename from dbms/src/AggregateFunctions/UniqCombinedBiasData.h rename to dbms/AggregateFunctions/UniqCombinedBiasData.h diff --git a/dbms/src/AggregateFunctions/UniqVariadicHash.cpp b/dbms/AggregateFunctions/UniqVariadicHash.cpp similarity index 100% rename from dbms/src/AggregateFunctions/UniqVariadicHash.cpp rename to dbms/AggregateFunctions/UniqVariadicHash.cpp diff --git a/dbms/src/AggregateFunctions/UniqVariadicHash.h b/dbms/AggregateFunctions/UniqVariadicHash.h similarity index 100% rename from dbms/src/AggregateFunctions/UniqVariadicHash.h rename to dbms/AggregateFunctions/UniqVariadicHash.h diff --git a/dbms/src/AggregateFunctions/UniquesHashSet.h b/dbms/AggregateFunctions/UniquesHashSet.h similarity index 100% rename from dbms/src/AggregateFunctions/UniquesHashSet.h rename to dbms/AggregateFunctions/UniquesHashSet.h diff --git a/dbms/src/AggregateFunctions/parseAggregateFunctionParameters.cpp b/dbms/AggregateFunctions/parseAggregateFunctionParameters.cpp similarity index 100% rename from dbms/src/AggregateFunctions/parseAggregateFunctionParameters.cpp rename to dbms/AggregateFunctions/parseAggregateFunctionParameters.cpp diff --git a/dbms/src/AggregateFunctions/parseAggregateFunctionParameters.h b/dbms/AggregateFunctions/parseAggregateFunctionParameters.h similarity index 100% rename from dbms/src/AggregateFunctions/parseAggregateFunctionParameters.h rename to dbms/AggregateFunctions/parseAggregateFunctionParameters.h diff --git a/dbms/src/AggregateFunctions/registerAggregateFunctions.cpp b/dbms/AggregateFunctions/registerAggregateFunctions.cpp similarity index 100% rename from dbms/src/AggregateFunctions/registerAggregateFunctions.cpp rename to dbms/AggregateFunctions/registerAggregateFunctions.cpp diff --git a/dbms/src/AggregateFunctions/registerAggregateFunctions.h b/dbms/AggregateFunctions/registerAggregateFunctions.h similarity index 100% rename from dbms/src/AggregateFunctions/registerAggregateFunctions.h rename to dbms/AggregateFunctions/registerAggregateFunctions.h diff --git a/dbms/src/AggregateFunctions/tests/CMakeLists.txt b/dbms/AggregateFunctions/tests/CMakeLists.txt similarity index 100% rename from dbms/src/AggregateFunctions/tests/CMakeLists.txt rename to dbms/AggregateFunctions/tests/CMakeLists.txt diff --git a/dbms/src/AggregateFunctions/tests/quantile-t-digest.cpp b/dbms/AggregateFunctions/tests/quantile-t-digest.cpp similarity index 100% rename from dbms/src/AggregateFunctions/tests/quantile-t-digest.cpp rename to dbms/AggregateFunctions/tests/quantile-t-digest.cpp diff --git a/dbms/CMakeLists.txt b/dbms/CMakeLists.txt index 81cb5afbc43..1c891353aaa 100644 --- a/dbms/CMakeLists.txt +++ b/dbms/CMakeLists.txt @@ -1,6 +1,3 @@ -set(ConfigIncludePath ${CMAKE_CURRENT_BINARY_DIR}/includes/configs CACHE INTERNAL "Path to generated configuration files.") -include_directories(${ConfigIncludePath}) - if (USE_INCLUDE_WHAT_YOU_USE) set (CMAKE_CXX_INCLUDE_WHAT_YOU_USE ${IWYU_PATH}) endif () @@ -21,21 +18,21 @@ else() endif() include(../cmake/limit_jobs.cmake) -set (CONFIG_VERSION ${CMAKE_CURRENT_BINARY_DIR}/src/Common/config_version.h) -set (CONFIG_COMMON ${CMAKE_CURRENT_BINARY_DIR}/src/Common/config.h) +set (CONFIG_VERSION ${CMAKE_CURRENT_BINARY_DIR}/Common/config_version.h) +set (CONFIG_COMMON ${CMAKE_CURRENT_BINARY_DIR}/Common/config.h) include (cmake/version.cmake) message (STATUS "Will build ${VERSION_FULL} revision ${VERSION_REVISION} ${VERSION_OFFICIAL}") -configure_file (src/Common/config.h.in ${CONFIG_COMMON}) -configure_file (src/Common/config_version.h.in ${CONFIG_VERSION}) -configure_file (src/Core/config_core.h.in ${CMAKE_CURRENT_BINARY_DIR}/src/Core/include/config_core.h) +configure_file (Common/config.h.in ${CONFIG_COMMON}) +configure_file (Common/config_version.h.in ${CONFIG_VERSION}) +configure_file (Core/config_core.h.in ${CMAKE_CURRENT_BINARY_DIR}/Core/include/config_core.h) if (NOT MSVC) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra") endif () if (USE_DEBUG_HELPERS) - set (INCLUDE_DEBUG_HELPERS "-I${ClickHouse_SOURCE_DIR}/base -include ${ClickHouse_SOURCE_DIR}/dbms/src/Core/iostream_debug_helpers.h") + set (INCLUDE_DEBUG_HELPERS "-I${ClickHouse_SOURCE_DIR}/base -include ${ClickHouse_SOURCE_DIR}/dbms/Core/iostream_debug_helpers.h") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${INCLUDE_DEBUG_HELPERS}") endif () @@ -199,71 +196,90 @@ if (COMPILER_GCC) # (gdb) bt #0 memcpy (destination=0x7faa6e9f1638, source=0x7faa81d9e9a8, size=16) at ../libs/libmemcpy/memcpy.h:11 #1 0x0000000005341c5f in _mm_storeu_si128 (__B=..., __P=) at /usr/lib/gcc/x86_64-linux-gnu/7/include/emmintrin.h:720 - #2 memcpySmallAllowReadWriteOverflow15Impl (n=, src=, dst=) at ../dbms/src/Common/memcpySmall.h:37 + #2 memcpySmallAllowReadWriteOverflow15Impl (n=, src=, dst=) at ../dbms/Common/memcpySmall.h:37 add_definitions ("-fno-tree-loop-distribute-patterns") endif () -add_subdirectory (src) +add_subdirectory (Access) +add_subdirectory (Columns) +add_subdirectory (Common) +add_subdirectory (Core) +add_subdirectory (DataStreams) +add_subdirectory (DataTypes) +add_subdirectory (Dictionaries) +add_subdirectory (Disks) +add_subdirectory (Storages) +add_subdirectory (Parsers) +add_subdirectory (IO) +add_subdirectory (Functions) +add_subdirectory (Interpreters) +add_subdirectory (AggregateFunctions) +add_subdirectory (Client) +add_subdirectory (TableFunctions) +add_subdirectory (Processors) +add_subdirectory (Formats) +add_subdirectory (Compression) + set(dbms_headers) set(dbms_sources) -add_headers_and_sources(clickhouse_common_io src/Common) -add_headers_and_sources(clickhouse_common_io src/Common/HashTable) -add_headers_and_sources(clickhouse_common_io src/IO) -list (REMOVE_ITEM clickhouse_common_io_sources src/Common/malloc.cpp src/Common/new_delete.cpp) +add_headers_and_sources(clickhouse_common_io Common) +add_headers_and_sources(clickhouse_common_io Common/HashTable) +add_headers_and_sources(clickhouse_common_io IO) +list (REMOVE_ITEM clickhouse_common_io_sources Common/malloc.cpp Common/new_delete.cpp) if(USE_RDKAFKA) - add_headers_and_sources(dbms src/Storages/Kafka) + add_headers_and_sources(dbms Storages/Kafka) endif() list (APPEND clickhouse_common_io_sources ${CONFIG_BUILD}) list (APPEND clickhouse_common_io_headers ${CONFIG_VERSION} ${CONFIG_COMMON}) -list (APPEND dbms_sources src/Functions/IFunction.cpp src/Functions/FunctionFactory.cpp src/Functions/FunctionHelpers.cpp src/Functions/extractTimeZoneFromFunctionArguments.cpp) -list (APPEND dbms_headers src/Functions/IFunctionImpl.h src/Functions/FunctionFactory.h src/Functions/FunctionHelpers.h src/Functions/extractTimeZoneFromFunctionArguments.h) +list (APPEND dbms_sources Functions/IFunction.cpp Functions/FunctionFactory.cpp Functions/FunctionHelpers.cpp Functions/extractTimeZoneFromFunctionArguments.cpp) +list (APPEND dbms_headers Functions/IFunctionImpl.h Functions/FunctionFactory.h Functions/FunctionHelpers.h Functions/extractTimeZoneFromFunctionArguments.h) list (APPEND dbms_sources - src/AggregateFunctions/AggregateFunctionFactory.cpp - src/AggregateFunctions/AggregateFunctionCombinatorFactory.cpp - src/AggregateFunctions/AggregateFunctionState.cpp - src/AggregateFunctions/parseAggregateFunctionParameters.cpp) + AggregateFunctions/AggregateFunctionFactory.cpp + AggregateFunctions/AggregateFunctionCombinatorFactory.cpp + AggregateFunctions/AggregateFunctionState.cpp + AggregateFunctions/parseAggregateFunctionParameters.cpp) list (APPEND dbms_headers - src/AggregateFunctions/IAggregateFunction.h - src/AggregateFunctions/IAggregateFunctionCombinator.h - src/AggregateFunctions/AggregateFunctionFactory.h - src/AggregateFunctions/AggregateFunctionCombinatorFactory.h - src/AggregateFunctions/AggregateFunctionState.h - src/AggregateFunctions/FactoryHelpers.h - src/AggregateFunctions/parseAggregateFunctionParameters.h) + AggregateFunctions/IAggregateFunction.h + AggregateFunctions/IAggregateFunctionCombinator.h + AggregateFunctions/AggregateFunctionFactory.h + AggregateFunctions/AggregateFunctionCombinatorFactory.h + AggregateFunctions/AggregateFunctionState.h + AggregateFunctions/FactoryHelpers.h + AggregateFunctions/parseAggregateFunctionParameters.h) -list (APPEND dbms_sources src/TableFunctions/ITableFunction.cpp src/TableFunctions/TableFunctionFactory.cpp) -list (APPEND dbms_headers src/TableFunctions/ITableFunction.h src/TableFunctions/TableFunctionFactory.h) -list (APPEND dbms_sources src/Dictionaries/DictionaryFactory.cpp src/Dictionaries/DictionarySourceFactory.cpp src/Dictionaries/DictionaryStructure.cpp src/Dictionaries/getDictionaryConfigurationFromAST.cpp) -list (APPEND dbms_headers src/Dictionaries/DictionaryFactory.h src/Dictionaries/DictionarySourceFactory.h src/Dictionaries/DictionaryStructure.h src/Dictionaries/getDictionaryConfigurationFromAST.h) +list (APPEND dbms_sources TableFunctions/ITableFunction.cpp TableFunctions/TableFunctionFactory.cpp) +list (APPEND dbms_headers TableFunctions/ITableFunction.h TableFunctions/TableFunctionFactory.h) +list (APPEND dbms_sources Dictionaries/DictionaryFactory.cpp Dictionaries/DictionarySourceFactory.cpp Dictionaries/DictionaryStructure.cpp Dictionaries/getDictionaryConfigurationFromAST.cpp) +list (APPEND dbms_headers Dictionaries/DictionaryFactory.h Dictionaries/DictionarySourceFactory.h Dictionaries/DictionaryStructure.h Dictionaries/getDictionaryConfigurationFromAST.h) if (NOT ENABLE_SSL) - list (REMOVE_ITEM clickhouse_common_io_sources src/Common/OpenSSLHelpers.cpp) - list (REMOVE_ITEM clickhouse_common_io_headers src/Common/OpenSSLHelpers.h) + list (REMOVE_ITEM clickhouse_common_io_sources Common/OpenSSLHelpers.cpp) + list (REMOVE_ITEM clickhouse_common_io_headers Common/OpenSSLHelpers.h) endif () add_library(clickhouse_common_io ${clickhouse_common_io_headers} ${clickhouse_common_io_sources}) -add_library (clickhouse_malloc OBJECT src/Common/malloc.cpp) -set_source_files_properties(src/Common/malloc.cpp PROPERTIES COMPILE_FLAGS "-fno-builtin") +add_library (clickhouse_malloc OBJECT Common/malloc.cpp) +set_source_files_properties(Common/malloc.cpp PROPERTIES COMPILE_FLAGS "-fno-builtin") -add_library (clickhouse_new_delete STATIC src/Common/new_delete.cpp) +add_library (clickhouse_new_delete STATIC Common/new_delete.cpp) target_link_libraries (clickhouse_new_delete PRIVATE clickhouse_common_io jemalloc) if (OS_FREEBSD) target_compile_definitions (clickhouse_common_io PUBLIC CLOCK_MONOTONIC_COARSE=CLOCK_MONOTONIC_FAST) endif () -add_subdirectory(src/Common/ZooKeeper) -add_subdirectory(src/Common/Config) +add_subdirectory(Common/ZooKeeper) +add_subdirectory(Common/Config) set (all_modules) macro(add_object_library name common_path) @@ -277,28 +293,28 @@ macro(add_object_library name common_path) endif () endmacro() -add_object_library(clickhouse_access src/Access) -add_object_library(clickhouse_core src/Core) -add_object_library(clickhouse_compression src/Compression) -add_object_library(clickhouse_datastreams src/DataStreams) -add_object_library(clickhouse_datatypes src/DataTypes) -add_object_library(clickhouse_databases src/Databases) -add_object_library(clickhouse_disks src/Disks) -add_object_library(clickhouse_interpreters src/Interpreters) -add_object_library(clickhouse_interpreters_clusterproxy src/Interpreters/ClusterProxy) -add_object_library(clickhouse_columns src/Columns) -add_object_library(clickhouse_storages src/Storages) -add_object_library(clickhouse_storages_distributed src/Storages/Distributed) -add_object_library(clickhouse_storages_mergetree src/Storages/MergeTree) -add_object_library(clickhouse_storages_liveview src/Storages/LiveView) -add_object_library(clickhouse_client src/Client) -add_object_library(clickhouse_formats src/Formats) -add_object_library(clickhouse_processors src/Processors) -add_object_library(clickhouse_processors_executors src/Processors/Executors) -add_object_library(clickhouse_processors_formats src/Processors/Formats) -add_object_library(clickhouse_processors_formats_impl src/Processors/Formats/Impl) -add_object_library(clickhouse_processors_transforms src/Processors/Transforms) -add_object_library(clickhouse_processors_sources src/Processors/Sources) +add_object_library(clickhouse_access Access) +add_object_library(clickhouse_core Core) +add_object_library(clickhouse_compression Compression) +add_object_library(clickhouse_datastreams DataStreams) +add_object_library(clickhouse_datatypes DataTypes) +add_object_library(clickhouse_databases Databases) +add_object_library(clickhouse_disks Disks) +add_object_library(clickhouse_interpreters Interpreters) +add_object_library(clickhouse_interpreters_clusterproxy Interpreters/ClusterProxy) +add_object_library(clickhouse_columns Columns) +add_object_library(clickhouse_storages Storages) +add_object_library(clickhouse_storages_distributed Storages/Distributed) +add_object_library(clickhouse_storages_mergetree Storages/MergeTree) +add_object_library(clickhouse_storages_liveview Storages/LiveView) +add_object_library(clickhouse_client Client) +add_object_library(clickhouse_formats Formats) +add_object_library(clickhouse_processors Processors) +add_object_library(clickhouse_processors_executors Processors/Executors) +add_object_library(clickhouse_processors_formats Processors/Formats) +add_object_library(clickhouse_processors_formats_impl Processors/Formats/Impl) +add_object_library(clickhouse_processors_transforms Processors/Transforms) +add_object_library(clickhouse_processors_sources Processors/Sources) if (MAKE_STATIC_LIBRARIES OR NOT SPLIT_SHARED_LIBRARIES) @@ -334,29 +350,29 @@ endif () if (CMAKE_BUILD_TYPE_UC STREQUAL "RELEASE" OR CMAKE_BUILD_TYPE_UC STREQUAL "RELWITHDEBINFO" OR CMAKE_BUILD_TYPE_UC STREQUAL "MINSIZEREL") # Won't generate debug info for files with heavy template instantiation to achieve faster linking and lower size. set_source_files_properties( - src/Dictionaries/FlatDictionary.cpp - src/Dictionaries/HashedDictionary.cpp - src/Dictionaries/CacheDictionary.cpp - src/Dictionaries/TrieDictionary.cpp - src/Dictionaries/RangeHashedDictionary.cpp - src/Dictionaries/ComplexKeyHashedDictionary.cpp - src/Dictionaries/ComplexKeyCacheDictionary.cpp - src/Dictionaries/ComplexKeyCacheDictionary_generate1.cpp - src/Dictionaries/ComplexKeyCacheDictionary_generate2.cpp - src/Dictionaries/ComplexKeyCacheDictionary_generate3.cpp - src/Dictionaries/ODBCBlockInputStream.cpp - src/Dictionaries/HTTPDictionarySource.cpp - src/Dictionaries/LibraryDictionarySource.cpp - src/Dictionaries/ExecutableDictionarySource.cpp - src/Dictionaries/ClickHouseDictionarySource.cpp + Dictionaries/FlatDictionary.cpp + Dictionaries/HashedDictionary.cpp + Dictionaries/CacheDictionary.cpp + Dictionaries/TrieDictionary.cpp + Dictionaries/RangeHashedDictionary.cpp + Dictionaries/ComplexKeyHashedDictionary.cpp + Dictionaries/ComplexKeyCacheDictionary.cpp + Dictionaries/ComplexKeyCacheDictionary_generate1.cpp + Dictionaries/ComplexKeyCacheDictionary_generate2.cpp + Dictionaries/ComplexKeyCacheDictionary_generate3.cpp + Dictionaries/ODBCBlockInputStream.cpp + Dictionaries/HTTPDictionarySource.cpp + Dictionaries/LibraryDictionarySource.cpp + Dictionaries/ExecutableDictionarySource.cpp + Dictionaries/ClickHouseDictionarySource.cpp PROPERTIES COMPILE_FLAGS -g0) endif () # Otherwise it will slow down stack traces printing too much. set_source_files_properties( - src/Common/Elf.cpp - src/Common/Dwarf.cpp - src/Common/SymbolIndex.cpp + Common/Elf.cpp + Common/Dwarf.cpp + Common/SymbolIndex.cpp PROPERTIES COMPILE_FLAGS "-O3 ${WITHOUT_COVERAGE}") target_link_libraries (clickhouse_common_io @@ -438,8 +454,8 @@ dbms_target_link_libraries ( ${Boost_SYSTEM_LIBRARY} ) -target_include_directories(clickhouse_common_io PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/src/Core/include) # uses some includes from core -dbms_target_include_directories(PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/src/Core/include) +target_include_directories(clickhouse_common_io PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/Core/include) # uses some includes from core +dbms_target_include_directories(PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/Core/include) target_include_directories(clickhouse_common_io SYSTEM PUBLIC ${PCG_RANDOM_INCLUDE_DIR}) dbms_target_include_directories(SYSTEM PUBLIC ${PCG_RANDOM_INCLUDE_DIR}) @@ -562,9 +578,6 @@ target_include_directories (clickhouse_common_io PUBLIC ${DBMS_INCLUDE_DIR}) target_include_directories (clickhouse_common_io SYSTEM BEFORE PUBLIC ${DOUBLE_CONVERSION_INCLUDE_DIR}) -add_subdirectory (programs) -add_subdirectory (tests) - if (ENABLE_TESTS AND USE_GTEST) macro (grep_gtest_sources BASE_DIR DST_VAR) # Cold match files that are not in tests/ directories diff --git a/dbms/src/Client/CMakeLists.txt b/dbms/Client/CMakeLists.txt similarity index 100% rename from dbms/src/Client/CMakeLists.txt rename to dbms/Client/CMakeLists.txt diff --git a/dbms/src/Client/Connection.cpp b/dbms/Client/Connection.cpp similarity index 100% rename from dbms/src/Client/Connection.cpp rename to dbms/Client/Connection.cpp diff --git a/dbms/src/Client/Connection.h b/dbms/Client/Connection.h similarity index 100% rename from dbms/src/Client/Connection.h rename to dbms/Client/Connection.h diff --git a/dbms/src/Client/ConnectionPool.h b/dbms/Client/ConnectionPool.h similarity index 100% rename from dbms/src/Client/ConnectionPool.h rename to dbms/Client/ConnectionPool.h diff --git a/dbms/src/Client/ConnectionPoolWithFailover.cpp b/dbms/Client/ConnectionPoolWithFailover.cpp similarity index 100% rename from dbms/src/Client/ConnectionPoolWithFailover.cpp rename to dbms/Client/ConnectionPoolWithFailover.cpp diff --git a/dbms/src/Client/ConnectionPoolWithFailover.h b/dbms/Client/ConnectionPoolWithFailover.h similarity index 100% rename from dbms/src/Client/ConnectionPoolWithFailover.h rename to dbms/Client/ConnectionPoolWithFailover.h diff --git a/dbms/src/Client/MultiplexedConnections.cpp b/dbms/Client/MultiplexedConnections.cpp similarity index 100% rename from dbms/src/Client/MultiplexedConnections.cpp rename to dbms/Client/MultiplexedConnections.cpp diff --git a/dbms/src/Client/MultiplexedConnections.h b/dbms/Client/MultiplexedConnections.h similarity index 100% rename from dbms/src/Client/MultiplexedConnections.h rename to dbms/Client/MultiplexedConnections.h diff --git a/dbms/src/Client/TimeoutSetter.cpp b/dbms/Client/TimeoutSetter.cpp similarity index 100% rename from dbms/src/Client/TimeoutSetter.cpp rename to dbms/Client/TimeoutSetter.cpp diff --git a/dbms/src/Client/TimeoutSetter.h b/dbms/Client/TimeoutSetter.h similarity index 100% rename from dbms/src/Client/TimeoutSetter.h rename to dbms/Client/TimeoutSetter.h diff --git a/dbms/src/Client/tests/CMakeLists.txt b/dbms/Client/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Client/tests/CMakeLists.txt rename to dbms/Client/tests/CMakeLists.txt diff --git a/dbms/src/Client/tests/test_connect.cpp b/dbms/Client/tests/test_connect.cpp similarity index 100% rename from dbms/src/Client/tests/test_connect.cpp rename to dbms/Client/tests/test_connect.cpp diff --git a/dbms/src/Columns/CMakeLists.txt b/dbms/Columns/CMakeLists.txt similarity index 100% rename from dbms/src/Columns/CMakeLists.txt rename to dbms/Columns/CMakeLists.txt diff --git a/dbms/src/Columns/Collator.cpp b/dbms/Columns/Collator.cpp similarity index 100% rename from dbms/src/Columns/Collator.cpp rename to dbms/Columns/Collator.cpp diff --git a/dbms/src/Columns/Collator.h b/dbms/Columns/Collator.h similarity index 100% rename from dbms/src/Columns/Collator.h rename to dbms/Columns/Collator.h diff --git a/dbms/src/Columns/ColumnAggregateFunction.cpp b/dbms/Columns/ColumnAggregateFunction.cpp similarity index 100% rename from dbms/src/Columns/ColumnAggregateFunction.cpp rename to dbms/Columns/ColumnAggregateFunction.cpp diff --git a/dbms/src/Columns/ColumnAggregateFunction.h b/dbms/Columns/ColumnAggregateFunction.h similarity index 100% rename from dbms/src/Columns/ColumnAggregateFunction.h rename to dbms/Columns/ColumnAggregateFunction.h diff --git a/dbms/src/Columns/ColumnArray.cpp b/dbms/Columns/ColumnArray.cpp similarity index 100% rename from dbms/src/Columns/ColumnArray.cpp rename to dbms/Columns/ColumnArray.cpp diff --git a/dbms/src/Columns/ColumnArray.h b/dbms/Columns/ColumnArray.h similarity index 100% rename from dbms/src/Columns/ColumnArray.h rename to dbms/Columns/ColumnArray.h diff --git a/dbms/src/Columns/ColumnConst.cpp b/dbms/Columns/ColumnConst.cpp similarity index 100% rename from dbms/src/Columns/ColumnConst.cpp rename to dbms/Columns/ColumnConst.cpp diff --git a/dbms/src/Columns/ColumnConst.h b/dbms/Columns/ColumnConst.h similarity index 100% rename from dbms/src/Columns/ColumnConst.h rename to dbms/Columns/ColumnConst.h diff --git a/dbms/src/Columns/ColumnDecimal.cpp b/dbms/Columns/ColumnDecimal.cpp similarity index 100% rename from dbms/src/Columns/ColumnDecimal.cpp rename to dbms/Columns/ColumnDecimal.cpp diff --git a/dbms/src/Columns/ColumnDecimal.h b/dbms/Columns/ColumnDecimal.h similarity index 100% rename from dbms/src/Columns/ColumnDecimal.h rename to dbms/Columns/ColumnDecimal.h diff --git a/dbms/src/Columns/ColumnFixedString.cpp b/dbms/Columns/ColumnFixedString.cpp similarity index 100% rename from dbms/src/Columns/ColumnFixedString.cpp rename to dbms/Columns/ColumnFixedString.cpp diff --git a/dbms/src/Columns/ColumnFixedString.h b/dbms/Columns/ColumnFixedString.h similarity index 100% rename from dbms/src/Columns/ColumnFixedString.h rename to dbms/Columns/ColumnFixedString.h diff --git a/dbms/src/Columns/ColumnFunction.cpp b/dbms/Columns/ColumnFunction.cpp similarity index 100% rename from dbms/src/Columns/ColumnFunction.cpp rename to dbms/Columns/ColumnFunction.cpp diff --git a/dbms/src/Columns/ColumnFunction.h b/dbms/Columns/ColumnFunction.h similarity index 100% rename from dbms/src/Columns/ColumnFunction.h rename to dbms/Columns/ColumnFunction.h diff --git a/dbms/src/Columns/ColumnLowCardinality.cpp b/dbms/Columns/ColumnLowCardinality.cpp similarity index 100% rename from dbms/src/Columns/ColumnLowCardinality.cpp rename to dbms/Columns/ColumnLowCardinality.cpp diff --git a/dbms/src/Columns/ColumnLowCardinality.h b/dbms/Columns/ColumnLowCardinality.h similarity index 100% rename from dbms/src/Columns/ColumnLowCardinality.h rename to dbms/Columns/ColumnLowCardinality.h diff --git a/dbms/src/Columns/ColumnNothing.h b/dbms/Columns/ColumnNothing.h similarity index 100% rename from dbms/src/Columns/ColumnNothing.h rename to dbms/Columns/ColumnNothing.h diff --git a/dbms/src/Columns/ColumnNullable.cpp b/dbms/Columns/ColumnNullable.cpp similarity index 100% rename from dbms/src/Columns/ColumnNullable.cpp rename to dbms/Columns/ColumnNullable.cpp diff --git a/dbms/src/Columns/ColumnNullable.h b/dbms/Columns/ColumnNullable.h similarity index 100% rename from dbms/src/Columns/ColumnNullable.h rename to dbms/Columns/ColumnNullable.h diff --git a/dbms/src/Columns/ColumnSet.h b/dbms/Columns/ColumnSet.h similarity index 100% rename from dbms/src/Columns/ColumnSet.h rename to dbms/Columns/ColumnSet.h diff --git a/dbms/src/Columns/ColumnString.cpp b/dbms/Columns/ColumnString.cpp similarity index 100% rename from dbms/src/Columns/ColumnString.cpp rename to dbms/Columns/ColumnString.cpp diff --git a/dbms/src/Columns/ColumnString.h b/dbms/Columns/ColumnString.h similarity index 100% rename from dbms/src/Columns/ColumnString.h rename to dbms/Columns/ColumnString.h diff --git a/dbms/src/Columns/ColumnTuple.cpp b/dbms/Columns/ColumnTuple.cpp similarity index 100% rename from dbms/src/Columns/ColumnTuple.cpp rename to dbms/Columns/ColumnTuple.cpp diff --git a/dbms/src/Columns/ColumnTuple.h b/dbms/Columns/ColumnTuple.h similarity index 100% rename from dbms/src/Columns/ColumnTuple.h rename to dbms/Columns/ColumnTuple.h diff --git a/dbms/src/Columns/ColumnUnique.h b/dbms/Columns/ColumnUnique.h similarity index 100% rename from dbms/src/Columns/ColumnUnique.h rename to dbms/Columns/ColumnUnique.h diff --git a/dbms/src/Columns/ColumnVector.cpp b/dbms/Columns/ColumnVector.cpp similarity index 100% rename from dbms/src/Columns/ColumnVector.cpp rename to dbms/Columns/ColumnVector.cpp diff --git a/dbms/src/Columns/ColumnVector.h b/dbms/Columns/ColumnVector.h similarity index 100% rename from dbms/src/Columns/ColumnVector.h rename to dbms/Columns/ColumnVector.h diff --git a/dbms/src/Columns/ColumnVectorHelper.h b/dbms/Columns/ColumnVectorHelper.h similarity index 100% rename from dbms/src/Columns/ColumnVectorHelper.h rename to dbms/Columns/ColumnVectorHelper.h diff --git a/dbms/src/Columns/ColumnsCommon.cpp b/dbms/Columns/ColumnsCommon.cpp similarity index 100% rename from dbms/src/Columns/ColumnsCommon.cpp rename to dbms/Columns/ColumnsCommon.cpp diff --git a/dbms/src/Columns/ColumnsCommon.h b/dbms/Columns/ColumnsCommon.h similarity index 100% rename from dbms/src/Columns/ColumnsCommon.h rename to dbms/Columns/ColumnsCommon.h diff --git a/dbms/src/Columns/ColumnsNumber.h b/dbms/Columns/ColumnsNumber.h similarity index 100% rename from dbms/src/Columns/ColumnsNumber.h rename to dbms/Columns/ColumnsNumber.h diff --git a/dbms/src/Columns/FilterDescription.cpp b/dbms/Columns/FilterDescription.cpp similarity index 100% rename from dbms/src/Columns/FilterDescription.cpp rename to dbms/Columns/FilterDescription.cpp diff --git a/dbms/src/Columns/FilterDescription.h b/dbms/Columns/FilterDescription.h similarity index 100% rename from dbms/src/Columns/FilterDescription.h rename to dbms/Columns/FilterDescription.h diff --git a/dbms/src/Columns/IColumn.cpp b/dbms/Columns/IColumn.cpp similarity index 100% rename from dbms/src/Columns/IColumn.cpp rename to dbms/Columns/IColumn.cpp diff --git a/dbms/src/Columns/IColumn.h b/dbms/Columns/IColumn.h similarity index 100% rename from dbms/src/Columns/IColumn.h rename to dbms/Columns/IColumn.h diff --git a/dbms/src/Columns/IColumnDummy.h b/dbms/Columns/IColumnDummy.h similarity index 100% rename from dbms/src/Columns/IColumnDummy.h rename to dbms/Columns/IColumnDummy.h diff --git a/dbms/src/Columns/IColumnImpl.h b/dbms/Columns/IColumnImpl.h similarity index 100% rename from dbms/src/Columns/IColumnImpl.h rename to dbms/Columns/IColumnImpl.h diff --git a/dbms/src/Columns/IColumnUnique.h b/dbms/Columns/IColumnUnique.h similarity index 100% rename from dbms/src/Columns/IColumnUnique.h rename to dbms/Columns/IColumnUnique.h diff --git a/dbms/src/Columns/ReverseIndex.h b/dbms/Columns/ReverseIndex.h similarity index 100% rename from dbms/src/Columns/ReverseIndex.h rename to dbms/Columns/ReverseIndex.h diff --git a/dbms/src/Columns/getLeastSuperColumn.cpp b/dbms/Columns/getLeastSuperColumn.cpp similarity index 100% rename from dbms/src/Columns/getLeastSuperColumn.cpp rename to dbms/Columns/getLeastSuperColumn.cpp diff --git a/dbms/src/Columns/getLeastSuperColumn.h b/dbms/Columns/getLeastSuperColumn.h similarity index 100% rename from dbms/src/Columns/getLeastSuperColumn.h rename to dbms/Columns/getLeastSuperColumn.h diff --git a/dbms/src/Columns/tests/CMakeLists.txt b/dbms/Columns/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Columns/tests/CMakeLists.txt rename to dbms/Columns/tests/CMakeLists.txt diff --git a/dbms/src/Columns/tests/gtest_column_unique.cpp b/dbms/Columns/tests/gtest_column_unique.cpp similarity index 100% rename from dbms/src/Columns/tests/gtest_column_unique.cpp rename to dbms/Columns/tests/gtest_column_unique.cpp diff --git a/dbms/src/Columns/tests/gtest_weak_hash_32.cpp b/dbms/Columns/tests/gtest_weak_hash_32.cpp similarity index 100% rename from dbms/src/Columns/tests/gtest_weak_hash_32.cpp rename to dbms/Columns/tests/gtest_weak_hash_32.cpp diff --git a/dbms/src/Common/ActionBlocker.h b/dbms/Common/ActionBlocker.h similarity index 100% rename from dbms/src/Common/ActionBlocker.h rename to dbms/Common/ActionBlocker.h diff --git a/dbms/src/Common/ActionLock.cpp b/dbms/Common/ActionLock.cpp similarity index 100% rename from dbms/src/Common/ActionLock.cpp rename to dbms/Common/ActionLock.cpp diff --git a/dbms/src/Common/ActionLock.h b/dbms/Common/ActionLock.h similarity index 100% rename from dbms/src/Common/ActionLock.h rename to dbms/Common/ActionLock.h diff --git a/dbms/src/Common/AlignedBuffer.cpp b/dbms/Common/AlignedBuffer.cpp similarity index 100% rename from dbms/src/Common/AlignedBuffer.cpp rename to dbms/Common/AlignedBuffer.cpp diff --git a/dbms/src/Common/AlignedBuffer.h b/dbms/Common/AlignedBuffer.h similarity index 100% rename from dbms/src/Common/AlignedBuffer.h rename to dbms/Common/AlignedBuffer.h diff --git a/dbms/src/Common/Allocator.h b/dbms/Common/Allocator.h similarity index 100% rename from dbms/src/Common/Allocator.h rename to dbms/Common/Allocator.h diff --git a/dbms/src/Common/Allocator_fwd.h b/dbms/Common/Allocator_fwd.h similarity index 100% rename from dbms/src/Common/Allocator_fwd.h rename to dbms/Common/Allocator_fwd.h diff --git a/dbms/src/Common/Arena.h b/dbms/Common/Arena.h similarity index 100% rename from dbms/src/Common/Arena.h rename to dbms/Common/Arena.h diff --git a/dbms/src/Common/ArenaAllocator.h b/dbms/Common/ArenaAllocator.h similarity index 100% rename from dbms/src/Common/ArenaAllocator.h rename to dbms/Common/ArenaAllocator.h diff --git a/dbms/src/Common/ArenaWithFreeLists.h b/dbms/Common/ArenaWithFreeLists.h similarity index 100% rename from dbms/src/Common/ArenaWithFreeLists.h rename to dbms/Common/ArenaWithFreeLists.h diff --git a/dbms/src/Common/ArrayCache.h b/dbms/Common/ArrayCache.h similarity index 100% rename from dbms/src/Common/ArrayCache.h rename to dbms/Common/ArrayCache.h diff --git a/dbms/src/Common/AutoArray.h b/dbms/Common/AutoArray.h similarity index 100% rename from dbms/src/Common/AutoArray.h rename to dbms/Common/AutoArray.h diff --git a/dbms/src/Common/BitHelpers.h b/dbms/Common/BitHelpers.h similarity index 100% rename from dbms/src/Common/BitHelpers.h rename to dbms/Common/BitHelpers.h diff --git a/dbms/src/Common/CMakeLists.txt b/dbms/Common/CMakeLists.txt similarity index 100% rename from dbms/src/Common/CMakeLists.txt rename to dbms/Common/CMakeLists.txt diff --git a/dbms/src/Common/COW.h b/dbms/Common/COW.h similarity index 100% rename from dbms/src/Common/COW.h rename to dbms/Common/COW.h diff --git a/dbms/src/Common/ClickHouseRevision.cpp b/dbms/Common/ClickHouseRevision.cpp similarity index 100% rename from dbms/src/Common/ClickHouseRevision.cpp rename to dbms/Common/ClickHouseRevision.cpp diff --git a/dbms/src/Common/ClickHouseRevision.h b/dbms/Common/ClickHouseRevision.h similarity index 100% rename from dbms/src/Common/ClickHouseRevision.h rename to dbms/Common/ClickHouseRevision.h diff --git a/dbms/src/Common/ColumnsHashing.h b/dbms/Common/ColumnsHashing.h similarity index 100% rename from dbms/src/Common/ColumnsHashing.h rename to dbms/Common/ColumnsHashing.h diff --git a/dbms/src/Common/ColumnsHashingImpl.h b/dbms/Common/ColumnsHashingImpl.h similarity index 100% rename from dbms/src/Common/ColumnsHashingImpl.h rename to dbms/Common/ColumnsHashingImpl.h diff --git a/dbms/src/Common/CombinedCardinalityEstimator.h b/dbms/Common/CombinedCardinalityEstimator.h similarity index 100% rename from dbms/src/Common/CombinedCardinalityEstimator.h rename to dbms/Common/CombinedCardinalityEstimator.h diff --git a/dbms/src/Common/CompactArray.h b/dbms/Common/CompactArray.h similarity index 100% rename from dbms/src/Common/CompactArray.h rename to dbms/Common/CompactArray.h diff --git a/dbms/src/Common/ConcurrentBoundedQueue.h b/dbms/Common/ConcurrentBoundedQueue.h similarity index 100% rename from dbms/src/Common/ConcurrentBoundedQueue.h rename to dbms/Common/ConcurrentBoundedQueue.h diff --git a/dbms/src/Common/Config/AbstractConfigurationComparison.cpp b/dbms/Common/Config/AbstractConfigurationComparison.cpp similarity index 100% rename from dbms/src/Common/Config/AbstractConfigurationComparison.cpp rename to dbms/Common/Config/AbstractConfigurationComparison.cpp diff --git a/dbms/src/Common/Config/AbstractConfigurationComparison.h b/dbms/Common/Config/AbstractConfigurationComparison.h similarity index 100% rename from dbms/src/Common/Config/AbstractConfigurationComparison.h rename to dbms/Common/Config/AbstractConfigurationComparison.h diff --git a/dbms/src/Common/Config/CMakeLists.txt b/dbms/Common/Config/CMakeLists.txt similarity index 100% rename from dbms/src/Common/Config/CMakeLists.txt rename to dbms/Common/Config/CMakeLists.txt diff --git a/dbms/src/Common/Config/ConfigProcessor.cpp b/dbms/Common/Config/ConfigProcessor.cpp similarity index 100% rename from dbms/src/Common/Config/ConfigProcessor.cpp rename to dbms/Common/Config/ConfigProcessor.cpp diff --git a/dbms/src/Common/Config/ConfigProcessor.h b/dbms/Common/Config/ConfigProcessor.h similarity index 100% rename from dbms/src/Common/Config/ConfigProcessor.h rename to dbms/Common/Config/ConfigProcessor.h diff --git a/dbms/src/Common/Config/ConfigReloader.cpp b/dbms/Common/Config/ConfigReloader.cpp similarity index 100% rename from dbms/src/Common/Config/ConfigReloader.cpp rename to dbms/Common/Config/ConfigReloader.cpp diff --git a/dbms/src/Common/Config/ConfigReloader.h b/dbms/Common/Config/ConfigReloader.h similarity index 100% rename from dbms/src/Common/Config/ConfigReloader.h rename to dbms/Common/Config/ConfigReloader.h diff --git a/dbms/src/Common/Config/configReadClient.cpp b/dbms/Common/Config/configReadClient.cpp similarity index 100% rename from dbms/src/Common/Config/configReadClient.cpp rename to dbms/Common/Config/configReadClient.cpp diff --git a/dbms/src/Common/Config/configReadClient.h b/dbms/Common/Config/configReadClient.h similarity index 100% rename from dbms/src/Common/Config/configReadClient.h rename to dbms/Common/Config/configReadClient.h diff --git a/dbms/src/Common/CounterInFile.h b/dbms/Common/CounterInFile.h similarity index 100% rename from dbms/src/Common/CounterInFile.h rename to dbms/Common/CounterInFile.h diff --git a/dbms/src/Common/CpuId.h b/dbms/Common/CpuId.h similarity index 100% rename from dbms/src/Common/CpuId.h rename to dbms/Common/CpuId.h diff --git a/dbms/src/Common/CurrentMetrics.cpp b/dbms/Common/CurrentMetrics.cpp similarity index 100% rename from dbms/src/Common/CurrentMetrics.cpp rename to dbms/Common/CurrentMetrics.cpp diff --git a/dbms/src/Common/CurrentMetrics.h b/dbms/Common/CurrentMetrics.h similarity index 100% rename from dbms/src/Common/CurrentMetrics.h rename to dbms/Common/CurrentMetrics.h diff --git a/dbms/src/Common/CurrentThread.cpp b/dbms/Common/CurrentThread.cpp similarity index 100% rename from dbms/src/Common/CurrentThread.cpp rename to dbms/Common/CurrentThread.cpp diff --git a/dbms/src/Common/CurrentThread.h b/dbms/Common/CurrentThread.h similarity index 100% rename from dbms/src/Common/CurrentThread.h rename to dbms/Common/CurrentThread.h diff --git a/dbms/src/Common/DNSResolver.cpp b/dbms/Common/DNSResolver.cpp similarity index 100% rename from dbms/src/Common/DNSResolver.cpp rename to dbms/Common/DNSResolver.cpp diff --git a/dbms/src/Common/DNSResolver.h b/dbms/Common/DNSResolver.h similarity index 100% rename from dbms/src/Common/DNSResolver.h rename to dbms/Common/DNSResolver.h diff --git a/dbms/src/Common/Dwarf.cpp b/dbms/Common/Dwarf.cpp similarity index 100% rename from dbms/src/Common/Dwarf.cpp rename to dbms/Common/Dwarf.cpp diff --git a/dbms/src/Common/Dwarf.h b/dbms/Common/Dwarf.h similarity index 100% rename from dbms/src/Common/Dwarf.h rename to dbms/Common/Dwarf.h diff --git a/dbms/src/Common/Elf.cpp b/dbms/Common/Elf.cpp similarity index 100% rename from dbms/src/Common/Elf.cpp rename to dbms/Common/Elf.cpp diff --git a/dbms/src/Common/Elf.h b/dbms/Common/Elf.h similarity index 100% rename from dbms/src/Common/Elf.h rename to dbms/Common/Elf.h diff --git a/dbms/src/Common/ErrorCodes.cpp b/dbms/Common/ErrorCodes.cpp similarity index 100% rename from dbms/src/Common/ErrorCodes.cpp rename to dbms/Common/ErrorCodes.cpp diff --git a/dbms/src/Common/EventCounter.h b/dbms/Common/EventCounter.h similarity index 100% rename from dbms/src/Common/EventCounter.h rename to dbms/Common/EventCounter.h diff --git a/dbms/src/Common/Exception.cpp b/dbms/Common/Exception.cpp similarity index 100% rename from dbms/src/Common/Exception.cpp rename to dbms/Common/Exception.cpp diff --git a/dbms/src/Common/Exception.h b/dbms/Common/Exception.h similarity index 100% rename from dbms/src/Common/Exception.h rename to dbms/Common/Exception.h diff --git a/dbms/src/Common/ExternalLoaderStatus.cpp b/dbms/Common/ExternalLoaderStatus.cpp similarity index 100% rename from dbms/src/Common/ExternalLoaderStatus.cpp rename to dbms/Common/ExternalLoaderStatus.cpp diff --git a/dbms/src/Common/ExternalLoaderStatus.h b/dbms/Common/ExternalLoaderStatus.h similarity index 100% rename from dbms/src/Common/ExternalLoaderStatus.h rename to dbms/Common/ExternalLoaderStatus.h diff --git a/dbms/src/Common/FieldVisitors.cpp b/dbms/Common/FieldVisitors.cpp similarity index 100% rename from dbms/src/Common/FieldVisitors.cpp rename to dbms/Common/FieldVisitors.cpp diff --git a/dbms/src/Common/FieldVisitors.h b/dbms/Common/FieldVisitors.h similarity index 100% rename from dbms/src/Common/FieldVisitors.h rename to dbms/Common/FieldVisitors.h diff --git a/dbms/src/Common/FileChecker.cpp b/dbms/Common/FileChecker.cpp similarity index 100% rename from dbms/src/Common/FileChecker.cpp rename to dbms/Common/FileChecker.cpp diff --git a/dbms/src/Common/FileChecker.h b/dbms/Common/FileChecker.h similarity index 100% rename from dbms/src/Common/FileChecker.h rename to dbms/Common/FileChecker.h diff --git a/dbms/src/Common/FileUpdatesTracker.h b/dbms/Common/FileUpdatesTracker.h similarity index 100% rename from dbms/src/Common/FileUpdatesTracker.h rename to dbms/Common/FileUpdatesTracker.h diff --git a/dbms/src/Common/HTMLForm.h b/dbms/Common/HTMLForm.h similarity index 100% rename from dbms/src/Common/HTMLForm.h rename to dbms/Common/HTMLForm.h diff --git a/dbms/src/Common/HashTable/ClearableHashMap.h b/dbms/Common/HashTable/ClearableHashMap.h similarity index 100% rename from dbms/src/Common/HashTable/ClearableHashMap.h rename to dbms/Common/HashTable/ClearableHashMap.h diff --git a/dbms/src/Common/HashTable/ClearableHashSet.h b/dbms/Common/HashTable/ClearableHashSet.h similarity index 100% rename from dbms/src/Common/HashTable/ClearableHashSet.h rename to dbms/Common/HashTable/ClearableHashSet.h diff --git a/dbms/src/Common/HashTable/FixedClearableHashMap.h b/dbms/Common/HashTable/FixedClearableHashMap.h similarity index 100% rename from dbms/src/Common/HashTable/FixedClearableHashMap.h rename to dbms/Common/HashTable/FixedClearableHashMap.h diff --git a/dbms/src/Common/HashTable/FixedClearableHashSet.h b/dbms/Common/HashTable/FixedClearableHashSet.h similarity index 100% rename from dbms/src/Common/HashTable/FixedClearableHashSet.h rename to dbms/Common/HashTable/FixedClearableHashSet.h diff --git a/dbms/src/Common/HashTable/FixedHashMap.h b/dbms/Common/HashTable/FixedHashMap.h similarity index 100% rename from dbms/src/Common/HashTable/FixedHashMap.h rename to dbms/Common/HashTable/FixedHashMap.h diff --git a/dbms/src/Common/HashTable/FixedHashSet.h b/dbms/Common/HashTable/FixedHashSet.h similarity index 100% rename from dbms/src/Common/HashTable/FixedHashSet.h rename to dbms/Common/HashTable/FixedHashSet.h diff --git a/dbms/src/Common/HashTable/FixedHashTable.h b/dbms/Common/HashTable/FixedHashTable.h similarity index 100% rename from dbms/src/Common/HashTable/FixedHashTable.h rename to dbms/Common/HashTable/FixedHashTable.h diff --git a/dbms/src/Common/HashTable/Hash.h b/dbms/Common/HashTable/Hash.h similarity index 100% rename from dbms/src/Common/HashTable/Hash.h rename to dbms/Common/HashTable/Hash.h diff --git a/dbms/src/Common/HashTable/HashMap.h b/dbms/Common/HashTable/HashMap.h similarity index 100% rename from dbms/src/Common/HashTable/HashMap.h rename to dbms/Common/HashTable/HashMap.h diff --git a/dbms/src/Common/HashTable/HashSet.h b/dbms/Common/HashTable/HashSet.h similarity index 100% rename from dbms/src/Common/HashTable/HashSet.h rename to dbms/Common/HashTable/HashSet.h diff --git a/dbms/src/Common/HashTable/HashTable.h b/dbms/Common/HashTable/HashTable.h similarity index 100% rename from dbms/src/Common/HashTable/HashTable.h rename to dbms/Common/HashTable/HashTable.h diff --git a/dbms/src/Common/HashTable/HashTableAllocator.h b/dbms/Common/HashTable/HashTableAllocator.h similarity index 100% rename from dbms/src/Common/HashTable/HashTableAllocator.h rename to dbms/Common/HashTable/HashTableAllocator.h diff --git a/dbms/src/Common/HashTable/HashTableKeyHolder.h b/dbms/Common/HashTable/HashTableKeyHolder.h similarity index 100% rename from dbms/src/Common/HashTable/HashTableKeyHolder.h rename to dbms/Common/HashTable/HashTableKeyHolder.h diff --git a/dbms/src/Common/HashTable/SmallTable.h b/dbms/Common/HashTable/SmallTable.h similarity index 100% rename from dbms/src/Common/HashTable/SmallTable.h rename to dbms/Common/HashTable/SmallTable.h diff --git a/dbms/src/Common/HashTable/StringHashMap.h b/dbms/Common/HashTable/StringHashMap.h similarity index 100% rename from dbms/src/Common/HashTable/StringHashMap.h rename to dbms/Common/HashTable/StringHashMap.h diff --git a/dbms/src/Common/HashTable/StringHashTable.h b/dbms/Common/HashTable/StringHashTable.h similarity index 100% rename from dbms/src/Common/HashTable/StringHashTable.h rename to dbms/Common/HashTable/StringHashTable.h diff --git a/dbms/src/Common/HashTable/TwoLevelHashMap.h b/dbms/Common/HashTable/TwoLevelHashMap.h similarity index 100% rename from dbms/src/Common/HashTable/TwoLevelHashMap.h rename to dbms/Common/HashTable/TwoLevelHashMap.h diff --git a/dbms/src/Common/HashTable/TwoLevelHashTable.h b/dbms/Common/HashTable/TwoLevelHashTable.h similarity index 100% rename from dbms/src/Common/HashTable/TwoLevelHashTable.h rename to dbms/Common/HashTable/TwoLevelHashTable.h diff --git a/dbms/src/Common/HashTable/TwoLevelStringHashMap.h b/dbms/Common/HashTable/TwoLevelStringHashMap.h similarity index 100% rename from dbms/src/Common/HashTable/TwoLevelStringHashMap.h rename to dbms/Common/HashTable/TwoLevelStringHashMap.h diff --git a/dbms/src/Common/HashTable/TwoLevelStringHashTable.h b/dbms/Common/HashTable/TwoLevelStringHashTable.h similarity index 100% rename from dbms/src/Common/HashTable/TwoLevelStringHashTable.h rename to dbms/Common/HashTable/TwoLevelStringHashTable.h diff --git a/dbms/src/Common/HyperLogLogBiasEstimator.h b/dbms/Common/HyperLogLogBiasEstimator.h similarity index 100% rename from dbms/src/Common/HyperLogLogBiasEstimator.h rename to dbms/Common/HyperLogLogBiasEstimator.h diff --git a/dbms/src/Common/HyperLogLogCounter.h b/dbms/Common/HyperLogLogCounter.h similarity index 100% rename from dbms/src/Common/HyperLogLogCounter.h rename to dbms/Common/HyperLogLogCounter.h diff --git a/dbms/src/Common/HyperLogLogWithSmallSetOptimization.h b/dbms/Common/HyperLogLogWithSmallSetOptimization.h similarity index 100% rename from dbms/src/Common/HyperLogLogWithSmallSetOptimization.h rename to dbms/Common/HyperLogLogWithSmallSetOptimization.h diff --git a/dbms/src/Common/IFactoryWithAliases.h b/dbms/Common/IFactoryWithAliases.h similarity index 100% rename from dbms/src/Common/IFactoryWithAliases.h rename to dbms/Common/IFactoryWithAliases.h diff --git a/dbms/src/Common/IPv6ToBinary.cpp b/dbms/Common/IPv6ToBinary.cpp similarity index 100% rename from dbms/src/Common/IPv6ToBinary.cpp rename to dbms/Common/IPv6ToBinary.cpp diff --git a/dbms/src/Common/IPv6ToBinary.h b/dbms/Common/IPv6ToBinary.h similarity index 100% rename from dbms/src/Common/IPv6ToBinary.h rename to dbms/Common/IPv6ToBinary.h diff --git a/dbms/src/Common/Increment.h b/dbms/Common/Increment.h similarity index 100% rename from dbms/src/Common/Increment.h rename to dbms/Common/Increment.h diff --git a/dbms/src/Common/InterruptListener.h b/dbms/Common/InterruptListener.h similarity index 100% rename from dbms/src/Common/InterruptListener.h rename to dbms/Common/InterruptListener.h diff --git a/dbms/src/Common/IntervalKind.cpp b/dbms/Common/IntervalKind.cpp similarity index 100% rename from dbms/src/Common/IntervalKind.cpp rename to dbms/Common/IntervalKind.cpp diff --git a/dbms/src/Common/IntervalKind.h b/dbms/Common/IntervalKind.h similarity index 100% rename from dbms/src/Common/IntervalKind.h rename to dbms/Common/IntervalKind.h diff --git a/dbms/src/Common/LRUCache.h b/dbms/Common/LRUCache.h similarity index 100% rename from dbms/src/Common/LRUCache.h rename to dbms/Common/LRUCache.h diff --git a/dbms/src/Common/Macros.cpp b/dbms/Common/Macros.cpp similarity index 100% rename from dbms/src/Common/Macros.cpp rename to dbms/Common/Macros.cpp diff --git a/dbms/src/Common/Macros.h b/dbms/Common/Macros.h similarity index 100% rename from dbms/src/Common/Macros.h rename to dbms/Common/Macros.h diff --git a/dbms/src/Common/MemorySanitizer.h b/dbms/Common/MemorySanitizer.h similarity index 100% rename from dbms/src/Common/MemorySanitizer.h rename to dbms/Common/MemorySanitizer.h diff --git a/dbms/src/Common/MemoryTracker.cpp b/dbms/Common/MemoryTracker.cpp similarity index 100% rename from dbms/src/Common/MemoryTracker.cpp rename to dbms/Common/MemoryTracker.cpp diff --git a/dbms/src/Common/MemoryTracker.h b/dbms/Common/MemoryTracker.h similarity index 100% rename from dbms/src/Common/MemoryTracker.h rename to dbms/Common/MemoryTracker.h diff --git a/dbms/src/Common/MultiVersion.h b/dbms/Common/MultiVersion.h similarity index 100% rename from dbms/src/Common/MultiVersion.h rename to dbms/Common/MultiVersion.h diff --git a/dbms/src/Common/NaNUtils.h b/dbms/Common/NaNUtils.h similarity index 100% rename from dbms/src/Common/NaNUtils.h rename to dbms/Common/NaNUtils.h diff --git a/dbms/src/Common/NamePrompter.h b/dbms/Common/NamePrompter.h similarity index 100% rename from dbms/src/Common/NamePrompter.h rename to dbms/Common/NamePrompter.h diff --git a/dbms/src/Common/NetException.h b/dbms/Common/NetException.h similarity index 100% rename from dbms/src/Common/NetException.h rename to dbms/Common/NetException.h diff --git a/dbms/src/Common/ObjectPool.h b/dbms/Common/ObjectPool.h similarity index 100% rename from dbms/src/Common/ObjectPool.h rename to dbms/Common/ObjectPool.h diff --git a/dbms/src/Common/OpenSSLHelpers.cpp b/dbms/Common/OpenSSLHelpers.cpp similarity index 100% rename from dbms/src/Common/OpenSSLHelpers.cpp rename to dbms/Common/OpenSSLHelpers.cpp diff --git a/dbms/src/Common/OpenSSLHelpers.h b/dbms/Common/OpenSSLHelpers.h similarity index 100% rename from dbms/src/Common/OpenSSLHelpers.h rename to dbms/Common/OpenSSLHelpers.h diff --git a/dbms/src/Common/OptimizedRegularExpression.cpp b/dbms/Common/OptimizedRegularExpression.cpp similarity index 100% rename from dbms/src/Common/OptimizedRegularExpression.cpp rename to dbms/Common/OptimizedRegularExpression.cpp diff --git a/dbms/src/Common/OptimizedRegularExpression.h b/dbms/Common/OptimizedRegularExpression.h similarity index 100% rename from dbms/src/Common/OptimizedRegularExpression.h rename to dbms/Common/OptimizedRegularExpression.h diff --git a/dbms/src/Common/PODArray.cpp b/dbms/Common/PODArray.cpp similarity index 100% rename from dbms/src/Common/PODArray.cpp rename to dbms/Common/PODArray.cpp diff --git a/dbms/src/Common/PODArray.h b/dbms/Common/PODArray.h similarity index 100% rename from dbms/src/Common/PODArray.h rename to dbms/Common/PODArray.h diff --git a/dbms/src/Common/PODArray_fwd.h b/dbms/Common/PODArray_fwd.h similarity index 100% rename from dbms/src/Common/PODArray_fwd.h rename to dbms/Common/PODArray_fwd.h diff --git a/dbms/src/Common/PipeFDs.cpp b/dbms/Common/PipeFDs.cpp similarity index 100% rename from dbms/src/Common/PipeFDs.cpp rename to dbms/Common/PipeFDs.cpp diff --git a/dbms/src/Common/PipeFDs.h b/dbms/Common/PipeFDs.h similarity index 100% rename from dbms/src/Common/PipeFDs.h rename to dbms/Common/PipeFDs.h diff --git a/dbms/src/Common/PoolBase.h b/dbms/Common/PoolBase.h similarity index 100% rename from dbms/src/Common/PoolBase.h rename to dbms/Common/PoolBase.h diff --git a/dbms/src/Common/PoolWithFailoverBase.h b/dbms/Common/PoolWithFailoverBase.h similarity index 100% rename from dbms/src/Common/PoolWithFailoverBase.h rename to dbms/Common/PoolWithFailoverBase.h diff --git a/dbms/src/Common/ProfileEvents.cpp b/dbms/Common/ProfileEvents.cpp similarity index 100% rename from dbms/src/Common/ProfileEvents.cpp rename to dbms/Common/ProfileEvents.cpp diff --git a/dbms/src/Common/ProfileEvents.h b/dbms/Common/ProfileEvents.h similarity index 100% rename from dbms/src/Common/ProfileEvents.h rename to dbms/Common/ProfileEvents.h diff --git a/dbms/src/Common/ProfilingScopedRWLock.h b/dbms/Common/ProfilingScopedRWLock.h similarity index 100% rename from dbms/src/Common/ProfilingScopedRWLock.h rename to dbms/Common/ProfilingScopedRWLock.h diff --git a/dbms/src/Common/QueryProfiler.cpp b/dbms/Common/QueryProfiler.cpp similarity index 100% rename from dbms/src/Common/QueryProfiler.cpp rename to dbms/Common/QueryProfiler.cpp diff --git a/dbms/src/Common/QueryProfiler.h b/dbms/Common/QueryProfiler.h similarity index 100% rename from dbms/src/Common/QueryProfiler.h rename to dbms/Common/QueryProfiler.h diff --git a/dbms/src/Common/RWLock.cpp b/dbms/Common/RWLock.cpp similarity index 100% rename from dbms/src/Common/RWLock.cpp rename to dbms/Common/RWLock.cpp diff --git a/dbms/src/Common/RWLock.h b/dbms/Common/RWLock.h similarity index 100% rename from dbms/src/Common/RWLock.h rename to dbms/Common/RWLock.h diff --git a/dbms/src/Common/RadixSort.h b/dbms/Common/RadixSort.h similarity index 100% rename from dbms/src/Common/RadixSort.h rename to dbms/Common/RadixSort.h diff --git a/dbms/src/Common/RemoteHostFilter.cpp b/dbms/Common/RemoteHostFilter.cpp similarity index 100% rename from dbms/src/Common/RemoteHostFilter.cpp rename to dbms/Common/RemoteHostFilter.cpp diff --git a/dbms/src/Common/RemoteHostFilter.h b/dbms/Common/RemoteHostFilter.h similarity index 100% rename from dbms/src/Common/RemoteHostFilter.h rename to dbms/Common/RemoteHostFilter.h diff --git a/dbms/src/Common/SensitiveDataMasker.cpp b/dbms/Common/SensitiveDataMasker.cpp similarity index 100% rename from dbms/src/Common/SensitiveDataMasker.cpp rename to dbms/Common/SensitiveDataMasker.cpp diff --git a/dbms/src/Common/SensitiveDataMasker.h b/dbms/Common/SensitiveDataMasker.h similarity index 100% rename from dbms/src/Common/SensitiveDataMasker.h rename to dbms/Common/SensitiveDataMasker.h diff --git a/dbms/src/Common/SettingsChanges.h b/dbms/Common/SettingsChanges.h similarity index 100% rename from dbms/src/Common/SettingsChanges.h rename to dbms/Common/SettingsChanges.h diff --git a/dbms/src/Common/SharedBlockRowRef.h b/dbms/Common/SharedBlockRowRef.h similarity index 100% rename from dbms/src/Common/SharedBlockRowRef.h rename to dbms/Common/SharedBlockRowRef.h diff --git a/dbms/src/Common/SharedLibrary.cpp b/dbms/Common/SharedLibrary.cpp similarity index 100% rename from dbms/src/Common/SharedLibrary.cpp rename to dbms/Common/SharedLibrary.cpp diff --git a/dbms/src/Common/SharedLibrary.h b/dbms/Common/SharedLibrary.h similarity index 100% rename from dbms/src/Common/SharedLibrary.h rename to dbms/Common/SharedLibrary.h diff --git a/dbms/src/Common/ShellCommand.cpp b/dbms/Common/ShellCommand.cpp similarity index 100% rename from dbms/src/Common/ShellCommand.cpp rename to dbms/Common/ShellCommand.cpp diff --git a/dbms/src/Common/ShellCommand.h b/dbms/Common/ShellCommand.h similarity index 100% rename from dbms/src/Common/ShellCommand.h rename to dbms/Common/ShellCommand.h diff --git a/dbms/src/Common/SimpleActionBlocker.h b/dbms/Common/SimpleActionBlocker.h similarity index 100% rename from dbms/src/Common/SimpleActionBlocker.h rename to dbms/Common/SimpleActionBlocker.h diff --git a/dbms/src/Common/SimpleIncrement.h b/dbms/Common/SimpleIncrement.h similarity index 100% rename from dbms/src/Common/SimpleIncrement.h rename to dbms/Common/SimpleIncrement.h diff --git a/dbms/src/Common/SipHash.h b/dbms/Common/SipHash.h similarity index 100% rename from dbms/src/Common/SipHash.h rename to dbms/Common/SipHash.h diff --git a/dbms/src/Common/SmallObjectPool.h b/dbms/Common/SmallObjectPool.h similarity index 100% rename from dbms/src/Common/SmallObjectPool.h rename to dbms/Common/SmallObjectPool.h diff --git a/dbms/src/Common/SpaceSaving.h b/dbms/Common/SpaceSaving.h similarity index 100% rename from dbms/src/Common/SpaceSaving.h rename to dbms/Common/SpaceSaving.h diff --git a/dbms/src/Common/StackTrace.cpp b/dbms/Common/StackTrace.cpp similarity index 100% rename from dbms/src/Common/StackTrace.cpp rename to dbms/Common/StackTrace.cpp diff --git a/dbms/src/Common/StackTrace.h b/dbms/Common/StackTrace.h similarity index 100% rename from dbms/src/Common/StackTrace.h rename to dbms/Common/StackTrace.h diff --git a/dbms/src/Common/StatusFile.cpp b/dbms/Common/StatusFile.cpp similarity index 100% rename from dbms/src/Common/StatusFile.cpp rename to dbms/Common/StatusFile.cpp diff --git a/dbms/src/Common/StatusFile.h b/dbms/Common/StatusFile.h similarity index 100% rename from dbms/src/Common/StatusFile.h rename to dbms/Common/StatusFile.h diff --git a/dbms/src/Common/StatusInfo.cpp b/dbms/Common/StatusInfo.cpp similarity index 100% rename from dbms/src/Common/StatusInfo.cpp rename to dbms/Common/StatusInfo.cpp diff --git a/dbms/src/Common/StatusInfo.h b/dbms/Common/StatusInfo.h similarity index 100% rename from dbms/src/Common/StatusInfo.h rename to dbms/Common/StatusInfo.h diff --git a/dbms/src/Common/Stopwatch.cpp b/dbms/Common/Stopwatch.cpp similarity index 100% rename from dbms/src/Common/Stopwatch.cpp rename to dbms/Common/Stopwatch.cpp diff --git a/dbms/src/Common/Stopwatch.h b/dbms/Common/Stopwatch.h similarity index 100% rename from dbms/src/Common/Stopwatch.h rename to dbms/Common/Stopwatch.h diff --git a/dbms/src/Common/StringSearcher.h b/dbms/Common/StringSearcher.h similarity index 100% rename from dbms/src/Common/StringSearcher.h rename to dbms/Common/StringSearcher.h diff --git a/dbms/src/Common/StringUtils/CMakeLists.txt b/dbms/Common/StringUtils/CMakeLists.txt similarity index 100% rename from dbms/src/Common/StringUtils/CMakeLists.txt rename to dbms/Common/StringUtils/CMakeLists.txt diff --git a/dbms/src/Common/StringUtils/StringUtils.cpp b/dbms/Common/StringUtils/StringUtils.cpp similarity index 100% rename from dbms/src/Common/StringUtils/StringUtils.cpp rename to dbms/Common/StringUtils/StringUtils.cpp diff --git a/dbms/src/Common/StringUtils/StringUtils.h b/dbms/Common/StringUtils/StringUtils.h similarity index 100% rename from dbms/src/Common/StringUtils/StringUtils.h rename to dbms/Common/StringUtils/StringUtils.h diff --git a/dbms/src/Common/StudentTTest.cpp b/dbms/Common/StudentTTest.cpp similarity index 100% rename from dbms/src/Common/StudentTTest.cpp rename to dbms/Common/StudentTTest.cpp diff --git a/dbms/src/Common/StudentTTest.h b/dbms/Common/StudentTTest.h similarity index 100% rename from dbms/src/Common/StudentTTest.h rename to dbms/Common/StudentTTest.h diff --git a/dbms/src/Common/SymbolIndex.cpp b/dbms/Common/SymbolIndex.cpp similarity index 100% rename from dbms/src/Common/SymbolIndex.cpp rename to dbms/Common/SymbolIndex.cpp diff --git a/dbms/src/Common/SymbolIndex.h b/dbms/Common/SymbolIndex.h similarity index 100% rename from dbms/src/Common/SymbolIndex.h rename to dbms/Common/SymbolIndex.h diff --git a/dbms/src/Common/TaskStatsInfoGetter.cpp b/dbms/Common/TaskStatsInfoGetter.cpp similarity index 100% rename from dbms/src/Common/TaskStatsInfoGetter.cpp rename to dbms/Common/TaskStatsInfoGetter.cpp diff --git a/dbms/src/Common/TaskStatsInfoGetter.h b/dbms/Common/TaskStatsInfoGetter.h similarity index 100% rename from dbms/src/Common/TaskStatsInfoGetter.h rename to dbms/Common/TaskStatsInfoGetter.h diff --git a/dbms/src/Common/TerminalSize.cpp b/dbms/Common/TerminalSize.cpp similarity index 100% rename from dbms/src/Common/TerminalSize.cpp rename to dbms/Common/TerminalSize.cpp diff --git a/dbms/src/Common/TerminalSize.h b/dbms/Common/TerminalSize.h similarity index 100% rename from dbms/src/Common/TerminalSize.h rename to dbms/Common/TerminalSize.h diff --git a/dbms/src/Common/ThreadFuzzer.cpp b/dbms/Common/ThreadFuzzer.cpp similarity index 100% rename from dbms/src/Common/ThreadFuzzer.cpp rename to dbms/Common/ThreadFuzzer.cpp diff --git a/dbms/src/Common/ThreadFuzzer.h b/dbms/Common/ThreadFuzzer.h similarity index 100% rename from dbms/src/Common/ThreadFuzzer.h rename to dbms/Common/ThreadFuzzer.h diff --git a/dbms/src/Common/ThreadPool.cpp b/dbms/Common/ThreadPool.cpp similarity index 100% rename from dbms/src/Common/ThreadPool.cpp rename to dbms/Common/ThreadPool.cpp diff --git a/dbms/src/Common/ThreadPool.h b/dbms/Common/ThreadPool.h similarity index 100% rename from dbms/src/Common/ThreadPool.h rename to dbms/Common/ThreadPool.h diff --git a/dbms/src/Common/ThreadProfileEvents.h b/dbms/Common/ThreadProfileEvents.h similarity index 100% rename from dbms/src/Common/ThreadProfileEvents.h rename to dbms/Common/ThreadProfileEvents.h diff --git a/dbms/src/Common/ThreadStatus.cpp b/dbms/Common/ThreadStatus.cpp similarity index 100% rename from dbms/src/Common/ThreadStatus.cpp rename to dbms/Common/ThreadStatus.cpp diff --git a/dbms/src/Common/ThreadStatus.h b/dbms/Common/ThreadStatus.h similarity index 100% rename from dbms/src/Common/ThreadStatus.h rename to dbms/Common/ThreadStatus.h diff --git a/dbms/src/Common/Throttler.h b/dbms/Common/Throttler.h similarity index 100% rename from dbms/src/Common/Throttler.h rename to dbms/Common/Throttler.h diff --git a/dbms/src/Common/TraceCollector.cpp b/dbms/Common/TraceCollector.cpp similarity index 100% rename from dbms/src/Common/TraceCollector.cpp rename to dbms/Common/TraceCollector.cpp diff --git a/dbms/src/Common/TraceCollector.h b/dbms/Common/TraceCollector.h similarity index 100% rename from dbms/src/Common/TraceCollector.h rename to dbms/Common/TraceCollector.h diff --git a/dbms/src/Common/TypeList.h b/dbms/Common/TypeList.h similarity index 100% rename from dbms/src/Common/TypeList.h rename to dbms/Common/TypeList.h diff --git a/dbms/src/Common/TypePromotion.h b/dbms/Common/TypePromotion.h similarity index 100% rename from dbms/src/Common/TypePromotion.h rename to dbms/Common/TypePromotion.h diff --git a/dbms/src/Common/UInt128.h b/dbms/Common/UInt128.h similarity index 100% rename from dbms/src/Common/UInt128.h rename to dbms/Common/UInt128.h diff --git a/dbms/src/Common/UTF8Helpers.cpp b/dbms/Common/UTF8Helpers.cpp similarity index 100% rename from dbms/src/Common/UTF8Helpers.cpp rename to dbms/Common/UTF8Helpers.cpp diff --git a/dbms/src/Common/UTF8Helpers.h b/dbms/Common/UTF8Helpers.h similarity index 100% rename from dbms/src/Common/UTF8Helpers.h rename to dbms/Common/UTF8Helpers.h diff --git a/dbms/src/Common/UnicodeBar.h b/dbms/Common/UnicodeBar.h similarity index 100% rename from dbms/src/Common/UnicodeBar.h rename to dbms/Common/UnicodeBar.h diff --git a/dbms/src/Common/VariableContext.h b/dbms/Common/VariableContext.h similarity index 100% rename from dbms/src/Common/VariableContext.h rename to dbms/Common/VariableContext.h diff --git a/dbms/src/Common/Visitor.h b/dbms/Common/Visitor.h similarity index 100% rename from dbms/src/Common/Visitor.h rename to dbms/Common/Visitor.h diff --git a/dbms/src/Common/Volnitsky.h b/dbms/Common/Volnitsky.h similarity index 100% rename from dbms/src/Common/Volnitsky.h rename to dbms/Common/Volnitsky.h diff --git a/dbms/src/Common/WeakHash.cpp b/dbms/Common/WeakHash.cpp similarity index 100% rename from dbms/src/Common/WeakHash.cpp rename to dbms/Common/WeakHash.cpp diff --git a/dbms/src/Common/WeakHash.h b/dbms/Common/WeakHash.h similarity index 100% rename from dbms/src/Common/WeakHash.h rename to dbms/Common/WeakHash.h diff --git a/dbms/src/Common/XDBCBridgeHelper.h b/dbms/Common/XDBCBridgeHelper.h similarity index 100% rename from dbms/src/Common/XDBCBridgeHelper.h rename to dbms/Common/XDBCBridgeHelper.h diff --git a/dbms/src/Common/ZooKeeper/CMakeLists.txt b/dbms/Common/ZooKeeper/CMakeLists.txt similarity index 100% rename from dbms/src/Common/ZooKeeper/CMakeLists.txt rename to dbms/Common/ZooKeeper/CMakeLists.txt diff --git a/dbms/src/Common/ZooKeeper/Common.h b/dbms/Common/ZooKeeper/Common.h similarity index 100% rename from dbms/src/Common/ZooKeeper/Common.h rename to dbms/Common/ZooKeeper/Common.h diff --git a/dbms/src/Common/ZooKeeper/IKeeper.cpp b/dbms/Common/ZooKeeper/IKeeper.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/IKeeper.cpp rename to dbms/Common/ZooKeeper/IKeeper.cpp diff --git a/dbms/src/Common/ZooKeeper/IKeeper.h b/dbms/Common/ZooKeeper/IKeeper.h similarity index 100% rename from dbms/src/Common/ZooKeeper/IKeeper.h rename to dbms/Common/ZooKeeper/IKeeper.h diff --git a/dbms/src/Common/ZooKeeper/Increment.h b/dbms/Common/ZooKeeper/Increment.h similarity index 100% rename from dbms/src/Common/ZooKeeper/Increment.h rename to dbms/Common/ZooKeeper/Increment.h diff --git a/dbms/src/Common/ZooKeeper/KeeperException.h b/dbms/Common/ZooKeeper/KeeperException.h similarity index 100% rename from dbms/src/Common/ZooKeeper/KeeperException.h rename to dbms/Common/ZooKeeper/KeeperException.h diff --git a/dbms/src/Common/ZooKeeper/LeaderElection.h b/dbms/Common/ZooKeeper/LeaderElection.h similarity index 100% rename from dbms/src/Common/ZooKeeper/LeaderElection.h rename to dbms/Common/ZooKeeper/LeaderElection.h diff --git a/dbms/src/Common/ZooKeeper/Lock.cpp b/dbms/Common/ZooKeeper/Lock.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/Lock.cpp rename to dbms/Common/ZooKeeper/Lock.cpp diff --git a/dbms/src/Common/ZooKeeper/Lock.h b/dbms/Common/ZooKeeper/Lock.h similarity index 100% rename from dbms/src/Common/ZooKeeper/Lock.h rename to dbms/Common/ZooKeeper/Lock.h diff --git a/dbms/src/Common/ZooKeeper/TestKeeper.cpp b/dbms/Common/ZooKeeper/TestKeeper.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/TestKeeper.cpp rename to dbms/Common/ZooKeeper/TestKeeper.cpp diff --git a/dbms/src/Common/ZooKeeper/TestKeeper.h b/dbms/Common/ZooKeeper/TestKeeper.h similarity index 100% rename from dbms/src/Common/ZooKeeper/TestKeeper.h rename to dbms/Common/ZooKeeper/TestKeeper.h diff --git a/dbms/src/Common/ZooKeeper/Types.h b/dbms/Common/ZooKeeper/Types.h similarity index 100% rename from dbms/src/Common/ZooKeeper/Types.h rename to dbms/Common/ZooKeeper/Types.h diff --git a/dbms/src/Common/ZooKeeper/ZooKeeper.cpp b/dbms/Common/ZooKeeper/ZooKeeper.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/ZooKeeper.cpp rename to dbms/Common/ZooKeeper/ZooKeeper.cpp diff --git a/dbms/src/Common/ZooKeeper/ZooKeeper.h b/dbms/Common/ZooKeeper/ZooKeeper.h similarity index 100% rename from dbms/src/Common/ZooKeeper/ZooKeeper.h rename to dbms/Common/ZooKeeper/ZooKeeper.h diff --git a/dbms/src/Common/ZooKeeper/ZooKeeperHolder.cpp b/dbms/Common/ZooKeeper/ZooKeeperHolder.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/ZooKeeperHolder.cpp rename to dbms/Common/ZooKeeper/ZooKeeperHolder.cpp diff --git a/dbms/src/Common/ZooKeeper/ZooKeeperHolder.h b/dbms/Common/ZooKeeper/ZooKeeperHolder.h similarity index 100% rename from dbms/src/Common/ZooKeeper/ZooKeeperHolder.h rename to dbms/Common/ZooKeeper/ZooKeeperHolder.h diff --git a/dbms/src/Common/ZooKeeper/ZooKeeperImpl.cpp b/dbms/Common/ZooKeeper/ZooKeeperImpl.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/ZooKeeperImpl.cpp rename to dbms/Common/ZooKeeper/ZooKeeperImpl.cpp diff --git a/dbms/src/Common/ZooKeeper/ZooKeeperImpl.h b/dbms/Common/ZooKeeper/ZooKeeperImpl.h similarity index 100% rename from dbms/src/Common/ZooKeeper/ZooKeeperImpl.h rename to dbms/Common/ZooKeeper/ZooKeeperImpl.h diff --git a/dbms/src/Common/ZooKeeper/ZooKeeperNodeCache.cpp b/dbms/Common/ZooKeeper/ZooKeeperNodeCache.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/ZooKeeperNodeCache.cpp rename to dbms/Common/ZooKeeper/ZooKeeperNodeCache.cpp diff --git a/dbms/src/Common/ZooKeeper/ZooKeeperNodeCache.h b/dbms/Common/ZooKeeper/ZooKeeperNodeCache.h similarity index 100% rename from dbms/src/Common/ZooKeeper/ZooKeeperNodeCache.h rename to dbms/Common/ZooKeeper/ZooKeeperNodeCache.h diff --git a/dbms/src/Common/ZooKeeper/tests/CMakeLists.txt b/dbms/Common/ZooKeeper/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/CMakeLists.txt rename to dbms/Common/ZooKeeper/tests/CMakeLists.txt diff --git a/dbms/src/Common/ZooKeeper/tests/gtest_zkutil_test_multi_exception.cpp b/dbms/Common/ZooKeeper/tests/gtest_zkutil_test_multi_exception.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/gtest_zkutil_test_multi_exception.cpp rename to dbms/Common/ZooKeeper/tests/gtest_zkutil_test_multi_exception.cpp diff --git a/dbms/src/Common/ZooKeeper/tests/nozk.sh b/dbms/Common/ZooKeeper/tests/nozk.sh similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/nozk.sh rename to dbms/Common/ZooKeeper/tests/nozk.sh diff --git a/dbms/src/Common/ZooKeeper/tests/yeszk.sh b/dbms/Common/ZooKeeper/tests/yeszk.sh similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/yeszk.sh rename to dbms/Common/ZooKeeper/tests/yeszk.sh diff --git a/dbms/src/Common/ZooKeeper/tests/zk_many_watches_reconnect.cpp b/dbms/Common/ZooKeeper/tests/zk_many_watches_reconnect.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/zk_many_watches_reconnect.cpp rename to dbms/Common/ZooKeeper/tests/zk_many_watches_reconnect.cpp diff --git a/dbms/src/Common/ZooKeeper/tests/zkutil_expiration_test.cpp b/dbms/Common/ZooKeeper/tests/zkutil_expiration_test.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/zkutil_expiration_test.cpp rename to dbms/Common/ZooKeeper/tests/zkutil_expiration_test.cpp diff --git a/dbms/src/Common/ZooKeeper/tests/zkutil_test_async.cpp b/dbms/Common/ZooKeeper/tests/zkutil_test_async.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/zkutil_test_async.cpp rename to dbms/Common/ZooKeeper/tests/zkutil_test_async.cpp diff --git a/dbms/src/Common/ZooKeeper/tests/zkutil_test_commands.cpp b/dbms/Common/ZooKeeper/tests/zkutil_test_commands.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/zkutil_test_commands.cpp rename to dbms/Common/ZooKeeper/tests/zkutil_test_commands.cpp diff --git a/dbms/src/Common/ZooKeeper/tests/zkutil_test_commands_new_lib.cpp b/dbms/Common/ZooKeeper/tests/zkutil_test_commands_new_lib.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/zkutil_test_commands_new_lib.cpp rename to dbms/Common/ZooKeeper/tests/zkutil_test_commands_new_lib.cpp diff --git a/dbms/src/Common/ZooKeeper/tests/zkutil_test_lock.cpp b/dbms/Common/ZooKeeper/tests/zkutil_test_lock.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/zkutil_test_lock.cpp rename to dbms/Common/ZooKeeper/tests/zkutil_test_lock.cpp diff --git a/dbms/src/Common/ZooKeeper/tests/zkutil_zookeeper_holder.cpp b/dbms/Common/ZooKeeper/tests/zkutil_zookeeper_holder.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/zkutil_zookeeper_holder.cpp rename to dbms/Common/ZooKeeper/tests/zkutil_zookeeper_holder.cpp diff --git a/dbms/src/Common/ZooKeeper/tests/zookeeper_impl.cpp b/dbms/Common/ZooKeeper/tests/zookeeper_impl.cpp similarity index 100% rename from dbms/src/Common/ZooKeeper/tests/zookeeper_impl.cpp rename to dbms/Common/ZooKeeper/tests/zookeeper_impl.cpp diff --git a/dbms/src/Common/assert_cast.h b/dbms/Common/assert_cast.h similarity index 100% rename from dbms/src/Common/assert_cast.h rename to dbms/Common/assert_cast.h diff --git a/dbms/src/Common/checkStackSize.cpp b/dbms/Common/checkStackSize.cpp similarity index 100% rename from dbms/src/Common/checkStackSize.cpp rename to dbms/Common/checkStackSize.cpp diff --git a/dbms/src/Common/checkStackSize.h b/dbms/Common/checkStackSize.h similarity index 100% rename from dbms/src/Common/checkStackSize.h rename to dbms/Common/checkStackSize.h diff --git a/dbms/src/Common/config.h.in b/dbms/Common/config.h.in similarity index 100% rename from dbms/src/Common/config.h.in rename to dbms/Common/config.h.in diff --git a/dbms/src/Common/config_version.h.in b/dbms/Common/config_version.h.in similarity index 100% rename from dbms/src/Common/config_version.h.in rename to dbms/Common/config_version.h.in diff --git a/dbms/src/Common/createHardLink.cpp b/dbms/Common/createHardLink.cpp similarity index 100% rename from dbms/src/Common/createHardLink.cpp rename to dbms/Common/createHardLink.cpp diff --git a/dbms/src/Common/createHardLink.h b/dbms/Common/createHardLink.h similarity index 100% rename from dbms/src/Common/createHardLink.h rename to dbms/Common/createHardLink.h diff --git a/dbms/src/Common/escapeForFileName.cpp b/dbms/Common/escapeForFileName.cpp similarity index 100% rename from dbms/src/Common/escapeForFileName.cpp rename to dbms/Common/escapeForFileName.cpp diff --git a/dbms/src/Common/escapeForFileName.h b/dbms/Common/escapeForFileName.h similarity index 100% rename from dbms/src/Common/escapeForFileName.h rename to dbms/Common/escapeForFileName.h diff --git a/dbms/src/Common/filesystemHelpers.cpp b/dbms/Common/filesystemHelpers.cpp similarity index 100% rename from dbms/src/Common/filesystemHelpers.cpp rename to dbms/Common/filesystemHelpers.cpp diff --git a/dbms/src/Common/filesystemHelpers.h b/dbms/Common/filesystemHelpers.h similarity index 100% rename from dbms/src/Common/filesystemHelpers.h rename to dbms/Common/filesystemHelpers.h diff --git a/dbms/src/Common/formatIPv6.cpp b/dbms/Common/formatIPv6.cpp similarity index 100% rename from dbms/src/Common/formatIPv6.cpp rename to dbms/Common/formatIPv6.cpp diff --git a/dbms/src/Common/formatIPv6.h b/dbms/Common/formatIPv6.h similarity index 100% rename from dbms/src/Common/formatIPv6.h rename to dbms/Common/formatIPv6.h diff --git a/dbms/src/Common/formatReadable.cpp b/dbms/Common/formatReadable.cpp similarity index 100% rename from dbms/src/Common/formatReadable.cpp rename to dbms/Common/formatReadable.cpp diff --git a/dbms/src/Common/formatReadable.h b/dbms/Common/formatReadable.h similarity index 100% rename from dbms/src/Common/formatReadable.h rename to dbms/Common/formatReadable.h diff --git a/dbms/src/Common/getExecutablePath.cpp b/dbms/Common/getExecutablePath.cpp similarity index 100% rename from dbms/src/Common/getExecutablePath.cpp rename to dbms/Common/getExecutablePath.cpp diff --git a/dbms/src/Common/getExecutablePath.h b/dbms/Common/getExecutablePath.h similarity index 100% rename from dbms/src/Common/getExecutablePath.h rename to dbms/Common/getExecutablePath.h diff --git a/dbms/src/Common/getMultipleKeysFromConfig.cpp b/dbms/Common/getMultipleKeysFromConfig.cpp similarity index 100% rename from dbms/src/Common/getMultipleKeysFromConfig.cpp rename to dbms/Common/getMultipleKeysFromConfig.cpp diff --git a/dbms/src/Common/getMultipleKeysFromConfig.h b/dbms/Common/getMultipleKeysFromConfig.h similarity index 100% rename from dbms/src/Common/getMultipleKeysFromConfig.h rename to dbms/Common/getMultipleKeysFromConfig.h diff --git a/dbms/src/Common/getNumberOfPhysicalCPUCores.cpp b/dbms/Common/getNumberOfPhysicalCPUCores.cpp similarity index 100% rename from dbms/src/Common/getNumberOfPhysicalCPUCores.cpp rename to dbms/Common/getNumberOfPhysicalCPUCores.cpp diff --git a/dbms/src/Common/getNumberOfPhysicalCPUCores.h b/dbms/Common/getNumberOfPhysicalCPUCores.h similarity index 100% rename from dbms/src/Common/getNumberOfPhysicalCPUCores.h rename to dbms/Common/getNumberOfPhysicalCPUCores.h diff --git a/dbms/src/Common/hasLinuxCapability.cpp b/dbms/Common/hasLinuxCapability.cpp similarity index 100% rename from dbms/src/Common/hasLinuxCapability.cpp rename to dbms/Common/hasLinuxCapability.cpp diff --git a/dbms/src/Common/hasLinuxCapability.h b/dbms/Common/hasLinuxCapability.h similarity index 100% rename from dbms/src/Common/hasLinuxCapability.h rename to dbms/Common/hasLinuxCapability.h diff --git a/dbms/src/Common/hex.cpp b/dbms/Common/hex.cpp similarity index 100% rename from dbms/src/Common/hex.cpp rename to dbms/Common/hex.cpp diff --git a/dbms/src/Common/hex.h b/dbms/Common/hex.h similarity index 100% rename from dbms/src/Common/hex.h rename to dbms/Common/hex.h diff --git a/dbms/src/Common/intExp.h b/dbms/Common/intExp.h similarity index 100% rename from dbms/src/Common/intExp.h rename to dbms/Common/intExp.h diff --git a/dbms/src/Common/interpolate.h b/dbms/Common/interpolate.h similarity index 100% rename from dbms/src/Common/interpolate.h rename to dbms/Common/interpolate.h diff --git a/dbms/src/Common/isLocalAddress.cpp b/dbms/Common/isLocalAddress.cpp similarity index 100% rename from dbms/src/Common/isLocalAddress.cpp rename to dbms/Common/isLocalAddress.cpp diff --git a/dbms/src/Common/isLocalAddress.h b/dbms/Common/isLocalAddress.h similarity index 100% rename from dbms/src/Common/isLocalAddress.h rename to dbms/Common/isLocalAddress.h diff --git a/dbms/src/Common/malloc.cpp b/dbms/Common/malloc.cpp similarity index 100% rename from dbms/src/Common/malloc.cpp rename to dbms/Common/malloc.cpp diff --git a/dbms/src/Common/memcmpSmall.h b/dbms/Common/memcmpSmall.h similarity index 100% rename from dbms/src/Common/memcmpSmall.h rename to dbms/Common/memcmpSmall.h diff --git a/dbms/src/Common/memcpySmall.h b/dbms/Common/memcpySmall.h similarity index 100% rename from dbms/src/Common/memcpySmall.h rename to dbms/Common/memcpySmall.h diff --git a/dbms/src/Common/new_delete.cpp b/dbms/Common/new_delete.cpp similarity index 100% rename from dbms/src/Common/new_delete.cpp rename to dbms/Common/new_delete.cpp diff --git a/dbms/src/Common/parseAddress.cpp b/dbms/Common/parseAddress.cpp similarity index 100% rename from dbms/src/Common/parseAddress.cpp rename to dbms/Common/parseAddress.cpp diff --git a/dbms/src/Common/parseAddress.h b/dbms/Common/parseAddress.h similarity index 100% rename from dbms/src/Common/parseAddress.h rename to dbms/Common/parseAddress.h diff --git a/dbms/src/Common/parseGlobs.cpp b/dbms/Common/parseGlobs.cpp similarity index 100% rename from dbms/src/Common/parseGlobs.cpp rename to dbms/Common/parseGlobs.cpp diff --git a/dbms/src/Common/parseGlobs.h b/dbms/Common/parseGlobs.h similarity index 100% rename from dbms/src/Common/parseGlobs.h rename to dbms/Common/parseGlobs.h diff --git a/dbms/src/Common/parseRemoteDescription.cpp b/dbms/Common/parseRemoteDescription.cpp similarity index 100% rename from dbms/src/Common/parseRemoteDescription.cpp rename to dbms/Common/parseRemoteDescription.cpp diff --git a/dbms/src/Common/parseRemoteDescription.h b/dbms/Common/parseRemoteDescription.h similarity index 100% rename from dbms/src/Common/parseRemoteDescription.h rename to dbms/Common/parseRemoteDescription.h diff --git a/dbms/src/Common/quoteString.cpp b/dbms/Common/quoteString.cpp similarity index 100% rename from dbms/src/Common/quoteString.cpp rename to dbms/Common/quoteString.cpp diff --git a/dbms/src/Common/quoteString.h b/dbms/Common/quoteString.h similarity index 100% rename from dbms/src/Common/quoteString.h rename to dbms/Common/quoteString.h diff --git a/dbms/src/Common/randomSeed.cpp b/dbms/Common/randomSeed.cpp similarity index 100% rename from dbms/src/Common/randomSeed.cpp rename to dbms/Common/randomSeed.cpp diff --git a/dbms/src/Common/randomSeed.h b/dbms/Common/randomSeed.h similarity index 100% rename from dbms/src/Common/randomSeed.h rename to dbms/Common/randomSeed.h diff --git a/dbms/src/Common/setThreadName.cpp b/dbms/Common/setThreadName.cpp similarity index 100% rename from dbms/src/Common/setThreadName.cpp rename to dbms/Common/setThreadName.cpp diff --git a/dbms/src/Common/setThreadName.h b/dbms/Common/setThreadName.h similarity index 100% rename from dbms/src/Common/setThreadName.h rename to dbms/Common/setThreadName.h diff --git a/dbms/src/Common/tests/CMakeLists.txt b/dbms/Common/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Common/tests/CMakeLists.txt rename to dbms/Common/tests/CMakeLists.txt diff --git a/dbms/src/Common/tests/arena_with_free_lists.cpp b/dbms/Common/tests/arena_with_free_lists.cpp similarity index 100% rename from dbms/src/Common/tests/arena_with_free_lists.cpp rename to dbms/Common/tests/arena_with_free_lists.cpp diff --git a/dbms/src/Common/tests/array_cache.cpp b/dbms/Common/tests/array_cache.cpp similarity index 100% rename from dbms/src/Common/tests/array_cache.cpp rename to dbms/Common/tests/array_cache.cpp diff --git a/dbms/src/Common/tests/auto_array.cpp b/dbms/Common/tests/auto_array.cpp similarity index 100% rename from dbms/src/Common/tests/auto_array.cpp rename to dbms/Common/tests/auto_array.cpp diff --git a/dbms/src/Common/tests/chaos_sanitizer.cpp b/dbms/Common/tests/chaos_sanitizer.cpp similarity index 100% rename from dbms/src/Common/tests/chaos_sanitizer.cpp rename to dbms/Common/tests/chaos_sanitizer.cpp diff --git a/dbms/src/Common/tests/compact_array.cpp b/dbms/Common/tests/compact_array.cpp similarity index 100% rename from dbms/src/Common/tests/compact_array.cpp rename to dbms/Common/tests/compact_array.cpp diff --git a/dbms/src/Common/tests/cow_columns.cpp b/dbms/Common/tests/cow_columns.cpp similarity index 100% rename from dbms/src/Common/tests/cow_columns.cpp rename to dbms/Common/tests/cow_columns.cpp diff --git a/dbms/src/Common/tests/cow_compositions.cpp b/dbms/Common/tests/cow_compositions.cpp similarity index 100% rename from dbms/src/Common/tests/cow_compositions.cpp rename to dbms/Common/tests/cow_compositions.cpp diff --git a/dbms/src/Common/tests/gtest_getMultipleValuesFromConfig.cpp b/dbms/Common/tests/gtest_getMultipleValuesFromConfig.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_getMultipleValuesFromConfig.cpp rename to dbms/Common/tests/gtest_getMultipleValuesFromConfig.cpp diff --git a/dbms/src/Common/tests/gtest_global_context.h b/dbms/Common/tests/gtest_global_context.h similarity index 100% rename from dbms/src/Common/tests/gtest_global_context.h rename to dbms/Common/tests/gtest_global_context.h diff --git a/dbms/src/Common/tests/gtest_makeRegexpPatternFromGlobs.cpp b/dbms/Common/tests/gtest_makeRegexpPatternFromGlobs.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_makeRegexpPatternFromGlobs.cpp rename to dbms/Common/tests/gtest_makeRegexpPatternFromGlobs.cpp diff --git a/dbms/src/Common/tests/gtest_pod_array.cpp b/dbms/Common/tests/gtest_pod_array.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_pod_array.cpp rename to dbms/Common/tests/gtest_pod_array.cpp diff --git a/dbms/src/Common/tests/gtest_rw_lock.cpp b/dbms/Common/tests/gtest_rw_lock.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_rw_lock.cpp rename to dbms/Common/tests/gtest_rw_lock.cpp diff --git a/dbms/src/Common/tests/gtest_sensitive_data_masker.cpp b/dbms/Common/tests/gtest_sensitive_data_masker.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_sensitive_data_masker.cpp rename to dbms/Common/tests/gtest_sensitive_data_masker.cpp diff --git a/dbms/src/Common/tests/gtest_shell_command.cpp b/dbms/Common/tests/gtest_shell_command.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_shell_command.cpp rename to dbms/Common/tests/gtest_shell_command.cpp diff --git a/dbms/src/Common/tests/gtest_thread_pool_concurrent_wait.cpp b/dbms/Common/tests/gtest_thread_pool_concurrent_wait.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_thread_pool_concurrent_wait.cpp rename to dbms/Common/tests/gtest_thread_pool_concurrent_wait.cpp diff --git a/dbms/src/Common/tests/gtest_thread_pool_global_full.cpp b/dbms/Common/tests/gtest_thread_pool_global_full.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_thread_pool_global_full.cpp rename to dbms/Common/tests/gtest_thread_pool_global_full.cpp diff --git a/dbms/src/Common/tests/gtest_thread_pool_limit.cpp b/dbms/Common/tests/gtest_thread_pool_limit.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_thread_pool_limit.cpp rename to dbms/Common/tests/gtest_thread_pool_limit.cpp diff --git a/dbms/src/Common/tests/gtest_thread_pool_loop.cpp b/dbms/Common/tests/gtest_thread_pool_loop.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_thread_pool_loop.cpp rename to dbms/Common/tests/gtest_thread_pool_loop.cpp diff --git a/dbms/src/Common/tests/gtest_thread_pool_schedule_exception.cpp b/dbms/Common/tests/gtest_thread_pool_schedule_exception.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_thread_pool_schedule_exception.cpp rename to dbms/Common/tests/gtest_thread_pool_schedule_exception.cpp diff --git a/dbms/src/Common/tests/gtest_unescapeForFileName.cpp b/dbms/Common/tests/gtest_unescapeForFileName.cpp similarity index 100% rename from dbms/src/Common/tests/gtest_unescapeForFileName.cpp rename to dbms/Common/tests/gtest_unescapeForFileName.cpp diff --git a/dbms/src/Common/tests/hash_table.cpp b/dbms/Common/tests/hash_table.cpp similarity index 100% rename from dbms/src/Common/tests/hash_table.cpp rename to dbms/Common/tests/hash_table.cpp diff --git a/dbms/src/Common/tests/hashes_test.cpp b/dbms/Common/tests/hashes_test.cpp similarity index 100% rename from dbms/src/Common/tests/hashes_test.cpp rename to dbms/Common/tests/hashes_test.cpp diff --git a/dbms/src/Common/tests/int_hashes_perf.cpp b/dbms/Common/tests/int_hashes_perf.cpp similarity index 100% rename from dbms/src/Common/tests/int_hashes_perf.cpp rename to dbms/Common/tests/int_hashes_perf.cpp diff --git a/dbms/src/Common/tests/integer_hash_tables_and_hashes.cpp b/dbms/Common/tests/integer_hash_tables_and_hashes.cpp similarity index 100% rename from dbms/src/Common/tests/integer_hash_tables_and_hashes.cpp rename to dbms/Common/tests/integer_hash_tables_and_hashes.cpp diff --git a/dbms/src/Common/tests/parallel_aggregation.cpp b/dbms/Common/tests/parallel_aggregation.cpp similarity index 100% rename from dbms/src/Common/tests/parallel_aggregation.cpp rename to dbms/Common/tests/parallel_aggregation.cpp diff --git a/dbms/src/Common/tests/parallel_aggregation2.cpp b/dbms/Common/tests/parallel_aggregation2.cpp similarity index 100% rename from dbms/src/Common/tests/parallel_aggregation2.cpp rename to dbms/Common/tests/parallel_aggregation2.cpp diff --git a/dbms/src/Common/tests/pod_array.cpp b/dbms/Common/tests/pod_array.cpp similarity index 100% rename from dbms/src/Common/tests/pod_array.cpp rename to dbms/Common/tests/pod_array.cpp diff --git a/dbms/src/Common/tests/radix_sort.cpp b/dbms/Common/tests/radix_sort.cpp similarity index 100% rename from dbms/src/Common/tests/radix_sort.cpp rename to dbms/Common/tests/radix_sort.cpp diff --git a/dbms/src/Common/tests/simple_cache.cpp b/dbms/Common/tests/simple_cache.cpp similarity index 100% rename from dbms/src/Common/tests/simple_cache.cpp rename to dbms/Common/tests/simple_cache.cpp diff --git a/dbms/src/Common/tests/sip_hash_perf.cpp b/dbms/Common/tests/sip_hash_perf.cpp similarity index 100% rename from dbms/src/Common/tests/sip_hash_perf.cpp rename to dbms/Common/tests/sip_hash_perf.cpp diff --git a/dbms/src/Common/tests/small_table.cpp b/dbms/Common/tests/small_table.cpp similarity index 100% rename from dbms/src/Common/tests/small_table.cpp rename to dbms/Common/tests/small_table.cpp diff --git a/dbms/src/Common/tests/space_saving.cpp b/dbms/Common/tests/space_saving.cpp similarity index 100% rename from dbms/src/Common/tests/space_saving.cpp rename to dbms/Common/tests/space_saving.cpp diff --git a/dbms/src/Common/tests/stopwatch.cpp b/dbms/Common/tests/stopwatch.cpp similarity index 100% rename from dbms/src/Common/tests/stopwatch.cpp rename to dbms/Common/tests/stopwatch.cpp diff --git a/dbms/src/Common/tests/symbol_index.cpp b/dbms/Common/tests/symbol_index.cpp similarity index 100% rename from dbms/src/Common/tests/symbol_index.cpp rename to dbms/Common/tests/symbol_index.cpp diff --git a/dbms/src/Common/tests/thread_creation_latency.cpp b/dbms/Common/tests/thread_creation_latency.cpp similarity index 100% rename from dbms/src/Common/tests/thread_creation_latency.cpp rename to dbms/Common/tests/thread_creation_latency.cpp diff --git a/dbms/src/Common/thread_local_rng.cpp b/dbms/Common/thread_local_rng.cpp similarity index 100% rename from dbms/src/Common/thread_local_rng.cpp rename to dbms/Common/thread_local_rng.cpp diff --git a/dbms/src/Common/thread_local_rng.h b/dbms/Common/thread_local_rng.h similarity index 100% rename from dbms/src/Common/thread_local_rng.h rename to dbms/Common/thread_local_rng.h diff --git a/dbms/src/Common/typeid_cast.h b/dbms/Common/typeid_cast.h similarity index 100% rename from dbms/src/Common/typeid_cast.h rename to dbms/Common/typeid_cast.h diff --git a/dbms/src/Compression/CMakeLists.txt b/dbms/Compression/CMakeLists.txt similarity index 100% rename from dbms/src/Compression/CMakeLists.txt rename to dbms/Compression/CMakeLists.txt diff --git a/dbms/src/Compression/CachedCompressedReadBuffer.cpp b/dbms/Compression/CachedCompressedReadBuffer.cpp similarity index 100% rename from dbms/src/Compression/CachedCompressedReadBuffer.cpp rename to dbms/Compression/CachedCompressedReadBuffer.cpp diff --git a/dbms/src/Compression/CachedCompressedReadBuffer.h b/dbms/Compression/CachedCompressedReadBuffer.h similarity index 100% rename from dbms/src/Compression/CachedCompressedReadBuffer.h rename to dbms/Compression/CachedCompressedReadBuffer.h diff --git a/dbms/src/Compression/CompressedReadBuffer.cpp b/dbms/Compression/CompressedReadBuffer.cpp similarity index 100% rename from dbms/src/Compression/CompressedReadBuffer.cpp rename to dbms/Compression/CompressedReadBuffer.cpp diff --git a/dbms/src/Compression/CompressedReadBuffer.h b/dbms/Compression/CompressedReadBuffer.h similarity index 100% rename from dbms/src/Compression/CompressedReadBuffer.h rename to dbms/Compression/CompressedReadBuffer.h diff --git a/dbms/src/Compression/CompressedReadBufferBase.cpp b/dbms/Compression/CompressedReadBufferBase.cpp similarity index 100% rename from dbms/src/Compression/CompressedReadBufferBase.cpp rename to dbms/Compression/CompressedReadBufferBase.cpp diff --git a/dbms/src/Compression/CompressedReadBufferBase.h b/dbms/Compression/CompressedReadBufferBase.h similarity index 100% rename from dbms/src/Compression/CompressedReadBufferBase.h rename to dbms/Compression/CompressedReadBufferBase.h diff --git a/dbms/src/Compression/CompressedReadBufferFromFile.cpp b/dbms/Compression/CompressedReadBufferFromFile.cpp similarity index 100% rename from dbms/src/Compression/CompressedReadBufferFromFile.cpp rename to dbms/Compression/CompressedReadBufferFromFile.cpp diff --git a/dbms/src/Compression/CompressedReadBufferFromFile.h b/dbms/Compression/CompressedReadBufferFromFile.h similarity index 100% rename from dbms/src/Compression/CompressedReadBufferFromFile.h rename to dbms/Compression/CompressedReadBufferFromFile.h diff --git a/dbms/src/Compression/CompressedWriteBuffer.cpp b/dbms/Compression/CompressedWriteBuffer.cpp similarity index 100% rename from dbms/src/Compression/CompressedWriteBuffer.cpp rename to dbms/Compression/CompressedWriteBuffer.cpp diff --git a/dbms/src/Compression/CompressedWriteBuffer.h b/dbms/Compression/CompressedWriteBuffer.h similarity index 100% rename from dbms/src/Compression/CompressedWriteBuffer.h rename to dbms/Compression/CompressedWriteBuffer.h diff --git a/dbms/src/Compression/CompressionCodecDelta.cpp b/dbms/Compression/CompressionCodecDelta.cpp similarity index 100% rename from dbms/src/Compression/CompressionCodecDelta.cpp rename to dbms/Compression/CompressionCodecDelta.cpp diff --git a/dbms/src/Compression/CompressionCodecDelta.h b/dbms/Compression/CompressionCodecDelta.h similarity index 100% rename from dbms/src/Compression/CompressionCodecDelta.h rename to dbms/Compression/CompressionCodecDelta.h diff --git a/dbms/src/Compression/CompressionCodecDoubleDelta.cpp b/dbms/Compression/CompressionCodecDoubleDelta.cpp similarity index 100% rename from dbms/src/Compression/CompressionCodecDoubleDelta.cpp rename to dbms/Compression/CompressionCodecDoubleDelta.cpp diff --git a/dbms/src/Compression/CompressionCodecDoubleDelta.h b/dbms/Compression/CompressionCodecDoubleDelta.h similarity index 100% rename from dbms/src/Compression/CompressionCodecDoubleDelta.h rename to dbms/Compression/CompressionCodecDoubleDelta.h diff --git a/dbms/src/Compression/CompressionCodecGorilla.cpp b/dbms/Compression/CompressionCodecGorilla.cpp similarity index 100% rename from dbms/src/Compression/CompressionCodecGorilla.cpp rename to dbms/Compression/CompressionCodecGorilla.cpp diff --git a/dbms/src/Compression/CompressionCodecGorilla.h b/dbms/Compression/CompressionCodecGorilla.h similarity index 100% rename from dbms/src/Compression/CompressionCodecGorilla.h rename to dbms/Compression/CompressionCodecGorilla.h diff --git a/dbms/src/Compression/CompressionCodecLZ4.cpp b/dbms/Compression/CompressionCodecLZ4.cpp similarity index 100% rename from dbms/src/Compression/CompressionCodecLZ4.cpp rename to dbms/Compression/CompressionCodecLZ4.cpp diff --git a/dbms/src/Compression/CompressionCodecLZ4.h b/dbms/Compression/CompressionCodecLZ4.h similarity index 100% rename from dbms/src/Compression/CompressionCodecLZ4.h rename to dbms/Compression/CompressionCodecLZ4.h diff --git a/dbms/src/Compression/CompressionCodecMultiple.cpp b/dbms/Compression/CompressionCodecMultiple.cpp similarity index 100% rename from dbms/src/Compression/CompressionCodecMultiple.cpp rename to dbms/Compression/CompressionCodecMultiple.cpp diff --git a/dbms/src/Compression/CompressionCodecMultiple.h b/dbms/Compression/CompressionCodecMultiple.h similarity index 100% rename from dbms/src/Compression/CompressionCodecMultiple.h rename to dbms/Compression/CompressionCodecMultiple.h diff --git a/dbms/src/Compression/CompressionCodecNone.cpp b/dbms/Compression/CompressionCodecNone.cpp similarity index 100% rename from dbms/src/Compression/CompressionCodecNone.cpp rename to dbms/Compression/CompressionCodecNone.cpp diff --git a/dbms/src/Compression/CompressionCodecNone.h b/dbms/Compression/CompressionCodecNone.h similarity index 100% rename from dbms/src/Compression/CompressionCodecNone.h rename to dbms/Compression/CompressionCodecNone.h diff --git a/dbms/src/Compression/CompressionCodecT64.cpp b/dbms/Compression/CompressionCodecT64.cpp similarity index 100% rename from dbms/src/Compression/CompressionCodecT64.cpp rename to dbms/Compression/CompressionCodecT64.cpp diff --git a/dbms/src/Compression/CompressionCodecT64.h b/dbms/Compression/CompressionCodecT64.h similarity index 100% rename from dbms/src/Compression/CompressionCodecT64.h rename to dbms/Compression/CompressionCodecT64.h diff --git a/dbms/src/Compression/CompressionCodecZSTD.cpp b/dbms/Compression/CompressionCodecZSTD.cpp similarity index 100% rename from dbms/src/Compression/CompressionCodecZSTD.cpp rename to dbms/Compression/CompressionCodecZSTD.cpp diff --git a/dbms/src/Compression/CompressionCodecZSTD.h b/dbms/Compression/CompressionCodecZSTD.h similarity index 100% rename from dbms/src/Compression/CompressionCodecZSTD.h rename to dbms/Compression/CompressionCodecZSTD.h diff --git a/dbms/src/Compression/CompressionFactory.cpp b/dbms/Compression/CompressionFactory.cpp similarity index 100% rename from dbms/src/Compression/CompressionFactory.cpp rename to dbms/Compression/CompressionFactory.cpp diff --git a/dbms/src/Compression/CompressionFactory.h b/dbms/Compression/CompressionFactory.h similarity index 100% rename from dbms/src/Compression/CompressionFactory.h rename to dbms/Compression/CompressionFactory.h diff --git a/dbms/src/Compression/CompressionInfo.h b/dbms/Compression/CompressionInfo.h similarity index 100% rename from dbms/src/Compression/CompressionInfo.h rename to dbms/Compression/CompressionInfo.h diff --git a/dbms/src/Compression/ICompressionCodec.cpp b/dbms/Compression/ICompressionCodec.cpp similarity index 100% rename from dbms/src/Compression/ICompressionCodec.cpp rename to dbms/Compression/ICompressionCodec.cpp diff --git a/dbms/src/Compression/ICompressionCodec.h b/dbms/Compression/ICompressionCodec.h similarity index 100% rename from dbms/src/Compression/ICompressionCodec.h rename to dbms/Compression/ICompressionCodec.h diff --git a/dbms/src/Compression/LZ4_decompress_faster.cpp b/dbms/Compression/LZ4_decompress_faster.cpp similarity index 100% rename from dbms/src/Compression/LZ4_decompress_faster.cpp rename to dbms/Compression/LZ4_decompress_faster.cpp diff --git a/dbms/src/Compression/LZ4_decompress_faster.h b/dbms/Compression/LZ4_decompress_faster.h similarity index 100% rename from dbms/src/Compression/LZ4_decompress_faster.h rename to dbms/Compression/LZ4_decompress_faster.h diff --git a/dbms/src/Compression/tests/CMakeLists.txt b/dbms/Compression/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Compression/tests/CMakeLists.txt rename to dbms/Compression/tests/CMakeLists.txt diff --git a/dbms/src/Compression/tests/cached_compressed_read_buffer.cpp b/dbms/Compression/tests/cached_compressed_read_buffer.cpp similarity index 100% rename from dbms/src/Compression/tests/cached_compressed_read_buffer.cpp rename to dbms/Compression/tests/cached_compressed_read_buffer.cpp diff --git a/dbms/src/Compression/tests/compressed_buffer.cpp b/dbms/Compression/tests/compressed_buffer.cpp similarity index 100% rename from dbms/src/Compression/tests/compressed_buffer.cpp rename to dbms/Compression/tests/compressed_buffer.cpp diff --git a/dbms/src/Compression/tests/compressed_buffer_fuzz.cpp b/dbms/Compression/tests/compressed_buffer_fuzz.cpp similarity index 100% rename from dbms/src/Compression/tests/compressed_buffer_fuzz.cpp rename to dbms/Compression/tests/compressed_buffer_fuzz.cpp diff --git a/dbms/src/Compression/tests/gtest_compressionCodec.cpp b/dbms/Compression/tests/gtest_compressionCodec.cpp similarity index 100% rename from dbms/src/Compression/tests/gtest_compressionCodec.cpp rename to dbms/Compression/tests/gtest_compressionCodec.cpp diff --git a/dbms/src/Core/AccurateComparison.h b/dbms/Core/AccurateComparison.h similarity index 100% rename from dbms/src/Core/AccurateComparison.h rename to dbms/Core/AccurateComparison.h diff --git a/dbms/src/Core/BackgroundSchedulePool.cpp b/dbms/Core/BackgroundSchedulePool.cpp similarity index 100% rename from dbms/src/Core/BackgroundSchedulePool.cpp rename to dbms/Core/BackgroundSchedulePool.cpp diff --git a/dbms/src/Core/BackgroundSchedulePool.h b/dbms/Core/BackgroundSchedulePool.h similarity index 100% rename from dbms/src/Core/BackgroundSchedulePool.h rename to dbms/Core/BackgroundSchedulePool.h diff --git a/dbms/src/Core/Block.cpp b/dbms/Core/Block.cpp similarity index 100% rename from dbms/src/Core/Block.cpp rename to dbms/Core/Block.cpp diff --git a/dbms/src/Core/Block.h b/dbms/Core/Block.h similarity index 100% rename from dbms/src/Core/Block.h rename to dbms/Core/Block.h diff --git a/dbms/src/Core/BlockInfo.cpp b/dbms/Core/BlockInfo.cpp similarity index 100% rename from dbms/src/Core/BlockInfo.cpp rename to dbms/Core/BlockInfo.cpp diff --git a/dbms/src/Core/BlockInfo.h b/dbms/Core/BlockInfo.h similarity index 100% rename from dbms/src/Core/BlockInfo.h rename to dbms/Core/BlockInfo.h diff --git a/dbms/src/Core/CMakeLists.txt b/dbms/Core/CMakeLists.txt similarity index 100% rename from dbms/src/Core/CMakeLists.txt rename to dbms/Core/CMakeLists.txt diff --git a/dbms/src/Core/ColumnNumbers.h b/dbms/Core/ColumnNumbers.h similarity index 100% rename from dbms/src/Core/ColumnNumbers.h rename to dbms/Core/ColumnNumbers.h diff --git a/dbms/src/Core/ColumnWithTypeAndName.cpp b/dbms/Core/ColumnWithTypeAndName.cpp similarity index 100% rename from dbms/src/Core/ColumnWithTypeAndName.cpp rename to dbms/Core/ColumnWithTypeAndName.cpp diff --git a/dbms/src/Core/ColumnWithTypeAndName.h b/dbms/Core/ColumnWithTypeAndName.h similarity index 100% rename from dbms/src/Core/ColumnWithTypeAndName.h rename to dbms/Core/ColumnWithTypeAndName.h diff --git a/dbms/src/Core/ColumnsWithTypeAndName.h b/dbms/Core/ColumnsWithTypeAndName.h similarity index 100% rename from dbms/src/Core/ColumnsWithTypeAndName.h rename to dbms/Core/ColumnsWithTypeAndName.h diff --git a/dbms/src/Core/DecimalComparison.h b/dbms/Core/DecimalComparison.h similarity index 100% rename from dbms/src/Core/DecimalComparison.h rename to dbms/Core/DecimalComparison.h diff --git a/dbms/src/Core/DecimalFunctions.h b/dbms/Core/DecimalFunctions.h similarity index 100% rename from dbms/src/Core/DecimalFunctions.h rename to dbms/Core/DecimalFunctions.h diff --git a/dbms/src/Core/Defines.h b/dbms/Core/Defines.h similarity index 100% rename from dbms/src/Core/Defines.h rename to dbms/Core/Defines.h diff --git a/dbms/src/Core/ExternalResultDescription.cpp b/dbms/Core/ExternalResultDescription.cpp similarity index 100% rename from dbms/src/Core/ExternalResultDescription.cpp rename to dbms/Core/ExternalResultDescription.cpp diff --git a/dbms/src/Core/ExternalResultDescription.h b/dbms/Core/ExternalResultDescription.h similarity index 100% rename from dbms/src/Core/ExternalResultDescription.h rename to dbms/Core/ExternalResultDescription.h diff --git a/dbms/src/Core/ExternalTable.cpp b/dbms/Core/ExternalTable.cpp similarity index 100% rename from dbms/src/Core/ExternalTable.cpp rename to dbms/Core/ExternalTable.cpp diff --git a/dbms/src/Core/ExternalTable.h b/dbms/Core/ExternalTable.h similarity index 100% rename from dbms/src/Core/ExternalTable.h rename to dbms/Core/ExternalTable.h diff --git a/dbms/src/Core/Field.cpp b/dbms/Core/Field.cpp similarity index 100% rename from dbms/src/Core/Field.cpp rename to dbms/Core/Field.cpp diff --git a/dbms/src/Core/Field.h b/dbms/Core/Field.h similarity index 100% rename from dbms/src/Core/Field.h rename to dbms/Core/Field.h diff --git a/dbms/src/Core/MySQLProtocol.cpp b/dbms/Core/MySQLProtocol.cpp similarity index 100% rename from dbms/src/Core/MySQLProtocol.cpp rename to dbms/Core/MySQLProtocol.cpp diff --git a/dbms/src/Core/MySQLProtocol.h b/dbms/Core/MySQLProtocol.h similarity index 100% rename from dbms/src/Core/MySQLProtocol.h rename to dbms/Core/MySQLProtocol.h diff --git a/dbms/src/Core/Names.h b/dbms/Core/Names.h similarity index 100% rename from dbms/src/Core/Names.h rename to dbms/Core/Names.h diff --git a/dbms/src/Core/NamesAndTypes.cpp b/dbms/Core/NamesAndTypes.cpp similarity index 100% rename from dbms/src/Core/NamesAndTypes.cpp rename to dbms/Core/NamesAndTypes.cpp diff --git a/dbms/src/Core/NamesAndTypes.h b/dbms/Core/NamesAndTypes.h similarity index 100% rename from dbms/src/Core/NamesAndTypes.h rename to dbms/Core/NamesAndTypes.h diff --git a/dbms/src/Core/Protocol.h b/dbms/Core/Protocol.h similarity index 100% rename from dbms/src/Core/Protocol.h rename to dbms/Core/Protocol.h diff --git a/dbms/src/Core/QualifiedTableName.h b/dbms/Core/QualifiedTableName.h similarity index 100% rename from dbms/src/Core/QualifiedTableName.h rename to dbms/Core/QualifiedTableName.h diff --git a/dbms/src/Core/QueryProcessingStage.h b/dbms/Core/QueryProcessingStage.h similarity index 100% rename from dbms/src/Core/QueryProcessingStage.h rename to dbms/Core/QueryProcessingStage.h diff --git a/dbms/src/Core/Row.h b/dbms/Core/Row.h similarity index 100% rename from dbms/src/Core/Row.h rename to dbms/Core/Row.h diff --git a/dbms/src/Core/Settings.cpp b/dbms/Core/Settings.cpp similarity index 100% rename from dbms/src/Core/Settings.cpp rename to dbms/Core/Settings.cpp diff --git a/dbms/src/Core/Settings.h b/dbms/Core/Settings.h similarity index 100% rename from dbms/src/Core/Settings.h rename to dbms/Core/Settings.h diff --git a/dbms/src/Core/SettingsCollection.cpp b/dbms/Core/SettingsCollection.cpp similarity index 100% rename from dbms/src/Core/SettingsCollection.cpp rename to dbms/Core/SettingsCollection.cpp diff --git a/dbms/src/Core/SettingsCollection.h b/dbms/Core/SettingsCollection.h similarity index 100% rename from dbms/src/Core/SettingsCollection.h rename to dbms/Core/SettingsCollection.h diff --git a/dbms/src/Core/SettingsCollectionImpl.h b/dbms/Core/SettingsCollectionImpl.h similarity index 100% rename from dbms/src/Core/SettingsCollectionImpl.h rename to dbms/Core/SettingsCollectionImpl.h diff --git a/dbms/src/Core/SortCursor.h b/dbms/Core/SortCursor.h similarity index 100% rename from dbms/src/Core/SortCursor.h rename to dbms/Core/SortCursor.h diff --git a/dbms/src/Core/SortDescription.h b/dbms/Core/SortDescription.h similarity index 100% rename from dbms/src/Core/SortDescription.h rename to dbms/Core/SortDescription.h diff --git a/dbms/src/Core/TypeListNumber.h b/dbms/Core/TypeListNumber.h similarity index 100% rename from dbms/src/Core/TypeListNumber.h rename to dbms/Core/TypeListNumber.h diff --git a/dbms/src/Core/Types.h b/dbms/Core/Types.h similarity index 100% rename from dbms/src/Core/Types.h rename to dbms/Core/Types.h diff --git a/dbms/src/Core/UUID.h b/dbms/Core/UUID.h similarity index 100% rename from dbms/src/Core/UUID.h rename to dbms/Core/UUID.h diff --git a/dbms/src/Core/callOnTypeIndex.h b/dbms/Core/callOnTypeIndex.h similarity index 100% rename from dbms/src/Core/callOnTypeIndex.h rename to dbms/Core/callOnTypeIndex.h diff --git a/dbms/src/Core/config_core.h.in b/dbms/Core/config_core.h.in similarity index 100% rename from dbms/src/Core/config_core.h.in rename to dbms/Core/config_core.h.in diff --git a/dbms/src/Core/iostream_debug_helpers.cpp b/dbms/Core/iostream_debug_helpers.cpp similarity index 100% rename from dbms/src/Core/iostream_debug_helpers.cpp rename to dbms/Core/iostream_debug_helpers.cpp diff --git a/dbms/src/Core/iostream_debug_helpers.h b/dbms/Core/iostream_debug_helpers.h similarity index 100% rename from dbms/src/Core/iostream_debug_helpers.h rename to dbms/Core/iostream_debug_helpers.h diff --git a/dbms/src/Core/tests/CMakeLists.txt b/dbms/Core/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Core/tests/CMakeLists.txt rename to dbms/Core/tests/CMakeLists.txt diff --git a/dbms/src/Core/tests/field.cpp b/dbms/Core/tests/field.cpp similarity index 100% rename from dbms/src/Core/tests/field.cpp rename to dbms/Core/tests/field.cpp diff --git a/dbms/src/Core/tests/gtest_DecimalFunctions.cpp b/dbms/Core/tests/gtest_DecimalFunctions.cpp similarity index 100% rename from dbms/src/Core/tests/gtest_DecimalFunctions.cpp rename to dbms/Core/tests/gtest_DecimalFunctions.cpp diff --git a/dbms/src/Core/tests/move_field.cpp b/dbms/Core/tests/move_field.cpp similarity index 100% rename from dbms/src/Core/tests/move_field.cpp rename to dbms/Core/tests/move_field.cpp diff --git a/dbms/src/Core/tests/string_pool.cpp b/dbms/Core/tests/string_pool.cpp similarity index 100% rename from dbms/src/Core/tests/string_pool.cpp rename to dbms/Core/tests/string_pool.cpp diff --git a/dbms/src/Core/tests/string_ref_hash.cpp b/dbms/Core/tests/string_ref_hash.cpp similarity index 100% rename from dbms/src/Core/tests/string_ref_hash.cpp rename to dbms/Core/tests/string_ref_hash.cpp diff --git a/dbms/src/DataStreams/AddingConstColumnBlockInputStream.h b/dbms/DataStreams/AddingConstColumnBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/AddingConstColumnBlockInputStream.h rename to dbms/DataStreams/AddingConstColumnBlockInputStream.h diff --git a/dbms/src/DataStreams/AddingDefaultBlockOutputStream.cpp b/dbms/DataStreams/AddingDefaultBlockOutputStream.cpp similarity index 100% rename from dbms/src/DataStreams/AddingDefaultBlockOutputStream.cpp rename to dbms/DataStreams/AddingDefaultBlockOutputStream.cpp diff --git a/dbms/src/DataStreams/AddingDefaultBlockOutputStream.h b/dbms/DataStreams/AddingDefaultBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/AddingDefaultBlockOutputStream.h rename to dbms/DataStreams/AddingDefaultBlockOutputStream.h diff --git a/dbms/src/DataStreams/AddingDefaultsBlockInputStream.cpp b/dbms/DataStreams/AddingDefaultsBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/AddingDefaultsBlockInputStream.cpp rename to dbms/DataStreams/AddingDefaultsBlockInputStream.cpp diff --git a/dbms/src/DataStreams/AddingDefaultsBlockInputStream.h b/dbms/DataStreams/AddingDefaultsBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/AddingDefaultsBlockInputStream.h rename to dbms/DataStreams/AddingDefaultsBlockInputStream.h diff --git a/dbms/src/DataStreams/AggregatingBlockInputStream.cpp b/dbms/DataStreams/AggregatingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/AggregatingBlockInputStream.cpp rename to dbms/DataStreams/AggregatingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/AggregatingBlockInputStream.h b/dbms/DataStreams/AggregatingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/AggregatingBlockInputStream.h rename to dbms/DataStreams/AggregatingBlockInputStream.h diff --git a/dbms/src/DataStreams/AggregatingSortedBlockInputStream.cpp b/dbms/DataStreams/AggregatingSortedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/AggregatingSortedBlockInputStream.cpp rename to dbms/DataStreams/AggregatingSortedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/AggregatingSortedBlockInputStream.h b/dbms/DataStreams/AggregatingSortedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/AggregatingSortedBlockInputStream.h rename to dbms/DataStreams/AggregatingSortedBlockInputStream.h diff --git a/dbms/src/DataStreams/AsynchronousBlockInputStream.cpp b/dbms/DataStreams/AsynchronousBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/AsynchronousBlockInputStream.cpp rename to dbms/DataStreams/AsynchronousBlockInputStream.cpp diff --git a/dbms/src/DataStreams/AsynchronousBlockInputStream.h b/dbms/DataStreams/AsynchronousBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/AsynchronousBlockInputStream.h rename to dbms/DataStreams/AsynchronousBlockInputStream.h diff --git a/dbms/src/DataStreams/BlockIO.cpp b/dbms/DataStreams/BlockIO.cpp similarity index 100% rename from dbms/src/DataStreams/BlockIO.cpp rename to dbms/DataStreams/BlockIO.cpp diff --git a/dbms/src/DataStreams/BlockIO.h b/dbms/DataStreams/BlockIO.h similarity index 100% rename from dbms/src/DataStreams/BlockIO.h rename to dbms/DataStreams/BlockIO.h diff --git a/dbms/src/DataStreams/BlockStreamProfileInfo.cpp b/dbms/DataStreams/BlockStreamProfileInfo.cpp similarity index 100% rename from dbms/src/DataStreams/BlockStreamProfileInfo.cpp rename to dbms/DataStreams/BlockStreamProfileInfo.cpp diff --git a/dbms/src/DataStreams/BlockStreamProfileInfo.h b/dbms/DataStreams/BlockStreamProfileInfo.h similarity index 100% rename from dbms/src/DataStreams/BlockStreamProfileInfo.h rename to dbms/DataStreams/BlockStreamProfileInfo.h diff --git a/dbms/src/DataStreams/BlocksBlockInputStream.h b/dbms/DataStreams/BlocksBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/BlocksBlockInputStream.h rename to dbms/DataStreams/BlocksBlockInputStream.h diff --git a/dbms/src/DataStreams/BlocksListBlockInputStream.h b/dbms/DataStreams/BlocksListBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/BlocksListBlockInputStream.h rename to dbms/DataStreams/BlocksListBlockInputStream.h diff --git a/dbms/src/DataStreams/CMakeLists.txt b/dbms/DataStreams/CMakeLists.txt similarity index 100% rename from dbms/src/DataStreams/CMakeLists.txt rename to dbms/DataStreams/CMakeLists.txt diff --git a/dbms/src/DataStreams/CheckConstraintsBlockOutputStream.cpp b/dbms/DataStreams/CheckConstraintsBlockOutputStream.cpp similarity index 100% rename from dbms/src/DataStreams/CheckConstraintsBlockOutputStream.cpp rename to dbms/DataStreams/CheckConstraintsBlockOutputStream.cpp diff --git a/dbms/src/DataStreams/CheckConstraintsBlockOutputStream.h b/dbms/DataStreams/CheckConstraintsBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/CheckConstraintsBlockOutputStream.h rename to dbms/DataStreams/CheckConstraintsBlockOutputStream.h diff --git a/dbms/src/DataStreams/CheckSortedBlockInputStream.cpp b/dbms/DataStreams/CheckSortedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/CheckSortedBlockInputStream.cpp rename to dbms/DataStreams/CheckSortedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/CheckSortedBlockInputStream.h b/dbms/DataStreams/CheckSortedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/CheckSortedBlockInputStream.h rename to dbms/DataStreams/CheckSortedBlockInputStream.h diff --git a/dbms/src/DataStreams/CollapsingFinalBlockInputStream.cpp b/dbms/DataStreams/CollapsingFinalBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/CollapsingFinalBlockInputStream.cpp rename to dbms/DataStreams/CollapsingFinalBlockInputStream.cpp diff --git a/dbms/src/DataStreams/CollapsingFinalBlockInputStream.h b/dbms/DataStreams/CollapsingFinalBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/CollapsingFinalBlockInputStream.h rename to dbms/DataStreams/CollapsingFinalBlockInputStream.h diff --git a/dbms/src/DataStreams/CollapsingSortedBlockInputStream.cpp b/dbms/DataStreams/CollapsingSortedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/CollapsingSortedBlockInputStream.cpp rename to dbms/DataStreams/CollapsingSortedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/CollapsingSortedBlockInputStream.h b/dbms/DataStreams/CollapsingSortedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/CollapsingSortedBlockInputStream.h rename to dbms/DataStreams/CollapsingSortedBlockInputStream.h diff --git a/dbms/src/DataStreams/ColumnGathererStream.cpp b/dbms/DataStreams/ColumnGathererStream.cpp similarity index 100% rename from dbms/src/DataStreams/ColumnGathererStream.cpp rename to dbms/DataStreams/ColumnGathererStream.cpp diff --git a/dbms/src/DataStreams/ColumnGathererStream.h b/dbms/DataStreams/ColumnGathererStream.h similarity index 100% rename from dbms/src/DataStreams/ColumnGathererStream.h rename to dbms/DataStreams/ColumnGathererStream.h diff --git a/dbms/src/DataStreams/ConcatBlockInputStream.h b/dbms/DataStreams/ConcatBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/ConcatBlockInputStream.h rename to dbms/DataStreams/ConcatBlockInputStream.h diff --git a/dbms/src/DataStreams/ConvertColumnLowCardinalityToFullBlockInputStream.h b/dbms/DataStreams/ConvertColumnLowCardinalityToFullBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/ConvertColumnLowCardinalityToFullBlockInputStream.h rename to dbms/DataStreams/ConvertColumnLowCardinalityToFullBlockInputStream.h diff --git a/dbms/src/DataStreams/ConvertingBlockInputStream.cpp b/dbms/DataStreams/ConvertingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/ConvertingBlockInputStream.cpp rename to dbms/DataStreams/ConvertingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/ConvertingBlockInputStream.h b/dbms/DataStreams/ConvertingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/ConvertingBlockInputStream.h rename to dbms/DataStreams/ConvertingBlockInputStream.h diff --git a/dbms/src/DataStreams/CountingBlockOutputStream.cpp b/dbms/DataStreams/CountingBlockOutputStream.cpp similarity index 100% rename from dbms/src/DataStreams/CountingBlockOutputStream.cpp rename to dbms/DataStreams/CountingBlockOutputStream.cpp diff --git a/dbms/src/DataStreams/CountingBlockOutputStream.h b/dbms/DataStreams/CountingBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/CountingBlockOutputStream.h rename to dbms/DataStreams/CountingBlockOutputStream.h diff --git a/dbms/src/DataStreams/CreatingSetsBlockInputStream.cpp b/dbms/DataStreams/CreatingSetsBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/CreatingSetsBlockInputStream.cpp rename to dbms/DataStreams/CreatingSetsBlockInputStream.cpp diff --git a/dbms/src/DataStreams/CreatingSetsBlockInputStream.h b/dbms/DataStreams/CreatingSetsBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/CreatingSetsBlockInputStream.h rename to dbms/DataStreams/CreatingSetsBlockInputStream.h diff --git a/dbms/src/DataStreams/CubeBlockInputStream.cpp b/dbms/DataStreams/CubeBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/CubeBlockInputStream.cpp rename to dbms/DataStreams/CubeBlockInputStream.cpp diff --git a/dbms/src/DataStreams/CubeBlockInputStream.h b/dbms/DataStreams/CubeBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/CubeBlockInputStream.h rename to dbms/DataStreams/CubeBlockInputStream.h diff --git a/dbms/src/DataStreams/DistinctBlockInputStream.cpp b/dbms/DataStreams/DistinctBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/DistinctBlockInputStream.cpp rename to dbms/DataStreams/DistinctBlockInputStream.cpp diff --git a/dbms/src/DataStreams/DistinctBlockInputStream.h b/dbms/DataStreams/DistinctBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/DistinctBlockInputStream.h rename to dbms/DataStreams/DistinctBlockInputStream.h diff --git a/dbms/src/DataStreams/DistinctSortedBlockInputStream.cpp b/dbms/DataStreams/DistinctSortedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/DistinctSortedBlockInputStream.cpp rename to dbms/DataStreams/DistinctSortedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/DistinctSortedBlockInputStream.h b/dbms/DataStreams/DistinctSortedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/DistinctSortedBlockInputStream.h rename to dbms/DataStreams/DistinctSortedBlockInputStream.h diff --git a/dbms/src/DataStreams/ExecutionSpeedLimits.cpp b/dbms/DataStreams/ExecutionSpeedLimits.cpp similarity index 100% rename from dbms/src/DataStreams/ExecutionSpeedLimits.cpp rename to dbms/DataStreams/ExecutionSpeedLimits.cpp diff --git a/dbms/src/DataStreams/ExecutionSpeedLimits.h b/dbms/DataStreams/ExecutionSpeedLimits.h similarity index 100% rename from dbms/src/DataStreams/ExecutionSpeedLimits.h rename to dbms/DataStreams/ExecutionSpeedLimits.h diff --git a/dbms/src/DataStreams/ExpressionBlockInputStream.cpp b/dbms/DataStreams/ExpressionBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/ExpressionBlockInputStream.cpp rename to dbms/DataStreams/ExpressionBlockInputStream.cpp diff --git a/dbms/src/DataStreams/ExpressionBlockInputStream.h b/dbms/DataStreams/ExpressionBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/ExpressionBlockInputStream.h rename to dbms/DataStreams/ExpressionBlockInputStream.h diff --git a/dbms/src/DataStreams/FillingBlockInputStream.cpp b/dbms/DataStreams/FillingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/FillingBlockInputStream.cpp rename to dbms/DataStreams/FillingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/FillingBlockInputStream.h b/dbms/DataStreams/FillingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/FillingBlockInputStream.h rename to dbms/DataStreams/FillingBlockInputStream.h diff --git a/dbms/src/DataStreams/FilterBlockInputStream.cpp b/dbms/DataStreams/FilterBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/FilterBlockInputStream.cpp rename to dbms/DataStreams/FilterBlockInputStream.cpp diff --git a/dbms/src/DataStreams/FilterBlockInputStream.h b/dbms/DataStreams/FilterBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/FilterBlockInputStream.h rename to dbms/DataStreams/FilterBlockInputStream.h diff --git a/dbms/src/DataStreams/FilterColumnsBlockInputStream.cpp b/dbms/DataStreams/FilterColumnsBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/FilterColumnsBlockInputStream.cpp rename to dbms/DataStreams/FilterColumnsBlockInputStream.cpp diff --git a/dbms/src/DataStreams/FilterColumnsBlockInputStream.h b/dbms/DataStreams/FilterColumnsBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/FilterColumnsBlockInputStream.h rename to dbms/DataStreams/FilterColumnsBlockInputStream.h diff --git a/dbms/src/DataStreams/FinishSortingBlockInputStream.cpp b/dbms/DataStreams/FinishSortingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/FinishSortingBlockInputStream.cpp rename to dbms/DataStreams/FinishSortingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/FinishSortingBlockInputStream.h b/dbms/DataStreams/FinishSortingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/FinishSortingBlockInputStream.h rename to dbms/DataStreams/FinishSortingBlockInputStream.h diff --git a/dbms/src/DataStreams/GraphiteRollupSortedBlockInputStream.cpp b/dbms/DataStreams/GraphiteRollupSortedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/GraphiteRollupSortedBlockInputStream.cpp rename to dbms/DataStreams/GraphiteRollupSortedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/GraphiteRollupSortedBlockInputStream.h b/dbms/DataStreams/GraphiteRollupSortedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/GraphiteRollupSortedBlockInputStream.h rename to dbms/DataStreams/GraphiteRollupSortedBlockInputStream.h diff --git a/dbms/src/DataStreams/IBlockInputStream.cpp b/dbms/DataStreams/IBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/IBlockInputStream.cpp rename to dbms/DataStreams/IBlockInputStream.cpp diff --git a/dbms/src/DataStreams/IBlockInputStream.h b/dbms/DataStreams/IBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/IBlockInputStream.h rename to dbms/DataStreams/IBlockInputStream.h diff --git a/dbms/src/DataStreams/IBlockOutputStream.h b/dbms/DataStreams/IBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/IBlockOutputStream.h rename to dbms/DataStreams/IBlockOutputStream.h diff --git a/dbms/src/DataStreams/IBlockStream_fwd.h b/dbms/DataStreams/IBlockStream_fwd.h similarity index 100% rename from dbms/src/DataStreams/IBlockStream_fwd.h rename to dbms/DataStreams/IBlockStream_fwd.h diff --git a/dbms/src/DataStreams/InputStreamFromASTInsertQuery.cpp b/dbms/DataStreams/InputStreamFromASTInsertQuery.cpp similarity index 100% rename from dbms/src/DataStreams/InputStreamFromASTInsertQuery.cpp rename to dbms/DataStreams/InputStreamFromASTInsertQuery.cpp diff --git a/dbms/src/DataStreams/InputStreamFromASTInsertQuery.h b/dbms/DataStreams/InputStreamFromASTInsertQuery.h similarity index 100% rename from dbms/src/DataStreams/InputStreamFromASTInsertQuery.h rename to dbms/DataStreams/InputStreamFromASTInsertQuery.h diff --git a/dbms/src/DataStreams/InternalTextLogsRowOutputStream.cpp b/dbms/DataStreams/InternalTextLogsRowOutputStream.cpp similarity index 100% rename from dbms/src/DataStreams/InternalTextLogsRowOutputStream.cpp rename to dbms/DataStreams/InternalTextLogsRowOutputStream.cpp diff --git a/dbms/src/DataStreams/InternalTextLogsRowOutputStream.h b/dbms/DataStreams/InternalTextLogsRowOutputStream.h similarity index 100% rename from dbms/src/DataStreams/InternalTextLogsRowOutputStream.h rename to dbms/DataStreams/InternalTextLogsRowOutputStream.h diff --git a/dbms/src/DataStreams/LazyBlockInputStream.h b/dbms/DataStreams/LazyBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/LazyBlockInputStream.h rename to dbms/DataStreams/LazyBlockInputStream.h diff --git a/dbms/src/DataStreams/LimitBlockInputStream.cpp b/dbms/DataStreams/LimitBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/LimitBlockInputStream.cpp rename to dbms/DataStreams/LimitBlockInputStream.cpp diff --git a/dbms/src/DataStreams/LimitBlockInputStream.h b/dbms/DataStreams/LimitBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/LimitBlockInputStream.h rename to dbms/DataStreams/LimitBlockInputStream.h diff --git a/dbms/src/DataStreams/LimitByBlockInputStream.cpp b/dbms/DataStreams/LimitByBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/LimitByBlockInputStream.cpp rename to dbms/DataStreams/LimitByBlockInputStream.cpp diff --git a/dbms/src/DataStreams/LimitByBlockInputStream.h b/dbms/DataStreams/LimitByBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/LimitByBlockInputStream.h rename to dbms/DataStreams/LimitByBlockInputStream.h diff --git a/dbms/src/DataStreams/MarkInCompressedFile.h b/dbms/DataStreams/MarkInCompressedFile.h similarity index 100% rename from dbms/src/DataStreams/MarkInCompressedFile.h rename to dbms/DataStreams/MarkInCompressedFile.h diff --git a/dbms/src/DataStreams/MaterializingBlockInputStream.cpp b/dbms/DataStreams/MaterializingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/MaterializingBlockInputStream.cpp rename to dbms/DataStreams/MaterializingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/MaterializingBlockInputStream.h b/dbms/DataStreams/MaterializingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/MaterializingBlockInputStream.h rename to dbms/DataStreams/MaterializingBlockInputStream.h diff --git a/dbms/src/DataStreams/MaterializingBlockOutputStream.h b/dbms/DataStreams/MaterializingBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/MaterializingBlockOutputStream.h rename to dbms/DataStreams/MaterializingBlockOutputStream.h diff --git a/dbms/src/DataStreams/MergeSortingBlockInputStream.cpp b/dbms/DataStreams/MergeSortingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/MergeSortingBlockInputStream.cpp rename to dbms/DataStreams/MergeSortingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/MergeSortingBlockInputStream.h b/dbms/DataStreams/MergeSortingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/MergeSortingBlockInputStream.h rename to dbms/DataStreams/MergeSortingBlockInputStream.h diff --git a/dbms/src/DataStreams/MergingAggregatedBlockInputStream.cpp b/dbms/DataStreams/MergingAggregatedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/MergingAggregatedBlockInputStream.cpp rename to dbms/DataStreams/MergingAggregatedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/MergingAggregatedBlockInputStream.h b/dbms/DataStreams/MergingAggregatedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/MergingAggregatedBlockInputStream.h rename to dbms/DataStreams/MergingAggregatedBlockInputStream.h diff --git a/dbms/src/DataStreams/MergingAggregatedMemoryEfficientBlockInputStream.cpp b/dbms/DataStreams/MergingAggregatedMemoryEfficientBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/MergingAggregatedMemoryEfficientBlockInputStream.cpp rename to dbms/DataStreams/MergingAggregatedMemoryEfficientBlockInputStream.cpp diff --git a/dbms/src/DataStreams/MergingAggregatedMemoryEfficientBlockInputStream.h b/dbms/DataStreams/MergingAggregatedMemoryEfficientBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/MergingAggregatedMemoryEfficientBlockInputStream.h rename to dbms/DataStreams/MergingAggregatedMemoryEfficientBlockInputStream.h diff --git a/dbms/src/DataStreams/MergingSortedBlockInputStream.cpp b/dbms/DataStreams/MergingSortedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/MergingSortedBlockInputStream.cpp rename to dbms/DataStreams/MergingSortedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/MergingSortedBlockInputStream.h b/dbms/DataStreams/MergingSortedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/MergingSortedBlockInputStream.h rename to dbms/DataStreams/MergingSortedBlockInputStream.h diff --git a/dbms/src/DataStreams/NativeBlockInputStream.cpp b/dbms/DataStreams/NativeBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/NativeBlockInputStream.cpp rename to dbms/DataStreams/NativeBlockInputStream.cpp diff --git a/dbms/src/DataStreams/NativeBlockInputStream.h b/dbms/DataStreams/NativeBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/NativeBlockInputStream.h rename to dbms/DataStreams/NativeBlockInputStream.h diff --git a/dbms/src/DataStreams/NativeBlockOutputStream.cpp b/dbms/DataStreams/NativeBlockOutputStream.cpp similarity index 100% rename from dbms/src/DataStreams/NativeBlockOutputStream.cpp rename to dbms/DataStreams/NativeBlockOutputStream.cpp diff --git a/dbms/src/DataStreams/NativeBlockOutputStream.h b/dbms/DataStreams/NativeBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/NativeBlockOutputStream.h rename to dbms/DataStreams/NativeBlockOutputStream.h diff --git a/dbms/src/DataStreams/NullAndDoCopyBlockInputStream.h b/dbms/DataStreams/NullAndDoCopyBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/NullAndDoCopyBlockInputStream.h rename to dbms/DataStreams/NullAndDoCopyBlockInputStream.h diff --git a/dbms/src/DataStreams/NullBlockInputStream.h b/dbms/DataStreams/NullBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/NullBlockInputStream.h rename to dbms/DataStreams/NullBlockInputStream.h diff --git a/dbms/src/DataStreams/NullBlockOutputStream.h b/dbms/DataStreams/NullBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/NullBlockOutputStream.h rename to dbms/DataStreams/NullBlockOutputStream.h diff --git a/dbms/src/DataStreams/OneBlockInputStream.h b/dbms/DataStreams/OneBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/OneBlockInputStream.h rename to dbms/DataStreams/OneBlockInputStream.h diff --git a/dbms/src/DataStreams/OwningBlockInputStream.h b/dbms/DataStreams/OwningBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/OwningBlockInputStream.h rename to dbms/DataStreams/OwningBlockInputStream.h diff --git a/dbms/src/DataStreams/ParallelAggregatingBlockInputStream.cpp b/dbms/DataStreams/ParallelAggregatingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/ParallelAggregatingBlockInputStream.cpp rename to dbms/DataStreams/ParallelAggregatingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/ParallelAggregatingBlockInputStream.h b/dbms/DataStreams/ParallelAggregatingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/ParallelAggregatingBlockInputStream.h rename to dbms/DataStreams/ParallelAggregatingBlockInputStream.h diff --git a/dbms/src/DataStreams/ParallelInputsProcessor.h b/dbms/DataStreams/ParallelInputsProcessor.h similarity index 100% rename from dbms/src/DataStreams/ParallelInputsProcessor.h rename to dbms/DataStreams/ParallelInputsProcessor.h diff --git a/dbms/src/DataStreams/ParallelParsingBlockInputStream.cpp b/dbms/DataStreams/ParallelParsingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/ParallelParsingBlockInputStream.cpp rename to dbms/DataStreams/ParallelParsingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/ParallelParsingBlockInputStream.h b/dbms/DataStreams/ParallelParsingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/ParallelParsingBlockInputStream.h rename to dbms/DataStreams/ParallelParsingBlockInputStream.h diff --git a/dbms/src/DataStreams/PartialSortingBlockInputStream.cpp b/dbms/DataStreams/PartialSortingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/PartialSortingBlockInputStream.cpp rename to dbms/DataStreams/PartialSortingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/PartialSortingBlockInputStream.h b/dbms/DataStreams/PartialSortingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/PartialSortingBlockInputStream.h rename to dbms/DataStreams/PartialSortingBlockInputStream.h diff --git a/dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp b/dbms/DataStreams/PushingToViewsBlockOutputStream.cpp similarity index 100% rename from dbms/src/DataStreams/PushingToViewsBlockOutputStream.cpp rename to dbms/DataStreams/PushingToViewsBlockOutputStream.cpp diff --git a/dbms/src/DataStreams/PushingToViewsBlockOutputStream.h b/dbms/DataStreams/PushingToViewsBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/PushingToViewsBlockOutputStream.h rename to dbms/DataStreams/PushingToViewsBlockOutputStream.h diff --git a/dbms/src/DataStreams/RemoteBlockInputStream.cpp b/dbms/DataStreams/RemoteBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/RemoteBlockInputStream.cpp rename to dbms/DataStreams/RemoteBlockInputStream.cpp diff --git a/dbms/src/DataStreams/RemoteBlockInputStream.h b/dbms/DataStreams/RemoteBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/RemoteBlockInputStream.h rename to dbms/DataStreams/RemoteBlockInputStream.h diff --git a/dbms/src/DataStreams/RemoteBlockOutputStream.cpp b/dbms/DataStreams/RemoteBlockOutputStream.cpp similarity index 100% rename from dbms/src/DataStreams/RemoteBlockOutputStream.cpp rename to dbms/DataStreams/RemoteBlockOutputStream.cpp diff --git a/dbms/src/DataStreams/RemoteBlockOutputStream.h b/dbms/DataStreams/RemoteBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/RemoteBlockOutputStream.h rename to dbms/DataStreams/RemoteBlockOutputStream.h diff --git a/dbms/src/DataStreams/ReplacingSortedBlockInputStream.cpp b/dbms/DataStreams/ReplacingSortedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/ReplacingSortedBlockInputStream.cpp rename to dbms/DataStreams/ReplacingSortedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/ReplacingSortedBlockInputStream.h b/dbms/DataStreams/ReplacingSortedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/ReplacingSortedBlockInputStream.h rename to dbms/DataStreams/ReplacingSortedBlockInputStream.h diff --git a/dbms/src/DataStreams/ReverseBlockInputStream.cpp b/dbms/DataStreams/ReverseBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/ReverseBlockInputStream.cpp rename to dbms/DataStreams/ReverseBlockInputStream.cpp diff --git a/dbms/src/DataStreams/ReverseBlockInputStream.h b/dbms/DataStreams/ReverseBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/ReverseBlockInputStream.h rename to dbms/DataStreams/ReverseBlockInputStream.h diff --git a/dbms/src/DataStreams/RollupBlockInputStream.cpp b/dbms/DataStreams/RollupBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/RollupBlockInputStream.cpp rename to dbms/DataStreams/RollupBlockInputStream.cpp diff --git a/dbms/src/DataStreams/RollupBlockInputStream.h b/dbms/DataStreams/RollupBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/RollupBlockInputStream.h rename to dbms/DataStreams/RollupBlockInputStream.h diff --git a/dbms/src/DataStreams/SizeLimits.cpp b/dbms/DataStreams/SizeLimits.cpp similarity index 100% rename from dbms/src/DataStreams/SizeLimits.cpp rename to dbms/DataStreams/SizeLimits.cpp diff --git a/dbms/src/DataStreams/SizeLimits.h b/dbms/DataStreams/SizeLimits.h similarity index 100% rename from dbms/src/DataStreams/SizeLimits.h rename to dbms/DataStreams/SizeLimits.h diff --git a/dbms/src/DataStreams/SquashingBlockInputStream.cpp b/dbms/DataStreams/SquashingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/SquashingBlockInputStream.cpp rename to dbms/DataStreams/SquashingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/SquashingBlockInputStream.h b/dbms/DataStreams/SquashingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/SquashingBlockInputStream.h rename to dbms/DataStreams/SquashingBlockInputStream.h diff --git a/dbms/src/DataStreams/SquashingBlockOutputStream.cpp b/dbms/DataStreams/SquashingBlockOutputStream.cpp similarity index 100% rename from dbms/src/DataStreams/SquashingBlockOutputStream.cpp rename to dbms/DataStreams/SquashingBlockOutputStream.cpp diff --git a/dbms/src/DataStreams/SquashingBlockOutputStream.h b/dbms/DataStreams/SquashingBlockOutputStream.h similarity index 100% rename from dbms/src/DataStreams/SquashingBlockOutputStream.h rename to dbms/DataStreams/SquashingBlockOutputStream.h diff --git a/dbms/src/DataStreams/SquashingTransform.cpp b/dbms/DataStreams/SquashingTransform.cpp similarity index 100% rename from dbms/src/DataStreams/SquashingTransform.cpp rename to dbms/DataStreams/SquashingTransform.cpp diff --git a/dbms/src/DataStreams/SquashingTransform.h b/dbms/DataStreams/SquashingTransform.h similarity index 100% rename from dbms/src/DataStreams/SquashingTransform.h rename to dbms/DataStreams/SquashingTransform.h diff --git a/dbms/src/DataStreams/SummingSortedBlockInputStream.cpp b/dbms/DataStreams/SummingSortedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/SummingSortedBlockInputStream.cpp rename to dbms/DataStreams/SummingSortedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/SummingSortedBlockInputStream.h b/dbms/DataStreams/SummingSortedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/SummingSortedBlockInputStream.h rename to dbms/DataStreams/SummingSortedBlockInputStream.h diff --git a/dbms/src/DataStreams/TTLBlockInputStream.cpp b/dbms/DataStreams/TTLBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/TTLBlockInputStream.cpp rename to dbms/DataStreams/TTLBlockInputStream.cpp diff --git a/dbms/src/DataStreams/TTLBlockInputStream.h b/dbms/DataStreams/TTLBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/TTLBlockInputStream.h rename to dbms/DataStreams/TTLBlockInputStream.h diff --git a/dbms/src/DataStreams/TemporaryFileStream.h b/dbms/DataStreams/TemporaryFileStream.h similarity index 100% rename from dbms/src/DataStreams/TemporaryFileStream.h rename to dbms/DataStreams/TemporaryFileStream.h diff --git a/dbms/src/DataStreams/TotalsHavingBlockInputStream.cpp b/dbms/DataStreams/TotalsHavingBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/TotalsHavingBlockInputStream.cpp rename to dbms/DataStreams/TotalsHavingBlockInputStream.cpp diff --git a/dbms/src/DataStreams/TotalsHavingBlockInputStream.h b/dbms/DataStreams/TotalsHavingBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/TotalsHavingBlockInputStream.h rename to dbms/DataStreams/TotalsHavingBlockInputStream.h diff --git a/dbms/src/DataStreams/UnionBlockInputStream.h b/dbms/DataStreams/UnionBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/UnionBlockInputStream.h rename to dbms/DataStreams/UnionBlockInputStream.h diff --git a/dbms/src/DataStreams/VersionedCollapsingSortedBlockInputStream.cpp b/dbms/DataStreams/VersionedCollapsingSortedBlockInputStream.cpp similarity index 100% rename from dbms/src/DataStreams/VersionedCollapsingSortedBlockInputStream.cpp rename to dbms/DataStreams/VersionedCollapsingSortedBlockInputStream.cpp diff --git a/dbms/src/DataStreams/VersionedCollapsingSortedBlockInputStream.h b/dbms/DataStreams/VersionedCollapsingSortedBlockInputStream.h similarity index 100% rename from dbms/src/DataStreams/VersionedCollapsingSortedBlockInputStream.h rename to dbms/DataStreams/VersionedCollapsingSortedBlockInputStream.h diff --git a/dbms/src/DataStreams/copyData.cpp b/dbms/DataStreams/copyData.cpp similarity index 100% rename from dbms/src/DataStreams/copyData.cpp rename to dbms/DataStreams/copyData.cpp diff --git a/dbms/src/DataStreams/copyData.h b/dbms/DataStreams/copyData.h similarity index 100% rename from dbms/src/DataStreams/copyData.h rename to dbms/DataStreams/copyData.h diff --git a/dbms/src/DataStreams/finalizeBlock.cpp b/dbms/DataStreams/finalizeBlock.cpp similarity index 100% rename from dbms/src/DataStreams/finalizeBlock.cpp rename to dbms/DataStreams/finalizeBlock.cpp diff --git a/dbms/src/DataStreams/finalizeBlock.h b/dbms/DataStreams/finalizeBlock.h similarity index 100% rename from dbms/src/DataStreams/finalizeBlock.h rename to dbms/DataStreams/finalizeBlock.h diff --git a/dbms/src/DataStreams/materializeBlock.cpp b/dbms/DataStreams/materializeBlock.cpp similarity index 100% rename from dbms/src/DataStreams/materializeBlock.cpp rename to dbms/DataStreams/materializeBlock.cpp diff --git a/dbms/src/DataStreams/materializeBlock.h b/dbms/DataStreams/materializeBlock.h similarity index 100% rename from dbms/src/DataStreams/materializeBlock.h rename to dbms/DataStreams/materializeBlock.h diff --git a/dbms/src/DataStreams/narrowBlockInputStreams.cpp b/dbms/DataStreams/narrowBlockInputStreams.cpp similarity index 100% rename from dbms/src/DataStreams/narrowBlockInputStreams.cpp rename to dbms/DataStreams/narrowBlockInputStreams.cpp diff --git a/dbms/src/DataStreams/narrowBlockInputStreams.h b/dbms/DataStreams/narrowBlockInputStreams.h similarity index 100% rename from dbms/src/DataStreams/narrowBlockInputStreams.h rename to dbms/DataStreams/narrowBlockInputStreams.h diff --git a/dbms/src/DataStreams/processConstants.cpp b/dbms/DataStreams/processConstants.cpp similarity index 100% rename from dbms/src/DataStreams/processConstants.cpp rename to dbms/DataStreams/processConstants.cpp diff --git a/dbms/src/DataStreams/processConstants.h b/dbms/DataStreams/processConstants.h similarity index 100% rename from dbms/src/DataStreams/processConstants.h rename to dbms/DataStreams/processConstants.h diff --git a/dbms/src/DataStreams/tests/CMakeLists.txt b/dbms/DataStreams/tests/CMakeLists.txt similarity index 100% rename from dbms/src/DataStreams/tests/CMakeLists.txt rename to dbms/DataStreams/tests/CMakeLists.txt diff --git a/dbms/src/DataStreams/tests/collapsing_sorted_stream.cpp b/dbms/DataStreams/tests/collapsing_sorted_stream.cpp similarity index 100% rename from dbms/src/DataStreams/tests/collapsing_sorted_stream.cpp rename to dbms/DataStreams/tests/collapsing_sorted_stream.cpp diff --git a/dbms/src/DataStreams/tests/expression_stream.cpp b/dbms/DataStreams/tests/expression_stream.cpp similarity index 100% rename from dbms/src/DataStreams/tests/expression_stream.cpp rename to dbms/DataStreams/tests/expression_stream.cpp diff --git a/dbms/src/DataStreams/tests/filter_stream.cpp b/dbms/DataStreams/tests/filter_stream.cpp similarity index 100% rename from dbms/src/DataStreams/tests/filter_stream.cpp rename to dbms/DataStreams/tests/filter_stream.cpp diff --git a/dbms/src/DataStreams/tests/finish_sorting_stream.cpp b/dbms/DataStreams/tests/finish_sorting_stream.cpp similarity index 100% rename from dbms/src/DataStreams/tests/finish_sorting_stream.cpp rename to dbms/DataStreams/tests/finish_sorting_stream.cpp diff --git a/dbms/src/DataStreams/tests/gtest_blocks_size_merging_streams.cpp b/dbms/DataStreams/tests/gtest_blocks_size_merging_streams.cpp similarity index 100% rename from dbms/src/DataStreams/tests/gtest_blocks_size_merging_streams.cpp rename to dbms/DataStreams/tests/gtest_blocks_size_merging_streams.cpp diff --git a/dbms/src/DataStreams/tests/gtest_check_sorted_stream.cpp b/dbms/DataStreams/tests/gtest_check_sorted_stream.cpp similarity index 100% rename from dbms/src/DataStreams/tests/gtest_check_sorted_stream.cpp rename to dbms/DataStreams/tests/gtest_check_sorted_stream.cpp diff --git a/dbms/src/DataStreams/tests/union_stream2.cpp b/dbms/DataStreams/tests/union_stream2.cpp similarity index 100% rename from dbms/src/DataStreams/tests/union_stream2.cpp rename to dbms/DataStreams/tests/union_stream2.cpp diff --git a/dbms/src/DataTypes/CMakeLists.txt b/dbms/DataTypes/CMakeLists.txt similarity index 100% rename from dbms/src/DataTypes/CMakeLists.txt rename to dbms/DataTypes/CMakeLists.txt diff --git a/dbms/src/DataTypes/DataTypeAggregateFunction.cpp b/dbms/DataTypes/DataTypeAggregateFunction.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeAggregateFunction.cpp rename to dbms/DataTypes/DataTypeAggregateFunction.cpp diff --git a/dbms/src/DataTypes/DataTypeAggregateFunction.h b/dbms/DataTypes/DataTypeAggregateFunction.h similarity index 100% rename from dbms/src/DataTypes/DataTypeAggregateFunction.h rename to dbms/DataTypes/DataTypeAggregateFunction.h diff --git a/dbms/src/DataTypes/DataTypeArray.cpp b/dbms/DataTypes/DataTypeArray.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeArray.cpp rename to dbms/DataTypes/DataTypeArray.cpp diff --git a/dbms/src/DataTypes/DataTypeArray.h b/dbms/DataTypes/DataTypeArray.h similarity index 100% rename from dbms/src/DataTypes/DataTypeArray.h rename to dbms/DataTypes/DataTypeArray.h diff --git a/dbms/src/DataTypes/DataTypeCustom.h b/dbms/DataTypes/DataTypeCustom.h similarity index 100% rename from dbms/src/DataTypes/DataTypeCustom.h rename to dbms/DataTypes/DataTypeCustom.h diff --git a/dbms/src/DataTypes/DataTypeCustomIPv4AndIPv6.cpp b/dbms/DataTypes/DataTypeCustomIPv4AndIPv6.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeCustomIPv4AndIPv6.cpp rename to dbms/DataTypes/DataTypeCustomIPv4AndIPv6.cpp diff --git a/dbms/src/DataTypes/DataTypeCustomSimpleAggregateFunction.cpp b/dbms/DataTypes/DataTypeCustomSimpleAggregateFunction.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeCustomSimpleAggregateFunction.cpp rename to dbms/DataTypes/DataTypeCustomSimpleAggregateFunction.cpp diff --git a/dbms/src/DataTypes/DataTypeCustomSimpleAggregateFunction.h b/dbms/DataTypes/DataTypeCustomSimpleAggregateFunction.h similarity index 100% rename from dbms/src/DataTypes/DataTypeCustomSimpleAggregateFunction.h rename to dbms/DataTypes/DataTypeCustomSimpleAggregateFunction.h diff --git a/dbms/src/DataTypes/DataTypeCustomSimpleTextSerialization.cpp b/dbms/DataTypes/DataTypeCustomSimpleTextSerialization.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeCustomSimpleTextSerialization.cpp rename to dbms/DataTypes/DataTypeCustomSimpleTextSerialization.cpp diff --git a/dbms/src/DataTypes/DataTypeCustomSimpleTextSerialization.h b/dbms/DataTypes/DataTypeCustomSimpleTextSerialization.h similarity index 100% rename from dbms/src/DataTypes/DataTypeCustomSimpleTextSerialization.h rename to dbms/DataTypes/DataTypeCustomSimpleTextSerialization.h diff --git a/dbms/src/DataTypes/DataTypeDate.cpp b/dbms/DataTypes/DataTypeDate.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeDate.cpp rename to dbms/DataTypes/DataTypeDate.cpp diff --git a/dbms/src/DataTypes/DataTypeDate.h b/dbms/DataTypes/DataTypeDate.h similarity index 100% rename from dbms/src/DataTypes/DataTypeDate.h rename to dbms/DataTypes/DataTypeDate.h diff --git a/dbms/src/DataTypes/DataTypeDateTime.cpp b/dbms/DataTypes/DataTypeDateTime.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeDateTime.cpp rename to dbms/DataTypes/DataTypeDateTime.cpp diff --git a/dbms/src/DataTypes/DataTypeDateTime.h b/dbms/DataTypes/DataTypeDateTime.h similarity index 100% rename from dbms/src/DataTypes/DataTypeDateTime.h rename to dbms/DataTypes/DataTypeDateTime.h diff --git a/dbms/src/DataTypes/DataTypeDateTime64.cpp b/dbms/DataTypes/DataTypeDateTime64.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeDateTime64.cpp rename to dbms/DataTypes/DataTypeDateTime64.cpp diff --git a/dbms/src/DataTypes/DataTypeDateTime64.h b/dbms/DataTypes/DataTypeDateTime64.h similarity index 100% rename from dbms/src/DataTypes/DataTypeDateTime64.h rename to dbms/DataTypes/DataTypeDateTime64.h diff --git a/dbms/src/DataTypes/DataTypeDecimalBase.cpp b/dbms/DataTypes/DataTypeDecimalBase.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeDecimalBase.cpp rename to dbms/DataTypes/DataTypeDecimalBase.cpp diff --git a/dbms/src/DataTypes/DataTypeDecimalBase.h b/dbms/DataTypes/DataTypeDecimalBase.h similarity index 100% rename from dbms/src/DataTypes/DataTypeDecimalBase.h rename to dbms/DataTypes/DataTypeDecimalBase.h diff --git a/dbms/src/DataTypes/DataTypeEnum.cpp b/dbms/DataTypes/DataTypeEnum.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeEnum.cpp rename to dbms/DataTypes/DataTypeEnum.cpp diff --git a/dbms/src/DataTypes/DataTypeEnum.h b/dbms/DataTypes/DataTypeEnum.h similarity index 100% rename from dbms/src/DataTypes/DataTypeEnum.h rename to dbms/DataTypes/DataTypeEnum.h diff --git a/dbms/src/DataTypes/DataTypeFactory.cpp b/dbms/DataTypes/DataTypeFactory.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeFactory.cpp rename to dbms/DataTypes/DataTypeFactory.cpp diff --git a/dbms/src/DataTypes/DataTypeFactory.h b/dbms/DataTypes/DataTypeFactory.h similarity index 100% rename from dbms/src/DataTypes/DataTypeFactory.h rename to dbms/DataTypes/DataTypeFactory.h diff --git a/dbms/src/DataTypes/DataTypeFixedString.cpp b/dbms/DataTypes/DataTypeFixedString.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeFixedString.cpp rename to dbms/DataTypes/DataTypeFixedString.cpp diff --git a/dbms/src/DataTypes/DataTypeFixedString.h b/dbms/DataTypes/DataTypeFixedString.h similarity index 100% rename from dbms/src/DataTypes/DataTypeFixedString.h rename to dbms/DataTypes/DataTypeFixedString.h diff --git a/dbms/src/DataTypes/DataTypeFunction.cpp b/dbms/DataTypes/DataTypeFunction.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeFunction.cpp rename to dbms/DataTypes/DataTypeFunction.cpp diff --git a/dbms/src/DataTypes/DataTypeFunction.h b/dbms/DataTypes/DataTypeFunction.h similarity index 100% rename from dbms/src/DataTypes/DataTypeFunction.h rename to dbms/DataTypes/DataTypeFunction.h diff --git a/dbms/src/DataTypes/DataTypeInterval.cpp b/dbms/DataTypes/DataTypeInterval.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeInterval.cpp rename to dbms/DataTypes/DataTypeInterval.cpp diff --git a/dbms/src/DataTypes/DataTypeInterval.h b/dbms/DataTypes/DataTypeInterval.h similarity index 100% rename from dbms/src/DataTypes/DataTypeInterval.h rename to dbms/DataTypes/DataTypeInterval.h diff --git a/dbms/src/DataTypes/DataTypeLowCardinality.cpp b/dbms/DataTypes/DataTypeLowCardinality.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeLowCardinality.cpp rename to dbms/DataTypes/DataTypeLowCardinality.cpp diff --git a/dbms/src/DataTypes/DataTypeLowCardinality.h b/dbms/DataTypes/DataTypeLowCardinality.h similarity index 100% rename from dbms/src/DataTypes/DataTypeLowCardinality.h rename to dbms/DataTypes/DataTypeLowCardinality.h diff --git a/dbms/src/DataTypes/DataTypeLowCardinalityHelpers.cpp b/dbms/DataTypes/DataTypeLowCardinalityHelpers.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeLowCardinalityHelpers.cpp rename to dbms/DataTypes/DataTypeLowCardinalityHelpers.cpp diff --git a/dbms/src/DataTypes/DataTypeNothing.cpp b/dbms/DataTypes/DataTypeNothing.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeNothing.cpp rename to dbms/DataTypes/DataTypeNothing.cpp diff --git a/dbms/src/DataTypes/DataTypeNothing.h b/dbms/DataTypes/DataTypeNothing.h similarity index 100% rename from dbms/src/DataTypes/DataTypeNothing.h rename to dbms/DataTypes/DataTypeNothing.h diff --git a/dbms/src/DataTypes/DataTypeNullable.cpp b/dbms/DataTypes/DataTypeNullable.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeNullable.cpp rename to dbms/DataTypes/DataTypeNullable.cpp diff --git a/dbms/src/DataTypes/DataTypeNullable.h b/dbms/DataTypes/DataTypeNullable.h similarity index 100% rename from dbms/src/DataTypes/DataTypeNullable.h rename to dbms/DataTypes/DataTypeNullable.h diff --git a/dbms/src/DataTypes/DataTypeNumberBase.cpp b/dbms/DataTypes/DataTypeNumberBase.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeNumberBase.cpp rename to dbms/DataTypes/DataTypeNumberBase.cpp diff --git a/dbms/src/DataTypes/DataTypeNumberBase.h b/dbms/DataTypes/DataTypeNumberBase.h similarity index 100% rename from dbms/src/DataTypes/DataTypeNumberBase.h rename to dbms/DataTypes/DataTypeNumberBase.h diff --git a/dbms/src/DataTypes/DataTypeSet.h b/dbms/DataTypes/DataTypeSet.h similarity index 100% rename from dbms/src/DataTypes/DataTypeSet.h rename to dbms/DataTypes/DataTypeSet.h diff --git a/dbms/src/DataTypes/DataTypeString.cpp b/dbms/DataTypes/DataTypeString.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeString.cpp rename to dbms/DataTypes/DataTypeString.cpp diff --git a/dbms/src/DataTypes/DataTypeString.h b/dbms/DataTypes/DataTypeString.h similarity index 100% rename from dbms/src/DataTypes/DataTypeString.h rename to dbms/DataTypes/DataTypeString.h diff --git a/dbms/src/DataTypes/DataTypeTuple.cpp b/dbms/DataTypes/DataTypeTuple.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeTuple.cpp rename to dbms/DataTypes/DataTypeTuple.cpp diff --git a/dbms/src/DataTypes/DataTypeTuple.h b/dbms/DataTypes/DataTypeTuple.h similarity index 100% rename from dbms/src/DataTypes/DataTypeTuple.h rename to dbms/DataTypes/DataTypeTuple.h diff --git a/dbms/src/DataTypes/DataTypeUUID.cpp b/dbms/DataTypes/DataTypeUUID.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypeUUID.cpp rename to dbms/DataTypes/DataTypeUUID.cpp diff --git a/dbms/src/DataTypes/DataTypeUUID.h b/dbms/DataTypes/DataTypeUUID.h similarity index 100% rename from dbms/src/DataTypes/DataTypeUUID.h rename to dbms/DataTypes/DataTypeUUID.h diff --git a/dbms/src/DataTypes/DataTypeWithSimpleSerialization.h b/dbms/DataTypes/DataTypeWithSimpleSerialization.h similarity index 100% rename from dbms/src/DataTypes/DataTypeWithSimpleSerialization.h rename to dbms/DataTypes/DataTypeWithSimpleSerialization.h diff --git a/dbms/src/DataTypes/DataTypesDecimal.cpp b/dbms/DataTypes/DataTypesDecimal.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypesDecimal.cpp rename to dbms/DataTypes/DataTypesDecimal.cpp diff --git a/dbms/src/DataTypes/DataTypesDecimal.h b/dbms/DataTypes/DataTypesDecimal.h similarity index 100% rename from dbms/src/DataTypes/DataTypesDecimal.h rename to dbms/DataTypes/DataTypesDecimal.h diff --git a/dbms/src/DataTypes/DataTypesNumber.cpp b/dbms/DataTypes/DataTypesNumber.cpp similarity index 100% rename from dbms/src/DataTypes/DataTypesNumber.cpp rename to dbms/DataTypes/DataTypesNumber.cpp diff --git a/dbms/src/DataTypes/DataTypesNumber.h b/dbms/DataTypes/DataTypesNumber.h similarity index 100% rename from dbms/src/DataTypes/DataTypesNumber.h rename to dbms/DataTypes/DataTypesNumber.h diff --git a/dbms/src/DataTypes/FieldToDataType.cpp b/dbms/DataTypes/FieldToDataType.cpp similarity index 100% rename from dbms/src/DataTypes/FieldToDataType.cpp rename to dbms/DataTypes/FieldToDataType.cpp diff --git a/dbms/src/DataTypes/FieldToDataType.h b/dbms/DataTypes/FieldToDataType.h similarity index 100% rename from dbms/src/DataTypes/FieldToDataType.h rename to dbms/DataTypes/FieldToDataType.h diff --git a/dbms/src/DataTypes/IDataType.cpp b/dbms/DataTypes/IDataType.cpp similarity index 100% rename from dbms/src/DataTypes/IDataType.cpp rename to dbms/DataTypes/IDataType.cpp diff --git a/dbms/src/DataTypes/IDataType.h b/dbms/DataTypes/IDataType.h similarity index 100% rename from dbms/src/DataTypes/IDataType.h rename to dbms/DataTypes/IDataType.h diff --git a/dbms/src/DataTypes/IDataTypeDummy.h b/dbms/DataTypes/IDataTypeDummy.h similarity index 100% rename from dbms/src/DataTypes/IDataTypeDummy.h rename to dbms/DataTypes/IDataTypeDummy.h diff --git a/dbms/src/DataTypes/Native.h b/dbms/DataTypes/Native.h similarity index 100% rename from dbms/src/DataTypes/Native.h rename to dbms/DataTypes/Native.h diff --git a/dbms/src/DataTypes/NestedUtils.cpp b/dbms/DataTypes/NestedUtils.cpp similarity index 100% rename from dbms/src/DataTypes/NestedUtils.cpp rename to dbms/DataTypes/NestedUtils.cpp diff --git a/dbms/src/DataTypes/NestedUtils.h b/dbms/DataTypes/NestedUtils.h similarity index 100% rename from dbms/src/DataTypes/NestedUtils.h rename to dbms/DataTypes/NestedUtils.h diff --git a/dbms/src/DataTypes/NumberTraits.h b/dbms/DataTypes/NumberTraits.h similarity index 100% rename from dbms/src/DataTypes/NumberTraits.h rename to dbms/DataTypes/NumberTraits.h diff --git a/dbms/src/DataTypes/convertMySQLDataType.cpp b/dbms/DataTypes/convertMySQLDataType.cpp similarity index 100% rename from dbms/src/DataTypes/convertMySQLDataType.cpp rename to dbms/DataTypes/convertMySQLDataType.cpp diff --git a/dbms/src/DataTypes/convertMySQLDataType.h b/dbms/DataTypes/convertMySQLDataType.h similarity index 100% rename from dbms/src/DataTypes/convertMySQLDataType.h rename to dbms/DataTypes/convertMySQLDataType.h diff --git a/dbms/src/DataTypes/getLeastSupertype.cpp b/dbms/DataTypes/getLeastSupertype.cpp similarity index 100% rename from dbms/src/DataTypes/getLeastSupertype.cpp rename to dbms/DataTypes/getLeastSupertype.cpp diff --git a/dbms/src/DataTypes/getLeastSupertype.h b/dbms/DataTypes/getLeastSupertype.h similarity index 100% rename from dbms/src/DataTypes/getLeastSupertype.h rename to dbms/DataTypes/getLeastSupertype.h diff --git a/dbms/src/DataTypes/getMostSubtype.cpp b/dbms/DataTypes/getMostSubtype.cpp similarity index 100% rename from dbms/src/DataTypes/getMostSubtype.cpp rename to dbms/DataTypes/getMostSubtype.cpp diff --git a/dbms/src/DataTypes/getMostSubtype.h b/dbms/DataTypes/getMostSubtype.h similarity index 100% rename from dbms/src/DataTypes/getMostSubtype.h rename to dbms/DataTypes/getMostSubtype.h diff --git a/dbms/src/DataTypes/tests/CMakeLists.txt b/dbms/DataTypes/tests/CMakeLists.txt similarity index 100% rename from dbms/src/DataTypes/tests/CMakeLists.txt rename to dbms/DataTypes/tests/CMakeLists.txt diff --git a/dbms/src/DataTypes/tests/data_type_string.cpp b/dbms/DataTypes/tests/data_type_string.cpp similarity index 100% rename from dbms/src/DataTypes/tests/data_type_string.cpp rename to dbms/DataTypes/tests/data_type_string.cpp diff --git a/dbms/src/DataTypes/tests/data_types_number_fixed.cpp b/dbms/DataTypes/tests/data_types_number_fixed.cpp similarity index 100% rename from dbms/src/DataTypes/tests/data_types_number_fixed.cpp rename to dbms/DataTypes/tests/data_types_number_fixed.cpp diff --git a/dbms/src/DataTypes/tests/gtest_data_type_get_common_type.cpp b/dbms/DataTypes/tests/gtest_data_type_get_common_type.cpp similarity index 100% rename from dbms/src/DataTypes/tests/gtest_data_type_get_common_type.cpp rename to dbms/DataTypes/tests/gtest_data_type_get_common_type.cpp diff --git a/dbms/src/Databases/DatabaseDictionary.cpp b/dbms/Databases/DatabaseDictionary.cpp similarity index 100% rename from dbms/src/Databases/DatabaseDictionary.cpp rename to dbms/Databases/DatabaseDictionary.cpp diff --git a/dbms/src/Databases/DatabaseDictionary.h b/dbms/Databases/DatabaseDictionary.h similarity index 100% rename from dbms/src/Databases/DatabaseDictionary.h rename to dbms/Databases/DatabaseDictionary.h diff --git a/dbms/src/Databases/DatabaseFactory.cpp b/dbms/Databases/DatabaseFactory.cpp similarity index 100% rename from dbms/src/Databases/DatabaseFactory.cpp rename to dbms/Databases/DatabaseFactory.cpp diff --git a/dbms/src/Databases/DatabaseFactory.h b/dbms/Databases/DatabaseFactory.h similarity index 100% rename from dbms/src/Databases/DatabaseFactory.h rename to dbms/Databases/DatabaseFactory.h diff --git a/dbms/src/Databases/DatabaseLazy.cpp b/dbms/Databases/DatabaseLazy.cpp similarity index 100% rename from dbms/src/Databases/DatabaseLazy.cpp rename to dbms/Databases/DatabaseLazy.cpp diff --git a/dbms/src/Databases/DatabaseLazy.h b/dbms/Databases/DatabaseLazy.h similarity index 100% rename from dbms/src/Databases/DatabaseLazy.h rename to dbms/Databases/DatabaseLazy.h diff --git a/dbms/src/Databases/DatabaseMemory.cpp b/dbms/Databases/DatabaseMemory.cpp similarity index 100% rename from dbms/src/Databases/DatabaseMemory.cpp rename to dbms/Databases/DatabaseMemory.cpp diff --git a/dbms/src/Databases/DatabaseMemory.h b/dbms/Databases/DatabaseMemory.h similarity index 100% rename from dbms/src/Databases/DatabaseMemory.h rename to dbms/Databases/DatabaseMemory.h diff --git a/dbms/src/Databases/DatabaseMySQL.cpp b/dbms/Databases/DatabaseMySQL.cpp similarity index 100% rename from dbms/src/Databases/DatabaseMySQL.cpp rename to dbms/Databases/DatabaseMySQL.cpp diff --git a/dbms/src/Databases/DatabaseMySQL.h b/dbms/Databases/DatabaseMySQL.h similarity index 100% rename from dbms/src/Databases/DatabaseMySQL.h rename to dbms/Databases/DatabaseMySQL.h diff --git a/dbms/src/Databases/DatabaseOnDisk.cpp b/dbms/Databases/DatabaseOnDisk.cpp similarity index 100% rename from dbms/src/Databases/DatabaseOnDisk.cpp rename to dbms/Databases/DatabaseOnDisk.cpp diff --git a/dbms/src/Databases/DatabaseOnDisk.h b/dbms/Databases/DatabaseOnDisk.h similarity index 100% rename from dbms/src/Databases/DatabaseOnDisk.h rename to dbms/Databases/DatabaseOnDisk.h diff --git a/dbms/src/Databases/DatabaseOrdinary.cpp b/dbms/Databases/DatabaseOrdinary.cpp similarity index 100% rename from dbms/src/Databases/DatabaseOrdinary.cpp rename to dbms/Databases/DatabaseOrdinary.cpp diff --git a/dbms/src/Databases/DatabaseOrdinary.h b/dbms/Databases/DatabaseOrdinary.h similarity index 100% rename from dbms/src/Databases/DatabaseOrdinary.h rename to dbms/Databases/DatabaseOrdinary.h diff --git a/dbms/src/Databases/DatabaseWithDictionaries.cpp b/dbms/Databases/DatabaseWithDictionaries.cpp similarity index 100% rename from dbms/src/Databases/DatabaseWithDictionaries.cpp rename to dbms/Databases/DatabaseWithDictionaries.cpp diff --git a/dbms/src/Databases/DatabaseWithDictionaries.h b/dbms/Databases/DatabaseWithDictionaries.h similarity index 100% rename from dbms/src/Databases/DatabaseWithDictionaries.h rename to dbms/Databases/DatabaseWithDictionaries.h diff --git a/dbms/src/Databases/DatabasesCommon.cpp b/dbms/Databases/DatabasesCommon.cpp similarity index 100% rename from dbms/src/Databases/DatabasesCommon.cpp rename to dbms/Databases/DatabasesCommon.cpp diff --git a/dbms/src/Databases/DatabasesCommon.h b/dbms/Databases/DatabasesCommon.h similarity index 100% rename from dbms/src/Databases/DatabasesCommon.h rename to dbms/Databases/DatabasesCommon.h diff --git a/dbms/src/Databases/IDatabase.h b/dbms/Databases/IDatabase.h similarity index 100% rename from dbms/src/Databases/IDatabase.h rename to dbms/Databases/IDatabase.h diff --git a/dbms/src/Dictionaries/CMakeLists.txt b/dbms/Dictionaries/CMakeLists.txt similarity index 100% rename from dbms/src/Dictionaries/CMakeLists.txt rename to dbms/Dictionaries/CMakeLists.txt diff --git a/dbms/src/Dictionaries/CacheDictionary.cpp b/dbms/Dictionaries/CacheDictionary.cpp similarity index 100% rename from dbms/src/Dictionaries/CacheDictionary.cpp rename to dbms/Dictionaries/CacheDictionary.cpp diff --git a/dbms/src/Dictionaries/CacheDictionary.h b/dbms/Dictionaries/CacheDictionary.h similarity index 100% rename from dbms/src/Dictionaries/CacheDictionary.h rename to dbms/Dictionaries/CacheDictionary.h diff --git a/dbms/src/Dictionaries/CacheDictionary.inc.h b/dbms/Dictionaries/CacheDictionary.inc.h similarity index 100% rename from dbms/src/Dictionaries/CacheDictionary.inc.h rename to dbms/Dictionaries/CacheDictionary.inc.h diff --git a/dbms/src/Dictionaries/CacheDictionary_generate1.cpp.in b/dbms/Dictionaries/CacheDictionary_generate1.cpp.in similarity index 100% rename from dbms/src/Dictionaries/CacheDictionary_generate1.cpp.in rename to dbms/Dictionaries/CacheDictionary_generate1.cpp.in diff --git a/dbms/src/Dictionaries/CacheDictionary_generate2.cpp.in b/dbms/Dictionaries/CacheDictionary_generate2.cpp.in similarity index 100% rename from dbms/src/Dictionaries/CacheDictionary_generate2.cpp.in rename to dbms/Dictionaries/CacheDictionary_generate2.cpp.in diff --git a/dbms/src/Dictionaries/CacheDictionary_generate3.cpp.in b/dbms/Dictionaries/CacheDictionary_generate3.cpp.in similarity index 100% rename from dbms/src/Dictionaries/CacheDictionary_generate3.cpp.in rename to dbms/Dictionaries/CacheDictionary_generate3.cpp.in diff --git a/dbms/src/Dictionaries/ClickHouseDictionarySource.cpp b/dbms/Dictionaries/ClickHouseDictionarySource.cpp similarity index 100% rename from dbms/src/Dictionaries/ClickHouseDictionarySource.cpp rename to dbms/Dictionaries/ClickHouseDictionarySource.cpp diff --git a/dbms/src/Dictionaries/ClickHouseDictionarySource.h b/dbms/Dictionaries/ClickHouseDictionarySource.h similarity index 100% rename from dbms/src/Dictionaries/ClickHouseDictionarySource.h rename to dbms/Dictionaries/ClickHouseDictionarySource.h diff --git a/dbms/src/Dictionaries/ComplexKeyCacheDictionary.cpp b/dbms/Dictionaries/ComplexKeyCacheDictionary.cpp similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyCacheDictionary.cpp rename to dbms/Dictionaries/ComplexKeyCacheDictionary.cpp diff --git a/dbms/src/Dictionaries/ComplexKeyCacheDictionary.h b/dbms/Dictionaries/ComplexKeyCacheDictionary.h similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyCacheDictionary.h rename to dbms/Dictionaries/ComplexKeyCacheDictionary.h diff --git a/dbms/src/Dictionaries/ComplexKeyCacheDictionary_createAttributeWithType.cpp b/dbms/Dictionaries/ComplexKeyCacheDictionary_createAttributeWithType.cpp similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyCacheDictionary_createAttributeWithType.cpp rename to dbms/Dictionaries/ComplexKeyCacheDictionary_createAttributeWithType.cpp diff --git a/dbms/src/Dictionaries/ComplexKeyCacheDictionary_generate1.cpp.in b/dbms/Dictionaries/ComplexKeyCacheDictionary_generate1.cpp.in similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyCacheDictionary_generate1.cpp.in rename to dbms/Dictionaries/ComplexKeyCacheDictionary_generate1.cpp.in diff --git a/dbms/src/Dictionaries/ComplexKeyCacheDictionary_generate2.cpp.in b/dbms/Dictionaries/ComplexKeyCacheDictionary_generate2.cpp.in similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyCacheDictionary_generate2.cpp.in rename to dbms/Dictionaries/ComplexKeyCacheDictionary_generate2.cpp.in diff --git a/dbms/src/Dictionaries/ComplexKeyCacheDictionary_generate3.cpp.in b/dbms/Dictionaries/ComplexKeyCacheDictionary_generate3.cpp.in similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyCacheDictionary_generate3.cpp.in rename to dbms/Dictionaries/ComplexKeyCacheDictionary_generate3.cpp.in diff --git a/dbms/src/Dictionaries/ComplexKeyCacheDictionary_setAttributeValue.cpp b/dbms/Dictionaries/ComplexKeyCacheDictionary_setAttributeValue.cpp similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyCacheDictionary_setAttributeValue.cpp rename to dbms/Dictionaries/ComplexKeyCacheDictionary_setAttributeValue.cpp diff --git a/dbms/src/Dictionaries/ComplexKeyCacheDictionary_setDefaultAttributeValue.cpp b/dbms/Dictionaries/ComplexKeyCacheDictionary_setDefaultAttributeValue.cpp similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyCacheDictionary_setDefaultAttributeValue.cpp rename to dbms/Dictionaries/ComplexKeyCacheDictionary_setDefaultAttributeValue.cpp diff --git a/dbms/src/Dictionaries/ComplexKeyHashedDictionary.cpp b/dbms/Dictionaries/ComplexKeyHashedDictionary.cpp similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyHashedDictionary.cpp rename to dbms/Dictionaries/ComplexKeyHashedDictionary.cpp diff --git a/dbms/src/Dictionaries/ComplexKeyHashedDictionary.h b/dbms/Dictionaries/ComplexKeyHashedDictionary.h similarity index 100% rename from dbms/src/Dictionaries/ComplexKeyHashedDictionary.h rename to dbms/Dictionaries/ComplexKeyHashedDictionary.h diff --git a/dbms/src/Dictionaries/DictionaryBlockInputStream.h b/dbms/Dictionaries/DictionaryBlockInputStream.h similarity index 100% rename from dbms/src/Dictionaries/DictionaryBlockInputStream.h rename to dbms/Dictionaries/DictionaryBlockInputStream.h diff --git a/dbms/src/Dictionaries/DictionaryBlockInputStreamBase.cpp b/dbms/Dictionaries/DictionaryBlockInputStreamBase.cpp similarity index 100% rename from dbms/src/Dictionaries/DictionaryBlockInputStreamBase.cpp rename to dbms/Dictionaries/DictionaryBlockInputStreamBase.cpp diff --git a/dbms/src/Dictionaries/DictionaryBlockInputStreamBase.h b/dbms/Dictionaries/DictionaryBlockInputStreamBase.h similarity index 100% rename from dbms/src/Dictionaries/DictionaryBlockInputStreamBase.h rename to dbms/Dictionaries/DictionaryBlockInputStreamBase.h diff --git a/dbms/src/Dictionaries/DictionaryFactory.cpp b/dbms/Dictionaries/DictionaryFactory.cpp similarity index 100% rename from dbms/src/Dictionaries/DictionaryFactory.cpp rename to dbms/Dictionaries/DictionaryFactory.cpp diff --git a/dbms/src/Dictionaries/DictionaryFactory.h b/dbms/Dictionaries/DictionaryFactory.h similarity index 100% rename from dbms/src/Dictionaries/DictionaryFactory.h rename to dbms/Dictionaries/DictionaryFactory.h diff --git a/dbms/src/Dictionaries/DictionarySourceFactory.cpp b/dbms/Dictionaries/DictionarySourceFactory.cpp similarity index 100% rename from dbms/src/Dictionaries/DictionarySourceFactory.cpp rename to dbms/Dictionaries/DictionarySourceFactory.cpp diff --git a/dbms/src/Dictionaries/DictionarySourceFactory.h b/dbms/Dictionaries/DictionarySourceFactory.h similarity index 100% rename from dbms/src/Dictionaries/DictionarySourceFactory.h rename to dbms/Dictionaries/DictionarySourceFactory.h diff --git a/dbms/src/Dictionaries/DictionarySourceHelpers.cpp b/dbms/Dictionaries/DictionarySourceHelpers.cpp similarity index 100% rename from dbms/src/Dictionaries/DictionarySourceHelpers.cpp rename to dbms/Dictionaries/DictionarySourceHelpers.cpp diff --git a/dbms/src/Dictionaries/DictionarySourceHelpers.h b/dbms/Dictionaries/DictionarySourceHelpers.h similarity index 100% rename from dbms/src/Dictionaries/DictionarySourceHelpers.h rename to dbms/Dictionaries/DictionarySourceHelpers.h diff --git a/dbms/src/Dictionaries/DictionaryStructure.cpp b/dbms/Dictionaries/DictionaryStructure.cpp similarity index 100% rename from dbms/src/Dictionaries/DictionaryStructure.cpp rename to dbms/Dictionaries/DictionaryStructure.cpp diff --git a/dbms/src/Dictionaries/DictionaryStructure.h b/dbms/Dictionaries/DictionaryStructure.h similarity index 100% rename from dbms/src/Dictionaries/DictionaryStructure.h rename to dbms/Dictionaries/DictionaryStructure.h diff --git a/dbms/src/Dictionaries/Embedded/CMakeLists.txt b/dbms/Dictionaries/Embedded/CMakeLists.txt similarity index 100% rename from dbms/src/Dictionaries/Embedded/CMakeLists.txt rename to dbms/Dictionaries/Embedded/CMakeLists.txt diff --git a/dbms/src/Dictionaries/Embedded/GeoDictionariesLoader.cpp b/dbms/Dictionaries/Embedded/GeoDictionariesLoader.cpp similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeoDictionariesLoader.cpp rename to dbms/Dictionaries/Embedded/GeoDictionariesLoader.cpp diff --git a/dbms/src/Dictionaries/Embedded/GeoDictionariesLoader.h b/dbms/Dictionaries/Embedded/GeoDictionariesLoader.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeoDictionariesLoader.h rename to dbms/Dictionaries/Embedded/GeoDictionariesLoader.h diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/Entries.h b/dbms/Dictionaries/Embedded/GeodataProviders/Entries.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/Entries.h rename to dbms/Dictionaries/Embedded/GeodataProviders/Entries.h diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/HierarchiesProvider.cpp b/dbms/Dictionaries/Embedded/GeodataProviders/HierarchiesProvider.cpp similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/HierarchiesProvider.cpp rename to dbms/Dictionaries/Embedded/GeodataProviders/HierarchiesProvider.cpp diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/HierarchiesProvider.h b/dbms/Dictionaries/Embedded/GeodataProviders/HierarchiesProvider.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/HierarchiesProvider.h rename to dbms/Dictionaries/Embedded/GeodataProviders/HierarchiesProvider.h diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/HierarchyFormatReader.cpp b/dbms/Dictionaries/Embedded/GeodataProviders/HierarchyFormatReader.cpp similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/HierarchyFormatReader.cpp rename to dbms/Dictionaries/Embedded/GeodataProviders/HierarchyFormatReader.cpp diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/HierarchyFormatReader.h b/dbms/Dictionaries/Embedded/GeodataProviders/HierarchyFormatReader.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/HierarchyFormatReader.h rename to dbms/Dictionaries/Embedded/GeodataProviders/HierarchyFormatReader.h diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/IHierarchiesProvider.h b/dbms/Dictionaries/Embedded/GeodataProviders/IHierarchiesProvider.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/IHierarchiesProvider.h rename to dbms/Dictionaries/Embedded/GeodataProviders/IHierarchiesProvider.h diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/INamesProvider.h b/dbms/Dictionaries/Embedded/GeodataProviders/INamesProvider.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/INamesProvider.h rename to dbms/Dictionaries/Embedded/GeodataProviders/INamesProvider.h diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/NamesFormatReader.cpp b/dbms/Dictionaries/Embedded/GeodataProviders/NamesFormatReader.cpp similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/NamesFormatReader.cpp rename to dbms/Dictionaries/Embedded/GeodataProviders/NamesFormatReader.cpp diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/NamesFormatReader.h b/dbms/Dictionaries/Embedded/GeodataProviders/NamesFormatReader.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/NamesFormatReader.h rename to dbms/Dictionaries/Embedded/GeodataProviders/NamesFormatReader.h diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/NamesProvider.cpp b/dbms/Dictionaries/Embedded/GeodataProviders/NamesProvider.cpp similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/NamesProvider.cpp rename to dbms/Dictionaries/Embedded/GeodataProviders/NamesProvider.cpp diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/NamesProvider.h b/dbms/Dictionaries/Embedded/GeodataProviders/NamesProvider.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/NamesProvider.h rename to dbms/Dictionaries/Embedded/GeodataProviders/NamesProvider.h diff --git a/dbms/src/Dictionaries/Embedded/GeodataProviders/Types.h b/dbms/Dictionaries/Embedded/GeodataProviders/Types.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/GeodataProviders/Types.h rename to dbms/Dictionaries/Embedded/GeodataProviders/Types.h diff --git a/dbms/src/Dictionaries/Embedded/RegionsHierarchies.cpp b/dbms/Dictionaries/Embedded/RegionsHierarchies.cpp similarity index 100% rename from dbms/src/Dictionaries/Embedded/RegionsHierarchies.cpp rename to dbms/Dictionaries/Embedded/RegionsHierarchies.cpp diff --git a/dbms/src/Dictionaries/Embedded/RegionsHierarchies.h b/dbms/Dictionaries/Embedded/RegionsHierarchies.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/RegionsHierarchies.h rename to dbms/Dictionaries/Embedded/RegionsHierarchies.h diff --git a/dbms/src/Dictionaries/Embedded/RegionsHierarchy.cpp b/dbms/Dictionaries/Embedded/RegionsHierarchy.cpp similarity index 100% rename from dbms/src/Dictionaries/Embedded/RegionsHierarchy.cpp rename to dbms/Dictionaries/Embedded/RegionsHierarchy.cpp diff --git a/dbms/src/Dictionaries/Embedded/RegionsHierarchy.h b/dbms/Dictionaries/Embedded/RegionsHierarchy.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/RegionsHierarchy.h rename to dbms/Dictionaries/Embedded/RegionsHierarchy.h diff --git a/dbms/src/Dictionaries/Embedded/RegionsNames.cpp b/dbms/Dictionaries/Embedded/RegionsNames.cpp similarity index 100% rename from dbms/src/Dictionaries/Embedded/RegionsNames.cpp rename to dbms/Dictionaries/Embedded/RegionsNames.cpp diff --git a/dbms/src/Dictionaries/Embedded/RegionsNames.h b/dbms/Dictionaries/Embedded/RegionsNames.h similarity index 100% rename from dbms/src/Dictionaries/Embedded/RegionsNames.h rename to dbms/Dictionaries/Embedded/RegionsNames.h diff --git a/dbms/src/Dictionaries/ExecutableDictionarySource.cpp b/dbms/Dictionaries/ExecutableDictionarySource.cpp similarity index 100% rename from dbms/src/Dictionaries/ExecutableDictionarySource.cpp rename to dbms/Dictionaries/ExecutableDictionarySource.cpp diff --git a/dbms/src/Dictionaries/ExecutableDictionarySource.h b/dbms/Dictionaries/ExecutableDictionarySource.h similarity index 100% rename from dbms/src/Dictionaries/ExecutableDictionarySource.h rename to dbms/Dictionaries/ExecutableDictionarySource.h diff --git a/dbms/src/Dictionaries/ExternalQueryBuilder.cpp b/dbms/Dictionaries/ExternalQueryBuilder.cpp similarity index 100% rename from dbms/src/Dictionaries/ExternalQueryBuilder.cpp rename to dbms/Dictionaries/ExternalQueryBuilder.cpp diff --git a/dbms/src/Dictionaries/ExternalQueryBuilder.h b/dbms/Dictionaries/ExternalQueryBuilder.h similarity index 100% rename from dbms/src/Dictionaries/ExternalQueryBuilder.h rename to dbms/Dictionaries/ExternalQueryBuilder.h diff --git a/dbms/src/Dictionaries/FileDictionarySource.cpp b/dbms/Dictionaries/FileDictionarySource.cpp similarity index 100% rename from dbms/src/Dictionaries/FileDictionarySource.cpp rename to dbms/Dictionaries/FileDictionarySource.cpp diff --git a/dbms/src/Dictionaries/FileDictionarySource.h b/dbms/Dictionaries/FileDictionarySource.h similarity index 100% rename from dbms/src/Dictionaries/FileDictionarySource.h rename to dbms/Dictionaries/FileDictionarySource.h diff --git a/dbms/src/Dictionaries/FlatDictionary.cpp b/dbms/Dictionaries/FlatDictionary.cpp similarity index 100% rename from dbms/src/Dictionaries/FlatDictionary.cpp rename to dbms/Dictionaries/FlatDictionary.cpp diff --git a/dbms/src/Dictionaries/FlatDictionary.h b/dbms/Dictionaries/FlatDictionary.h similarity index 100% rename from dbms/src/Dictionaries/FlatDictionary.h rename to dbms/Dictionaries/FlatDictionary.h diff --git a/dbms/src/Dictionaries/HTTPDictionarySource.cpp b/dbms/Dictionaries/HTTPDictionarySource.cpp similarity index 100% rename from dbms/src/Dictionaries/HTTPDictionarySource.cpp rename to dbms/Dictionaries/HTTPDictionarySource.cpp diff --git a/dbms/src/Dictionaries/HTTPDictionarySource.h b/dbms/Dictionaries/HTTPDictionarySource.h similarity index 100% rename from dbms/src/Dictionaries/HTTPDictionarySource.h rename to dbms/Dictionaries/HTTPDictionarySource.h diff --git a/dbms/src/Dictionaries/HashedDictionary.cpp b/dbms/Dictionaries/HashedDictionary.cpp similarity index 100% rename from dbms/src/Dictionaries/HashedDictionary.cpp rename to dbms/Dictionaries/HashedDictionary.cpp diff --git a/dbms/src/Dictionaries/HashedDictionary.h b/dbms/Dictionaries/HashedDictionary.h similarity index 100% rename from dbms/src/Dictionaries/HashedDictionary.h rename to dbms/Dictionaries/HashedDictionary.h diff --git a/dbms/src/Dictionaries/IDictionary.h b/dbms/Dictionaries/IDictionary.h similarity index 100% rename from dbms/src/Dictionaries/IDictionary.h rename to dbms/Dictionaries/IDictionary.h diff --git a/dbms/src/Dictionaries/IDictionarySource.h b/dbms/Dictionaries/IDictionarySource.h similarity index 100% rename from dbms/src/Dictionaries/IDictionarySource.h rename to dbms/Dictionaries/IDictionarySource.h diff --git a/dbms/src/Dictionaries/LibraryDictionarySource.cpp b/dbms/Dictionaries/LibraryDictionarySource.cpp similarity index 100% rename from dbms/src/Dictionaries/LibraryDictionarySource.cpp rename to dbms/Dictionaries/LibraryDictionarySource.cpp diff --git a/dbms/src/Dictionaries/LibraryDictionarySource.h b/dbms/Dictionaries/LibraryDictionarySource.h similarity index 95% rename from dbms/src/Dictionaries/LibraryDictionarySource.h rename to dbms/Dictionaries/LibraryDictionarySource.h index e42a7ba1dc8..4d73b3f97d4 100644 --- a/dbms/src/Dictionaries/LibraryDictionarySource.h +++ b/dbms/Dictionaries/LibraryDictionarySource.h @@ -28,7 +28,7 @@ class CStringsHolder; /// Allows loading dictionaries from dynamic libraries (.so) /// Experimental version -/// Example: dbms/tests/external_dictionaries/dictionary_library/dictionary_library.cpp +/// Example: tests/external_dictionaries/dictionary_library/dictionary_library.cpp class LibraryDictionarySource final : public IDictionarySource { public: diff --git a/dbms/src/Dictionaries/LibraryDictionarySourceExternal.cpp b/dbms/Dictionaries/LibraryDictionarySourceExternal.cpp similarity index 100% rename from dbms/src/Dictionaries/LibraryDictionarySourceExternal.cpp rename to dbms/Dictionaries/LibraryDictionarySourceExternal.cpp diff --git a/dbms/src/Dictionaries/LibraryDictionarySourceExternal.h b/dbms/Dictionaries/LibraryDictionarySourceExternal.h similarity index 100% rename from dbms/src/Dictionaries/LibraryDictionarySourceExternal.h rename to dbms/Dictionaries/LibraryDictionarySourceExternal.h diff --git a/dbms/src/Dictionaries/MongoDBBlockInputStream.cpp b/dbms/Dictionaries/MongoDBBlockInputStream.cpp similarity index 100% rename from dbms/src/Dictionaries/MongoDBBlockInputStream.cpp rename to dbms/Dictionaries/MongoDBBlockInputStream.cpp diff --git a/dbms/src/Dictionaries/MongoDBBlockInputStream.h b/dbms/Dictionaries/MongoDBBlockInputStream.h similarity index 100% rename from dbms/src/Dictionaries/MongoDBBlockInputStream.h rename to dbms/Dictionaries/MongoDBBlockInputStream.h diff --git a/dbms/src/Dictionaries/MongoDBDictionarySource.cpp b/dbms/Dictionaries/MongoDBDictionarySource.cpp similarity index 99% rename from dbms/src/Dictionaries/MongoDBDictionarySource.cpp rename to dbms/Dictionaries/MongoDBDictionarySource.cpp index 0484315aec0..ba219d3c0fa 100644 --- a/dbms/src/Dictionaries/MongoDBDictionarySource.cpp +++ b/dbms/Dictionaries/MongoDBDictionarySource.cpp @@ -48,7 +48,7 @@ void registerDictionarySourceMongoDB(DictionarySourceFactory & factory) // only after poco // naming conflict: // Poco/MongoDB/BSONWriter.h:54: void writeCString(const std::string & value); -// dbms/src/IO/WriteHelpers.h:146 #define writeCString(s, buf) +// dbms/IO/WriteHelpers.h:146 #define writeCString(s, buf) # include # include # include diff --git a/dbms/src/Dictionaries/MongoDBDictionarySource.h b/dbms/Dictionaries/MongoDBDictionarySource.h similarity index 100% rename from dbms/src/Dictionaries/MongoDBDictionarySource.h rename to dbms/Dictionaries/MongoDBDictionarySource.h diff --git a/dbms/src/Dictionaries/MySQLDictionarySource.cpp b/dbms/Dictionaries/MySQLDictionarySource.cpp similarity index 100% rename from dbms/src/Dictionaries/MySQLDictionarySource.cpp rename to dbms/Dictionaries/MySQLDictionarySource.cpp diff --git a/dbms/src/Dictionaries/MySQLDictionarySource.h b/dbms/Dictionaries/MySQLDictionarySource.h similarity index 100% rename from dbms/src/Dictionaries/MySQLDictionarySource.h rename to dbms/Dictionaries/MySQLDictionarySource.h diff --git a/dbms/src/Dictionaries/PolygonDictionary.cpp b/dbms/Dictionaries/PolygonDictionary.cpp similarity index 100% rename from dbms/src/Dictionaries/PolygonDictionary.cpp rename to dbms/Dictionaries/PolygonDictionary.cpp diff --git a/dbms/src/Dictionaries/PolygonDictionary.h b/dbms/Dictionaries/PolygonDictionary.h similarity index 100% rename from dbms/src/Dictionaries/PolygonDictionary.h rename to dbms/Dictionaries/PolygonDictionary.h diff --git a/dbms/src/Dictionaries/RangeDictionaryBlockInputStream.h b/dbms/Dictionaries/RangeDictionaryBlockInputStream.h similarity index 100% rename from dbms/src/Dictionaries/RangeDictionaryBlockInputStream.h rename to dbms/Dictionaries/RangeDictionaryBlockInputStream.h diff --git a/dbms/src/Dictionaries/RangeHashedDictionary.cpp b/dbms/Dictionaries/RangeHashedDictionary.cpp similarity index 100% rename from dbms/src/Dictionaries/RangeHashedDictionary.cpp rename to dbms/Dictionaries/RangeHashedDictionary.cpp diff --git a/dbms/src/Dictionaries/RangeHashedDictionary.h b/dbms/Dictionaries/RangeHashedDictionary.h similarity index 100% rename from dbms/src/Dictionaries/RangeHashedDictionary.h rename to dbms/Dictionaries/RangeHashedDictionary.h diff --git a/dbms/src/Dictionaries/RedisBlockInputStream.cpp b/dbms/Dictionaries/RedisBlockInputStream.cpp similarity index 100% rename from dbms/src/Dictionaries/RedisBlockInputStream.cpp rename to dbms/Dictionaries/RedisBlockInputStream.cpp diff --git a/dbms/src/Dictionaries/RedisBlockInputStream.h b/dbms/Dictionaries/RedisBlockInputStream.h similarity index 100% rename from dbms/src/Dictionaries/RedisBlockInputStream.h rename to dbms/Dictionaries/RedisBlockInputStream.h diff --git a/dbms/src/Dictionaries/RedisDictionarySource.cpp b/dbms/Dictionaries/RedisDictionarySource.cpp similarity index 100% rename from dbms/src/Dictionaries/RedisDictionarySource.cpp rename to dbms/Dictionaries/RedisDictionarySource.cpp diff --git a/dbms/src/Dictionaries/RedisDictionarySource.h b/dbms/Dictionaries/RedisDictionarySource.h similarity index 100% rename from dbms/src/Dictionaries/RedisDictionarySource.h rename to dbms/Dictionaries/RedisDictionarySource.h diff --git a/dbms/src/Dictionaries/TrieDictionary.cpp b/dbms/Dictionaries/TrieDictionary.cpp similarity index 100% rename from dbms/src/Dictionaries/TrieDictionary.cpp rename to dbms/Dictionaries/TrieDictionary.cpp diff --git a/dbms/src/Dictionaries/TrieDictionary.h b/dbms/Dictionaries/TrieDictionary.h similarity index 100% rename from dbms/src/Dictionaries/TrieDictionary.h rename to dbms/Dictionaries/TrieDictionary.h diff --git a/dbms/src/Dictionaries/XDBCDictionarySource.cpp b/dbms/Dictionaries/XDBCDictionarySource.cpp similarity index 100% rename from dbms/src/Dictionaries/XDBCDictionarySource.cpp rename to dbms/Dictionaries/XDBCDictionarySource.cpp diff --git a/dbms/src/Dictionaries/XDBCDictionarySource.h b/dbms/Dictionaries/XDBCDictionarySource.h similarity index 100% rename from dbms/src/Dictionaries/XDBCDictionarySource.h rename to dbms/Dictionaries/XDBCDictionarySource.h diff --git a/dbms/src/Dictionaries/getDictionaryConfigurationFromAST.cpp b/dbms/Dictionaries/getDictionaryConfigurationFromAST.cpp similarity index 100% rename from dbms/src/Dictionaries/getDictionaryConfigurationFromAST.cpp rename to dbms/Dictionaries/getDictionaryConfigurationFromAST.cpp diff --git a/dbms/src/Dictionaries/getDictionaryConfigurationFromAST.h b/dbms/Dictionaries/getDictionaryConfigurationFromAST.h similarity index 100% rename from dbms/src/Dictionaries/getDictionaryConfigurationFromAST.h rename to dbms/Dictionaries/getDictionaryConfigurationFromAST.h diff --git a/dbms/src/Dictionaries/readInvalidateQuery.cpp b/dbms/Dictionaries/readInvalidateQuery.cpp similarity index 100% rename from dbms/src/Dictionaries/readInvalidateQuery.cpp rename to dbms/Dictionaries/readInvalidateQuery.cpp diff --git a/dbms/src/Dictionaries/readInvalidateQuery.h b/dbms/Dictionaries/readInvalidateQuery.h similarity index 100% rename from dbms/src/Dictionaries/readInvalidateQuery.h rename to dbms/Dictionaries/readInvalidateQuery.h diff --git a/dbms/src/Dictionaries/registerDictionaries.cpp b/dbms/Dictionaries/registerDictionaries.cpp similarity index 100% rename from dbms/src/Dictionaries/registerDictionaries.cpp rename to dbms/Dictionaries/registerDictionaries.cpp diff --git a/dbms/src/Dictionaries/registerDictionaries.h b/dbms/Dictionaries/registerDictionaries.h similarity index 100% rename from dbms/src/Dictionaries/registerDictionaries.h rename to dbms/Dictionaries/registerDictionaries.h diff --git a/dbms/src/Dictionaries/tests/CMakeLists.txt b/dbms/Dictionaries/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Dictionaries/tests/CMakeLists.txt rename to dbms/Dictionaries/tests/CMakeLists.txt diff --git a/dbms/src/Dictionaries/tests/gtest_dictionary_configuration.cpp b/dbms/Dictionaries/tests/gtest_dictionary_configuration.cpp similarity index 100% rename from dbms/src/Dictionaries/tests/gtest_dictionary_configuration.cpp rename to dbms/Dictionaries/tests/gtest_dictionary_configuration.cpp diff --git a/dbms/src/Dictionaries/writeParenthesisedString.cpp b/dbms/Dictionaries/writeParenthesisedString.cpp similarity index 100% rename from dbms/src/Dictionaries/writeParenthesisedString.cpp rename to dbms/Dictionaries/writeParenthesisedString.cpp diff --git a/dbms/src/Dictionaries/writeParenthesisedString.h b/dbms/Dictionaries/writeParenthesisedString.h similarity index 100% rename from dbms/src/Dictionaries/writeParenthesisedString.h rename to dbms/Dictionaries/writeParenthesisedString.h diff --git a/dbms/src/Disks/CMakeLists.txt b/dbms/Disks/CMakeLists.txt similarity index 100% rename from dbms/src/Disks/CMakeLists.txt rename to dbms/Disks/CMakeLists.txt diff --git a/dbms/src/Disks/DiskFactory.cpp b/dbms/Disks/DiskFactory.cpp similarity index 100% rename from dbms/src/Disks/DiskFactory.cpp rename to dbms/Disks/DiskFactory.cpp diff --git a/dbms/src/Disks/DiskFactory.h b/dbms/Disks/DiskFactory.h similarity index 100% rename from dbms/src/Disks/DiskFactory.h rename to dbms/Disks/DiskFactory.h diff --git a/dbms/src/Disks/DiskLocal.cpp b/dbms/Disks/DiskLocal.cpp similarity index 100% rename from dbms/src/Disks/DiskLocal.cpp rename to dbms/Disks/DiskLocal.cpp diff --git a/dbms/src/Disks/DiskLocal.h b/dbms/Disks/DiskLocal.h similarity index 100% rename from dbms/src/Disks/DiskLocal.h rename to dbms/Disks/DiskLocal.h diff --git a/dbms/src/Disks/DiskMemory.cpp b/dbms/Disks/DiskMemory.cpp similarity index 100% rename from dbms/src/Disks/DiskMemory.cpp rename to dbms/Disks/DiskMemory.cpp diff --git a/dbms/src/Disks/DiskMemory.h b/dbms/Disks/DiskMemory.h similarity index 100% rename from dbms/src/Disks/DiskMemory.h rename to dbms/Disks/DiskMemory.h diff --git a/dbms/src/Disks/DiskS3.cpp b/dbms/Disks/DiskS3.cpp similarity index 100% rename from dbms/src/Disks/DiskS3.cpp rename to dbms/Disks/DiskS3.cpp diff --git a/dbms/src/Disks/DiskS3.h b/dbms/Disks/DiskS3.h similarity index 100% rename from dbms/src/Disks/DiskS3.h rename to dbms/Disks/DiskS3.h diff --git a/dbms/src/Disks/DiskSpaceMonitor.cpp b/dbms/Disks/DiskSpaceMonitor.cpp similarity index 100% rename from dbms/src/Disks/DiskSpaceMonitor.cpp rename to dbms/Disks/DiskSpaceMonitor.cpp diff --git a/dbms/src/Disks/DiskSpaceMonitor.h b/dbms/Disks/DiskSpaceMonitor.h similarity index 100% rename from dbms/src/Disks/DiskSpaceMonitor.h rename to dbms/Disks/DiskSpaceMonitor.h diff --git a/dbms/src/Disks/IDisk.cpp b/dbms/Disks/IDisk.cpp similarity index 100% rename from dbms/src/Disks/IDisk.cpp rename to dbms/Disks/IDisk.cpp diff --git a/dbms/src/Disks/IDisk.h b/dbms/Disks/IDisk.h similarity index 100% rename from dbms/src/Disks/IDisk.h rename to dbms/Disks/IDisk.h diff --git a/dbms/src/Disks/registerDisks.cpp b/dbms/Disks/registerDisks.cpp similarity index 100% rename from dbms/src/Disks/registerDisks.cpp rename to dbms/Disks/registerDisks.cpp diff --git a/dbms/src/Disks/registerDisks.h b/dbms/Disks/registerDisks.h similarity index 100% rename from dbms/src/Disks/registerDisks.h rename to dbms/Disks/registerDisks.h diff --git a/dbms/src/Disks/tests/CMakeLists.txt b/dbms/Disks/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Disks/tests/CMakeLists.txt rename to dbms/Disks/tests/CMakeLists.txt diff --git a/dbms/src/Disks/tests/gtest_disk.cpp b/dbms/Disks/tests/gtest_disk.cpp similarity index 100% rename from dbms/src/Disks/tests/gtest_disk.cpp rename to dbms/Disks/tests/gtest_disk.cpp diff --git a/dbms/src/Disks/tests/gtest_disk.h b/dbms/Disks/tests/gtest_disk.h similarity index 100% rename from dbms/src/Disks/tests/gtest_disk.h rename to dbms/Disks/tests/gtest_disk.h diff --git a/dbms/src/Disks/tests/gtest_path_functions.cpp b/dbms/Disks/tests/gtest_path_functions.cpp similarity index 100% rename from dbms/src/Disks/tests/gtest_path_functions.cpp rename to dbms/Disks/tests/gtest_path_functions.cpp diff --git a/dbms/src/Formats/CMakeLists.txt b/dbms/Formats/CMakeLists.txt similarity index 100% rename from dbms/src/Formats/CMakeLists.txt rename to dbms/Formats/CMakeLists.txt diff --git a/dbms/src/Formats/FormatFactory.cpp b/dbms/Formats/FormatFactory.cpp similarity index 100% rename from dbms/src/Formats/FormatFactory.cpp rename to dbms/Formats/FormatFactory.cpp diff --git a/dbms/src/Formats/FormatFactory.h b/dbms/Formats/FormatFactory.h similarity index 100% rename from dbms/src/Formats/FormatFactory.h rename to dbms/Formats/FormatFactory.h diff --git a/dbms/src/Formats/FormatSchemaInfo.cpp b/dbms/Formats/FormatSchemaInfo.cpp similarity index 100% rename from dbms/src/Formats/FormatSchemaInfo.cpp rename to dbms/Formats/FormatSchemaInfo.cpp diff --git a/dbms/src/Formats/FormatSchemaInfo.h b/dbms/Formats/FormatSchemaInfo.h similarity index 100% rename from dbms/src/Formats/FormatSchemaInfo.h rename to dbms/Formats/FormatSchemaInfo.h diff --git a/dbms/src/Formats/FormatSettings.h b/dbms/Formats/FormatSettings.h similarity index 100% rename from dbms/src/Formats/FormatSettings.h rename to dbms/Formats/FormatSettings.h diff --git a/dbms/src/Formats/IRowInputStream.cpp b/dbms/Formats/IRowInputStream.cpp similarity index 100% rename from dbms/src/Formats/IRowInputStream.cpp rename to dbms/Formats/IRowInputStream.cpp diff --git a/dbms/src/Formats/IRowInputStream.h b/dbms/Formats/IRowInputStream.h similarity index 100% rename from dbms/src/Formats/IRowInputStream.h rename to dbms/Formats/IRowInputStream.h diff --git a/dbms/src/Formats/IRowOutputStream.cpp b/dbms/Formats/IRowOutputStream.cpp similarity index 100% rename from dbms/src/Formats/IRowOutputStream.cpp rename to dbms/Formats/IRowOutputStream.cpp diff --git a/dbms/src/Formats/IRowOutputStream.h b/dbms/Formats/IRowOutputStream.h similarity index 100% rename from dbms/src/Formats/IRowOutputStream.h rename to dbms/Formats/IRowOutputStream.h diff --git a/dbms/src/Formats/MySQLBlockInputStream.cpp b/dbms/Formats/MySQLBlockInputStream.cpp similarity index 100% rename from dbms/src/Formats/MySQLBlockInputStream.cpp rename to dbms/Formats/MySQLBlockInputStream.cpp diff --git a/dbms/src/Formats/MySQLBlockInputStream.h b/dbms/Formats/MySQLBlockInputStream.h similarity index 100% rename from dbms/src/Formats/MySQLBlockInputStream.h rename to dbms/Formats/MySQLBlockInputStream.h diff --git a/dbms/src/Formats/NativeFormat.cpp b/dbms/Formats/NativeFormat.cpp similarity index 100% rename from dbms/src/Formats/NativeFormat.cpp rename to dbms/Formats/NativeFormat.cpp diff --git a/dbms/src/Formats/NullFormat.cpp b/dbms/Formats/NullFormat.cpp similarity index 100% rename from dbms/src/Formats/NullFormat.cpp rename to dbms/Formats/NullFormat.cpp diff --git a/dbms/src/Formats/ParsedTemplateFormatString.cpp b/dbms/Formats/ParsedTemplateFormatString.cpp similarity index 100% rename from dbms/src/Formats/ParsedTemplateFormatString.cpp rename to dbms/Formats/ParsedTemplateFormatString.cpp diff --git a/dbms/src/Formats/ParsedTemplateFormatString.h b/dbms/Formats/ParsedTemplateFormatString.h similarity index 100% rename from dbms/src/Formats/ParsedTemplateFormatString.h rename to dbms/Formats/ParsedTemplateFormatString.h diff --git a/dbms/src/Formats/ProtobufColumnMatcher.cpp b/dbms/Formats/ProtobufColumnMatcher.cpp similarity index 100% rename from dbms/src/Formats/ProtobufColumnMatcher.cpp rename to dbms/Formats/ProtobufColumnMatcher.cpp diff --git a/dbms/src/Formats/ProtobufColumnMatcher.h b/dbms/Formats/ProtobufColumnMatcher.h similarity index 100% rename from dbms/src/Formats/ProtobufColumnMatcher.h rename to dbms/Formats/ProtobufColumnMatcher.h diff --git a/dbms/src/Formats/ProtobufReader.cpp b/dbms/Formats/ProtobufReader.cpp similarity index 100% rename from dbms/src/Formats/ProtobufReader.cpp rename to dbms/Formats/ProtobufReader.cpp diff --git a/dbms/src/Formats/ProtobufReader.h b/dbms/Formats/ProtobufReader.h similarity index 100% rename from dbms/src/Formats/ProtobufReader.h rename to dbms/Formats/ProtobufReader.h diff --git a/dbms/src/Formats/ProtobufSchemas.cpp b/dbms/Formats/ProtobufSchemas.cpp similarity index 100% rename from dbms/src/Formats/ProtobufSchemas.cpp rename to dbms/Formats/ProtobufSchemas.cpp diff --git a/dbms/src/Formats/ProtobufSchemas.h b/dbms/Formats/ProtobufSchemas.h similarity index 100% rename from dbms/src/Formats/ProtobufSchemas.h rename to dbms/Formats/ProtobufSchemas.h diff --git a/dbms/src/Formats/ProtobufWriter.cpp b/dbms/Formats/ProtobufWriter.cpp similarity index 100% rename from dbms/src/Formats/ProtobufWriter.cpp rename to dbms/Formats/ProtobufWriter.cpp diff --git a/dbms/src/Formats/ProtobufWriter.h b/dbms/Formats/ProtobufWriter.h similarity index 100% rename from dbms/src/Formats/ProtobufWriter.h rename to dbms/Formats/ProtobufWriter.h diff --git a/dbms/src/Formats/config_formats.h.in b/dbms/Formats/config_formats.h.in similarity index 100% rename from dbms/src/Formats/config_formats.h.in rename to dbms/Formats/config_formats.h.in diff --git a/dbms/src/Formats/tests/CMakeLists.txt b/dbms/Formats/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Formats/tests/CMakeLists.txt rename to dbms/Formats/tests/CMakeLists.txt diff --git a/dbms/src/Formats/tests/tab_separated_streams.cpp b/dbms/Formats/tests/tab_separated_streams.cpp similarity index 100% rename from dbms/src/Formats/tests/tab_separated_streams.cpp rename to dbms/Formats/tests/tab_separated_streams.cpp diff --git a/dbms/src/Formats/verbosePrintString.cpp b/dbms/Formats/verbosePrintString.cpp similarity index 100% rename from dbms/src/Formats/verbosePrintString.cpp rename to dbms/Formats/verbosePrintString.cpp diff --git a/dbms/src/Formats/verbosePrintString.h b/dbms/Formats/verbosePrintString.h similarity index 100% rename from dbms/src/Formats/verbosePrintString.h rename to dbms/Formats/verbosePrintString.h diff --git a/dbms/src/Functions/CMakeLists.txt b/dbms/Functions/CMakeLists.txt similarity index 100% rename from dbms/src/Functions/CMakeLists.txt rename to dbms/Functions/CMakeLists.txt diff --git a/dbms/src/Functions/CRC.cpp b/dbms/Functions/CRC.cpp similarity index 100% rename from dbms/src/Functions/CRC.cpp rename to dbms/Functions/CRC.cpp diff --git a/dbms/src/Functions/CustomWeekTransforms.h b/dbms/Functions/CustomWeekTransforms.h similarity index 100% rename from dbms/src/Functions/CustomWeekTransforms.h rename to dbms/Functions/CustomWeekTransforms.h diff --git a/dbms/src/Functions/DateTimeTransforms.h b/dbms/Functions/DateTimeTransforms.h similarity index 100% rename from dbms/src/Functions/DateTimeTransforms.h rename to dbms/Functions/DateTimeTransforms.h diff --git a/dbms/src/Functions/DivisionUtils.h b/dbms/Functions/DivisionUtils.h similarity index 100% rename from dbms/src/Functions/DivisionUtils.h rename to dbms/Functions/DivisionUtils.h diff --git a/dbms/src/Functions/DummyJSONParser.h b/dbms/Functions/DummyJSONParser.h similarity index 100% rename from dbms/src/Functions/DummyJSONParser.h rename to dbms/Functions/DummyJSONParser.h diff --git a/dbms/src/Functions/EmptyImpl.h b/dbms/Functions/EmptyImpl.h similarity index 100% rename from dbms/src/Functions/EmptyImpl.h rename to dbms/Functions/EmptyImpl.h diff --git a/dbms/src/Functions/FunctionBase64Conversion.h b/dbms/Functions/FunctionBase64Conversion.h similarity index 100% rename from dbms/src/Functions/FunctionBase64Conversion.h rename to dbms/Functions/FunctionBase64Conversion.h diff --git a/dbms/src/Functions/FunctionBinaryArithmetic.h b/dbms/Functions/FunctionBinaryArithmetic.h similarity index 100% rename from dbms/src/Functions/FunctionBinaryArithmetic.h rename to dbms/Functions/FunctionBinaryArithmetic.h diff --git a/dbms/src/Functions/FunctionBitTestMany.h b/dbms/Functions/FunctionBitTestMany.h similarity index 100% rename from dbms/src/Functions/FunctionBitTestMany.h rename to dbms/Functions/FunctionBitTestMany.h diff --git a/dbms/src/Functions/FunctionCustomWeekToSomething.h b/dbms/Functions/FunctionCustomWeekToSomething.h similarity index 100% rename from dbms/src/Functions/FunctionCustomWeekToSomething.h rename to dbms/Functions/FunctionCustomWeekToSomething.h diff --git a/dbms/src/Functions/FunctionDateOrDateTimeAddInterval.h b/dbms/Functions/FunctionDateOrDateTimeAddInterval.h similarity index 100% rename from dbms/src/Functions/FunctionDateOrDateTimeAddInterval.h rename to dbms/Functions/FunctionDateOrDateTimeAddInterval.h diff --git a/dbms/src/Functions/FunctionDateOrDateTimeToSomething.h b/dbms/Functions/FunctionDateOrDateTimeToSomething.h similarity index 100% rename from dbms/src/Functions/FunctionDateOrDateTimeToSomething.h rename to dbms/Functions/FunctionDateOrDateTimeToSomething.h diff --git a/dbms/src/Functions/FunctionFQDN.cpp b/dbms/Functions/FunctionFQDN.cpp similarity index 100% rename from dbms/src/Functions/FunctionFQDN.cpp rename to dbms/Functions/FunctionFQDN.cpp diff --git a/dbms/src/Functions/FunctionFactory.cpp b/dbms/Functions/FunctionFactory.cpp similarity index 100% rename from dbms/src/Functions/FunctionFactory.cpp rename to dbms/Functions/FunctionFactory.cpp diff --git a/dbms/src/Functions/FunctionFactory.h b/dbms/Functions/FunctionFactory.h similarity index 100% rename from dbms/src/Functions/FunctionFactory.h rename to dbms/Functions/FunctionFactory.h diff --git a/dbms/src/Functions/FunctionHelpers.cpp b/dbms/Functions/FunctionHelpers.cpp similarity index 100% rename from dbms/src/Functions/FunctionHelpers.cpp rename to dbms/Functions/FunctionHelpers.cpp diff --git a/dbms/src/Functions/FunctionHelpers.h b/dbms/Functions/FunctionHelpers.h similarity index 100% rename from dbms/src/Functions/FunctionHelpers.h rename to dbms/Functions/FunctionHelpers.h diff --git a/dbms/src/Functions/FunctionIfBase.h b/dbms/Functions/FunctionIfBase.h similarity index 100% rename from dbms/src/Functions/FunctionIfBase.h rename to dbms/Functions/FunctionIfBase.h diff --git a/dbms/src/Functions/FunctionJoinGet.cpp b/dbms/Functions/FunctionJoinGet.cpp similarity index 100% rename from dbms/src/Functions/FunctionJoinGet.cpp rename to dbms/Functions/FunctionJoinGet.cpp diff --git a/dbms/src/Functions/FunctionJoinGet.h b/dbms/Functions/FunctionJoinGet.h similarity index 100% rename from dbms/src/Functions/FunctionJoinGet.h rename to dbms/Functions/FunctionJoinGet.h diff --git a/dbms/src/Functions/FunctionMathBinaryFloat64.h b/dbms/Functions/FunctionMathBinaryFloat64.h similarity index 100% rename from dbms/src/Functions/FunctionMathBinaryFloat64.h rename to dbms/Functions/FunctionMathBinaryFloat64.h diff --git a/dbms/src/Functions/FunctionMathConstFloat64.h b/dbms/Functions/FunctionMathConstFloat64.h similarity index 100% rename from dbms/src/Functions/FunctionMathConstFloat64.h rename to dbms/Functions/FunctionMathConstFloat64.h diff --git a/dbms/src/Functions/FunctionMathUnary.h b/dbms/Functions/FunctionMathUnary.h similarity index 100% rename from dbms/src/Functions/FunctionMathUnary.h rename to dbms/Functions/FunctionMathUnary.h diff --git a/dbms/src/Functions/FunctionNumericPredicate.h b/dbms/Functions/FunctionNumericPredicate.h similarity index 100% rename from dbms/src/Functions/FunctionNumericPredicate.h rename to dbms/Functions/FunctionNumericPredicate.h diff --git a/dbms/src/Functions/FunctionStartsEndsWith.h b/dbms/Functions/FunctionStartsEndsWith.h similarity index 100% rename from dbms/src/Functions/FunctionStartsEndsWith.h rename to dbms/Functions/FunctionStartsEndsWith.h diff --git a/dbms/src/Functions/FunctionStringOrArrayToT.h b/dbms/Functions/FunctionStringOrArrayToT.h similarity index 100% rename from dbms/src/Functions/FunctionStringOrArrayToT.h rename to dbms/Functions/FunctionStringOrArrayToT.h diff --git a/dbms/src/Functions/FunctionStringToString.h b/dbms/Functions/FunctionStringToString.h similarity index 100% rename from dbms/src/Functions/FunctionStringToString.h rename to dbms/Functions/FunctionStringToString.h diff --git a/dbms/src/Functions/FunctionUnaryArithmetic.h b/dbms/Functions/FunctionUnaryArithmetic.h similarity index 100% rename from dbms/src/Functions/FunctionUnaryArithmetic.h rename to dbms/Functions/FunctionUnaryArithmetic.h diff --git a/dbms/src/Functions/FunctionsBitmap.cpp b/dbms/Functions/FunctionsBitmap.cpp similarity index 100% rename from dbms/src/Functions/FunctionsBitmap.cpp rename to dbms/Functions/FunctionsBitmap.cpp diff --git a/dbms/src/Functions/FunctionsBitmap.h b/dbms/Functions/FunctionsBitmap.h similarity index 100% rename from dbms/src/Functions/FunctionsBitmap.h rename to dbms/Functions/FunctionsBitmap.h diff --git a/dbms/src/Functions/FunctionsCoding.cpp b/dbms/Functions/FunctionsCoding.cpp similarity index 100% rename from dbms/src/Functions/FunctionsCoding.cpp rename to dbms/Functions/FunctionsCoding.cpp diff --git a/dbms/src/Functions/FunctionsCoding.h b/dbms/Functions/FunctionsCoding.h similarity index 100% rename from dbms/src/Functions/FunctionsCoding.h rename to dbms/Functions/FunctionsCoding.h diff --git a/dbms/src/Functions/FunctionsComparison.h b/dbms/Functions/FunctionsComparison.h similarity index 100% rename from dbms/src/Functions/FunctionsComparison.h rename to dbms/Functions/FunctionsComparison.h diff --git a/dbms/src/Functions/FunctionsConsistentHashing.h b/dbms/Functions/FunctionsConsistentHashing.h similarity index 100% rename from dbms/src/Functions/FunctionsConsistentHashing.h rename to dbms/Functions/FunctionsConsistentHashing.h diff --git a/dbms/src/Functions/FunctionsConversion.cpp b/dbms/Functions/FunctionsConversion.cpp similarity index 100% rename from dbms/src/Functions/FunctionsConversion.cpp rename to dbms/Functions/FunctionsConversion.cpp diff --git a/dbms/src/Functions/FunctionsConversion.h b/dbms/Functions/FunctionsConversion.h similarity index 100% rename from dbms/src/Functions/FunctionsConversion.h rename to dbms/Functions/FunctionsConversion.h diff --git a/dbms/src/Functions/FunctionsEmbeddedDictionaries.cpp b/dbms/Functions/FunctionsEmbeddedDictionaries.cpp similarity index 100% rename from dbms/src/Functions/FunctionsEmbeddedDictionaries.cpp rename to dbms/Functions/FunctionsEmbeddedDictionaries.cpp diff --git a/dbms/src/Functions/FunctionsEmbeddedDictionaries.h b/dbms/Functions/FunctionsEmbeddedDictionaries.h similarity index 100% rename from dbms/src/Functions/FunctionsEmbeddedDictionaries.h rename to dbms/Functions/FunctionsEmbeddedDictionaries.h diff --git a/dbms/src/Functions/FunctionsExternalDictionaries.cpp b/dbms/Functions/FunctionsExternalDictionaries.cpp similarity index 100% rename from dbms/src/Functions/FunctionsExternalDictionaries.cpp rename to dbms/Functions/FunctionsExternalDictionaries.cpp diff --git a/dbms/src/Functions/FunctionsExternalDictionaries.h b/dbms/Functions/FunctionsExternalDictionaries.h similarity index 100% rename from dbms/src/Functions/FunctionsExternalDictionaries.h rename to dbms/Functions/FunctionsExternalDictionaries.h diff --git a/dbms/src/Functions/FunctionsExternalModels.cpp b/dbms/Functions/FunctionsExternalModels.cpp similarity index 100% rename from dbms/src/Functions/FunctionsExternalModels.cpp rename to dbms/Functions/FunctionsExternalModels.cpp diff --git a/dbms/src/Functions/FunctionsExternalModels.h b/dbms/Functions/FunctionsExternalModels.h similarity index 100% rename from dbms/src/Functions/FunctionsExternalModels.h rename to dbms/Functions/FunctionsExternalModels.h diff --git a/dbms/src/Functions/FunctionsFormatting.cpp b/dbms/Functions/FunctionsFormatting.cpp similarity index 100% rename from dbms/src/Functions/FunctionsFormatting.cpp rename to dbms/Functions/FunctionsFormatting.cpp diff --git a/dbms/src/Functions/FunctionsFormatting.h b/dbms/Functions/FunctionsFormatting.h similarity index 100% rename from dbms/src/Functions/FunctionsFormatting.h rename to dbms/Functions/FunctionsFormatting.h diff --git a/dbms/src/Functions/FunctionsHashing.cpp b/dbms/Functions/FunctionsHashing.cpp similarity index 100% rename from dbms/src/Functions/FunctionsHashing.cpp rename to dbms/Functions/FunctionsHashing.cpp diff --git a/dbms/src/Functions/FunctionsHashing.h b/dbms/Functions/FunctionsHashing.h similarity index 100% rename from dbms/src/Functions/FunctionsHashing.h rename to dbms/Functions/FunctionsHashing.h diff --git a/dbms/src/Functions/FunctionsJSON.cpp b/dbms/Functions/FunctionsJSON.cpp similarity index 100% rename from dbms/src/Functions/FunctionsJSON.cpp rename to dbms/Functions/FunctionsJSON.cpp diff --git a/dbms/src/Functions/FunctionsJSON.h b/dbms/Functions/FunctionsJSON.h similarity index 100% rename from dbms/src/Functions/FunctionsJSON.h rename to dbms/Functions/FunctionsJSON.h diff --git a/dbms/src/Functions/FunctionsLogical.cpp b/dbms/Functions/FunctionsLogical.cpp similarity index 100% rename from dbms/src/Functions/FunctionsLogical.cpp rename to dbms/Functions/FunctionsLogical.cpp diff --git a/dbms/src/Functions/FunctionsLogical.h b/dbms/Functions/FunctionsLogical.h similarity index 100% rename from dbms/src/Functions/FunctionsLogical.h rename to dbms/Functions/FunctionsLogical.h diff --git a/dbms/src/Functions/FunctionsMiscellaneous.h b/dbms/Functions/FunctionsMiscellaneous.h similarity index 100% rename from dbms/src/Functions/FunctionsMiscellaneous.h rename to dbms/Functions/FunctionsMiscellaneous.h diff --git a/dbms/src/Functions/FunctionsMultiStringPosition.h b/dbms/Functions/FunctionsMultiStringPosition.h similarity index 100% rename from dbms/src/Functions/FunctionsMultiStringPosition.h rename to dbms/Functions/FunctionsMultiStringPosition.h diff --git a/dbms/src/Functions/FunctionsMultiStringSearch.h b/dbms/Functions/FunctionsMultiStringSearch.h similarity index 100% rename from dbms/src/Functions/FunctionsMultiStringSearch.h rename to dbms/Functions/FunctionsMultiStringSearch.h diff --git a/dbms/src/Functions/FunctionsRandom.cpp b/dbms/Functions/FunctionsRandom.cpp similarity index 100% rename from dbms/src/Functions/FunctionsRandom.cpp rename to dbms/Functions/FunctionsRandom.cpp diff --git a/dbms/src/Functions/FunctionsRandom.h b/dbms/Functions/FunctionsRandom.h similarity index 100% rename from dbms/src/Functions/FunctionsRandom.h rename to dbms/Functions/FunctionsRandom.h diff --git a/dbms/src/Functions/FunctionsRound.cpp b/dbms/Functions/FunctionsRound.cpp similarity index 100% rename from dbms/src/Functions/FunctionsRound.cpp rename to dbms/Functions/FunctionsRound.cpp diff --git a/dbms/src/Functions/FunctionsRound.h b/dbms/Functions/FunctionsRound.h similarity index 100% rename from dbms/src/Functions/FunctionsRound.h rename to dbms/Functions/FunctionsRound.h diff --git a/dbms/src/Functions/FunctionsStringArray.cpp b/dbms/Functions/FunctionsStringArray.cpp similarity index 100% rename from dbms/src/Functions/FunctionsStringArray.cpp rename to dbms/Functions/FunctionsStringArray.cpp diff --git a/dbms/src/Functions/FunctionsStringArray.h b/dbms/Functions/FunctionsStringArray.h similarity index 100% rename from dbms/src/Functions/FunctionsStringArray.h rename to dbms/Functions/FunctionsStringArray.h diff --git a/dbms/src/Functions/FunctionsStringRegex.cpp b/dbms/Functions/FunctionsStringRegex.cpp similarity index 100% rename from dbms/src/Functions/FunctionsStringRegex.cpp rename to dbms/Functions/FunctionsStringRegex.cpp diff --git a/dbms/src/Functions/FunctionsStringRegex.h b/dbms/Functions/FunctionsStringRegex.h similarity index 100% rename from dbms/src/Functions/FunctionsStringRegex.h rename to dbms/Functions/FunctionsStringRegex.h diff --git a/dbms/Functions/FunctionsStringSearch.cpp b/dbms/Functions/FunctionsStringSearch.cpp new file mode 100644 index 00000000000..8279ded5f81 --- /dev/null +++ b/dbms/Functions/FunctionsStringSearch.cpp @@ -0,0 +1,707 @@ +#include "FunctionsStringSearch.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace DB +{ +namespace ErrorCodes +{ + extern const int ILLEGAL_COLUMN; +} +/** Implementation details for functions of 'position' family depending on ASCII/UTF8 and case sensitiveness. + */ +struct PositionCaseSensitiveASCII +{ + /// For searching single substring inside big-enough contiguous chunk of data. Coluld have slightly expensive initialization. + using SearcherInBigHaystack = Volnitsky; + + /// For search many substrings in one string + using MultiSearcherInBigHaystack = MultiVolnitsky; + + /// For searching single substring, that is different each time. This object is created for each row of data. It must have cheap initialization. + using SearcherInSmallHaystack = LibCASCIICaseSensitiveStringSearcher; + + static SearcherInBigHaystack createSearcherInBigHaystack(const char * needle_data, size_t needle_size, size_t haystack_size_hint) + { + return SearcherInBigHaystack(needle_data, needle_size, haystack_size_hint); + } + + static SearcherInSmallHaystack createSearcherInSmallHaystack(const char * needle_data, size_t needle_size) + { + return SearcherInSmallHaystack(needle_data, needle_size); + } + + static MultiSearcherInBigHaystack createMultiSearcherInBigHaystack(const std::vector & needles) + { + return MultiSearcherInBigHaystack(needles); + } + + /// Number of code points between 'begin' and 'end' (this has different behaviour for ASCII and UTF-8). + static size_t countChars(const char * begin, const char * end) { return end - begin; } + + /// Convert string to lowercase. Only for case-insensitive search. + /// Implementation is permitted to be inefficient because it is called for single string. + static void toLowerIfNeed(std::string &) { } +}; + +struct PositionCaseInsensitiveASCII +{ + /// `Volnitsky` is not used here, because one person has measured that this is better. It will be good if you question it. + using SearcherInBigHaystack = ASCIICaseInsensitiveStringSearcher; + using MultiSearcherInBigHaystack = MultiVolnitskyCaseInsensitive; + using SearcherInSmallHaystack = LibCASCIICaseInsensitiveStringSearcher; + + static SearcherInBigHaystack createSearcherInBigHaystack(const char * needle_data, size_t needle_size, size_t /*haystack_size_hint*/) + { + return SearcherInBigHaystack(needle_data, needle_size); + } + + static SearcherInSmallHaystack createSearcherInSmallHaystack(const char * needle_data, size_t needle_size) + { + return SearcherInSmallHaystack(needle_data, needle_size); + } + + static MultiSearcherInBigHaystack createMultiSearcherInBigHaystack(const std::vector & needles) + { + return MultiSearcherInBigHaystack(needles); + } + + static size_t countChars(const char * begin, const char * end) { return end - begin; } + + static void toLowerIfNeed(std::string & s) { std::transform(std::begin(s), std::end(s), std::begin(s), tolower); } +}; + +struct PositionCaseSensitiveUTF8 +{ + using SearcherInBigHaystack = VolnitskyUTF8; + using MultiSearcherInBigHaystack = MultiVolnitskyUTF8; + using SearcherInSmallHaystack = LibCASCIICaseSensitiveStringSearcher; + + static SearcherInBigHaystack createSearcherInBigHaystack(const char * needle_data, size_t needle_size, size_t haystack_size_hint) + { + return SearcherInBigHaystack(needle_data, needle_size, haystack_size_hint); + } + + static SearcherInSmallHaystack createSearcherInSmallHaystack(const char * needle_data, size_t needle_size) + { + return SearcherInSmallHaystack(needle_data, needle_size); + } + + static MultiSearcherInBigHaystack createMultiSearcherInBigHaystack(const std::vector & needles) + { + return MultiSearcherInBigHaystack(needles); + } + + static size_t countChars(const char * begin, const char * end) + { + size_t res = 0; + for (auto it = begin; it != end; ++it) + if (!UTF8::isContinuationOctet(static_cast(*it))) + ++res; + return res; + } + + static void toLowerIfNeed(std::string &) { } +}; + +struct PositionCaseInsensitiveUTF8 +{ + using SearcherInBigHaystack = VolnitskyCaseInsensitiveUTF8; + using MultiSearcherInBigHaystack = MultiVolnitskyCaseInsensitiveUTF8; + using SearcherInSmallHaystack = UTF8CaseInsensitiveStringSearcher; /// TODO Very suboptimal. + + static SearcherInBigHaystack createSearcherInBigHaystack(const char * needle_data, size_t needle_size, size_t haystack_size_hint) + { + return SearcherInBigHaystack(needle_data, needle_size, haystack_size_hint); + } + + static SearcherInSmallHaystack createSearcherInSmallHaystack(const char * needle_data, size_t needle_size) + { + return SearcherInSmallHaystack(needle_data, needle_size); + } + + static MultiSearcherInBigHaystack createMultiSearcherInBigHaystack(const std::vector & needles) + { + return MultiSearcherInBigHaystack(needles); + } + + static size_t countChars(const char * begin, const char * end) + { + size_t res = 0; + for (auto it = begin; it != end; ++it) + if (!UTF8::isContinuationOctet(static_cast(*it))) + ++res; + return res; + } + + static void toLowerIfNeed(std::string & s) { Poco::UTF8::toLowerInPlace(s); } +}; + +template +struct PositionImpl +{ + static constexpr bool use_default_implementation_for_constants = false; + + using ResultType = UInt64; + + /// Find one substring in many strings. + static void vectorConstant( + const ColumnString::Chars & data, const ColumnString::Offsets & offsets, const std::string & needle, PaddedPODArray & res) + { + const UInt8 * begin = data.data(); + const UInt8 * pos = begin; + const UInt8 * end = pos + data.size(); + + /// Current index in the array of strings. + size_t i = 0; + + typename Impl::SearcherInBigHaystack searcher = Impl::createSearcherInBigHaystack(needle.data(), needle.size(), end - pos); + + /// We will search for the next occurrence in all strings at once. + while (pos < end && end != (pos = searcher.search(pos, end - pos))) + { + /// Determine which index it refers to. + while (begin + offsets[i] <= pos) + { + res[i] = 0; + ++i; + } + + /// We check that the entry does not pass through the boundaries of strings. + if (pos + needle.size() < begin + offsets[i]) + res[i] = 1 + Impl::countChars(reinterpret_cast(begin + offsets[i - 1]), reinterpret_cast(pos)); + else + res[i] = 0; + + pos = begin + offsets[i]; + ++i; + } + + if (i < res.size()) + memset(&res[i], 0, (res.size() - i) * sizeof(res[0])); + } + + /// Search for substring in string. + static void constantConstant(std::string data, std::string needle, UInt64 & res) + { + Impl::toLowerIfNeed(data); + Impl::toLowerIfNeed(needle); + + res = data.find(needle); + if (res == std::string::npos) + res = 0; + else + res = 1 + Impl::countChars(data.data(), data.data() + res); + } + + /// Search each time for a different single substring inside each time different string. + static void vectorVector( + const ColumnString::Chars & haystack_data, + const ColumnString::Offsets & haystack_offsets, + const ColumnString::Chars & needle_data, + const ColumnString::Offsets & needle_offsets, + PaddedPODArray & res) + { + ColumnString::Offset prev_haystack_offset = 0; + ColumnString::Offset prev_needle_offset = 0; + + size_t size = haystack_offsets.size(); + + for (size_t i = 0; i < size; ++i) + { + size_t needle_size = needle_offsets[i] - prev_needle_offset - 1; + size_t haystack_size = haystack_offsets[i] - prev_haystack_offset - 1; + + if (0 == needle_size) + { + /// An empty string is always at the very beginning of `haystack`. + res[i] = 1; + } + else + { + /// It is assumed that the StringSearcher is not very difficult to initialize. + typename Impl::SearcherInSmallHaystack searcher = Impl::createSearcherInSmallHaystack( + reinterpret_cast(&needle_data[prev_needle_offset]), + needle_offsets[i] - prev_needle_offset - 1); /// zero byte at the end + + /// searcher returns a pointer to the found substring or to the end of `haystack`. + size_t pos = searcher.search(&haystack_data[prev_haystack_offset], &haystack_data[haystack_offsets[i] - 1]) + - &haystack_data[prev_haystack_offset]; + + if (pos != haystack_size) + { + res[i] = 1 + + Impl::countChars( + reinterpret_cast(&haystack_data[prev_haystack_offset]), + reinterpret_cast(&haystack_data[prev_haystack_offset + pos])); + } + else + res[i] = 0; + } + + prev_haystack_offset = haystack_offsets[i]; + prev_needle_offset = needle_offsets[i]; + } + } + + /// Find many substrings in single string. + static void constantVector( + const String & haystack, + const ColumnString::Chars & needle_data, + const ColumnString::Offsets & needle_offsets, + PaddedPODArray & res) + { + // NOTE You could use haystack indexing. But this is a rare case. + + ColumnString::Offset prev_needle_offset = 0; + + size_t size = needle_offsets.size(); + + for (size_t i = 0; i < size; ++i) + { + size_t needle_size = needle_offsets[i] - prev_needle_offset - 1; + + if (0 == needle_size) + { + res[i] = 1; + } + else + { + typename Impl::SearcherInSmallHaystack searcher = Impl::createSearcherInSmallHaystack( + reinterpret_cast(&needle_data[prev_needle_offset]), needle_offsets[i] - prev_needle_offset - 1); + + size_t pos = searcher.search( + reinterpret_cast(haystack.data()), + reinterpret_cast(haystack.data()) + haystack.size()) + - reinterpret_cast(haystack.data()); + + if (pos != haystack.size()) + { + res[i] = 1 + Impl::countChars(haystack.data(), haystack.data() + pos); + } + else + res[i] = 0; + } + + prev_needle_offset = needle_offsets[i]; + } + } + + template + static void vectorFixedConstant(Args &&...) + { + throw Exception("Functions 'position' don't support FixedString haystack argument", ErrorCodes::ILLEGAL_COLUMN); + } +}; + +template +struct MultiSearchAllPositionsImpl +{ + using ResultType = UInt64; + + static void vectorConstant( + const ColumnString::Chars & haystack_data, + const ColumnString::Offsets & haystack_offsets, + const std::vector & needles, + PaddedPODArray & res) + { + auto res_callback = [](const UInt8 * start, const UInt8 * end) -> UInt64 + { + return 1 + Impl::countChars(reinterpret_cast(start), reinterpret_cast(end)); + }; + + auto searcher = Impl::createMultiSearcherInBigHaystack(needles); + + const size_t haystack_string_size = haystack_offsets.size(); + const size_t needles_size = needles.size(); + + /// Something can be uninitialized after the search itself + std::fill(res.begin(), res.end(), 0); + + while (searcher.hasMoreToSearch()) + { + size_t prev_offset = 0; + for (size_t j = 0, from = 0; j < haystack_string_size; ++j, from += needles_size) + { + const auto * haystack = &haystack_data[prev_offset]; + const auto * haystack_end = haystack + haystack_offsets[j] - prev_offset - 1; + searcher.searchOneAll(haystack, haystack_end, res.data() + from, res_callback); + prev_offset = haystack_offsets[j]; + } + } + } +}; + +template +struct MultiSearchImpl +{ + using ResultType = UInt8; + static constexpr bool is_using_hyperscan = false; + /// Variable for understanding, if we used offsets for the output, most + /// likely to determine whether the function returns ColumnVector of ColumnArray. + static constexpr bool is_column_array = false; + static auto getReturnType() { return std::make_shared>(); } + + static void vectorConstant( + const ColumnString::Chars & haystack_data, + const ColumnString::Offsets & haystack_offsets, + const std::vector & needles, + PaddedPODArray & res, + [[maybe_unused]] PaddedPODArray & offsets) + { + auto searcher = Impl::createMultiSearcherInBigHaystack(needles); + const size_t haystack_string_size = haystack_offsets.size(); + res.resize(haystack_string_size); + size_t iteration = 0; + while (searcher.hasMoreToSearch()) + { + size_t prev_offset = 0; + for (size_t j = 0; j < haystack_string_size; ++j) + { + const auto * haystack = &haystack_data[prev_offset]; + const auto * haystack_end = haystack + haystack_offsets[j] - prev_offset - 1; + if (iteration == 0 || !res[j]) + res[j] = searcher.searchOne(haystack, haystack_end); + prev_offset = haystack_offsets[j]; + } + ++iteration; + } + } +}; + +template +struct MultiSearchFirstPositionImpl +{ + using ResultType = UInt64; + static constexpr bool is_using_hyperscan = false; + /// Variable for understanding, if we used offsets for the output, most + /// likely to determine whether the function returns ColumnVector of ColumnArray. + static constexpr bool is_column_array = false; + static auto getReturnType() { return std::make_shared>(); } + + static void vectorConstant( + const ColumnString::Chars & haystack_data, + const ColumnString::Offsets & haystack_offsets, + const std::vector & needles, + PaddedPODArray & res, + [[maybe_unused]] PaddedPODArray & offsets) + { + auto res_callback = [](const UInt8 * start, const UInt8 * end) -> UInt64 + { + return 1 + Impl::countChars(reinterpret_cast(start), reinterpret_cast(end)); + }; + auto searcher = Impl::createMultiSearcherInBigHaystack(needles); + const size_t haystack_string_size = haystack_offsets.size(); + res.resize(haystack_string_size); + size_t iteration = 0; + while (searcher.hasMoreToSearch()) + { + size_t prev_offset = 0; + for (size_t j = 0; j < haystack_string_size; ++j) + { + const auto * haystack = &haystack_data[prev_offset]; + const auto * haystack_end = haystack + haystack_offsets[j] - prev_offset - 1; + if (iteration == 0 || res[j] == 0) + res[j] = searcher.searchOneFirstPosition(haystack, haystack_end, res_callback); + else + { + UInt64 result = searcher.searchOneFirstPosition(haystack, haystack_end, res_callback); + if (result != 0) + res[j] = std::min(result, res[j]); + } + prev_offset = haystack_offsets[j]; + } + ++iteration; + } + } +}; + +template +struct MultiSearchFirstIndexImpl +{ + using ResultType = UInt64; + static constexpr bool is_using_hyperscan = false; + /// Variable for understanding, if we used offsets for the output, most + /// likely to determine whether the function returns ColumnVector of ColumnArray. + static constexpr bool is_column_array = false; + static auto getReturnType() { return std::make_shared>(); } + + static void vectorConstant( + const ColumnString::Chars & haystack_data, + const ColumnString::Offsets & haystack_offsets, + const std::vector & needles, + PaddedPODArray & res, + [[maybe_unused]] PaddedPODArray & offsets) + { + auto searcher = Impl::createMultiSearcherInBigHaystack(needles); + const size_t haystack_string_size = haystack_offsets.size(); + res.resize(haystack_string_size); + size_t iteration = 0; + while (searcher.hasMoreToSearch()) + { + size_t prev_offset = 0; + for (size_t j = 0; j < haystack_string_size; ++j) + { + const auto * haystack = &haystack_data[prev_offset]; + const auto * haystack_end = haystack + haystack_offsets[j] - prev_offset - 1; + /// hasMoreToSearch traverse needles in increasing order + if (iteration == 0 || res[j] == 0) + res[j] = searcher.searchOneFirstIndex(haystack, haystack_end); + prev_offset = haystack_offsets[j]; + } + ++iteration; + } + } +}; + +/** Token search the string, means that needle must be surrounded by some separator chars, like whitespace or puctuation. + */ +template +struct HasTokenImpl +{ + using ResultType = UInt8; + + static constexpr bool use_default_implementation_for_constants = true; + + static void vectorConstant( + const ColumnString::Chars & data, const ColumnString::Offsets & offsets, const std::string & pattern, PaddedPODArray & res) + { + if (offsets.empty()) + return; + + const UInt8 * begin = data.data(); + const UInt8 * pos = begin; + const UInt8 * end = pos + data.size(); + + /// The current index in the array of strings. + size_t i = 0; + + TokenSearcher searcher(pattern.data(), pattern.size(), end - pos); + + /// We will search for the next occurrence in all rows at once. + while (pos < end && end != (pos = searcher.search(pos, end - pos))) + { + /// Let's determine which index it refers to. + while (begin + offsets[i] <= pos) + { + res[i] = negate_result; + ++i; + } + + /// We check that the entry does not pass through the boundaries of strings. + if (pos + pattern.size() < begin + offsets[i]) + res[i] = !negate_result; + else + res[i] = negate_result; + + pos = begin + offsets[i]; + ++i; + } + + /// Tail, in which there can be no substring. + if (i < res.size()) + memset(&res[i], negate_result, (res.size() - i) * sizeof(res[0])); + } + + template + static void vectorVector(Args &&...) + { + throw Exception("Function 'hasToken' does not support non-constant needle argument", ErrorCodes::ILLEGAL_COLUMN); + } + + /// Search different needles in single haystack. + template + static void constantVector(Args &&...) + { + throw Exception("Function 'hasToken' does not support non-constant needle argument", ErrorCodes::ILLEGAL_COLUMN); + } + + template + static void vectorFixedConstant(Args &&...) + { + throw Exception("Functions 'hasToken' don't support FixedString haystack argument", ErrorCodes::ILLEGAL_COLUMN); + } +}; + + +struct NamePosition +{ + static constexpr auto name = "position"; +}; +struct NamePositionUTF8 +{ + static constexpr auto name = "positionUTF8"; +}; +struct NamePositionCaseInsensitive +{ + static constexpr auto name = "positionCaseInsensitive"; +}; +struct NamePositionCaseInsensitiveUTF8 +{ + static constexpr auto name = "positionCaseInsensitiveUTF8"; +}; +struct NameMultiSearchAllPositions +{ + static constexpr auto name = "multiSearchAllPositions"; +}; +struct NameMultiSearchAllPositionsUTF8 +{ + static constexpr auto name = "multiSearchAllPositionsUTF8"; +}; +struct NameMultiSearchAllPositionsCaseInsensitive +{ + static constexpr auto name = "multiSearchAllPositionsCaseInsensitive"; +}; +struct NameMultiSearchAllPositionsCaseInsensitiveUTF8 +{ + static constexpr auto name = "multiSearchAllPositionsCaseInsensitiveUTF8"; +}; +struct NameMultiSearchAny +{ + static constexpr auto name = "multiSearchAny"; +}; +struct NameMultiSearchAnyUTF8 +{ + static constexpr auto name = "multiSearchAnyUTF8"; +}; +struct NameMultiSearchAnyCaseInsensitive +{ + static constexpr auto name = "multiSearchAnyCaseInsensitive"; +}; +struct NameMultiSearchAnyCaseInsensitiveUTF8 +{ + static constexpr auto name = "multiSearchAnyCaseInsensitiveUTF8"; +}; +struct NameMultiSearchFirstIndex +{ + static constexpr auto name = "multiSearchFirstIndex"; +}; +struct NameMultiSearchFirstIndexUTF8 +{ + static constexpr auto name = "multiSearchFirstIndexUTF8"; +}; +struct NameMultiSearchFirstIndexCaseInsensitive +{ + static constexpr auto name = "multiSearchFirstIndexCaseInsensitive"; +}; +struct NameMultiSearchFirstIndexCaseInsensitiveUTF8 +{ + static constexpr auto name = "multiSearchFirstIndexCaseInsensitiveUTF8"; +}; +struct NameMultiSearchFirstPosition +{ + static constexpr auto name = "multiSearchFirstPosition"; +}; +struct NameMultiSearchFirstPositionUTF8 +{ + static constexpr auto name = "multiSearchFirstPositionUTF8"; +}; +struct NameMultiSearchFirstPositionCaseInsensitive +{ + static constexpr auto name = "multiSearchFirstPositionCaseInsensitive"; +}; +struct NameMultiSearchFirstPositionCaseInsensitiveUTF8 +{ + static constexpr auto name = "multiSearchFirstPositionCaseInsensitiveUTF8"; +}; + +struct NameHasToken +{ + static constexpr auto name = "hasToken"; +}; + +struct NameHasTokenCaseInsensitive +{ + static constexpr auto name = "hasTokenCaseInsensitive"; +}; + + +using FunctionPosition = FunctionsStringSearch, NamePosition>; +using FunctionPositionUTF8 = FunctionsStringSearch, NamePositionUTF8>; +using FunctionPositionCaseInsensitive = FunctionsStringSearch, NamePositionCaseInsensitive>; +using FunctionPositionCaseInsensitiveUTF8 + = FunctionsStringSearch, NamePositionCaseInsensitiveUTF8>; + +using FunctionMultiSearchAllPositions + = FunctionsMultiStringPosition, NameMultiSearchAllPositions>; +using FunctionMultiSearchAllPositionsUTF8 + = FunctionsMultiStringPosition, NameMultiSearchAllPositionsUTF8>; +using FunctionMultiSearchAllPositionsCaseInsensitive + = FunctionsMultiStringPosition, NameMultiSearchAllPositionsCaseInsensitive>; +using FunctionMultiSearchAllPositionsCaseInsensitiveUTF8 = FunctionsMultiStringPosition< + MultiSearchAllPositionsImpl, + NameMultiSearchAllPositionsCaseInsensitiveUTF8>; + +using FunctionMultiSearch = FunctionsMultiStringSearch, NameMultiSearchAny>; +using FunctionMultiSearchUTF8 = FunctionsMultiStringSearch, NameMultiSearchAnyUTF8>; +using FunctionMultiSearchCaseInsensitive + = FunctionsMultiStringSearch, NameMultiSearchAnyCaseInsensitive>; +using FunctionMultiSearchCaseInsensitiveUTF8 + = FunctionsMultiStringSearch, NameMultiSearchAnyCaseInsensitiveUTF8>; + +using FunctionMultiSearchFirstIndex + = FunctionsMultiStringSearch, NameMultiSearchFirstIndex>; +using FunctionMultiSearchFirstIndexUTF8 + = FunctionsMultiStringSearch, NameMultiSearchFirstIndexUTF8>; +using FunctionMultiSearchFirstIndexCaseInsensitive + = FunctionsMultiStringSearch, NameMultiSearchFirstIndexCaseInsensitive>; +using FunctionMultiSearchFirstIndexCaseInsensitiveUTF8 + = FunctionsMultiStringSearch, NameMultiSearchFirstIndexCaseInsensitiveUTF8>; + +using FunctionMultiSearchFirstPosition + = FunctionsMultiStringSearch, NameMultiSearchFirstPosition>; +using FunctionMultiSearchFirstPositionUTF8 + = FunctionsMultiStringSearch, NameMultiSearchFirstPositionUTF8>; +using FunctionMultiSearchFirstPositionCaseInsensitive + = FunctionsMultiStringSearch, NameMultiSearchFirstPositionCaseInsensitive>; +using FunctionMultiSearchFirstPositionCaseInsensitiveUTF8 = FunctionsMultiStringSearch< + MultiSearchFirstPositionImpl, + NameMultiSearchFirstPositionCaseInsensitiveUTF8>; + +using FunctionHasToken = FunctionsStringSearch, NameHasToken>; +using FunctionHasTokenCaseInsensitive + = FunctionsStringSearch, NameHasTokenCaseInsensitive>; + +void registerFunctionsStringSearch(FunctionFactory & factory) +{ + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(); + factory.registerFunction(); + factory.registerFunction(); + + factory.registerFunction(); + factory.registerFunction(); + factory.registerFunction(); + factory.registerFunction(); + + factory.registerFunction(); + factory.registerFunction(); + factory.registerFunction(); + factory.registerFunction(); + + factory.registerFunction(); + factory.registerFunction(); + factory.registerFunction(); + factory.registerFunction(); + + factory.registerFunction(); + factory.registerFunction(); + factory.registerFunction(); + factory.registerFunction(); + + factory.registerFunction(); + factory.registerFunction(); + + factory.registerAlias("locate", NamePosition::name, FunctionFactory::CaseInsensitive); +} +} diff --git a/dbms/src/Functions/FunctionsStringSearch.h b/dbms/Functions/FunctionsStringSearch.h similarity index 100% rename from dbms/src/Functions/FunctionsStringSearch.h rename to dbms/Functions/FunctionsStringSearch.h diff --git a/dbms/src/Functions/FunctionsStringSearchToString.h b/dbms/Functions/FunctionsStringSearchToString.h similarity index 100% rename from dbms/src/Functions/FunctionsStringSearchToString.h rename to dbms/Functions/FunctionsStringSearchToString.h diff --git a/dbms/src/Functions/FunctionsStringSimilarity.cpp b/dbms/Functions/FunctionsStringSimilarity.cpp similarity index 100% rename from dbms/src/Functions/FunctionsStringSimilarity.cpp rename to dbms/Functions/FunctionsStringSimilarity.cpp diff --git a/dbms/src/Functions/FunctionsStringSimilarity.h b/dbms/Functions/FunctionsStringSimilarity.h similarity index 100% rename from dbms/src/Functions/FunctionsStringSimilarity.h rename to dbms/Functions/FunctionsStringSimilarity.h diff --git a/dbms/src/Functions/FunctionsVisitParam.h b/dbms/Functions/FunctionsVisitParam.h similarity index 100% rename from dbms/src/Functions/FunctionsVisitParam.h rename to dbms/Functions/FunctionsVisitParam.h diff --git a/dbms/src/Functions/GatherUtils/Algorithms.h b/dbms/Functions/GatherUtils/Algorithms.h similarity index 100% rename from dbms/src/Functions/GatherUtils/Algorithms.h rename to dbms/Functions/GatherUtils/Algorithms.h diff --git a/dbms/src/Functions/GatherUtils/ArraySinkVisitor.h b/dbms/Functions/GatherUtils/ArraySinkVisitor.h similarity index 100% rename from dbms/src/Functions/GatherUtils/ArraySinkVisitor.h rename to dbms/Functions/GatherUtils/ArraySinkVisitor.h diff --git a/dbms/src/Functions/GatherUtils/ArraySourceVisitor.h b/dbms/Functions/GatherUtils/ArraySourceVisitor.h similarity index 100% rename from dbms/src/Functions/GatherUtils/ArraySourceVisitor.h rename to dbms/Functions/GatherUtils/ArraySourceVisitor.h diff --git a/dbms/src/Functions/GatherUtils/CMakeLists.txt b/dbms/Functions/GatherUtils/CMakeLists.txt similarity index 100% rename from dbms/src/Functions/GatherUtils/CMakeLists.txt rename to dbms/Functions/GatherUtils/CMakeLists.txt diff --git a/dbms/src/Functions/GatherUtils/GatherUtils.h b/dbms/Functions/GatherUtils/GatherUtils.h similarity index 100% rename from dbms/src/Functions/GatherUtils/GatherUtils.h rename to dbms/Functions/GatherUtils/GatherUtils.h diff --git a/dbms/src/Functions/GatherUtils/IArraySink.h b/dbms/Functions/GatherUtils/IArraySink.h similarity index 100% rename from dbms/src/Functions/GatherUtils/IArraySink.h rename to dbms/Functions/GatherUtils/IArraySink.h diff --git a/dbms/src/Functions/GatherUtils/IArraySource.h b/dbms/Functions/GatherUtils/IArraySource.h similarity index 100% rename from dbms/src/Functions/GatherUtils/IArraySource.h rename to dbms/Functions/GatherUtils/IArraySource.h diff --git a/dbms/src/Functions/GatherUtils/IValueSource.h b/dbms/Functions/GatherUtils/IValueSource.h similarity index 100% rename from dbms/src/Functions/GatherUtils/IValueSource.h rename to dbms/Functions/GatherUtils/IValueSource.h diff --git a/dbms/src/Functions/GatherUtils/Selectors.h b/dbms/Functions/GatherUtils/Selectors.h similarity index 100% rename from dbms/src/Functions/GatherUtils/Selectors.h rename to dbms/Functions/GatherUtils/Selectors.h diff --git a/dbms/src/Functions/GatherUtils/Sinks.h b/dbms/Functions/GatherUtils/Sinks.h similarity index 100% rename from dbms/src/Functions/GatherUtils/Sinks.h rename to dbms/Functions/GatherUtils/Sinks.h diff --git a/dbms/src/Functions/GatherUtils/Slices.h b/dbms/Functions/GatherUtils/Slices.h similarity index 100% rename from dbms/src/Functions/GatherUtils/Slices.h rename to dbms/Functions/GatherUtils/Slices.h diff --git a/dbms/src/Functions/GatherUtils/Sources.h b/dbms/Functions/GatherUtils/Sources.h similarity index 100% rename from dbms/src/Functions/GatherUtils/Sources.h rename to dbms/Functions/GatherUtils/Sources.h diff --git a/dbms/src/Functions/GatherUtils/ValueSourceVisitor.h b/dbms/Functions/GatherUtils/ValueSourceVisitor.h similarity index 100% rename from dbms/src/Functions/GatherUtils/ValueSourceVisitor.h rename to dbms/Functions/GatherUtils/ValueSourceVisitor.h diff --git a/dbms/src/Functions/GatherUtils/concat.cpp b/dbms/Functions/GatherUtils/concat.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/concat.cpp rename to dbms/Functions/GatherUtils/concat.cpp diff --git a/dbms/src/Functions/GatherUtils/createArraySink.cpp b/dbms/Functions/GatherUtils/createArraySink.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/createArraySink.cpp rename to dbms/Functions/GatherUtils/createArraySink.cpp diff --git a/dbms/src/Functions/GatherUtils/createArraySource.cpp b/dbms/Functions/GatherUtils/createArraySource.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/createArraySource.cpp rename to dbms/Functions/GatherUtils/createArraySource.cpp diff --git a/dbms/src/Functions/GatherUtils/createValueSource.cpp b/dbms/Functions/GatherUtils/createValueSource.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/createValueSource.cpp rename to dbms/Functions/GatherUtils/createValueSource.cpp diff --git a/dbms/src/Functions/GatherUtils/has.cpp b/dbms/Functions/GatherUtils/has.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/has.cpp rename to dbms/Functions/GatherUtils/has.cpp diff --git a/dbms/src/Functions/GatherUtils/push.cpp b/dbms/Functions/GatherUtils/push.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/push.cpp rename to dbms/Functions/GatherUtils/push.cpp diff --git a/dbms/src/Functions/GatherUtils/resizeConstantSize.cpp b/dbms/Functions/GatherUtils/resizeConstantSize.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/resizeConstantSize.cpp rename to dbms/Functions/GatherUtils/resizeConstantSize.cpp diff --git a/dbms/src/Functions/GatherUtils/resizeDynamicSize.cpp b/dbms/Functions/GatherUtils/resizeDynamicSize.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/resizeDynamicSize.cpp rename to dbms/Functions/GatherUtils/resizeDynamicSize.cpp diff --git a/dbms/src/Functions/GatherUtils/sliceDynamicOffsetBounded.cpp b/dbms/Functions/GatherUtils/sliceDynamicOffsetBounded.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/sliceDynamicOffsetBounded.cpp rename to dbms/Functions/GatherUtils/sliceDynamicOffsetBounded.cpp diff --git a/dbms/src/Functions/GatherUtils/sliceDynamicOffsetUnbounded.cpp b/dbms/Functions/GatherUtils/sliceDynamicOffsetUnbounded.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/sliceDynamicOffsetUnbounded.cpp rename to dbms/Functions/GatherUtils/sliceDynamicOffsetUnbounded.cpp diff --git a/dbms/src/Functions/GatherUtils/sliceFromLeftConstantOffsetBounded.cpp b/dbms/Functions/GatherUtils/sliceFromLeftConstantOffsetBounded.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/sliceFromLeftConstantOffsetBounded.cpp rename to dbms/Functions/GatherUtils/sliceFromLeftConstantOffsetBounded.cpp diff --git a/dbms/src/Functions/GatherUtils/sliceFromLeftConstantOffsetUnbounded.cpp b/dbms/Functions/GatherUtils/sliceFromLeftConstantOffsetUnbounded.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/sliceFromLeftConstantOffsetUnbounded.cpp rename to dbms/Functions/GatherUtils/sliceFromLeftConstantOffsetUnbounded.cpp diff --git a/dbms/src/Functions/GatherUtils/sliceFromRightConstantOffsetBounded.cpp b/dbms/Functions/GatherUtils/sliceFromRightConstantOffsetBounded.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/sliceFromRightConstantOffsetBounded.cpp rename to dbms/Functions/GatherUtils/sliceFromRightConstantOffsetBounded.cpp diff --git a/dbms/src/Functions/GatherUtils/sliceFromRightConstantOffsetUnbounded.cpp b/dbms/Functions/GatherUtils/sliceFromRightConstantOffsetUnbounded.cpp similarity index 100% rename from dbms/src/Functions/GatherUtils/sliceFromRightConstantOffsetUnbounded.cpp rename to dbms/Functions/GatherUtils/sliceFromRightConstantOffsetUnbounded.cpp diff --git a/dbms/src/Functions/GeoHash.cpp b/dbms/Functions/GeoHash.cpp similarity index 100% rename from dbms/src/Functions/GeoHash.cpp rename to dbms/Functions/GeoHash.cpp diff --git a/dbms/src/Functions/GeoHash.h b/dbms/Functions/GeoHash.h similarity index 100% rename from dbms/src/Functions/GeoHash.h rename to dbms/Functions/GeoHash.h diff --git a/dbms/src/Functions/HasTokenImpl.h b/dbms/Functions/HasTokenImpl.h similarity index 100% rename from dbms/src/Functions/HasTokenImpl.h rename to dbms/Functions/HasTokenImpl.h diff --git a/dbms/src/Functions/IFunction.cpp b/dbms/Functions/IFunction.cpp similarity index 100% rename from dbms/src/Functions/IFunction.cpp rename to dbms/Functions/IFunction.cpp diff --git a/dbms/src/Functions/IFunction.h b/dbms/Functions/IFunction.h similarity index 100% rename from dbms/src/Functions/IFunction.h rename to dbms/Functions/IFunction.h diff --git a/dbms/src/Functions/IFunctionAdaptors.h b/dbms/Functions/IFunctionAdaptors.h similarity index 100% rename from dbms/src/Functions/IFunctionAdaptors.h rename to dbms/Functions/IFunctionAdaptors.h diff --git a/dbms/src/Functions/IFunctionImpl.h b/dbms/Functions/IFunctionImpl.h similarity index 100% rename from dbms/src/Functions/IFunctionImpl.h rename to dbms/Functions/IFunctionImpl.h diff --git a/dbms/src/Functions/LowerUpperImpl.h b/dbms/Functions/LowerUpperImpl.h similarity index 100% rename from dbms/src/Functions/LowerUpperImpl.h rename to dbms/Functions/LowerUpperImpl.h diff --git a/dbms/src/Functions/LowerUpperUTF8Impl.h b/dbms/Functions/LowerUpperUTF8Impl.h similarity index 100% rename from dbms/src/Functions/LowerUpperUTF8Impl.h rename to dbms/Functions/LowerUpperUTF8Impl.h diff --git a/dbms/src/Functions/MultiSearchAllPositionsImpl.h b/dbms/Functions/MultiSearchAllPositionsImpl.h similarity index 100% rename from dbms/src/Functions/MultiSearchAllPositionsImpl.h rename to dbms/Functions/MultiSearchAllPositionsImpl.h diff --git a/dbms/src/Functions/MultiSearchFirstIndexImpl.h b/dbms/Functions/MultiSearchFirstIndexImpl.h similarity index 100% rename from dbms/src/Functions/MultiSearchFirstIndexImpl.h rename to dbms/Functions/MultiSearchFirstIndexImpl.h diff --git a/dbms/src/Functions/MultiSearchFirstPositionImpl.h b/dbms/Functions/MultiSearchFirstPositionImpl.h similarity index 100% rename from dbms/src/Functions/MultiSearchFirstPositionImpl.h rename to dbms/Functions/MultiSearchFirstPositionImpl.h diff --git a/dbms/src/Functions/MultiSearchImpl.h b/dbms/Functions/MultiSearchImpl.h similarity index 100% rename from dbms/src/Functions/MultiSearchImpl.h rename to dbms/Functions/MultiSearchImpl.h diff --git a/dbms/src/Functions/PolygonUtils.h b/dbms/Functions/PolygonUtils.h similarity index 100% rename from dbms/src/Functions/PolygonUtils.h rename to dbms/Functions/PolygonUtils.h diff --git a/dbms/src/Functions/PositionImpl.h b/dbms/Functions/PositionImpl.h similarity index 100% rename from dbms/src/Functions/PositionImpl.h rename to dbms/Functions/PositionImpl.h diff --git a/dbms/src/Functions/RapidJSONParser.h b/dbms/Functions/RapidJSONParser.h similarity index 100% rename from dbms/src/Functions/RapidJSONParser.h rename to dbms/Functions/RapidJSONParser.h diff --git a/dbms/src/Functions/Regexps.h b/dbms/Functions/Regexps.h similarity index 100% rename from dbms/src/Functions/Regexps.h rename to dbms/Functions/Regexps.h diff --git a/dbms/src/Functions/SimdJSONParser.h b/dbms/Functions/SimdJSONParser.h similarity index 100% rename from dbms/src/Functions/SimdJSONParser.h rename to dbms/Functions/SimdJSONParser.h diff --git a/dbms/src/Functions/URL/CMakeLists.txt b/dbms/Functions/URL/CMakeLists.txt similarity index 100% rename from dbms/src/Functions/URL/CMakeLists.txt rename to dbms/Functions/URL/CMakeLists.txt diff --git a/dbms/src/Functions/URL/FunctionsURL.h b/dbms/Functions/URL/FunctionsURL.h similarity index 100% rename from dbms/src/Functions/URL/FunctionsURL.h rename to dbms/Functions/URL/FunctionsURL.h diff --git a/dbms/src/Functions/URL/URLHierarchy.cpp b/dbms/Functions/URL/URLHierarchy.cpp similarity index 100% rename from dbms/src/Functions/URL/URLHierarchy.cpp rename to dbms/Functions/URL/URLHierarchy.cpp diff --git a/dbms/src/Functions/URL/URLPathHierarchy.cpp b/dbms/Functions/URL/URLPathHierarchy.cpp similarity index 100% rename from dbms/src/Functions/URL/URLPathHierarchy.cpp rename to dbms/Functions/URL/URLPathHierarchy.cpp diff --git a/dbms/src/Functions/URL/basename.cpp b/dbms/Functions/URL/basename.cpp similarity index 100% rename from dbms/src/Functions/URL/basename.cpp rename to dbms/Functions/URL/basename.cpp diff --git a/dbms/src/Functions/URL/config_functions_url.h.in b/dbms/Functions/URL/config_functions_url.h.in similarity index 100% rename from dbms/src/Functions/URL/config_functions_url.h.in rename to dbms/Functions/URL/config_functions_url.h.in diff --git a/dbms/src/Functions/URL/cutFragment.cpp b/dbms/Functions/URL/cutFragment.cpp similarity index 100% rename from dbms/src/Functions/URL/cutFragment.cpp rename to dbms/Functions/URL/cutFragment.cpp diff --git a/dbms/src/Functions/URL/cutQueryString.cpp b/dbms/Functions/URL/cutQueryString.cpp similarity index 100% rename from dbms/src/Functions/URL/cutQueryString.cpp rename to dbms/Functions/URL/cutQueryString.cpp diff --git a/dbms/src/Functions/URL/cutQueryStringAndFragment.cpp b/dbms/Functions/URL/cutQueryStringAndFragment.cpp similarity index 100% rename from dbms/src/Functions/URL/cutQueryStringAndFragment.cpp rename to dbms/Functions/URL/cutQueryStringAndFragment.cpp diff --git a/dbms/src/Functions/URL/cutToFirstSignificantSubdomain.cpp b/dbms/Functions/URL/cutToFirstSignificantSubdomain.cpp similarity index 100% rename from dbms/src/Functions/URL/cutToFirstSignificantSubdomain.cpp rename to dbms/Functions/URL/cutToFirstSignificantSubdomain.cpp diff --git a/dbms/src/Functions/URL/cutURLParameter.cpp b/dbms/Functions/URL/cutURLParameter.cpp similarity index 100% rename from dbms/src/Functions/URL/cutURLParameter.cpp rename to dbms/Functions/URL/cutURLParameter.cpp diff --git a/dbms/src/Functions/URL/cutWWW.cpp b/dbms/Functions/URL/cutWWW.cpp similarity index 100% rename from dbms/src/Functions/URL/cutWWW.cpp rename to dbms/Functions/URL/cutWWW.cpp diff --git a/dbms/src/Functions/URL/decodeURLComponent.cpp b/dbms/Functions/URL/decodeURLComponent.cpp similarity index 100% rename from dbms/src/Functions/URL/decodeURLComponent.cpp rename to dbms/Functions/URL/decodeURLComponent.cpp diff --git a/dbms/src/Functions/URL/domain.cpp b/dbms/Functions/URL/domain.cpp similarity index 100% rename from dbms/src/Functions/URL/domain.cpp rename to dbms/Functions/URL/domain.cpp diff --git a/dbms/src/Functions/URL/domain.h b/dbms/Functions/URL/domain.h similarity index 100% rename from dbms/src/Functions/URL/domain.h rename to dbms/Functions/URL/domain.h diff --git a/dbms/src/Functions/URL/domainWithoutWWW.cpp b/dbms/Functions/URL/domainWithoutWWW.cpp similarity index 100% rename from dbms/src/Functions/URL/domainWithoutWWW.cpp rename to dbms/Functions/URL/domainWithoutWWW.cpp diff --git a/dbms/src/Functions/URL/extractURLParameter.cpp b/dbms/Functions/URL/extractURLParameter.cpp similarity index 100% rename from dbms/src/Functions/URL/extractURLParameter.cpp rename to dbms/Functions/URL/extractURLParameter.cpp diff --git a/dbms/src/Functions/URL/extractURLParameterNames.cpp b/dbms/Functions/URL/extractURLParameterNames.cpp similarity index 100% rename from dbms/src/Functions/URL/extractURLParameterNames.cpp rename to dbms/Functions/URL/extractURLParameterNames.cpp diff --git a/dbms/src/Functions/URL/extractURLParameters.cpp b/dbms/Functions/URL/extractURLParameters.cpp similarity index 100% rename from dbms/src/Functions/URL/extractURLParameters.cpp rename to dbms/Functions/URL/extractURLParameters.cpp diff --git a/dbms/src/Functions/URL/firstSignificantSubdomain.cpp b/dbms/Functions/URL/firstSignificantSubdomain.cpp similarity index 100% rename from dbms/src/Functions/URL/firstSignificantSubdomain.cpp rename to dbms/Functions/URL/firstSignificantSubdomain.cpp diff --git a/dbms/src/Functions/URL/firstSignificantSubdomain.h b/dbms/Functions/URL/firstSignificantSubdomain.h similarity index 100% rename from dbms/src/Functions/URL/firstSignificantSubdomain.h rename to dbms/Functions/URL/firstSignificantSubdomain.h diff --git a/dbms/src/Functions/URL/fragment.cpp b/dbms/Functions/URL/fragment.cpp similarity index 100% rename from dbms/src/Functions/URL/fragment.cpp rename to dbms/Functions/URL/fragment.cpp diff --git a/dbms/src/Functions/URL/fragment.h b/dbms/Functions/URL/fragment.h similarity index 100% rename from dbms/src/Functions/URL/fragment.h rename to dbms/Functions/URL/fragment.h diff --git a/dbms/src/Functions/URL/path.cpp b/dbms/Functions/URL/path.cpp similarity index 100% rename from dbms/src/Functions/URL/path.cpp rename to dbms/Functions/URL/path.cpp diff --git a/dbms/src/Functions/URL/pathFull.cpp b/dbms/Functions/URL/pathFull.cpp similarity index 100% rename from dbms/src/Functions/URL/pathFull.cpp rename to dbms/Functions/URL/pathFull.cpp diff --git a/dbms/src/Functions/URL/protocol.cpp b/dbms/Functions/URL/protocol.cpp similarity index 100% rename from dbms/src/Functions/URL/protocol.cpp rename to dbms/Functions/URL/protocol.cpp diff --git a/dbms/src/Functions/URL/protocol.h b/dbms/Functions/URL/protocol.h similarity index 100% rename from dbms/src/Functions/URL/protocol.h rename to dbms/Functions/URL/protocol.h diff --git a/dbms/src/Functions/URL/queryString.cpp b/dbms/Functions/URL/queryString.cpp similarity index 100% rename from dbms/src/Functions/URL/queryString.cpp rename to dbms/Functions/URL/queryString.cpp diff --git a/dbms/src/Functions/URL/queryString.h b/dbms/Functions/URL/queryString.h similarity index 100% rename from dbms/src/Functions/URL/queryString.h rename to dbms/Functions/URL/queryString.h diff --git a/dbms/src/Functions/URL/queryStringAndFragment.cpp b/dbms/Functions/URL/queryStringAndFragment.cpp similarity index 100% rename from dbms/src/Functions/URL/queryStringAndFragment.cpp rename to dbms/Functions/URL/queryStringAndFragment.cpp diff --git a/dbms/src/Functions/URL/queryStringAndFragment.h b/dbms/Functions/URL/queryStringAndFragment.h similarity index 100% rename from dbms/src/Functions/URL/queryStringAndFragment.h rename to dbms/Functions/URL/queryStringAndFragment.h diff --git a/dbms/src/Functions/URL/registerFunctionsURL.cpp b/dbms/Functions/URL/registerFunctionsURL.cpp similarity index 100% rename from dbms/src/Functions/URL/registerFunctionsURL.cpp rename to dbms/Functions/URL/registerFunctionsURL.cpp diff --git a/dbms/src/Functions/URL/tldLookup.generated.cpp b/dbms/Functions/URL/tldLookup.generated.cpp similarity index 100% rename from dbms/src/Functions/URL/tldLookup.generated.cpp rename to dbms/Functions/URL/tldLookup.generated.cpp diff --git a/dbms/src/Functions/URL/tldLookup.gperf b/dbms/Functions/URL/tldLookup.gperf similarity index 100% rename from dbms/src/Functions/URL/tldLookup.gperf rename to dbms/Functions/URL/tldLookup.gperf diff --git a/dbms/src/Functions/URL/tldLookup.h b/dbms/Functions/URL/tldLookup.h similarity index 100% rename from dbms/src/Functions/URL/tldLookup.h rename to dbms/Functions/URL/tldLookup.h diff --git a/dbms/src/Functions/URL/tldLookup.sh b/dbms/Functions/URL/tldLookup.sh similarity index 100% rename from dbms/src/Functions/URL/tldLookup.sh rename to dbms/Functions/URL/tldLookup.sh diff --git a/dbms/src/Functions/URL/topLevelDomain.cpp b/dbms/Functions/URL/topLevelDomain.cpp similarity index 100% rename from dbms/src/Functions/URL/topLevelDomain.cpp rename to dbms/Functions/URL/topLevelDomain.cpp diff --git a/dbms/src/Functions/abs.cpp b/dbms/Functions/abs.cpp similarity index 100% rename from dbms/src/Functions/abs.cpp rename to dbms/Functions/abs.cpp diff --git a/dbms/src/Functions/acos.cpp b/dbms/Functions/acos.cpp similarity index 100% rename from dbms/src/Functions/acos.cpp rename to dbms/Functions/acos.cpp diff --git a/dbms/src/Functions/addDays.cpp b/dbms/Functions/addDays.cpp similarity index 100% rename from dbms/src/Functions/addDays.cpp rename to dbms/Functions/addDays.cpp diff --git a/dbms/src/Functions/addHours.cpp b/dbms/Functions/addHours.cpp similarity index 100% rename from dbms/src/Functions/addHours.cpp rename to dbms/Functions/addHours.cpp diff --git a/dbms/src/Functions/addMinutes.cpp b/dbms/Functions/addMinutes.cpp similarity index 100% rename from dbms/src/Functions/addMinutes.cpp rename to dbms/Functions/addMinutes.cpp diff --git a/dbms/src/Functions/addMonths.cpp b/dbms/Functions/addMonths.cpp similarity index 100% rename from dbms/src/Functions/addMonths.cpp rename to dbms/Functions/addMonths.cpp diff --git a/dbms/src/Functions/addQuarters.cpp b/dbms/Functions/addQuarters.cpp similarity index 100% rename from dbms/src/Functions/addQuarters.cpp rename to dbms/Functions/addQuarters.cpp diff --git a/dbms/src/Functions/addSeconds.cpp b/dbms/Functions/addSeconds.cpp similarity index 100% rename from dbms/src/Functions/addSeconds.cpp rename to dbms/Functions/addSeconds.cpp diff --git a/dbms/src/Functions/addWeeks.cpp b/dbms/Functions/addWeeks.cpp similarity index 100% rename from dbms/src/Functions/addWeeks.cpp rename to dbms/Functions/addWeeks.cpp diff --git a/dbms/src/Functions/addYears.cpp b/dbms/Functions/addYears.cpp similarity index 100% rename from dbms/src/Functions/addYears.cpp rename to dbms/Functions/addYears.cpp diff --git a/dbms/src/Functions/addressToLine.cpp b/dbms/Functions/addressToLine.cpp similarity index 100% rename from dbms/src/Functions/addressToLine.cpp rename to dbms/Functions/addressToLine.cpp diff --git a/dbms/src/Functions/addressToSymbol.cpp b/dbms/Functions/addressToSymbol.cpp similarity index 100% rename from dbms/src/Functions/addressToSymbol.cpp rename to dbms/Functions/addressToSymbol.cpp diff --git a/dbms/src/Functions/appendTrailingCharIfAbsent.cpp b/dbms/Functions/appendTrailingCharIfAbsent.cpp similarity index 100% rename from dbms/src/Functions/appendTrailingCharIfAbsent.cpp rename to dbms/Functions/appendTrailingCharIfAbsent.cpp diff --git a/dbms/src/Functions/array/CMakeLists.txt b/dbms/Functions/array/CMakeLists.txt similarity index 100% rename from dbms/src/Functions/array/CMakeLists.txt rename to dbms/Functions/array/CMakeLists.txt diff --git a/dbms/src/Functions/array/FunctionArrayMapped.h b/dbms/Functions/array/FunctionArrayMapped.h similarity index 100% rename from dbms/src/Functions/array/FunctionArrayMapped.h rename to dbms/Functions/array/FunctionArrayMapped.h diff --git a/dbms/src/Functions/array/array.cpp b/dbms/Functions/array/array.cpp similarity index 100% rename from dbms/src/Functions/array/array.cpp rename to dbms/Functions/array/array.cpp diff --git a/dbms/src/Functions/array/arrayAUC.cpp b/dbms/Functions/array/arrayAUC.cpp similarity index 100% rename from dbms/src/Functions/array/arrayAUC.cpp rename to dbms/Functions/array/arrayAUC.cpp diff --git a/dbms/src/Functions/array/arrayAll.cpp b/dbms/Functions/array/arrayAll.cpp similarity index 100% rename from dbms/src/Functions/array/arrayAll.cpp rename to dbms/Functions/array/arrayAll.cpp diff --git a/dbms/src/Functions/array/arrayCompact.cpp b/dbms/Functions/array/arrayCompact.cpp similarity index 100% rename from dbms/src/Functions/array/arrayCompact.cpp rename to dbms/Functions/array/arrayCompact.cpp diff --git a/dbms/src/Functions/array/arrayConcat.cpp b/dbms/Functions/array/arrayConcat.cpp similarity index 100% rename from dbms/src/Functions/array/arrayConcat.cpp rename to dbms/Functions/array/arrayConcat.cpp diff --git a/dbms/src/Functions/array/arrayCount.cpp b/dbms/Functions/array/arrayCount.cpp similarity index 100% rename from dbms/src/Functions/array/arrayCount.cpp rename to dbms/Functions/array/arrayCount.cpp diff --git a/dbms/src/Functions/array/arrayCumSum.cpp b/dbms/Functions/array/arrayCumSum.cpp similarity index 100% rename from dbms/src/Functions/array/arrayCumSum.cpp rename to dbms/Functions/array/arrayCumSum.cpp diff --git a/dbms/src/Functions/array/arrayCumSumNonNegative.cpp b/dbms/Functions/array/arrayCumSumNonNegative.cpp similarity index 100% rename from dbms/src/Functions/array/arrayCumSumNonNegative.cpp rename to dbms/Functions/array/arrayCumSumNonNegative.cpp diff --git a/dbms/src/Functions/array/arrayDifference.cpp b/dbms/Functions/array/arrayDifference.cpp similarity index 100% rename from dbms/src/Functions/array/arrayDifference.cpp rename to dbms/Functions/array/arrayDifference.cpp diff --git a/dbms/src/Functions/array/arrayDistinct.cpp b/dbms/Functions/array/arrayDistinct.cpp similarity index 100% rename from dbms/src/Functions/array/arrayDistinct.cpp rename to dbms/Functions/array/arrayDistinct.cpp diff --git a/dbms/src/Functions/array/arrayElement.cpp b/dbms/Functions/array/arrayElement.cpp similarity index 100% rename from dbms/src/Functions/array/arrayElement.cpp rename to dbms/Functions/array/arrayElement.cpp diff --git a/dbms/src/Functions/array/arrayEnumerate.cpp b/dbms/Functions/array/arrayEnumerate.cpp similarity index 100% rename from dbms/src/Functions/array/arrayEnumerate.cpp rename to dbms/Functions/array/arrayEnumerate.cpp diff --git a/dbms/src/Functions/array/arrayEnumerateDense.cpp b/dbms/Functions/array/arrayEnumerateDense.cpp similarity index 100% rename from dbms/src/Functions/array/arrayEnumerateDense.cpp rename to dbms/Functions/array/arrayEnumerateDense.cpp diff --git a/dbms/src/Functions/array/arrayEnumerateDenseRanked.cpp b/dbms/Functions/array/arrayEnumerateDenseRanked.cpp similarity index 100% rename from dbms/src/Functions/array/arrayEnumerateDenseRanked.cpp rename to dbms/Functions/array/arrayEnumerateDenseRanked.cpp diff --git a/dbms/src/Functions/array/arrayEnumerateExtended.h b/dbms/Functions/array/arrayEnumerateExtended.h similarity index 100% rename from dbms/src/Functions/array/arrayEnumerateExtended.h rename to dbms/Functions/array/arrayEnumerateExtended.h diff --git a/dbms/src/Functions/array/arrayEnumerateRanked.cpp b/dbms/Functions/array/arrayEnumerateRanked.cpp similarity index 100% rename from dbms/src/Functions/array/arrayEnumerateRanked.cpp rename to dbms/Functions/array/arrayEnumerateRanked.cpp diff --git a/dbms/src/Functions/array/arrayEnumerateRanked.h b/dbms/Functions/array/arrayEnumerateRanked.h similarity index 100% rename from dbms/src/Functions/array/arrayEnumerateRanked.h rename to dbms/Functions/array/arrayEnumerateRanked.h diff --git a/dbms/src/Functions/array/arrayEnumerateUniq.cpp b/dbms/Functions/array/arrayEnumerateUniq.cpp similarity index 100% rename from dbms/src/Functions/array/arrayEnumerateUniq.cpp rename to dbms/Functions/array/arrayEnumerateUniq.cpp diff --git a/dbms/src/Functions/array/arrayEnumerateUniqRanked.cpp b/dbms/Functions/array/arrayEnumerateUniqRanked.cpp similarity index 100% rename from dbms/src/Functions/array/arrayEnumerateUniqRanked.cpp rename to dbms/Functions/array/arrayEnumerateUniqRanked.cpp diff --git a/dbms/src/Functions/array/arrayExists.cpp b/dbms/Functions/array/arrayExists.cpp similarity index 100% rename from dbms/src/Functions/array/arrayExists.cpp rename to dbms/Functions/array/arrayExists.cpp diff --git a/dbms/src/Functions/array/arrayFill.cpp b/dbms/Functions/array/arrayFill.cpp similarity index 100% rename from dbms/src/Functions/array/arrayFill.cpp rename to dbms/Functions/array/arrayFill.cpp diff --git a/dbms/src/Functions/array/arrayFilter.cpp b/dbms/Functions/array/arrayFilter.cpp similarity index 100% rename from dbms/src/Functions/array/arrayFilter.cpp rename to dbms/Functions/array/arrayFilter.cpp diff --git a/dbms/src/Functions/array/arrayFirst.cpp b/dbms/Functions/array/arrayFirst.cpp similarity index 100% rename from dbms/src/Functions/array/arrayFirst.cpp rename to dbms/Functions/array/arrayFirst.cpp diff --git a/dbms/src/Functions/array/arrayFirstIndex.cpp b/dbms/Functions/array/arrayFirstIndex.cpp similarity index 100% rename from dbms/src/Functions/array/arrayFirstIndex.cpp rename to dbms/Functions/array/arrayFirstIndex.cpp diff --git a/dbms/src/Functions/array/arrayFlatten.cpp b/dbms/Functions/array/arrayFlatten.cpp similarity index 100% rename from dbms/src/Functions/array/arrayFlatten.cpp rename to dbms/Functions/array/arrayFlatten.cpp diff --git a/dbms/src/Functions/array/arrayIndex.h b/dbms/Functions/array/arrayIndex.h similarity index 100% rename from dbms/src/Functions/array/arrayIndex.h rename to dbms/Functions/array/arrayIndex.h diff --git a/dbms/src/Functions/array/arrayIntersect.cpp b/dbms/Functions/array/arrayIntersect.cpp similarity index 100% rename from dbms/src/Functions/array/arrayIntersect.cpp rename to dbms/Functions/array/arrayIntersect.cpp diff --git a/dbms/src/Functions/array/arrayJoin.cpp b/dbms/Functions/array/arrayJoin.cpp similarity index 100% rename from dbms/src/Functions/array/arrayJoin.cpp rename to dbms/Functions/array/arrayJoin.cpp diff --git a/dbms/src/Functions/array/arrayMap.cpp b/dbms/Functions/array/arrayMap.cpp similarity index 100% rename from dbms/src/Functions/array/arrayMap.cpp rename to dbms/Functions/array/arrayMap.cpp diff --git a/dbms/src/Functions/array/arrayPop.h b/dbms/Functions/array/arrayPop.h similarity index 100% rename from dbms/src/Functions/array/arrayPop.h rename to dbms/Functions/array/arrayPop.h diff --git a/dbms/src/Functions/array/arrayPopBack.cpp b/dbms/Functions/array/arrayPopBack.cpp similarity index 100% rename from dbms/src/Functions/array/arrayPopBack.cpp rename to dbms/Functions/array/arrayPopBack.cpp diff --git a/dbms/src/Functions/array/arrayPopFront.cpp b/dbms/Functions/array/arrayPopFront.cpp similarity index 100% rename from dbms/src/Functions/array/arrayPopFront.cpp rename to dbms/Functions/array/arrayPopFront.cpp diff --git a/dbms/src/Functions/array/arrayPush.h b/dbms/Functions/array/arrayPush.h similarity index 100% rename from dbms/src/Functions/array/arrayPush.h rename to dbms/Functions/array/arrayPush.h diff --git a/dbms/src/Functions/array/arrayPushBack.cpp b/dbms/Functions/array/arrayPushBack.cpp similarity index 100% rename from dbms/src/Functions/array/arrayPushBack.cpp rename to dbms/Functions/array/arrayPushBack.cpp diff --git a/dbms/src/Functions/array/arrayPushFront.cpp b/dbms/Functions/array/arrayPushFront.cpp similarity index 100% rename from dbms/src/Functions/array/arrayPushFront.cpp rename to dbms/Functions/array/arrayPushFront.cpp diff --git a/dbms/src/Functions/array/arrayReduce.cpp b/dbms/Functions/array/arrayReduce.cpp similarity index 100% rename from dbms/src/Functions/array/arrayReduce.cpp rename to dbms/Functions/array/arrayReduce.cpp diff --git a/dbms/src/Functions/array/arrayReduceInRanges.cpp b/dbms/Functions/array/arrayReduceInRanges.cpp similarity index 100% rename from dbms/src/Functions/array/arrayReduceInRanges.cpp rename to dbms/Functions/array/arrayReduceInRanges.cpp diff --git a/dbms/src/Functions/array/arrayResize.cpp b/dbms/Functions/array/arrayResize.cpp similarity index 100% rename from dbms/src/Functions/array/arrayResize.cpp rename to dbms/Functions/array/arrayResize.cpp diff --git a/dbms/src/Functions/array/arrayReverse.cpp b/dbms/Functions/array/arrayReverse.cpp similarity index 100% rename from dbms/src/Functions/array/arrayReverse.cpp rename to dbms/Functions/array/arrayReverse.cpp diff --git a/dbms/src/Functions/array/arrayScalarProduct.h b/dbms/Functions/array/arrayScalarProduct.h similarity index 100% rename from dbms/src/Functions/array/arrayScalarProduct.h rename to dbms/Functions/array/arrayScalarProduct.h diff --git a/dbms/src/Functions/array/arraySlice.cpp b/dbms/Functions/array/arraySlice.cpp similarity index 100% rename from dbms/src/Functions/array/arraySlice.cpp rename to dbms/Functions/array/arraySlice.cpp diff --git a/dbms/src/Functions/array/arraySort.cpp b/dbms/Functions/array/arraySort.cpp similarity index 100% rename from dbms/src/Functions/array/arraySort.cpp rename to dbms/Functions/array/arraySort.cpp diff --git a/dbms/src/Functions/array/arraySplit.cpp b/dbms/Functions/array/arraySplit.cpp similarity index 100% rename from dbms/src/Functions/array/arraySplit.cpp rename to dbms/Functions/array/arraySplit.cpp diff --git a/dbms/src/Functions/array/arraySum.cpp b/dbms/Functions/array/arraySum.cpp similarity index 100% rename from dbms/src/Functions/array/arraySum.cpp rename to dbms/Functions/array/arraySum.cpp diff --git a/dbms/src/Functions/array/arrayUniq.cpp b/dbms/Functions/array/arrayUniq.cpp similarity index 100% rename from dbms/src/Functions/array/arrayUniq.cpp rename to dbms/Functions/array/arrayUniq.cpp diff --git a/dbms/src/Functions/array/arrayWithConstant.cpp b/dbms/Functions/array/arrayWithConstant.cpp similarity index 100% rename from dbms/src/Functions/array/arrayWithConstant.cpp rename to dbms/Functions/array/arrayWithConstant.cpp diff --git a/dbms/src/Functions/array/arrayZip.cpp b/dbms/Functions/array/arrayZip.cpp similarity index 100% rename from dbms/src/Functions/array/arrayZip.cpp rename to dbms/Functions/array/arrayZip.cpp diff --git a/dbms/src/Functions/array/countEqual.cpp b/dbms/Functions/array/countEqual.cpp similarity index 100% rename from dbms/src/Functions/array/countEqual.cpp rename to dbms/Functions/array/countEqual.cpp diff --git a/dbms/src/Functions/array/emptyArray.cpp b/dbms/Functions/array/emptyArray.cpp similarity index 100% rename from dbms/src/Functions/array/emptyArray.cpp rename to dbms/Functions/array/emptyArray.cpp diff --git a/dbms/src/Functions/array/emptyArrayToSingle.cpp b/dbms/Functions/array/emptyArrayToSingle.cpp similarity index 100% rename from dbms/src/Functions/array/emptyArrayToSingle.cpp rename to dbms/Functions/array/emptyArrayToSingle.cpp diff --git a/dbms/src/Functions/array/has.cpp b/dbms/Functions/array/has.cpp similarity index 100% rename from dbms/src/Functions/array/has.cpp rename to dbms/Functions/array/has.cpp diff --git a/dbms/src/Functions/array/hasAll.cpp b/dbms/Functions/array/hasAll.cpp similarity index 100% rename from dbms/src/Functions/array/hasAll.cpp rename to dbms/Functions/array/hasAll.cpp diff --git a/dbms/src/Functions/array/hasAllAny.h b/dbms/Functions/array/hasAllAny.h similarity index 100% rename from dbms/src/Functions/array/hasAllAny.h rename to dbms/Functions/array/hasAllAny.h diff --git a/dbms/src/Functions/array/hasAny.cpp b/dbms/Functions/array/hasAny.cpp similarity index 100% rename from dbms/src/Functions/array/hasAny.cpp rename to dbms/Functions/array/hasAny.cpp diff --git a/dbms/src/Functions/array/indexOf.cpp b/dbms/Functions/array/indexOf.cpp similarity index 100% rename from dbms/src/Functions/array/indexOf.cpp rename to dbms/Functions/array/indexOf.cpp diff --git a/dbms/src/Functions/array/length.cpp b/dbms/Functions/array/length.cpp similarity index 100% rename from dbms/src/Functions/array/length.cpp rename to dbms/Functions/array/length.cpp diff --git a/dbms/src/Functions/array/range.cpp b/dbms/Functions/array/range.cpp similarity index 100% rename from dbms/src/Functions/array/range.cpp rename to dbms/Functions/array/range.cpp diff --git a/dbms/src/Functions/array/registerFunctionsArray.cpp b/dbms/Functions/array/registerFunctionsArray.cpp similarity index 100% rename from dbms/src/Functions/array/registerFunctionsArray.cpp rename to dbms/Functions/array/registerFunctionsArray.cpp diff --git a/dbms/src/Functions/asin.cpp b/dbms/Functions/asin.cpp similarity index 100% rename from dbms/src/Functions/asin.cpp rename to dbms/Functions/asin.cpp diff --git a/dbms/src/Functions/assumeNotNull.cpp b/dbms/Functions/assumeNotNull.cpp similarity index 100% rename from dbms/src/Functions/assumeNotNull.cpp rename to dbms/Functions/assumeNotNull.cpp diff --git a/dbms/src/Functions/atan.cpp b/dbms/Functions/atan.cpp similarity index 100% rename from dbms/src/Functions/atan.cpp rename to dbms/Functions/atan.cpp diff --git a/dbms/src/Functions/bar.cpp b/dbms/Functions/bar.cpp similarity index 100% rename from dbms/src/Functions/bar.cpp rename to dbms/Functions/bar.cpp diff --git a/dbms/src/Functions/base64Decode.cpp b/dbms/Functions/base64Decode.cpp similarity index 100% rename from dbms/src/Functions/base64Decode.cpp rename to dbms/Functions/base64Decode.cpp diff --git a/dbms/src/Functions/base64Encode.cpp b/dbms/Functions/base64Encode.cpp similarity index 100% rename from dbms/src/Functions/base64Encode.cpp rename to dbms/Functions/base64Encode.cpp diff --git a/dbms/src/Functions/bitAnd.cpp b/dbms/Functions/bitAnd.cpp similarity index 100% rename from dbms/src/Functions/bitAnd.cpp rename to dbms/Functions/bitAnd.cpp diff --git a/dbms/src/Functions/bitBoolMaskAnd.cpp b/dbms/Functions/bitBoolMaskAnd.cpp similarity index 96% rename from dbms/src/Functions/bitBoolMaskAnd.cpp rename to dbms/Functions/bitBoolMaskAnd.cpp index c37a1ebc1d7..09d2122abde 100644 --- a/dbms/src/Functions/bitBoolMaskAnd.cpp +++ b/dbms/Functions/bitBoolMaskAnd.cpp @@ -10,7 +10,7 @@ namespace DB extern const int BAD_CAST; } - /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/src/Storages/MergeTree/BoolMask.h). + /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/Storages/MergeTree/BoolMask.h). /// This function provides "AND" operation for BoolMasks. /// Returns: "can be true" = A."can be true" AND B."can be true" /// "can be false" = A."can be false" OR B."can be false" diff --git a/dbms/src/Functions/bitBoolMaskOr.cpp b/dbms/Functions/bitBoolMaskOr.cpp similarity index 96% rename from dbms/src/Functions/bitBoolMaskOr.cpp rename to dbms/Functions/bitBoolMaskOr.cpp index ec3d4e266f1..02882c0bb3f 100644 --- a/dbms/src/Functions/bitBoolMaskOr.cpp +++ b/dbms/Functions/bitBoolMaskOr.cpp @@ -10,7 +10,7 @@ namespace DB extern const int BAD_CAST; } - /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/src/Storages/MergeTree/BoolMask.h). + /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/Storages/MergeTree/BoolMask.h). /// This function provides "OR" operation for BoolMasks. /// Returns: "can be true" = A."can be true" OR B."can be true" /// "can be false" = A."can be false" AND B."can be false" diff --git a/dbms/src/Functions/bitCount.cpp b/dbms/Functions/bitCount.cpp similarity index 100% rename from dbms/src/Functions/bitCount.cpp rename to dbms/Functions/bitCount.cpp diff --git a/dbms/src/Functions/bitNot.cpp b/dbms/Functions/bitNot.cpp similarity index 100% rename from dbms/src/Functions/bitNot.cpp rename to dbms/Functions/bitNot.cpp diff --git a/dbms/src/Functions/bitOr.cpp b/dbms/Functions/bitOr.cpp similarity index 100% rename from dbms/src/Functions/bitOr.cpp rename to dbms/Functions/bitOr.cpp diff --git a/dbms/src/Functions/bitRotateLeft.cpp b/dbms/Functions/bitRotateLeft.cpp similarity index 100% rename from dbms/src/Functions/bitRotateLeft.cpp rename to dbms/Functions/bitRotateLeft.cpp diff --git a/dbms/src/Functions/bitRotateRight.cpp b/dbms/Functions/bitRotateRight.cpp similarity index 100% rename from dbms/src/Functions/bitRotateRight.cpp rename to dbms/Functions/bitRotateRight.cpp diff --git a/dbms/src/Functions/bitShiftLeft.cpp b/dbms/Functions/bitShiftLeft.cpp similarity index 100% rename from dbms/src/Functions/bitShiftLeft.cpp rename to dbms/Functions/bitShiftLeft.cpp diff --git a/dbms/src/Functions/bitShiftRight.cpp b/dbms/Functions/bitShiftRight.cpp similarity index 100% rename from dbms/src/Functions/bitShiftRight.cpp rename to dbms/Functions/bitShiftRight.cpp diff --git a/dbms/src/Functions/bitSwapLastTwo.cpp b/dbms/Functions/bitSwapLastTwo.cpp similarity index 97% rename from dbms/src/Functions/bitSwapLastTwo.cpp rename to dbms/Functions/bitSwapLastTwo.cpp index 11b52eca66f..5356d98d791 100644 --- a/dbms/src/Functions/bitSwapLastTwo.cpp +++ b/dbms/Functions/bitSwapLastTwo.cpp @@ -10,7 +10,7 @@ namespace DB extern const int BAD_CAST; } - /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/src/Storages/MergeTree/BoolMask.h). + /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/Storages/MergeTree/BoolMask.h). /// This function provides "NOT" operation for BoolMasks by swapping last two bits ("can be true" <-> "can be false"). template struct BitSwapLastTwoImpl diff --git a/dbms/src/Functions/bitTest.cpp b/dbms/Functions/bitTest.cpp similarity index 100% rename from dbms/src/Functions/bitTest.cpp rename to dbms/Functions/bitTest.cpp diff --git a/dbms/src/Functions/bitTestAll.cpp b/dbms/Functions/bitTestAll.cpp similarity index 100% rename from dbms/src/Functions/bitTestAll.cpp rename to dbms/Functions/bitTestAll.cpp diff --git a/dbms/src/Functions/bitTestAny.cpp b/dbms/Functions/bitTestAny.cpp similarity index 100% rename from dbms/src/Functions/bitTestAny.cpp rename to dbms/Functions/bitTestAny.cpp diff --git a/dbms/src/Functions/bitWrapperFunc.cpp b/dbms/Functions/bitWrapperFunc.cpp similarity index 96% rename from dbms/src/Functions/bitWrapperFunc.cpp rename to dbms/Functions/bitWrapperFunc.cpp index 2de8c0feb99..447f8a4f62b 100644 --- a/dbms/src/Functions/bitWrapperFunc.cpp +++ b/dbms/Functions/bitWrapperFunc.cpp @@ -9,7 +9,7 @@ namespace DB extern const int BAD_CAST; } - /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/src/Storages/MergeTree/BoolMask.h). + /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/Storages/MergeTree/BoolMask.h). /// This function wraps bool atomic functions /// and transforms their boolean return value to the BoolMask ("can be false" and "can be true" bits). template diff --git a/dbms/src/Functions/bitXor.cpp b/dbms/Functions/bitXor.cpp similarity index 100% rename from dbms/src/Functions/bitXor.cpp rename to dbms/Functions/bitXor.cpp diff --git a/dbms/src/Functions/blockNumber.cpp b/dbms/Functions/blockNumber.cpp similarity index 100% rename from dbms/src/Functions/blockNumber.cpp rename to dbms/Functions/blockNumber.cpp diff --git a/dbms/src/Functions/blockSerializedSize.cpp b/dbms/Functions/blockSerializedSize.cpp similarity index 100% rename from dbms/src/Functions/blockSerializedSize.cpp rename to dbms/Functions/blockSerializedSize.cpp diff --git a/dbms/src/Functions/blockSize.cpp b/dbms/Functions/blockSize.cpp similarity index 100% rename from dbms/src/Functions/blockSize.cpp rename to dbms/Functions/blockSize.cpp diff --git a/dbms/src/Functions/caseWithExpression.cpp b/dbms/Functions/caseWithExpression.cpp similarity index 100% rename from dbms/src/Functions/caseWithExpression.cpp rename to dbms/Functions/caseWithExpression.cpp diff --git a/dbms/src/Functions/castTypeToEither.h b/dbms/Functions/castTypeToEither.h similarity index 100% rename from dbms/src/Functions/castTypeToEither.h rename to dbms/Functions/castTypeToEither.h diff --git a/dbms/src/Functions/cbrt.cpp b/dbms/Functions/cbrt.cpp similarity index 100% rename from dbms/src/Functions/cbrt.cpp rename to dbms/Functions/cbrt.cpp diff --git a/dbms/src/Functions/coalesce.cpp b/dbms/Functions/coalesce.cpp similarity index 100% rename from dbms/src/Functions/coalesce.cpp rename to dbms/Functions/coalesce.cpp diff --git a/dbms/src/Functions/concat.cpp b/dbms/Functions/concat.cpp similarity index 100% rename from dbms/src/Functions/concat.cpp rename to dbms/Functions/concat.cpp diff --git a/dbms/src/Functions/config_functions.h.in b/dbms/Functions/config_functions.h.in similarity index 100% rename from dbms/src/Functions/config_functions.h.in rename to dbms/Functions/config_functions.h.in diff --git a/dbms/src/Functions/convertCharset.cpp b/dbms/Functions/convertCharset.cpp similarity index 100% rename from dbms/src/Functions/convertCharset.cpp rename to dbms/Functions/convertCharset.cpp diff --git a/dbms/src/Functions/cos.cpp b/dbms/Functions/cos.cpp similarity index 100% rename from dbms/src/Functions/cos.cpp rename to dbms/Functions/cos.cpp diff --git a/dbms/src/Functions/currentDatabase.cpp b/dbms/Functions/currentDatabase.cpp similarity index 100% rename from dbms/src/Functions/currentDatabase.cpp rename to dbms/Functions/currentDatabase.cpp diff --git a/dbms/src/Functions/currentQuota.cpp b/dbms/Functions/currentQuota.cpp similarity index 100% rename from dbms/src/Functions/currentQuota.cpp rename to dbms/Functions/currentQuota.cpp diff --git a/dbms/src/Functions/currentRowPolicies.cpp b/dbms/Functions/currentRowPolicies.cpp similarity index 100% rename from dbms/src/Functions/currentRowPolicies.cpp rename to dbms/Functions/currentRowPolicies.cpp diff --git a/dbms/src/Functions/currentUser.cpp b/dbms/Functions/currentUser.cpp similarity index 100% rename from dbms/src/Functions/currentUser.cpp rename to dbms/Functions/currentUser.cpp diff --git a/dbms/src/Functions/dateDiff.cpp b/dbms/Functions/dateDiff.cpp similarity index 100% rename from dbms/src/Functions/dateDiff.cpp rename to dbms/Functions/dateDiff.cpp diff --git a/dbms/src/Functions/defaultValueOfArgumentType.cpp b/dbms/Functions/defaultValueOfArgumentType.cpp similarity index 100% rename from dbms/src/Functions/defaultValueOfArgumentType.cpp rename to dbms/Functions/defaultValueOfArgumentType.cpp diff --git a/dbms/src/Functions/demange.cpp b/dbms/Functions/demange.cpp similarity index 100% rename from dbms/src/Functions/demange.cpp rename to dbms/Functions/demange.cpp diff --git a/dbms/src/Functions/divide.cpp b/dbms/Functions/divide.cpp similarity index 100% rename from dbms/src/Functions/divide.cpp rename to dbms/Functions/divide.cpp diff --git a/dbms/src/Functions/dumpColumnStructure.cpp b/dbms/Functions/dumpColumnStructure.cpp similarity index 100% rename from dbms/src/Functions/dumpColumnStructure.cpp rename to dbms/Functions/dumpColumnStructure.cpp diff --git a/dbms/src/Functions/e.cpp b/dbms/Functions/e.cpp similarity index 100% rename from dbms/src/Functions/e.cpp rename to dbms/Functions/e.cpp diff --git a/dbms/src/Functions/empty.cpp b/dbms/Functions/empty.cpp similarity index 100% rename from dbms/src/Functions/empty.cpp rename to dbms/Functions/empty.cpp diff --git a/dbms/src/Functions/endsWith.cpp b/dbms/Functions/endsWith.cpp similarity index 100% rename from dbms/src/Functions/endsWith.cpp rename to dbms/Functions/endsWith.cpp diff --git a/dbms/src/Functions/equals.cpp b/dbms/Functions/equals.cpp similarity index 100% rename from dbms/src/Functions/equals.cpp rename to dbms/Functions/equals.cpp diff --git a/dbms/src/Functions/erf.cpp b/dbms/Functions/erf.cpp similarity index 100% rename from dbms/src/Functions/erf.cpp rename to dbms/Functions/erf.cpp diff --git a/dbms/src/Functions/erfc.cpp b/dbms/Functions/erfc.cpp similarity index 100% rename from dbms/src/Functions/erfc.cpp rename to dbms/Functions/erfc.cpp diff --git a/dbms/src/Functions/evalMLMethod.cpp b/dbms/Functions/evalMLMethod.cpp similarity index 100% rename from dbms/src/Functions/evalMLMethod.cpp rename to dbms/Functions/evalMLMethod.cpp diff --git a/dbms/src/Functions/exp.cpp b/dbms/Functions/exp.cpp similarity index 100% rename from dbms/src/Functions/exp.cpp rename to dbms/Functions/exp.cpp diff --git a/dbms/src/Functions/exp10.cpp b/dbms/Functions/exp10.cpp similarity index 100% rename from dbms/src/Functions/exp10.cpp rename to dbms/Functions/exp10.cpp diff --git a/dbms/src/Functions/exp2.cpp b/dbms/Functions/exp2.cpp similarity index 100% rename from dbms/src/Functions/exp2.cpp rename to dbms/Functions/exp2.cpp diff --git a/dbms/src/Functions/extractTimeZoneFromFunctionArguments.cpp b/dbms/Functions/extractTimeZoneFromFunctionArguments.cpp similarity index 100% rename from dbms/src/Functions/extractTimeZoneFromFunctionArguments.cpp rename to dbms/Functions/extractTimeZoneFromFunctionArguments.cpp diff --git a/dbms/src/Functions/extractTimeZoneFromFunctionArguments.h b/dbms/Functions/extractTimeZoneFromFunctionArguments.h similarity index 100% rename from dbms/src/Functions/extractTimeZoneFromFunctionArguments.h rename to dbms/Functions/extractTimeZoneFromFunctionArguments.h diff --git a/dbms/src/Functions/filesystem.cpp b/dbms/Functions/filesystem.cpp similarity index 100% rename from dbms/src/Functions/filesystem.cpp rename to dbms/Functions/filesystem.cpp diff --git a/dbms/src/Functions/finalizeAggregation.cpp b/dbms/Functions/finalizeAggregation.cpp similarity index 100% rename from dbms/src/Functions/finalizeAggregation.cpp rename to dbms/Functions/finalizeAggregation.cpp diff --git a/dbms/src/Functions/formatDateTime.cpp b/dbms/Functions/formatDateTime.cpp similarity index 100% rename from dbms/src/Functions/formatDateTime.cpp rename to dbms/Functions/formatDateTime.cpp diff --git a/dbms/src/Functions/formatString.cpp b/dbms/Functions/formatString.cpp similarity index 100% rename from dbms/src/Functions/formatString.cpp rename to dbms/Functions/formatString.cpp diff --git a/dbms/src/Functions/formatString.h b/dbms/Functions/formatString.h similarity index 100% rename from dbms/src/Functions/formatString.h rename to dbms/Functions/formatString.h diff --git a/dbms/src/Functions/gcd.cpp b/dbms/Functions/gcd.cpp similarity index 100% rename from dbms/src/Functions/gcd.cpp rename to dbms/Functions/gcd.cpp diff --git a/dbms/src/Functions/generateUUIDv4.cpp b/dbms/Functions/generateUUIDv4.cpp similarity index 100% rename from dbms/src/Functions/generateUUIDv4.cpp rename to dbms/Functions/generateUUIDv4.cpp diff --git a/dbms/src/Functions/geoToH3.cpp b/dbms/Functions/geoToH3.cpp similarity index 100% rename from dbms/src/Functions/geoToH3.cpp rename to dbms/Functions/geoToH3.cpp diff --git a/dbms/src/Functions/geohashDecode.cpp b/dbms/Functions/geohashDecode.cpp similarity index 100% rename from dbms/src/Functions/geohashDecode.cpp rename to dbms/Functions/geohashDecode.cpp diff --git a/dbms/src/Functions/geohashEncode.cpp b/dbms/Functions/geohashEncode.cpp similarity index 100% rename from dbms/src/Functions/geohashEncode.cpp rename to dbms/Functions/geohashEncode.cpp diff --git a/dbms/src/Functions/geohashesInBox.cpp b/dbms/Functions/geohashesInBox.cpp similarity index 100% rename from dbms/src/Functions/geohashesInBox.cpp rename to dbms/Functions/geohashesInBox.cpp diff --git a/dbms/src/Functions/getMacro.cpp b/dbms/Functions/getMacro.cpp similarity index 100% rename from dbms/src/Functions/getMacro.cpp rename to dbms/Functions/getMacro.cpp diff --git a/dbms/src/Functions/getScalar.cpp b/dbms/Functions/getScalar.cpp similarity index 100% rename from dbms/src/Functions/getScalar.cpp rename to dbms/Functions/getScalar.cpp diff --git a/dbms/src/Functions/getSizeOfEnumType.cpp b/dbms/Functions/getSizeOfEnumType.cpp similarity index 100% rename from dbms/src/Functions/getSizeOfEnumType.cpp rename to dbms/Functions/getSizeOfEnumType.cpp diff --git a/dbms/src/Functions/greatCircleDistance.cpp b/dbms/Functions/greatCircleDistance.cpp similarity index 100% rename from dbms/src/Functions/greatCircleDistance.cpp rename to dbms/Functions/greatCircleDistance.cpp diff --git a/dbms/src/Functions/greater.cpp b/dbms/Functions/greater.cpp similarity index 100% rename from dbms/src/Functions/greater.cpp rename to dbms/Functions/greater.cpp diff --git a/dbms/src/Functions/greaterOrEquals.cpp b/dbms/Functions/greaterOrEquals.cpp similarity index 100% rename from dbms/src/Functions/greaterOrEquals.cpp rename to dbms/Functions/greaterOrEquals.cpp diff --git a/dbms/src/Functions/greatest.cpp b/dbms/Functions/greatest.cpp similarity index 100% rename from dbms/src/Functions/greatest.cpp rename to dbms/Functions/greatest.cpp diff --git a/dbms/src/Functions/h3EdgeAngle.cpp b/dbms/Functions/h3EdgeAngle.cpp similarity index 100% rename from dbms/src/Functions/h3EdgeAngle.cpp rename to dbms/Functions/h3EdgeAngle.cpp diff --git a/dbms/src/Functions/h3EdgeLengthM.cpp b/dbms/Functions/h3EdgeLengthM.cpp similarity index 100% rename from dbms/src/Functions/h3EdgeLengthM.cpp rename to dbms/Functions/h3EdgeLengthM.cpp diff --git a/dbms/src/Functions/h3GetBaseCell.cpp b/dbms/Functions/h3GetBaseCell.cpp similarity index 100% rename from dbms/src/Functions/h3GetBaseCell.cpp rename to dbms/Functions/h3GetBaseCell.cpp diff --git a/dbms/src/Functions/h3GetResolution.cpp b/dbms/Functions/h3GetResolution.cpp similarity index 100% rename from dbms/src/Functions/h3GetResolution.cpp rename to dbms/Functions/h3GetResolution.cpp diff --git a/dbms/src/Functions/h3HexAreaM2.cpp b/dbms/Functions/h3HexAreaM2.cpp similarity index 100% rename from dbms/src/Functions/h3HexAreaM2.cpp rename to dbms/Functions/h3HexAreaM2.cpp diff --git a/dbms/src/Functions/h3IndexesAreNeighbors.cpp b/dbms/Functions/h3IndexesAreNeighbors.cpp similarity index 100% rename from dbms/src/Functions/h3IndexesAreNeighbors.cpp rename to dbms/Functions/h3IndexesAreNeighbors.cpp diff --git a/dbms/src/Functions/h3IsValid.cpp b/dbms/Functions/h3IsValid.cpp similarity index 100% rename from dbms/src/Functions/h3IsValid.cpp rename to dbms/Functions/h3IsValid.cpp diff --git a/dbms/src/Functions/h3ToChildren.cpp b/dbms/Functions/h3ToChildren.cpp similarity index 100% rename from dbms/src/Functions/h3ToChildren.cpp rename to dbms/Functions/h3ToChildren.cpp diff --git a/dbms/src/Functions/h3ToParent.cpp b/dbms/Functions/h3ToParent.cpp similarity index 100% rename from dbms/src/Functions/h3ToParent.cpp rename to dbms/Functions/h3ToParent.cpp diff --git a/dbms/src/Functions/h3ToString.cpp b/dbms/Functions/h3ToString.cpp similarity index 100% rename from dbms/src/Functions/h3ToString.cpp rename to dbms/Functions/h3ToString.cpp diff --git a/dbms/src/Functions/h3kRing.cpp b/dbms/Functions/h3kRing.cpp similarity index 100% rename from dbms/src/Functions/h3kRing.cpp rename to dbms/Functions/h3kRing.cpp diff --git a/dbms/src/Functions/hasColumnInTable.cpp b/dbms/Functions/hasColumnInTable.cpp similarity index 100% rename from dbms/src/Functions/hasColumnInTable.cpp rename to dbms/Functions/hasColumnInTable.cpp diff --git a/dbms/src/Functions/hasToken.cpp b/dbms/Functions/hasToken.cpp similarity index 100% rename from dbms/src/Functions/hasToken.cpp rename to dbms/Functions/hasToken.cpp diff --git a/dbms/src/Functions/hasTokenCaseInsensitive.cpp b/dbms/Functions/hasTokenCaseInsensitive.cpp similarity index 100% rename from dbms/src/Functions/hasTokenCaseInsensitive.cpp rename to dbms/Functions/hasTokenCaseInsensitive.cpp diff --git a/dbms/src/Functions/hostName.cpp b/dbms/Functions/hostName.cpp similarity index 100% rename from dbms/src/Functions/hostName.cpp rename to dbms/Functions/hostName.cpp diff --git a/dbms/src/Functions/identity.cpp b/dbms/Functions/identity.cpp similarity index 100% rename from dbms/src/Functions/identity.cpp rename to dbms/Functions/identity.cpp diff --git a/dbms/src/Functions/if.cpp b/dbms/Functions/if.cpp similarity index 100% rename from dbms/src/Functions/if.cpp rename to dbms/Functions/if.cpp diff --git a/dbms/src/Functions/ifNotFinite.cpp b/dbms/Functions/ifNotFinite.cpp similarity index 100% rename from dbms/src/Functions/ifNotFinite.cpp rename to dbms/Functions/ifNotFinite.cpp diff --git a/dbms/src/Functions/ifNull.cpp b/dbms/Functions/ifNull.cpp similarity index 100% rename from dbms/src/Functions/ifNull.cpp rename to dbms/Functions/ifNull.cpp diff --git a/dbms/src/Functions/ignore.cpp b/dbms/Functions/ignore.cpp similarity index 100% rename from dbms/src/Functions/ignore.cpp rename to dbms/Functions/ignore.cpp diff --git a/dbms/src/Functions/ignoreExceptNull.cpp b/dbms/Functions/ignoreExceptNull.cpp similarity index 100% rename from dbms/src/Functions/ignoreExceptNull.cpp rename to dbms/Functions/ignoreExceptNull.cpp diff --git a/dbms/src/Functions/in.cpp b/dbms/Functions/in.cpp similarity index 100% rename from dbms/src/Functions/in.cpp rename to dbms/Functions/in.cpp diff --git a/dbms/src/Functions/intDiv.cpp b/dbms/Functions/intDiv.cpp similarity index 100% rename from dbms/src/Functions/intDiv.cpp rename to dbms/Functions/intDiv.cpp diff --git a/dbms/src/Functions/intDivOrZero.cpp b/dbms/Functions/intDivOrZero.cpp similarity index 100% rename from dbms/src/Functions/intDivOrZero.cpp rename to dbms/Functions/intDivOrZero.cpp diff --git a/dbms/src/Functions/intExp10.cpp b/dbms/Functions/intExp10.cpp similarity index 100% rename from dbms/src/Functions/intExp10.cpp rename to dbms/Functions/intExp10.cpp diff --git a/dbms/src/Functions/intExp2.cpp b/dbms/Functions/intExp2.cpp similarity index 100% rename from dbms/src/Functions/intExp2.cpp rename to dbms/Functions/intExp2.cpp diff --git a/dbms/src/Functions/isFinite.cpp b/dbms/Functions/isFinite.cpp similarity index 100% rename from dbms/src/Functions/isFinite.cpp rename to dbms/Functions/isFinite.cpp diff --git a/dbms/src/Functions/isInfinite.cpp b/dbms/Functions/isInfinite.cpp similarity index 100% rename from dbms/src/Functions/isInfinite.cpp rename to dbms/Functions/isInfinite.cpp diff --git a/dbms/src/Functions/isNaN.cpp b/dbms/Functions/isNaN.cpp similarity index 100% rename from dbms/src/Functions/isNaN.cpp rename to dbms/Functions/isNaN.cpp diff --git a/dbms/src/Functions/isNotNull.cpp b/dbms/Functions/isNotNull.cpp similarity index 100% rename from dbms/src/Functions/isNotNull.cpp rename to dbms/Functions/isNotNull.cpp diff --git a/dbms/src/Functions/isNull.cpp b/dbms/Functions/isNull.cpp similarity index 100% rename from dbms/src/Functions/isNull.cpp rename to dbms/Functions/isNull.cpp diff --git a/dbms/src/Functions/isValidUTF8.cpp b/dbms/Functions/isValidUTF8.cpp similarity index 100% rename from dbms/src/Functions/isValidUTF8.cpp rename to dbms/Functions/isValidUTF8.cpp diff --git a/dbms/src/Functions/jumpConsistentHash.cpp b/dbms/Functions/jumpConsistentHash.cpp similarity index 100% rename from dbms/src/Functions/jumpConsistentHash.cpp rename to dbms/Functions/jumpConsistentHash.cpp diff --git a/dbms/src/Functions/lcm.cpp b/dbms/Functions/lcm.cpp similarity index 100% rename from dbms/src/Functions/lcm.cpp rename to dbms/Functions/lcm.cpp diff --git a/dbms/src/Functions/least.cpp b/dbms/Functions/least.cpp similarity index 100% rename from dbms/src/Functions/least.cpp rename to dbms/Functions/least.cpp diff --git a/dbms/src/Functions/lengthUTF8.cpp b/dbms/Functions/lengthUTF8.cpp similarity index 100% rename from dbms/src/Functions/lengthUTF8.cpp rename to dbms/Functions/lengthUTF8.cpp diff --git a/dbms/src/Functions/less.cpp b/dbms/Functions/less.cpp similarity index 100% rename from dbms/src/Functions/less.cpp rename to dbms/Functions/less.cpp diff --git a/dbms/src/Functions/lessOrEquals.cpp b/dbms/Functions/lessOrEquals.cpp similarity index 100% rename from dbms/src/Functions/lessOrEquals.cpp rename to dbms/Functions/lessOrEquals.cpp diff --git a/dbms/src/Functions/lgamma.cpp b/dbms/Functions/lgamma.cpp similarity index 100% rename from dbms/src/Functions/lgamma.cpp rename to dbms/Functions/lgamma.cpp diff --git a/dbms/src/Functions/likePatternToRegexp.h b/dbms/Functions/likePatternToRegexp.h similarity index 100% rename from dbms/src/Functions/likePatternToRegexp.h rename to dbms/Functions/likePatternToRegexp.h diff --git a/dbms/src/Functions/log.cpp b/dbms/Functions/log.cpp similarity index 100% rename from dbms/src/Functions/log.cpp rename to dbms/Functions/log.cpp diff --git a/dbms/src/Functions/log10.cpp b/dbms/Functions/log10.cpp similarity index 100% rename from dbms/src/Functions/log10.cpp rename to dbms/Functions/log10.cpp diff --git a/dbms/src/Functions/log2.cpp b/dbms/Functions/log2.cpp similarity index 100% rename from dbms/src/Functions/log2.cpp rename to dbms/Functions/log2.cpp diff --git a/dbms/src/Functions/lowCardinalityIndices.cpp b/dbms/Functions/lowCardinalityIndices.cpp similarity index 100% rename from dbms/src/Functions/lowCardinalityIndices.cpp rename to dbms/Functions/lowCardinalityIndices.cpp diff --git a/dbms/src/Functions/lowCardinalityKeys.cpp b/dbms/Functions/lowCardinalityKeys.cpp similarity index 100% rename from dbms/src/Functions/lowCardinalityKeys.cpp rename to dbms/Functions/lowCardinalityKeys.cpp diff --git a/dbms/src/Functions/lower.cpp b/dbms/Functions/lower.cpp similarity index 100% rename from dbms/src/Functions/lower.cpp rename to dbms/Functions/lower.cpp diff --git a/dbms/src/Functions/lowerUTF8.cpp b/dbms/Functions/lowerUTF8.cpp similarity index 100% rename from dbms/src/Functions/lowerUTF8.cpp rename to dbms/Functions/lowerUTF8.cpp diff --git a/dbms/src/Functions/materialize.cpp b/dbms/Functions/materialize.cpp similarity index 100% rename from dbms/src/Functions/materialize.cpp rename to dbms/Functions/materialize.cpp diff --git a/dbms/src/Functions/minus.cpp b/dbms/Functions/minus.cpp similarity index 100% rename from dbms/src/Functions/minus.cpp rename to dbms/Functions/minus.cpp diff --git a/dbms/src/Functions/modulo.cpp b/dbms/Functions/modulo.cpp similarity index 100% rename from dbms/src/Functions/modulo.cpp rename to dbms/Functions/modulo.cpp diff --git a/dbms/src/Functions/moduloOrZero.cpp b/dbms/Functions/moduloOrZero.cpp similarity index 100% rename from dbms/src/Functions/moduloOrZero.cpp rename to dbms/Functions/moduloOrZero.cpp diff --git a/dbms/src/Functions/multiIf.cpp b/dbms/Functions/multiIf.cpp similarity index 100% rename from dbms/src/Functions/multiIf.cpp rename to dbms/Functions/multiIf.cpp diff --git a/dbms/src/Functions/multiSearchAllPositions.cpp b/dbms/Functions/multiSearchAllPositions.cpp similarity index 100% rename from dbms/src/Functions/multiSearchAllPositions.cpp rename to dbms/Functions/multiSearchAllPositions.cpp diff --git a/dbms/src/Functions/multiSearchAllPositionsCaseInsensitive.cpp b/dbms/Functions/multiSearchAllPositionsCaseInsensitive.cpp similarity index 100% rename from dbms/src/Functions/multiSearchAllPositionsCaseInsensitive.cpp rename to dbms/Functions/multiSearchAllPositionsCaseInsensitive.cpp diff --git a/dbms/src/Functions/multiSearchAllPositionsCaseInsensitiveUTF8.cpp b/dbms/Functions/multiSearchAllPositionsCaseInsensitiveUTF8.cpp similarity index 100% rename from dbms/src/Functions/multiSearchAllPositionsCaseInsensitiveUTF8.cpp rename to dbms/Functions/multiSearchAllPositionsCaseInsensitiveUTF8.cpp diff --git a/dbms/src/Functions/multiSearchAllPositionsUTF8.cpp b/dbms/Functions/multiSearchAllPositionsUTF8.cpp similarity index 100% rename from dbms/src/Functions/multiSearchAllPositionsUTF8.cpp rename to dbms/Functions/multiSearchAllPositionsUTF8.cpp diff --git a/dbms/src/Functions/multiSearchAny.cpp b/dbms/Functions/multiSearchAny.cpp similarity index 100% rename from dbms/src/Functions/multiSearchAny.cpp rename to dbms/Functions/multiSearchAny.cpp diff --git a/dbms/src/Functions/multiSearchAnyCaseInsensitive.cpp b/dbms/Functions/multiSearchAnyCaseInsensitive.cpp similarity index 100% rename from dbms/src/Functions/multiSearchAnyCaseInsensitive.cpp rename to dbms/Functions/multiSearchAnyCaseInsensitive.cpp diff --git a/dbms/src/Functions/multiSearchAnyCaseInsensitiveUTF8.cpp b/dbms/Functions/multiSearchAnyCaseInsensitiveUTF8.cpp similarity index 100% rename from dbms/src/Functions/multiSearchAnyCaseInsensitiveUTF8.cpp rename to dbms/Functions/multiSearchAnyCaseInsensitiveUTF8.cpp diff --git a/dbms/src/Functions/multiSearchAnyUTF8.cpp b/dbms/Functions/multiSearchAnyUTF8.cpp similarity index 100% rename from dbms/src/Functions/multiSearchAnyUTF8.cpp rename to dbms/Functions/multiSearchAnyUTF8.cpp diff --git a/dbms/src/Functions/multiSearchFirstIndex.cpp b/dbms/Functions/multiSearchFirstIndex.cpp similarity index 100% rename from dbms/src/Functions/multiSearchFirstIndex.cpp rename to dbms/Functions/multiSearchFirstIndex.cpp diff --git a/dbms/src/Functions/multiSearchFirstIndexCaseInsensitive.cpp b/dbms/Functions/multiSearchFirstIndexCaseInsensitive.cpp similarity index 100% rename from dbms/src/Functions/multiSearchFirstIndexCaseInsensitive.cpp rename to dbms/Functions/multiSearchFirstIndexCaseInsensitive.cpp diff --git a/dbms/src/Functions/multiSearchFirstIndexCaseInsensitiveUTF8.cpp b/dbms/Functions/multiSearchFirstIndexCaseInsensitiveUTF8.cpp similarity index 100% rename from dbms/src/Functions/multiSearchFirstIndexCaseInsensitiveUTF8.cpp rename to dbms/Functions/multiSearchFirstIndexCaseInsensitiveUTF8.cpp diff --git a/dbms/src/Functions/multiSearchFirstIndexUTF8.cpp b/dbms/Functions/multiSearchFirstIndexUTF8.cpp similarity index 100% rename from dbms/src/Functions/multiSearchFirstIndexUTF8.cpp rename to dbms/Functions/multiSearchFirstIndexUTF8.cpp diff --git a/dbms/src/Functions/multiSearchFirstPosition.cpp b/dbms/Functions/multiSearchFirstPosition.cpp similarity index 100% rename from dbms/src/Functions/multiSearchFirstPosition.cpp rename to dbms/Functions/multiSearchFirstPosition.cpp diff --git a/dbms/src/Functions/multiSearchFirstPositionCaseInsensitive.cpp b/dbms/Functions/multiSearchFirstPositionCaseInsensitive.cpp similarity index 100% rename from dbms/src/Functions/multiSearchFirstPositionCaseInsensitive.cpp rename to dbms/Functions/multiSearchFirstPositionCaseInsensitive.cpp diff --git a/dbms/src/Functions/multiSearchFirstPositionCaseInsensitiveUTF8.cpp b/dbms/Functions/multiSearchFirstPositionCaseInsensitiveUTF8.cpp similarity index 100% rename from dbms/src/Functions/multiSearchFirstPositionCaseInsensitiveUTF8.cpp rename to dbms/Functions/multiSearchFirstPositionCaseInsensitiveUTF8.cpp diff --git a/dbms/src/Functions/multiSearchFirstPositionUTF8.cpp b/dbms/Functions/multiSearchFirstPositionUTF8.cpp similarity index 100% rename from dbms/src/Functions/multiSearchFirstPositionUTF8.cpp rename to dbms/Functions/multiSearchFirstPositionUTF8.cpp diff --git a/dbms/src/Functions/multiply.cpp b/dbms/Functions/multiply.cpp similarity index 100% rename from dbms/src/Functions/multiply.cpp rename to dbms/Functions/multiply.cpp diff --git a/dbms/src/Functions/negate.cpp b/dbms/Functions/negate.cpp similarity index 100% rename from dbms/src/Functions/negate.cpp rename to dbms/Functions/negate.cpp diff --git a/dbms/src/Functions/neighbor.cpp b/dbms/Functions/neighbor.cpp similarity index 100% rename from dbms/src/Functions/neighbor.cpp rename to dbms/Functions/neighbor.cpp diff --git a/dbms/src/Functions/notEmpty.cpp b/dbms/Functions/notEmpty.cpp similarity index 100% rename from dbms/src/Functions/notEmpty.cpp rename to dbms/Functions/notEmpty.cpp diff --git a/dbms/src/Functions/notEquals.cpp b/dbms/Functions/notEquals.cpp similarity index 100% rename from dbms/src/Functions/notEquals.cpp rename to dbms/Functions/notEquals.cpp diff --git a/dbms/src/Functions/now.cpp b/dbms/Functions/now.cpp similarity index 100% rename from dbms/src/Functions/now.cpp rename to dbms/Functions/now.cpp diff --git a/dbms/src/Functions/now64.cpp b/dbms/Functions/now64.cpp similarity index 100% rename from dbms/src/Functions/now64.cpp rename to dbms/Functions/now64.cpp diff --git a/dbms/src/Functions/nullIf.cpp b/dbms/Functions/nullIf.cpp similarity index 100% rename from dbms/src/Functions/nullIf.cpp rename to dbms/Functions/nullIf.cpp diff --git a/dbms/src/Functions/pi.cpp b/dbms/Functions/pi.cpp similarity index 100% rename from dbms/src/Functions/pi.cpp rename to dbms/Functions/pi.cpp diff --git a/dbms/src/Functions/plus.cpp b/dbms/Functions/plus.cpp similarity index 100% rename from dbms/src/Functions/plus.cpp rename to dbms/Functions/plus.cpp diff --git a/dbms/src/Functions/pointInEllipses.cpp b/dbms/Functions/pointInEllipses.cpp similarity index 100% rename from dbms/src/Functions/pointInEllipses.cpp rename to dbms/Functions/pointInEllipses.cpp diff --git a/dbms/src/Functions/pointInPolygon.cpp b/dbms/Functions/pointInPolygon.cpp similarity index 100% rename from dbms/src/Functions/pointInPolygon.cpp rename to dbms/Functions/pointInPolygon.cpp diff --git a/dbms/src/Functions/position.cpp b/dbms/Functions/position.cpp similarity index 100% rename from dbms/src/Functions/position.cpp rename to dbms/Functions/position.cpp diff --git a/dbms/src/Functions/positionCaseInsensitive.cpp b/dbms/Functions/positionCaseInsensitive.cpp similarity index 100% rename from dbms/src/Functions/positionCaseInsensitive.cpp rename to dbms/Functions/positionCaseInsensitive.cpp diff --git a/dbms/src/Functions/positionCaseInsensitiveUTF8.cpp b/dbms/Functions/positionCaseInsensitiveUTF8.cpp similarity index 100% rename from dbms/src/Functions/positionCaseInsensitiveUTF8.cpp rename to dbms/Functions/positionCaseInsensitiveUTF8.cpp diff --git a/dbms/src/Functions/positionUTF8.cpp b/dbms/Functions/positionUTF8.cpp similarity index 100% rename from dbms/src/Functions/positionUTF8.cpp rename to dbms/Functions/positionUTF8.cpp diff --git a/dbms/src/Functions/pow.cpp b/dbms/Functions/pow.cpp similarity index 100% rename from dbms/src/Functions/pow.cpp rename to dbms/Functions/pow.cpp diff --git a/dbms/src/Functions/rand.cpp b/dbms/Functions/rand.cpp similarity index 100% rename from dbms/src/Functions/rand.cpp rename to dbms/Functions/rand.cpp diff --git a/dbms/src/Functions/rand64.cpp b/dbms/Functions/rand64.cpp similarity index 100% rename from dbms/src/Functions/rand64.cpp rename to dbms/Functions/rand64.cpp diff --git a/dbms/src/Functions/randConstant.cpp b/dbms/Functions/randConstant.cpp similarity index 100% rename from dbms/src/Functions/randConstant.cpp rename to dbms/Functions/randConstant.cpp diff --git a/dbms/src/Functions/randomPrintableASCII.cpp b/dbms/Functions/randomPrintableASCII.cpp similarity index 100% rename from dbms/src/Functions/randomPrintableASCII.cpp rename to dbms/Functions/randomPrintableASCII.cpp diff --git a/dbms/src/Functions/regexpQuoteMeta.cpp b/dbms/Functions/regexpQuoteMeta.cpp similarity index 100% rename from dbms/src/Functions/regexpQuoteMeta.cpp rename to dbms/Functions/regexpQuoteMeta.cpp diff --git a/dbms/src/Functions/registerFunctions.cpp b/dbms/Functions/registerFunctions.cpp similarity index 100% rename from dbms/src/Functions/registerFunctions.cpp rename to dbms/Functions/registerFunctions.cpp diff --git a/dbms/src/Functions/registerFunctions.h b/dbms/Functions/registerFunctions.h similarity index 100% rename from dbms/src/Functions/registerFunctions.h rename to dbms/Functions/registerFunctions.h diff --git a/dbms/src/Functions/registerFunctionsArithmetic.cpp b/dbms/Functions/registerFunctionsArithmetic.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsArithmetic.cpp rename to dbms/Functions/registerFunctionsArithmetic.cpp diff --git a/dbms/src/Functions/registerFunctionsComparison.cpp b/dbms/Functions/registerFunctionsComparison.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsComparison.cpp rename to dbms/Functions/registerFunctionsComparison.cpp diff --git a/dbms/src/Functions/registerFunctionsConditional.cpp b/dbms/Functions/registerFunctionsConditional.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsConditional.cpp rename to dbms/Functions/registerFunctionsConditional.cpp diff --git a/dbms/src/Functions/registerFunctionsConsistentHashing.cpp b/dbms/Functions/registerFunctionsConsistentHashing.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsConsistentHashing.cpp rename to dbms/Functions/registerFunctionsConsistentHashing.cpp diff --git a/dbms/src/Functions/registerFunctionsDateTime.cpp b/dbms/Functions/registerFunctionsDateTime.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsDateTime.cpp rename to dbms/Functions/registerFunctionsDateTime.cpp diff --git a/dbms/src/Functions/registerFunctionsGeo.cpp b/dbms/Functions/registerFunctionsGeo.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsGeo.cpp rename to dbms/Functions/registerFunctionsGeo.cpp diff --git a/dbms/src/Functions/registerFunctionsHigherOrder.cpp b/dbms/Functions/registerFunctionsHigherOrder.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsHigherOrder.cpp rename to dbms/Functions/registerFunctionsHigherOrder.cpp diff --git a/dbms/src/Functions/registerFunctionsIntrospection.cpp b/dbms/Functions/registerFunctionsIntrospection.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsIntrospection.cpp rename to dbms/Functions/registerFunctionsIntrospection.cpp diff --git a/dbms/src/Functions/registerFunctionsMath.cpp b/dbms/Functions/registerFunctionsMath.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsMath.cpp rename to dbms/Functions/registerFunctionsMath.cpp diff --git a/dbms/src/Functions/registerFunctionsMiscellaneous.cpp b/dbms/Functions/registerFunctionsMiscellaneous.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsMiscellaneous.cpp rename to dbms/Functions/registerFunctionsMiscellaneous.cpp diff --git a/dbms/src/Functions/registerFunctionsNull.cpp b/dbms/Functions/registerFunctionsNull.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsNull.cpp rename to dbms/Functions/registerFunctionsNull.cpp diff --git a/dbms/src/Functions/registerFunctionsRandom.cpp b/dbms/Functions/registerFunctionsRandom.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsRandom.cpp rename to dbms/Functions/registerFunctionsRandom.cpp diff --git a/dbms/src/Functions/registerFunctionsReinterpret.cpp b/dbms/Functions/registerFunctionsReinterpret.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsReinterpret.cpp rename to dbms/Functions/registerFunctionsReinterpret.cpp diff --git a/dbms/src/Functions/registerFunctionsString.cpp b/dbms/Functions/registerFunctionsString.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsString.cpp rename to dbms/Functions/registerFunctionsString.cpp diff --git a/dbms/src/Functions/registerFunctionsStringSearch.cpp b/dbms/Functions/registerFunctionsStringSearch.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsStringSearch.cpp rename to dbms/Functions/registerFunctionsStringSearch.cpp diff --git a/dbms/src/Functions/registerFunctionsTuple.cpp b/dbms/Functions/registerFunctionsTuple.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsTuple.cpp rename to dbms/Functions/registerFunctionsTuple.cpp diff --git a/dbms/src/Functions/registerFunctionsVisitParam.cpp b/dbms/Functions/registerFunctionsVisitParam.cpp similarity index 100% rename from dbms/src/Functions/registerFunctionsVisitParam.cpp rename to dbms/Functions/registerFunctionsVisitParam.cpp diff --git a/dbms/src/Functions/reinterpretAsFixedString.cpp b/dbms/Functions/reinterpretAsFixedString.cpp similarity index 100% rename from dbms/src/Functions/reinterpretAsFixedString.cpp rename to dbms/Functions/reinterpretAsFixedString.cpp diff --git a/dbms/src/Functions/reinterpretAsString.cpp b/dbms/Functions/reinterpretAsString.cpp similarity index 100% rename from dbms/src/Functions/reinterpretAsString.cpp rename to dbms/Functions/reinterpretAsString.cpp diff --git a/dbms/src/Functions/reinterpretStringAs.cpp b/dbms/Functions/reinterpretStringAs.cpp similarity index 100% rename from dbms/src/Functions/reinterpretStringAs.cpp rename to dbms/Functions/reinterpretStringAs.cpp diff --git a/dbms/src/Functions/repeat.cpp b/dbms/Functions/repeat.cpp similarity index 100% rename from dbms/src/Functions/repeat.cpp rename to dbms/Functions/repeat.cpp diff --git a/dbms/src/Functions/replicate.cpp b/dbms/Functions/replicate.cpp similarity index 100% rename from dbms/src/Functions/replicate.cpp rename to dbms/Functions/replicate.cpp diff --git a/dbms/src/Functions/reverse.cpp b/dbms/Functions/reverse.cpp similarity index 100% rename from dbms/src/Functions/reverse.cpp rename to dbms/Functions/reverse.cpp diff --git a/dbms/src/Functions/reverseUTF8.cpp b/dbms/Functions/reverseUTF8.cpp similarity index 100% rename from dbms/src/Functions/reverseUTF8.cpp rename to dbms/Functions/reverseUTF8.cpp diff --git a/dbms/src/Functions/roundAge.cpp b/dbms/Functions/roundAge.cpp similarity index 100% rename from dbms/src/Functions/roundAge.cpp rename to dbms/Functions/roundAge.cpp diff --git a/dbms/src/Functions/roundDuration.cpp b/dbms/Functions/roundDuration.cpp similarity index 100% rename from dbms/src/Functions/roundDuration.cpp rename to dbms/Functions/roundDuration.cpp diff --git a/dbms/src/Functions/roundToExp2.cpp b/dbms/Functions/roundToExp2.cpp similarity index 100% rename from dbms/src/Functions/roundToExp2.cpp rename to dbms/Functions/roundToExp2.cpp diff --git a/dbms/src/Functions/rowNumberInAllBlocks.cpp b/dbms/Functions/rowNumberInAllBlocks.cpp similarity index 100% rename from dbms/src/Functions/rowNumberInAllBlocks.cpp rename to dbms/Functions/rowNumberInAllBlocks.cpp diff --git a/dbms/src/Functions/rowNumberInBlock.cpp b/dbms/Functions/rowNumberInBlock.cpp similarity index 100% rename from dbms/src/Functions/rowNumberInBlock.cpp rename to dbms/Functions/rowNumberInBlock.cpp diff --git a/dbms/src/Functions/runningAccumulate.cpp b/dbms/Functions/runningAccumulate.cpp similarity index 100% rename from dbms/src/Functions/runningAccumulate.cpp rename to dbms/Functions/runningAccumulate.cpp diff --git a/dbms/src/Functions/runningDifference.cpp b/dbms/Functions/runningDifference.cpp similarity index 100% rename from dbms/src/Functions/runningDifference.cpp rename to dbms/Functions/runningDifference.cpp diff --git a/dbms/src/Functions/runningDifference.h b/dbms/Functions/runningDifference.h similarity index 100% rename from dbms/src/Functions/runningDifference.h rename to dbms/Functions/runningDifference.h diff --git a/dbms/src/Functions/runningDifferenceStartingWithFirstValue.cpp b/dbms/Functions/runningDifferenceStartingWithFirstValue.cpp similarity index 100% rename from dbms/src/Functions/runningDifferenceStartingWithFirstValue.cpp rename to dbms/Functions/runningDifferenceStartingWithFirstValue.cpp diff --git a/dbms/src/Functions/sigmoid.cpp b/dbms/Functions/sigmoid.cpp similarity index 100% rename from dbms/src/Functions/sigmoid.cpp rename to dbms/Functions/sigmoid.cpp diff --git a/dbms/src/Functions/sin.cpp b/dbms/Functions/sin.cpp similarity index 100% rename from dbms/src/Functions/sin.cpp rename to dbms/Functions/sin.cpp diff --git a/dbms/src/Functions/sleep.cpp b/dbms/Functions/sleep.cpp similarity index 100% rename from dbms/src/Functions/sleep.cpp rename to dbms/Functions/sleep.cpp diff --git a/dbms/src/Functions/sleep.h b/dbms/Functions/sleep.h similarity index 100% rename from dbms/src/Functions/sleep.h rename to dbms/Functions/sleep.h diff --git a/dbms/src/Functions/sleepEachRow.cpp b/dbms/Functions/sleepEachRow.cpp similarity index 100% rename from dbms/src/Functions/sleepEachRow.cpp rename to dbms/Functions/sleepEachRow.cpp diff --git a/dbms/src/Functions/sqrt.cpp b/dbms/Functions/sqrt.cpp similarity index 100% rename from dbms/src/Functions/sqrt.cpp rename to dbms/Functions/sqrt.cpp diff --git a/dbms/src/Functions/startsWith.cpp b/dbms/Functions/startsWith.cpp similarity index 100% rename from dbms/src/Functions/startsWith.cpp rename to dbms/Functions/startsWith.cpp diff --git a/dbms/src/Functions/stringToH3.cpp b/dbms/Functions/stringToH3.cpp similarity index 100% rename from dbms/src/Functions/stringToH3.cpp rename to dbms/Functions/stringToH3.cpp diff --git a/dbms/src/Functions/substring.cpp b/dbms/Functions/substring.cpp similarity index 100% rename from dbms/src/Functions/substring.cpp rename to dbms/Functions/substring.cpp diff --git a/dbms/src/Functions/subtractDays.cpp b/dbms/Functions/subtractDays.cpp similarity index 100% rename from dbms/src/Functions/subtractDays.cpp rename to dbms/Functions/subtractDays.cpp diff --git a/dbms/src/Functions/subtractHours.cpp b/dbms/Functions/subtractHours.cpp similarity index 100% rename from dbms/src/Functions/subtractHours.cpp rename to dbms/Functions/subtractHours.cpp diff --git a/dbms/src/Functions/subtractMinutes.cpp b/dbms/Functions/subtractMinutes.cpp similarity index 100% rename from dbms/src/Functions/subtractMinutes.cpp rename to dbms/Functions/subtractMinutes.cpp diff --git a/dbms/src/Functions/subtractMonths.cpp b/dbms/Functions/subtractMonths.cpp similarity index 100% rename from dbms/src/Functions/subtractMonths.cpp rename to dbms/Functions/subtractMonths.cpp diff --git a/dbms/src/Functions/subtractQuarters.cpp b/dbms/Functions/subtractQuarters.cpp similarity index 100% rename from dbms/src/Functions/subtractQuarters.cpp rename to dbms/Functions/subtractQuarters.cpp diff --git a/dbms/src/Functions/subtractSeconds.cpp b/dbms/Functions/subtractSeconds.cpp similarity index 100% rename from dbms/src/Functions/subtractSeconds.cpp rename to dbms/Functions/subtractSeconds.cpp diff --git a/dbms/src/Functions/subtractWeeks.cpp b/dbms/Functions/subtractWeeks.cpp similarity index 100% rename from dbms/src/Functions/subtractWeeks.cpp rename to dbms/Functions/subtractWeeks.cpp diff --git a/dbms/src/Functions/subtractYears.cpp b/dbms/Functions/subtractYears.cpp similarity index 100% rename from dbms/src/Functions/subtractYears.cpp rename to dbms/Functions/subtractYears.cpp diff --git a/dbms/src/Functions/sumburConsistentHash.cpp b/dbms/Functions/sumburConsistentHash.cpp similarity index 100% rename from dbms/src/Functions/sumburConsistentHash.cpp rename to dbms/Functions/sumburConsistentHash.cpp diff --git a/dbms/src/Functions/tan.cpp b/dbms/Functions/tan.cpp similarity index 100% rename from dbms/src/Functions/tan.cpp rename to dbms/Functions/tan.cpp diff --git a/dbms/src/Functions/tanh.cpp b/dbms/Functions/tanh.cpp similarity index 100% rename from dbms/src/Functions/tanh.cpp rename to dbms/Functions/tanh.cpp diff --git a/dbms/src/Functions/tests/CMakeLists.txt b/dbms/Functions/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Functions/tests/CMakeLists.txt rename to dbms/Functions/tests/CMakeLists.txt diff --git a/dbms/src/Functions/tests/number_traits.cpp b/dbms/Functions/tests/number_traits.cpp similarity index 100% rename from dbms/src/Functions/tests/number_traits.cpp rename to dbms/Functions/tests/number_traits.cpp diff --git a/dbms/src/Functions/tgamma.cpp b/dbms/Functions/tgamma.cpp similarity index 100% rename from dbms/src/Functions/tgamma.cpp rename to dbms/Functions/tgamma.cpp diff --git a/dbms/src/Functions/throwIf.cpp b/dbms/Functions/throwIf.cpp similarity index 100% rename from dbms/src/Functions/throwIf.cpp rename to dbms/Functions/throwIf.cpp diff --git a/dbms/src/Functions/timeSlot.cpp b/dbms/Functions/timeSlot.cpp similarity index 100% rename from dbms/src/Functions/timeSlot.cpp rename to dbms/Functions/timeSlot.cpp diff --git a/dbms/src/Functions/timeSlots.cpp b/dbms/Functions/timeSlots.cpp similarity index 100% rename from dbms/src/Functions/timeSlots.cpp rename to dbms/Functions/timeSlots.cpp diff --git a/dbms/src/Functions/timezone.cpp b/dbms/Functions/timezone.cpp similarity index 100% rename from dbms/src/Functions/timezone.cpp rename to dbms/Functions/timezone.cpp diff --git a/dbms/src/Functions/toColumnTypeName.cpp b/dbms/Functions/toColumnTypeName.cpp similarity index 100% rename from dbms/src/Functions/toColumnTypeName.cpp rename to dbms/Functions/toColumnTypeName.cpp diff --git a/dbms/src/Functions/toCustomWeek.cpp b/dbms/Functions/toCustomWeek.cpp similarity index 100% rename from dbms/src/Functions/toCustomWeek.cpp rename to dbms/Functions/toCustomWeek.cpp diff --git a/dbms/src/Functions/toDayOfMonth.cpp b/dbms/Functions/toDayOfMonth.cpp similarity index 100% rename from dbms/src/Functions/toDayOfMonth.cpp rename to dbms/Functions/toDayOfMonth.cpp diff --git a/dbms/src/Functions/toDayOfWeek.cpp b/dbms/Functions/toDayOfWeek.cpp similarity index 100% rename from dbms/src/Functions/toDayOfWeek.cpp rename to dbms/Functions/toDayOfWeek.cpp diff --git a/dbms/src/Functions/toDayOfYear.cpp b/dbms/Functions/toDayOfYear.cpp similarity index 100% rename from dbms/src/Functions/toDayOfYear.cpp rename to dbms/Functions/toDayOfYear.cpp diff --git a/dbms/src/Functions/toHour.cpp b/dbms/Functions/toHour.cpp similarity index 100% rename from dbms/src/Functions/toHour.cpp rename to dbms/Functions/toHour.cpp diff --git a/dbms/src/Functions/toISOWeek.cpp b/dbms/Functions/toISOWeek.cpp similarity index 100% rename from dbms/src/Functions/toISOWeek.cpp rename to dbms/Functions/toISOWeek.cpp diff --git a/dbms/src/Functions/toISOYear.cpp b/dbms/Functions/toISOYear.cpp similarity index 100% rename from dbms/src/Functions/toISOYear.cpp rename to dbms/Functions/toISOYear.cpp diff --git a/dbms/src/Functions/toLowCardinality.cpp b/dbms/Functions/toLowCardinality.cpp similarity index 100% rename from dbms/src/Functions/toLowCardinality.cpp rename to dbms/Functions/toLowCardinality.cpp diff --git a/dbms/src/Functions/toMinute.cpp b/dbms/Functions/toMinute.cpp similarity index 100% rename from dbms/src/Functions/toMinute.cpp rename to dbms/Functions/toMinute.cpp diff --git a/dbms/src/Functions/toMonday.cpp b/dbms/Functions/toMonday.cpp similarity index 100% rename from dbms/src/Functions/toMonday.cpp rename to dbms/Functions/toMonday.cpp diff --git a/dbms/src/Functions/toMonth.cpp b/dbms/Functions/toMonth.cpp similarity index 100% rename from dbms/src/Functions/toMonth.cpp rename to dbms/Functions/toMonth.cpp diff --git a/dbms/src/Functions/toNullable.cpp b/dbms/Functions/toNullable.cpp similarity index 100% rename from dbms/src/Functions/toNullable.cpp rename to dbms/Functions/toNullable.cpp diff --git a/dbms/src/Functions/toQuarter.cpp b/dbms/Functions/toQuarter.cpp similarity index 100% rename from dbms/src/Functions/toQuarter.cpp rename to dbms/Functions/toQuarter.cpp diff --git a/dbms/src/Functions/toRelativeDayNum.cpp b/dbms/Functions/toRelativeDayNum.cpp similarity index 100% rename from dbms/src/Functions/toRelativeDayNum.cpp rename to dbms/Functions/toRelativeDayNum.cpp diff --git a/dbms/src/Functions/toRelativeHourNum.cpp b/dbms/Functions/toRelativeHourNum.cpp similarity index 100% rename from dbms/src/Functions/toRelativeHourNum.cpp rename to dbms/Functions/toRelativeHourNum.cpp diff --git a/dbms/src/Functions/toRelativeMinuteNum.cpp b/dbms/Functions/toRelativeMinuteNum.cpp similarity index 100% rename from dbms/src/Functions/toRelativeMinuteNum.cpp rename to dbms/Functions/toRelativeMinuteNum.cpp diff --git a/dbms/src/Functions/toRelativeMonthNum.cpp b/dbms/Functions/toRelativeMonthNum.cpp similarity index 100% rename from dbms/src/Functions/toRelativeMonthNum.cpp rename to dbms/Functions/toRelativeMonthNum.cpp diff --git a/dbms/src/Functions/toRelativeQuarterNum.cpp b/dbms/Functions/toRelativeQuarterNum.cpp similarity index 100% rename from dbms/src/Functions/toRelativeQuarterNum.cpp rename to dbms/Functions/toRelativeQuarterNum.cpp diff --git a/dbms/src/Functions/toRelativeSecondNum.cpp b/dbms/Functions/toRelativeSecondNum.cpp similarity index 100% rename from dbms/src/Functions/toRelativeSecondNum.cpp rename to dbms/Functions/toRelativeSecondNum.cpp diff --git a/dbms/src/Functions/toRelativeWeekNum.cpp b/dbms/Functions/toRelativeWeekNum.cpp similarity index 100% rename from dbms/src/Functions/toRelativeWeekNum.cpp rename to dbms/Functions/toRelativeWeekNum.cpp diff --git a/dbms/src/Functions/toRelativeYearNum.cpp b/dbms/Functions/toRelativeYearNum.cpp similarity index 100% rename from dbms/src/Functions/toRelativeYearNum.cpp rename to dbms/Functions/toRelativeYearNum.cpp diff --git a/dbms/src/Functions/toSecond.cpp b/dbms/Functions/toSecond.cpp similarity index 100% rename from dbms/src/Functions/toSecond.cpp rename to dbms/Functions/toSecond.cpp diff --git a/dbms/src/Functions/toStartOfDay.cpp b/dbms/Functions/toStartOfDay.cpp similarity index 100% rename from dbms/src/Functions/toStartOfDay.cpp rename to dbms/Functions/toStartOfDay.cpp diff --git a/dbms/src/Functions/toStartOfFifteenMinutes.cpp b/dbms/Functions/toStartOfFifteenMinutes.cpp similarity index 100% rename from dbms/src/Functions/toStartOfFifteenMinutes.cpp rename to dbms/Functions/toStartOfFifteenMinutes.cpp diff --git a/dbms/src/Functions/toStartOfFiveMinute.cpp b/dbms/Functions/toStartOfFiveMinute.cpp similarity index 100% rename from dbms/src/Functions/toStartOfFiveMinute.cpp rename to dbms/Functions/toStartOfFiveMinute.cpp diff --git a/dbms/src/Functions/toStartOfHour.cpp b/dbms/Functions/toStartOfHour.cpp similarity index 100% rename from dbms/src/Functions/toStartOfHour.cpp rename to dbms/Functions/toStartOfHour.cpp diff --git a/dbms/src/Functions/toStartOfISOYear.cpp b/dbms/Functions/toStartOfISOYear.cpp similarity index 100% rename from dbms/src/Functions/toStartOfISOYear.cpp rename to dbms/Functions/toStartOfISOYear.cpp diff --git a/dbms/src/Functions/toStartOfInterval.cpp b/dbms/Functions/toStartOfInterval.cpp similarity index 100% rename from dbms/src/Functions/toStartOfInterval.cpp rename to dbms/Functions/toStartOfInterval.cpp diff --git a/dbms/src/Functions/toStartOfMinute.cpp b/dbms/Functions/toStartOfMinute.cpp similarity index 100% rename from dbms/src/Functions/toStartOfMinute.cpp rename to dbms/Functions/toStartOfMinute.cpp diff --git a/dbms/src/Functions/toStartOfMonth.cpp b/dbms/Functions/toStartOfMonth.cpp similarity index 100% rename from dbms/src/Functions/toStartOfMonth.cpp rename to dbms/Functions/toStartOfMonth.cpp diff --git a/dbms/src/Functions/toStartOfQuarter.cpp b/dbms/Functions/toStartOfQuarter.cpp similarity index 100% rename from dbms/src/Functions/toStartOfQuarter.cpp rename to dbms/Functions/toStartOfQuarter.cpp diff --git a/dbms/src/Functions/toStartOfTenMinutes.cpp b/dbms/Functions/toStartOfTenMinutes.cpp similarity index 100% rename from dbms/src/Functions/toStartOfTenMinutes.cpp rename to dbms/Functions/toStartOfTenMinutes.cpp diff --git a/dbms/src/Functions/toStartOfYear.cpp b/dbms/Functions/toStartOfYear.cpp similarity index 100% rename from dbms/src/Functions/toStartOfYear.cpp rename to dbms/Functions/toStartOfYear.cpp diff --git a/dbms/src/Functions/toTime.cpp b/dbms/Functions/toTime.cpp similarity index 100% rename from dbms/src/Functions/toTime.cpp rename to dbms/Functions/toTime.cpp diff --git a/dbms/src/Functions/toTimeZone.cpp b/dbms/Functions/toTimeZone.cpp similarity index 100% rename from dbms/src/Functions/toTimeZone.cpp rename to dbms/Functions/toTimeZone.cpp diff --git a/dbms/src/Functions/toTypeName.cpp b/dbms/Functions/toTypeName.cpp similarity index 100% rename from dbms/src/Functions/toTypeName.cpp rename to dbms/Functions/toTypeName.cpp diff --git a/dbms/src/Functions/toValidUTF8.cpp b/dbms/Functions/toValidUTF8.cpp similarity index 100% rename from dbms/src/Functions/toValidUTF8.cpp rename to dbms/Functions/toValidUTF8.cpp diff --git a/dbms/src/Functions/toYYYYMM.cpp b/dbms/Functions/toYYYYMM.cpp similarity index 100% rename from dbms/src/Functions/toYYYYMM.cpp rename to dbms/Functions/toYYYYMM.cpp diff --git a/dbms/src/Functions/toYYYYMMDD.cpp b/dbms/Functions/toYYYYMMDD.cpp similarity index 100% rename from dbms/src/Functions/toYYYYMMDD.cpp rename to dbms/Functions/toYYYYMMDD.cpp diff --git a/dbms/src/Functions/toYYYYMMDDhhmmss.cpp b/dbms/Functions/toYYYYMMDDhhmmss.cpp similarity index 100% rename from dbms/src/Functions/toYYYYMMDDhhmmss.cpp rename to dbms/Functions/toYYYYMMDDhhmmss.cpp diff --git a/dbms/src/Functions/toYear.cpp b/dbms/Functions/toYear.cpp similarity index 100% rename from dbms/src/Functions/toYear.cpp rename to dbms/Functions/toYear.cpp diff --git a/dbms/src/Functions/today.cpp b/dbms/Functions/today.cpp similarity index 100% rename from dbms/src/Functions/today.cpp rename to dbms/Functions/today.cpp diff --git a/dbms/src/Functions/transform.cpp b/dbms/Functions/transform.cpp similarity index 100% rename from dbms/src/Functions/transform.cpp rename to dbms/Functions/transform.cpp diff --git a/dbms/src/Functions/trap.cpp b/dbms/Functions/trap.cpp similarity index 100% rename from dbms/src/Functions/trap.cpp rename to dbms/Functions/trap.cpp diff --git a/dbms/src/Functions/trim.cpp b/dbms/Functions/trim.cpp similarity index 100% rename from dbms/src/Functions/trim.cpp rename to dbms/Functions/trim.cpp diff --git a/dbms/src/Functions/tryBase64Decode.cpp b/dbms/Functions/tryBase64Decode.cpp similarity index 100% rename from dbms/src/Functions/tryBase64Decode.cpp rename to dbms/Functions/tryBase64Decode.cpp diff --git a/dbms/src/Functions/tuple.cpp b/dbms/Functions/tuple.cpp similarity index 100% rename from dbms/src/Functions/tuple.cpp rename to dbms/Functions/tuple.cpp diff --git a/dbms/src/Functions/tupleElement.cpp b/dbms/Functions/tupleElement.cpp similarity index 100% rename from dbms/src/Functions/tupleElement.cpp rename to dbms/Functions/tupleElement.cpp diff --git a/dbms/src/Functions/upper.cpp b/dbms/Functions/upper.cpp similarity index 100% rename from dbms/src/Functions/upper.cpp rename to dbms/Functions/upper.cpp diff --git a/dbms/src/Functions/upperUTF8.cpp b/dbms/Functions/upperUTF8.cpp similarity index 100% rename from dbms/src/Functions/upperUTF8.cpp rename to dbms/Functions/upperUTF8.cpp diff --git a/dbms/src/Functions/uptime.cpp b/dbms/Functions/uptime.cpp similarity index 100% rename from dbms/src/Functions/uptime.cpp rename to dbms/Functions/uptime.cpp diff --git a/dbms/src/Functions/version.cpp b/dbms/Functions/version.cpp similarity index 100% rename from dbms/src/Functions/version.cpp rename to dbms/Functions/version.cpp diff --git a/dbms/src/Functions/visibleWidth.cpp b/dbms/Functions/visibleWidth.cpp similarity index 100% rename from dbms/src/Functions/visibleWidth.cpp rename to dbms/Functions/visibleWidth.cpp diff --git a/dbms/src/Functions/visitParamExtractBool.cpp b/dbms/Functions/visitParamExtractBool.cpp similarity index 100% rename from dbms/src/Functions/visitParamExtractBool.cpp rename to dbms/Functions/visitParamExtractBool.cpp diff --git a/dbms/src/Functions/visitParamExtractFloat.cpp b/dbms/Functions/visitParamExtractFloat.cpp similarity index 100% rename from dbms/src/Functions/visitParamExtractFloat.cpp rename to dbms/Functions/visitParamExtractFloat.cpp diff --git a/dbms/src/Functions/visitParamExtractInt.cpp b/dbms/Functions/visitParamExtractInt.cpp similarity index 100% rename from dbms/src/Functions/visitParamExtractInt.cpp rename to dbms/Functions/visitParamExtractInt.cpp diff --git a/dbms/src/Functions/visitParamExtractRaw.cpp b/dbms/Functions/visitParamExtractRaw.cpp similarity index 100% rename from dbms/src/Functions/visitParamExtractRaw.cpp rename to dbms/Functions/visitParamExtractRaw.cpp diff --git a/dbms/src/Functions/visitParamExtractString.cpp b/dbms/Functions/visitParamExtractString.cpp similarity index 100% rename from dbms/src/Functions/visitParamExtractString.cpp rename to dbms/Functions/visitParamExtractString.cpp diff --git a/dbms/src/Functions/visitParamExtractUInt.cpp b/dbms/Functions/visitParamExtractUInt.cpp similarity index 100% rename from dbms/src/Functions/visitParamExtractUInt.cpp rename to dbms/Functions/visitParamExtractUInt.cpp diff --git a/dbms/src/Functions/visitParamHas.cpp b/dbms/Functions/visitParamHas.cpp similarity index 100% rename from dbms/src/Functions/visitParamHas.cpp rename to dbms/Functions/visitParamHas.cpp diff --git a/dbms/src/Functions/yandexConsistentHash.cpp b/dbms/Functions/yandexConsistentHash.cpp similarity index 100% rename from dbms/src/Functions/yandexConsistentHash.cpp rename to dbms/Functions/yandexConsistentHash.cpp diff --git a/dbms/src/Functions/yesterday.cpp b/dbms/Functions/yesterday.cpp similarity index 100% rename from dbms/src/Functions/yesterday.cpp rename to dbms/Functions/yesterday.cpp diff --git a/dbms/src/IO/AIO.cpp b/dbms/IO/AIO.cpp similarity index 100% rename from dbms/src/IO/AIO.cpp rename to dbms/IO/AIO.cpp diff --git a/dbms/src/IO/AIO.h b/dbms/IO/AIO.h similarity index 100% rename from dbms/src/IO/AIO.h rename to dbms/IO/AIO.h diff --git a/dbms/src/IO/AIOContextPool.cpp b/dbms/IO/AIOContextPool.cpp similarity index 100% rename from dbms/src/IO/AIOContextPool.cpp rename to dbms/IO/AIOContextPool.cpp diff --git a/dbms/src/IO/AIOContextPool.h b/dbms/IO/AIOContextPool.h similarity index 100% rename from dbms/src/IO/AIOContextPool.h rename to dbms/IO/AIOContextPool.h diff --git a/dbms/src/IO/AsynchronousWriteBuffer.h b/dbms/IO/AsynchronousWriteBuffer.h similarity index 100% rename from dbms/src/IO/AsynchronousWriteBuffer.h rename to dbms/IO/AsynchronousWriteBuffer.h diff --git a/dbms/src/IO/BitHelpers.h b/dbms/IO/BitHelpers.h similarity index 100% rename from dbms/src/IO/BitHelpers.h rename to dbms/IO/BitHelpers.h diff --git a/dbms/src/IO/BrotliReadBuffer.cpp b/dbms/IO/BrotliReadBuffer.cpp similarity index 100% rename from dbms/src/IO/BrotliReadBuffer.cpp rename to dbms/IO/BrotliReadBuffer.cpp diff --git a/dbms/src/IO/BrotliReadBuffer.h b/dbms/IO/BrotliReadBuffer.h similarity index 100% rename from dbms/src/IO/BrotliReadBuffer.h rename to dbms/IO/BrotliReadBuffer.h diff --git a/dbms/src/IO/BrotliWriteBuffer.cpp b/dbms/IO/BrotliWriteBuffer.cpp similarity index 100% rename from dbms/src/IO/BrotliWriteBuffer.cpp rename to dbms/IO/BrotliWriteBuffer.cpp diff --git a/dbms/src/IO/BrotliWriteBuffer.h b/dbms/IO/BrotliWriteBuffer.h similarity index 100% rename from dbms/src/IO/BrotliWriteBuffer.h rename to dbms/IO/BrotliWriteBuffer.h diff --git a/dbms/src/IO/BufferBase.h b/dbms/IO/BufferBase.h similarity index 100% rename from dbms/src/IO/BufferBase.h rename to dbms/IO/BufferBase.h diff --git a/dbms/src/IO/BufferWithOwnMemory.h b/dbms/IO/BufferWithOwnMemory.h similarity index 100% rename from dbms/src/IO/BufferWithOwnMemory.h rename to dbms/IO/BufferWithOwnMemory.h diff --git a/dbms/src/IO/CMakeLists.txt b/dbms/IO/CMakeLists.txt similarity index 100% rename from dbms/src/IO/CMakeLists.txt rename to dbms/IO/CMakeLists.txt diff --git a/dbms/src/IO/CascadeWriteBuffer.cpp b/dbms/IO/CascadeWriteBuffer.cpp similarity index 100% rename from dbms/src/IO/CascadeWriteBuffer.cpp rename to dbms/IO/CascadeWriteBuffer.cpp diff --git a/dbms/src/IO/CascadeWriteBuffer.h b/dbms/IO/CascadeWriteBuffer.h similarity index 100% rename from dbms/src/IO/CascadeWriteBuffer.h rename to dbms/IO/CascadeWriteBuffer.h diff --git a/dbms/src/IO/CompressionMethod.cpp b/dbms/IO/CompressionMethod.cpp similarity index 100% rename from dbms/src/IO/CompressionMethod.cpp rename to dbms/IO/CompressionMethod.cpp diff --git a/dbms/src/IO/CompressionMethod.h b/dbms/IO/CompressionMethod.h similarity index 100% rename from dbms/src/IO/CompressionMethod.h rename to dbms/IO/CompressionMethod.h diff --git a/dbms/src/IO/ConcatReadBuffer.h b/dbms/IO/ConcatReadBuffer.h similarity index 100% rename from dbms/src/IO/ConcatReadBuffer.h rename to dbms/IO/ConcatReadBuffer.h diff --git a/dbms/src/IO/ConnectionTimeouts.h b/dbms/IO/ConnectionTimeouts.h similarity index 100% rename from dbms/src/IO/ConnectionTimeouts.h rename to dbms/IO/ConnectionTimeouts.h diff --git a/dbms/src/IO/DoubleConverter.cpp b/dbms/IO/DoubleConverter.cpp similarity index 100% rename from dbms/src/IO/DoubleConverter.cpp rename to dbms/IO/DoubleConverter.cpp diff --git a/dbms/src/IO/DoubleConverter.h b/dbms/IO/DoubleConverter.h similarity index 100% rename from dbms/src/IO/DoubleConverter.h rename to dbms/IO/DoubleConverter.h diff --git a/dbms/src/IO/HDFSCommon.cpp b/dbms/IO/HDFSCommon.cpp similarity index 100% rename from dbms/src/IO/HDFSCommon.cpp rename to dbms/IO/HDFSCommon.cpp diff --git a/dbms/src/IO/HDFSCommon.h b/dbms/IO/HDFSCommon.h similarity index 100% rename from dbms/src/IO/HDFSCommon.h rename to dbms/IO/HDFSCommon.h diff --git a/dbms/src/IO/HTTPCommon.cpp b/dbms/IO/HTTPCommon.cpp similarity index 100% rename from dbms/src/IO/HTTPCommon.cpp rename to dbms/IO/HTTPCommon.cpp diff --git a/dbms/src/IO/HTTPCommon.h b/dbms/IO/HTTPCommon.h similarity index 100% rename from dbms/src/IO/HTTPCommon.h rename to dbms/IO/HTTPCommon.h diff --git a/dbms/src/IO/HashingReadBuffer.h b/dbms/IO/HashingReadBuffer.h similarity index 100% rename from dbms/src/IO/HashingReadBuffer.h rename to dbms/IO/HashingReadBuffer.h diff --git a/dbms/src/IO/HashingWriteBuffer.cpp b/dbms/IO/HashingWriteBuffer.cpp similarity index 100% rename from dbms/src/IO/HashingWriteBuffer.cpp rename to dbms/IO/HashingWriteBuffer.cpp diff --git a/dbms/src/IO/HashingWriteBuffer.h b/dbms/IO/HashingWriteBuffer.h similarity index 100% rename from dbms/src/IO/HashingWriteBuffer.h rename to dbms/IO/HashingWriteBuffer.h diff --git a/dbms/src/IO/HexWriteBuffer.cpp b/dbms/IO/HexWriteBuffer.cpp similarity index 100% rename from dbms/src/IO/HexWriteBuffer.cpp rename to dbms/IO/HexWriteBuffer.cpp diff --git a/dbms/src/IO/HexWriteBuffer.h b/dbms/IO/HexWriteBuffer.h similarity index 100% rename from dbms/src/IO/HexWriteBuffer.h rename to dbms/IO/HexWriteBuffer.h diff --git a/dbms/src/IO/IReadableWriteBuffer.h b/dbms/IO/IReadableWriteBuffer.h similarity index 100% rename from dbms/src/IO/IReadableWriteBuffer.h rename to dbms/IO/IReadableWriteBuffer.h diff --git a/dbms/src/IO/LimitReadBuffer.cpp b/dbms/IO/LimitReadBuffer.cpp similarity index 100% rename from dbms/src/IO/LimitReadBuffer.cpp rename to dbms/IO/LimitReadBuffer.cpp diff --git a/dbms/src/IO/LimitReadBuffer.h b/dbms/IO/LimitReadBuffer.h similarity index 100% rename from dbms/src/IO/LimitReadBuffer.h rename to dbms/IO/LimitReadBuffer.h diff --git a/dbms/src/IO/MMapReadBufferFromFile.cpp b/dbms/IO/MMapReadBufferFromFile.cpp similarity index 100% rename from dbms/src/IO/MMapReadBufferFromFile.cpp rename to dbms/IO/MMapReadBufferFromFile.cpp diff --git a/dbms/src/IO/MMapReadBufferFromFile.h b/dbms/IO/MMapReadBufferFromFile.h similarity index 100% rename from dbms/src/IO/MMapReadBufferFromFile.h rename to dbms/IO/MMapReadBufferFromFile.h diff --git a/dbms/src/IO/MMapReadBufferFromFileDescriptor.cpp b/dbms/IO/MMapReadBufferFromFileDescriptor.cpp similarity index 100% rename from dbms/src/IO/MMapReadBufferFromFileDescriptor.cpp rename to dbms/IO/MMapReadBufferFromFileDescriptor.cpp diff --git a/dbms/src/IO/MMapReadBufferFromFileDescriptor.h b/dbms/IO/MMapReadBufferFromFileDescriptor.h similarity index 100% rename from dbms/src/IO/MMapReadBufferFromFileDescriptor.h rename to dbms/IO/MMapReadBufferFromFileDescriptor.h diff --git a/dbms/src/IO/MemoryReadWriteBuffer.cpp b/dbms/IO/MemoryReadWriteBuffer.cpp similarity index 100% rename from dbms/src/IO/MemoryReadWriteBuffer.cpp rename to dbms/IO/MemoryReadWriteBuffer.cpp diff --git a/dbms/src/IO/MemoryReadWriteBuffer.h b/dbms/IO/MemoryReadWriteBuffer.h similarity index 100% rename from dbms/src/IO/MemoryReadWriteBuffer.h rename to dbms/IO/MemoryReadWriteBuffer.h diff --git a/dbms/src/IO/NullWriteBuffer.cpp b/dbms/IO/NullWriteBuffer.cpp similarity index 100% rename from dbms/src/IO/NullWriteBuffer.cpp rename to dbms/IO/NullWriteBuffer.cpp diff --git a/dbms/src/IO/NullWriteBuffer.h b/dbms/IO/NullWriteBuffer.h similarity index 100% rename from dbms/src/IO/NullWriteBuffer.h rename to dbms/IO/NullWriteBuffer.h diff --git a/dbms/src/IO/Operators.h b/dbms/IO/Operators.h similarity index 100% rename from dbms/src/IO/Operators.h rename to dbms/IO/Operators.h diff --git a/dbms/src/IO/PeekableReadBuffer.cpp b/dbms/IO/PeekableReadBuffer.cpp similarity index 100% rename from dbms/src/IO/PeekableReadBuffer.cpp rename to dbms/IO/PeekableReadBuffer.cpp diff --git a/dbms/src/IO/PeekableReadBuffer.h b/dbms/IO/PeekableReadBuffer.h similarity index 100% rename from dbms/src/IO/PeekableReadBuffer.h rename to dbms/IO/PeekableReadBuffer.h diff --git a/dbms/src/IO/Progress.cpp b/dbms/IO/Progress.cpp similarity index 100% rename from dbms/src/IO/Progress.cpp rename to dbms/IO/Progress.cpp diff --git a/dbms/src/IO/Progress.h b/dbms/IO/Progress.h similarity index 100% rename from dbms/src/IO/Progress.h rename to dbms/IO/Progress.h diff --git a/dbms/src/IO/ReadBuffer.h b/dbms/IO/ReadBuffer.h similarity index 100% rename from dbms/src/IO/ReadBuffer.h rename to dbms/IO/ReadBuffer.h diff --git a/dbms/src/IO/ReadBufferAIO.cpp b/dbms/IO/ReadBufferAIO.cpp similarity index 100% rename from dbms/src/IO/ReadBufferAIO.cpp rename to dbms/IO/ReadBufferAIO.cpp diff --git a/dbms/src/IO/ReadBufferAIO.h b/dbms/IO/ReadBufferAIO.h similarity index 100% rename from dbms/src/IO/ReadBufferAIO.h rename to dbms/IO/ReadBufferAIO.h diff --git a/dbms/src/IO/ReadBufferFromFile.cpp b/dbms/IO/ReadBufferFromFile.cpp similarity index 100% rename from dbms/src/IO/ReadBufferFromFile.cpp rename to dbms/IO/ReadBufferFromFile.cpp diff --git a/dbms/src/IO/ReadBufferFromFile.h b/dbms/IO/ReadBufferFromFile.h similarity index 100% rename from dbms/src/IO/ReadBufferFromFile.h rename to dbms/IO/ReadBufferFromFile.h diff --git a/dbms/src/IO/ReadBufferFromFileBase.cpp b/dbms/IO/ReadBufferFromFileBase.cpp similarity index 100% rename from dbms/src/IO/ReadBufferFromFileBase.cpp rename to dbms/IO/ReadBufferFromFileBase.cpp diff --git a/dbms/src/IO/ReadBufferFromFileBase.h b/dbms/IO/ReadBufferFromFileBase.h similarity index 100% rename from dbms/src/IO/ReadBufferFromFileBase.h rename to dbms/IO/ReadBufferFromFileBase.h diff --git a/dbms/src/IO/ReadBufferFromFileDescriptor.cpp b/dbms/IO/ReadBufferFromFileDescriptor.cpp similarity index 100% rename from dbms/src/IO/ReadBufferFromFileDescriptor.cpp rename to dbms/IO/ReadBufferFromFileDescriptor.cpp diff --git a/dbms/src/IO/ReadBufferFromFileDescriptor.h b/dbms/IO/ReadBufferFromFileDescriptor.h similarity index 100% rename from dbms/src/IO/ReadBufferFromFileDescriptor.h rename to dbms/IO/ReadBufferFromFileDescriptor.h diff --git a/dbms/src/IO/ReadBufferFromHDFS.cpp b/dbms/IO/ReadBufferFromHDFS.cpp similarity index 100% rename from dbms/src/IO/ReadBufferFromHDFS.cpp rename to dbms/IO/ReadBufferFromHDFS.cpp diff --git a/dbms/src/IO/ReadBufferFromHDFS.h b/dbms/IO/ReadBufferFromHDFS.h similarity index 100% rename from dbms/src/IO/ReadBufferFromHDFS.h rename to dbms/IO/ReadBufferFromHDFS.h diff --git a/dbms/src/IO/ReadBufferFromIStream.cpp b/dbms/IO/ReadBufferFromIStream.cpp similarity index 100% rename from dbms/src/IO/ReadBufferFromIStream.cpp rename to dbms/IO/ReadBufferFromIStream.cpp diff --git a/dbms/src/IO/ReadBufferFromIStream.h b/dbms/IO/ReadBufferFromIStream.h similarity index 100% rename from dbms/src/IO/ReadBufferFromIStream.h rename to dbms/IO/ReadBufferFromIStream.h diff --git a/dbms/src/IO/ReadBufferFromMemory.cpp b/dbms/IO/ReadBufferFromMemory.cpp similarity index 100% rename from dbms/src/IO/ReadBufferFromMemory.cpp rename to dbms/IO/ReadBufferFromMemory.cpp diff --git a/dbms/src/IO/ReadBufferFromMemory.h b/dbms/IO/ReadBufferFromMemory.h similarity index 100% rename from dbms/src/IO/ReadBufferFromMemory.h rename to dbms/IO/ReadBufferFromMemory.h diff --git a/dbms/src/IO/ReadBufferFromPocoSocket.cpp b/dbms/IO/ReadBufferFromPocoSocket.cpp similarity index 100% rename from dbms/src/IO/ReadBufferFromPocoSocket.cpp rename to dbms/IO/ReadBufferFromPocoSocket.cpp diff --git a/dbms/src/IO/ReadBufferFromPocoSocket.h b/dbms/IO/ReadBufferFromPocoSocket.h similarity index 100% rename from dbms/src/IO/ReadBufferFromPocoSocket.h rename to dbms/IO/ReadBufferFromPocoSocket.h diff --git a/dbms/src/IO/ReadBufferFromS3.cpp b/dbms/IO/ReadBufferFromS3.cpp similarity index 100% rename from dbms/src/IO/ReadBufferFromS3.cpp rename to dbms/IO/ReadBufferFromS3.cpp diff --git a/dbms/src/IO/ReadBufferFromS3.h b/dbms/IO/ReadBufferFromS3.h similarity index 100% rename from dbms/src/IO/ReadBufferFromS3.h rename to dbms/IO/ReadBufferFromS3.h diff --git a/dbms/src/IO/ReadBufferFromString.h b/dbms/IO/ReadBufferFromString.h similarity index 100% rename from dbms/src/IO/ReadBufferFromString.h rename to dbms/IO/ReadBufferFromString.h diff --git a/dbms/src/IO/ReadHelpers.cpp b/dbms/IO/ReadHelpers.cpp similarity index 100% rename from dbms/src/IO/ReadHelpers.cpp rename to dbms/IO/ReadHelpers.cpp diff --git a/dbms/src/IO/ReadHelpers.h b/dbms/IO/ReadHelpers.h similarity index 100% rename from dbms/src/IO/ReadHelpers.h rename to dbms/IO/ReadHelpers.h diff --git a/dbms/src/IO/ReadWriteBufferFromHTTP.cpp b/dbms/IO/ReadWriteBufferFromHTTP.cpp similarity index 100% rename from dbms/src/IO/ReadWriteBufferFromHTTP.cpp rename to dbms/IO/ReadWriteBufferFromHTTP.cpp diff --git a/dbms/src/IO/ReadWriteBufferFromHTTP.h b/dbms/IO/ReadWriteBufferFromHTTP.h similarity index 100% rename from dbms/src/IO/ReadWriteBufferFromHTTP.h rename to dbms/IO/ReadWriteBufferFromHTTP.h diff --git a/dbms/src/IO/S3Common.cpp b/dbms/IO/S3Common.cpp similarity index 100% rename from dbms/src/IO/S3Common.cpp rename to dbms/IO/S3Common.cpp diff --git a/dbms/src/IO/S3Common.h b/dbms/IO/S3Common.h similarity index 100% rename from dbms/src/IO/S3Common.h rename to dbms/IO/S3Common.h diff --git a/dbms/src/IO/SeekableReadBuffer.h b/dbms/IO/SeekableReadBuffer.h similarity index 100% rename from dbms/src/IO/SeekableReadBuffer.h rename to dbms/IO/SeekableReadBuffer.h diff --git a/dbms/src/IO/UncompressedCache.h b/dbms/IO/UncompressedCache.h similarity index 100% rename from dbms/src/IO/UncompressedCache.h rename to dbms/IO/UncompressedCache.h diff --git a/dbms/src/IO/UseSSL.cpp b/dbms/IO/UseSSL.cpp similarity index 100% rename from dbms/src/IO/UseSSL.cpp rename to dbms/IO/UseSSL.cpp diff --git a/dbms/src/IO/UseSSL.h b/dbms/IO/UseSSL.h similarity index 100% rename from dbms/src/IO/UseSSL.h rename to dbms/IO/UseSSL.h diff --git a/dbms/src/IO/VarInt.h b/dbms/IO/VarInt.h similarity index 100% rename from dbms/src/IO/VarInt.h rename to dbms/IO/VarInt.h diff --git a/dbms/src/IO/WriteBuffer.h b/dbms/IO/WriteBuffer.h similarity index 100% rename from dbms/src/IO/WriteBuffer.h rename to dbms/IO/WriteBuffer.h diff --git a/dbms/src/IO/WriteBufferAIO.cpp b/dbms/IO/WriteBufferAIO.cpp similarity index 100% rename from dbms/src/IO/WriteBufferAIO.cpp rename to dbms/IO/WriteBufferAIO.cpp diff --git a/dbms/src/IO/WriteBufferAIO.h b/dbms/IO/WriteBufferAIO.h similarity index 100% rename from dbms/src/IO/WriteBufferAIO.h rename to dbms/IO/WriteBufferAIO.h diff --git a/dbms/src/IO/WriteBufferFromArena.h b/dbms/IO/WriteBufferFromArena.h similarity index 100% rename from dbms/src/IO/WriteBufferFromArena.h rename to dbms/IO/WriteBufferFromArena.h diff --git a/dbms/src/IO/WriteBufferFromFile.cpp b/dbms/IO/WriteBufferFromFile.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromFile.cpp rename to dbms/IO/WriteBufferFromFile.cpp diff --git a/dbms/src/IO/WriteBufferFromFile.h b/dbms/IO/WriteBufferFromFile.h similarity index 100% rename from dbms/src/IO/WriteBufferFromFile.h rename to dbms/IO/WriteBufferFromFile.h diff --git a/dbms/src/IO/WriteBufferFromFileBase.cpp b/dbms/IO/WriteBufferFromFileBase.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromFileBase.cpp rename to dbms/IO/WriteBufferFromFileBase.cpp diff --git a/dbms/src/IO/WriteBufferFromFileBase.h b/dbms/IO/WriteBufferFromFileBase.h similarity index 100% rename from dbms/src/IO/WriteBufferFromFileBase.h rename to dbms/IO/WriteBufferFromFileBase.h diff --git a/dbms/src/IO/WriteBufferFromFileDescriptor.cpp b/dbms/IO/WriteBufferFromFileDescriptor.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromFileDescriptor.cpp rename to dbms/IO/WriteBufferFromFileDescriptor.cpp diff --git a/dbms/src/IO/WriteBufferFromFileDescriptor.h b/dbms/IO/WriteBufferFromFileDescriptor.h similarity index 100% rename from dbms/src/IO/WriteBufferFromFileDescriptor.h rename to dbms/IO/WriteBufferFromFileDescriptor.h diff --git a/dbms/src/IO/WriteBufferFromFileDescriptorDiscardOnFailure.cpp b/dbms/IO/WriteBufferFromFileDescriptorDiscardOnFailure.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromFileDescriptorDiscardOnFailure.cpp rename to dbms/IO/WriteBufferFromFileDescriptorDiscardOnFailure.cpp diff --git a/dbms/src/IO/WriteBufferFromFileDescriptorDiscardOnFailure.h b/dbms/IO/WriteBufferFromFileDescriptorDiscardOnFailure.h similarity index 100% rename from dbms/src/IO/WriteBufferFromFileDescriptorDiscardOnFailure.h rename to dbms/IO/WriteBufferFromFileDescriptorDiscardOnFailure.h diff --git a/dbms/src/IO/WriteBufferFromHDFS.cpp b/dbms/IO/WriteBufferFromHDFS.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromHDFS.cpp rename to dbms/IO/WriteBufferFromHDFS.cpp diff --git a/dbms/src/IO/WriteBufferFromHDFS.h b/dbms/IO/WriteBufferFromHDFS.h similarity index 100% rename from dbms/src/IO/WriteBufferFromHDFS.h rename to dbms/IO/WriteBufferFromHDFS.h diff --git a/dbms/src/IO/WriteBufferFromHTTP.cpp b/dbms/IO/WriteBufferFromHTTP.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromHTTP.cpp rename to dbms/IO/WriteBufferFromHTTP.cpp diff --git a/dbms/src/IO/WriteBufferFromHTTP.h b/dbms/IO/WriteBufferFromHTTP.h similarity index 100% rename from dbms/src/IO/WriteBufferFromHTTP.h rename to dbms/IO/WriteBufferFromHTTP.h diff --git a/dbms/src/IO/WriteBufferFromHTTPServerResponse.cpp b/dbms/IO/WriteBufferFromHTTPServerResponse.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromHTTPServerResponse.cpp rename to dbms/IO/WriteBufferFromHTTPServerResponse.cpp diff --git a/dbms/src/IO/WriteBufferFromHTTPServerResponse.h b/dbms/IO/WriteBufferFromHTTPServerResponse.h similarity index 100% rename from dbms/src/IO/WriteBufferFromHTTPServerResponse.h rename to dbms/IO/WriteBufferFromHTTPServerResponse.h diff --git a/dbms/src/IO/WriteBufferFromOStream.cpp b/dbms/IO/WriteBufferFromOStream.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromOStream.cpp rename to dbms/IO/WriteBufferFromOStream.cpp diff --git a/dbms/src/IO/WriteBufferFromOStream.h b/dbms/IO/WriteBufferFromOStream.h similarity index 100% rename from dbms/src/IO/WriteBufferFromOStream.h rename to dbms/IO/WriteBufferFromOStream.h diff --git a/dbms/src/IO/WriteBufferFromPocoSocket.cpp b/dbms/IO/WriteBufferFromPocoSocket.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromPocoSocket.cpp rename to dbms/IO/WriteBufferFromPocoSocket.cpp diff --git a/dbms/src/IO/WriteBufferFromPocoSocket.h b/dbms/IO/WriteBufferFromPocoSocket.h similarity index 100% rename from dbms/src/IO/WriteBufferFromPocoSocket.h rename to dbms/IO/WriteBufferFromPocoSocket.h diff --git a/dbms/src/IO/WriteBufferFromS3.cpp b/dbms/IO/WriteBufferFromS3.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromS3.cpp rename to dbms/IO/WriteBufferFromS3.cpp diff --git a/dbms/src/IO/WriteBufferFromS3.h b/dbms/IO/WriteBufferFromS3.h similarity index 100% rename from dbms/src/IO/WriteBufferFromS3.h rename to dbms/IO/WriteBufferFromS3.h diff --git a/dbms/src/IO/WriteBufferFromString.h b/dbms/IO/WriteBufferFromString.h similarity index 100% rename from dbms/src/IO/WriteBufferFromString.h rename to dbms/IO/WriteBufferFromString.h diff --git a/dbms/src/IO/WriteBufferFromTemporaryFile.cpp b/dbms/IO/WriteBufferFromTemporaryFile.cpp similarity index 100% rename from dbms/src/IO/WriteBufferFromTemporaryFile.cpp rename to dbms/IO/WriteBufferFromTemporaryFile.cpp diff --git a/dbms/src/IO/WriteBufferFromTemporaryFile.h b/dbms/IO/WriteBufferFromTemporaryFile.h similarity index 100% rename from dbms/src/IO/WriteBufferFromTemporaryFile.h rename to dbms/IO/WriteBufferFromTemporaryFile.h diff --git a/dbms/src/IO/WriteBufferFromVector.h b/dbms/IO/WriteBufferFromVector.h similarity index 100% rename from dbms/src/IO/WriteBufferFromVector.h rename to dbms/IO/WriteBufferFromVector.h diff --git a/dbms/src/IO/WriteBufferValidUTF8.cpp b/dbms/IO/WriteBufferValidUTF8.cpp similarity index 100% rename from dbms/src/IO/WriteBufferValidUTF8.cpp rename to dbms/IO/WriteBufferValidUTF8.cpp diff --git a/dbms/src/IO/WriteBufferValidUTF8.h b/dbms/IO/WriteBufferValidUTF8.h similarity index 100% rename from dbms/src/IO/WriteBufferValidUTF8.h rename to dbms/IO/WriteBufferValidUTF8.h diff --git a/dbms/src/IO/WriteHelpers.cpp b/dbms/IO/WriteHelpers.cpp similarity index 100% rename from dbms/src/IO/WriteHelpers.cpp rename to dbms/IO/WriteHelpers.cpp diff --git a/dbms/src/IO/WriteHelpers.h b/dbms/IO/WriteHelpers.h similarity index 100% rename from dbms/src/IO/WriteHelpers.h rename to dbms/IO/WriteHelpers.h diff --git a/dbms/src/IO/WriteIntText.h b/dbms/IO/WriteIntText.h similarity index 100% rename from dbms/src/IO/WriteIntText.h rename to dbms/IO/WriteIntText.h diff --git a/dbms/src/IO/ZlibDeflatingWriteBuffer.cpp b/dbms/IO/ZlibDeflatingWriteBuffer.cpp similarity index 100% rename from dbms/src/IO/ZlibDeflatingWriteBuffer.cpp rename to dbms/IO/ZlibDeflatingWriteBuffer.cpp diff --git a/dbms/src/IO/ZlibDeflatingWriteBuffer.h b/dbms/IO/ZlibDeflatingWriteBuffer.h similarity index 100% rename from dbms/src/IO/ZlibDeflatingWriteBuffer.h rename to dbms/IO/ZlibDeflatingWriteBuffer.h diff --git a/dbms/src/IO/ZlibInflatingReadBuffer.cpp b/dbms/IO/ZlibInflatingReadBuffer.cpp similarity index 100% rename from dbms/src/IO/ZlibInflatingReadBuffer.cpp rename to dbms/IO/ZlibInflatingReadBuffer.cpp diff --git a/dbms/src/IO/ZlibInflatingReadBuffer.h b/dbms/IO/ZlibInflatingReadBuffer.h similarity index 100% rename from dbms/src/IO/ZlibInflatingReadBuffer.h rename to dbms/IO/ZlibInflatingReadBuffer.h diff --git a/dbms/src/IO/copyData.cpp b/dbms/IO/copyData.cpp similarity index 100% rename from dbms/src/IO/copyData.cpp rename to dbms/IO/copyData.cpp diff --git a/dbms/src/IO/copyData.h b/dbms/IO/copyData.h similarity index 100% rename from dbms/src/IO/copyData.h rename to dbms/IO/copyData.h diff --git a/dbms/src/IO/createReadBufferFromFileBase.cpp b/dbms/IO/createReadBufferFromFileBase.cpp similarity index 100% rename from dbms/src/IO/createReadBufferFromFileBase.cpp rename to dbms/IO/createReadBufferFromFileBase.cpp diff --git a/dbms/src/IO/createReadBufferFromFileBase.h b/dbms/IO/createReadBufferFromFileBase.h similarity index 100% rename from dbms/src/IO/createReadBufferFromFileBase.h rename to dbms/IO/createReadBufferFromFileBase.h diff --git a/dbms/src/IO/createWriteBufferFromFileBase.cpp b/dbms/IO/createWriteBufferFromFileBase.cpp similarity index 100% rename from dbms/src/IO/createWriteBufferFromFileBase.cpp rename to dbms/IO/createWriteBufferFromFileBase.cpp diff --git a/dbms/src/IO/createWriteBufferFromFileBase.h b/dbms/IO/createWriteBufferFromFileBase.h similarity index 100% rename from dbms/src/IO/createWriteBufferFromFileBase.h rename to dbms/IO/createWriteBufferFromFileBase.h diff --git a/dbms/src/IO/parseDateTimeBestEffort.cpp b/dbms/IO/parseDateTimeBestEffort.cpp similarity index 100% rename from dbms/src/IO/parseDateTimeBestEffort.cpp rename to dbms/IO/parseDateTimeBestEffort.cpp diff --git a/dbms/src/IO/parseDateTimeBestEffort.h b/dbms/IO/parseDateTimeBestEffort.h similarity index 100% rename from dbms/src/IO/parseDateTimeBestEffort.h rename to dbms/IO/parseDateTimeBestEffort.h diff --git a/dbms/src/IO/readDecimalText.h b/dbms/IO/readDecimalText.h similarity index 100% rename from dbms/src/IO/readDecimalText.h rename to dbms/IO/readDecimalText.h diff --git a/dbms/src/IO/readFloatText.cpp b/dbms/IO/readFloatText.cpp similarity index 100% rename from dbms/src/IO/readFloatText.cpp rename to dbms/IO/readFloatText.cpp diff --git a/dbms/src/IO/readFloatText.h b/dbms/IO/readFloatText.h similarity index 100% rename from dbms/src/IO/readFloatText.h rename to dbms/IO/readFloatText.h diff --git a/dbms/src/IO/tests/CMakeLists.txt b/dbms/IO/tests/CMakeLists.txt similarity index 100% rename from dbms/src/IO/tests/CMakeLists.txt rename to dbms/IO/tests/CMakeLists.txt diff --git a/dbms/src/IO/tests/async_write.cpp b/dbms/IO/tests/async_write.cpp similarity index 100% rename from dbms/src/IO/tests/async_write.cpp rename to dbms/IO/tests/async_write.cpp diff --git a/dbms/src/IO/tests/gtest_DateTime64_parsing_and_writing.cpp b/dbms/IO/tests/gtest_DateTime64_parsing_and_writing.cpp similarity index 100% rename from dbms/src/IO/tests/gtest_DateTime64_parsing_and_writing.cpp rename to dbms/IO/tests/gtest_DateTime64_parsing_and_writing.cpp diff --git a/dbms/src/IO/tests/gtest_DateTimeToString.cpp b/dbms/IO/tests/gtest_DateTimeToString.cpp similarity index 100% rename from dbms/src/IO/tests/gtest_DateTimeToString.cpp rename to dbms/IO/tests/gtest_DateTimeToString.cpp diff --git a/dbms/src/IO/tests/gtest_aio_seek_back_after_eof.cpp b/dbms/IO/tests/gtest_aio_seek_back_after_eof.cpp similarity index 100% rename from dbms/src/IO/tests/gtest_aio_seek_back_after_eof.cpp rename to dbms/IO/tests/gtest_aio_seek_back_after_eof.cpp diff --git a/dbms/src/IO/tests/gtest_bit_io.cpp b/dbms/IO/tests/gtest_bit_io.cpp similarity index 100% rename from dbms/src/IO/tests/gtest_bit_io.cpp rename to dbms/IO/tests/gtest_bit_io.cpp diff --git a/dbms/src/IO/tests/gtest_cascade_and_memory_write_buffer.cpp b/dbms/IO/tests/gtest_cascade_and_memory_write_buffer.cpp similarity index 100% rename from dbms/src/IO/tests/gtest_cascade_and_memory_write_buffer.cpp rename to dbms/IO/tests/gtest_cascade_and_memory_write_buffer.cpp diff --git a/dbms/src/IO/tests/gtest_peekable_read_buffer.cpp b/dbms/IO/tests/gtest_peekable_read_buffer.cpp similarity index 100% rename from dbms/src/IO/tests/gtest_peekable_read_buffer.cpp rename to dbms/IO/tests/gtest_peekable_read_buffer.cpp diff --git a/dbms/src/IO/tests/hashing_buffer.h b/dbms/IO/tests/hashing_buffer.h similarity index 100% rename from dbms/src/IO/tests/hashing_buffer.h rename to dbms/IO/tests/hashing_buffer.h diff --git a/dbms/src/IO/tests/hashing_read_buffer.cpp b/dbms/IO/tests/hashing_read_buffer.cpp similarity index 100% rename from dbms/src/IO/tests/hashing_read_buffer.cpp rename to dbms/IO/tests/hashing_read_buffer.cpp diff --git a/dbms/src/IO/tests/hashing_write_buffer.cpp b/dbms/IO/tests/hashing_write_buffer.cpp similarity index 100% rename from dbms/src/IO/tests/hashing_write_buffer.cpp rename to dbms/IO/tests/hashing_write_buffer.cpp diff --git a/dbms/src/IO/tests/io_operators.cpp b/dbms/IO/tests/io_operators.cpp similarity index 100% rename from dbms/src/IO/tests/io_operators.cpp rename to dbms/IO/tests/io_operators.cpp diff --git a/dbms/src/IO/tests/limit_read_buffer.cpp b/dbms/IO/tests/limit_read_buffer.cpp similarity index 100% rename from dbms/src/IO/tests/limit_read_buffer.cpp rename to dbms/IO/tests/limit_read_buffer.cpp diff --git a/dbms/src/IO/tests/limit_read_buffer.reference b/dbms/IO/tests/limit_read_buffer.reference similarity index 100% rename from dbms/src/IO/tests/limit_read_buffer.reference rename to dbms/IO/tests/limit_read_buffer.reference diff --git a/dbms/src/IO/tests/limit_read_buffer.sh b/dbms/IO/tests/limit_read_buffer.sh similarity index 100% rename from dbms/src/IO/tests/limit_read_buffer.sh rename to dbms/IO/tests/limit_read_buffer.sh diff --git a/dbms/src/IO/tests/limit_read_buffer2.cpp b/dbms/IO/tests/limit_read_buffer2.cpp similarity index 100% rename from dbms/src/IO/tests/limit_read_buffer2.cpp rename to dbms/IO/tests/limit_read_buffer2.cpp diff --git a/dbms/src/IO/tests/mempbrk.cpp b/dbms/IO/tests/mempbrk.cpp similarity index 100% rename from dbms/src/IO/tests/mempbrk.cpp rename to dbms/IO/tests/mempbrk.cpp diff --git a/dbms/src/IO/tests/o_direct_and_dirty_pages.cpp b/dbms/IO/tests/o_direct_and_dirty_pages.cpp similarity index 100% rename from dbms/src/IO/tests/o_direct_and_dirty_pages.cpp rename to dbms/IO/tests/o_direct_and_dirty_pages.cpp diff --git a/dbms/src/IO/tests/parse_date_time_best_effort.cpp b/dbms/IO/tests/parse_date_time_best_effort.cpp similarity index 100% rename from dbms/src/IO/tests/parse_date_time_best_effort.cpp rename to dbms/IO/tests/parse_date_time_best_effort.cpp diff --git a/dbms/src/IO/tests/parse_int_perf.cpp b/dbms/IO/tests/parse_int_perf.cpp similarity index 100% rename from dbms/src/IO/tests/parse_int_perf.cpp rename to dbms/IO/tests/parse_int_perf.cpp diff --git a/dbms/src/IO/tests/parse_int_perf2.cpp b/dbms/IO/tests/parse_int_perf2.cpp similarity index 100% rename from dbms/src/IO/tests/parse_int_perf2.cpp rename to dbms/IO/tests/parse_int_perf2.cpp diff --git a/dbms/src/IO/tests/read_buffer.cpp b/dbms/IO/tests/read_buffer.cpp similarity index 100% rename from dbms/src/IO/tests/read_buffer.cpp rename to dbms/IO/tests/read_buffer.cpp diff --git a/dbms/src/IO/tests/read_buffer_aio.cpp b/dbms/IO/tests/read_buffer_aio.cpp similarity index 100% rename from dbms/src/IO/tests/read_buffer_aio.cpp rename to dbms/IO/tests/read_buffer_aio.cpp diff --git a/dbms/src/IO/tests/read_buffer_perf.cpp b/dbms/IO/tests/read_buffer_perf.cpp similarity index 100% rename from dbms/src/IO/tests/read_buffer_perf.cpp rename to dbms/IO/tests/read_buffer_perf.cpp diff --git a/dbms/src/IO/tests/read_escaped_string.cpp b/dbms/IO/tests/read_escaped_string.cpp similarity index 100% rename from dbms/src/IO/tests/read_escaped_string.cpp rename to dbms/IO/tests/read_escaped_string.cpp diff --git a/dbms/src/IO/tests/read_float_perf.cpp b/dbms/IO/tests/read_float_perf.cpp similarity index 100% rename from dbms/src/IO/tests/read_float_perf.cpp rename to dbms/IO/tests/read_float_perf.cpp diff --git a/dbms/src/IO/tests/read_write_int.cpp b/dbms/IO/tests/read_write_int.cpp similarity index 100% rename from dbms/src/IO/tests/read_write_int.cpp rename to dbms/IO/tests/read_write_int.cpp diff --git a/dbms/src/IO/tests/ryu_test.cpp b/dbms/IO/tests/ryu_test.cpp similarity index 100% rename from dbms/src/IO/tests/ryu_test.cpp rename to dbms/IO/tests/ryu_test.cpp diff --git a/dbms/src/IO/tests/valid_utf8.cpp b/dbms/IO/tests/valid_utf8.cpp similarity index 100% rename from dbms/src/IO/tests/valid_utf8.cpp rename to dbms/IO/tests/valid_utf8.cpp diff --git a/dbms/src/IO/tests/valid_utf8_perf.cpp b/dbms/IO/tests/valid_utf8_perf.cpp similarity index 100% rename from dbms/src/IO/tests/valid_utf8_perf.cpp rename to dbms/IO/tests/valid_utf8_perf.cpp diff --git a/dbms/src/IO/tests/var_uint.cpp b/dbms/IO/tests/var_uint.cpp similarity index 100% rename from dbms/src/IO/tests/var_uint.cpp rename to dbms/IO/tests/var_uint.cpp diff --git a/dbms/src/IO/tests/write_buffer.cpp b/dbms/IO/tests/write_buffer.cpp similarity index 100% rename from dbms/src/IO/tests/write_buffer.cpp rename to dbms/IO/tests/write_buffer.cpp diff --git a/dbms/src/IO/tests/write_buffer_aio.cpp b/dbms/IO/tests/write_buffer_aio.cpp similarity index 100% rename from dbms/src/IO/tests/write_buffer_aio.cpp rename to dbms/IO/tests/write_buffer_aio.cpp diff --git a/dbms/src/IO/tests/write_buffer_perf.cpp b/dbms/IO/tests/write_buffer_perf.cpp similarity index 100% rename from dbms/src/IO/tests/write_buffer_perf.cpp rename to dbms/IO/tests/write_buffer_perf.cpp diff --git a/dbms/src/IO/tests/write_int.cpp b/dbms/IO/tests/write_int.cpp similarity index 100% rename from dbms/src/IO/tests/write_int.cpp rename to dbms/IO/tests/write_int.cpp diff --git a/dbms/src/IO/tests/zlib_buffers.cpp b/dbms/IO/tests/zlib_buffers.cpp similarity index 100% rename from dbms/src/IO/tests/zlib_buffers.cpp rename to dbms/IO/tests/zlib_buffers.cpp diff --git a/dbms/src/IO/tests/zlib_ng_bug.cpp b/dbms/IO/tests/zlib_ng_bug.cpp similarity index 100% rename from dbms/src/IO/tests/zlib_ng_bug.cpp rename to dbms/IO/tests/zlib_ng_bug.cpp diff --git a/dbms/src/Interpreters/ActionLocksManager.cpp b/dbms/Interpreters/ActionLocksManager.cpp similarity index 100% rename from dbms/src/Interpreters/ActionLocksManager.cpp rename to dbms/Interpreters/ActionLocksManager.cpp diff --git a/dbms/src/Interpreters/ActionLocksManager.h b/dbms/Interpreters/ActionLocksManager.h similarity index 100% rename from dbms/src/Interpreters/ActionLocksManager.h rename to dbms/Interpreters/ActionLocksManager.h diff --git a/dbms/src/Interpreters/ActionsVisitor.cpp b/dbms/Interpreters/ActionsVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/ActionsVisitor.cpp rename to dbms/Interpreters/ActionsVisitor.cpp diff --git a/dbms/src/Interpreters/ActionsVisitor.h b/dbms/Interpreters/ActionsVisitor.h similarity index 100% rename from dbms/src/Interpreters/ActionsVisitor.h rename to dbms/Interpreters/ActionsVisitor.h diff --git a/dbms/src/Interpreters/AddDefaultDatabaseVisitor.h b/dbms/Interpreters/AddDefaultDatabaseVisitor.h similarity index 100% rename from dbms/src/Interpreters/AddDefaultDatabaseVisitor.h rename to dbms/Interpreters/AddDefaultDatabaseVisitor.h diff --git a/dbms/src/Interpreters/AggregateDescription.h b/dbms/Interpreters/AggregateDescription.h similarity index 100% rename from dbms/src/Interpreters/AggregateDescription.h rename to dbms/Interpreters/AggregateDescription.h diff --git a/dbms/src/Interpreters/AggregationCommon.h b/dbms/Interpreters/AggregationCommon.h similarity index 100% rename from dbms/src/Interpreters/AggregationCommon.h rename to dbms/Interpreters/AggregationCommon.h diff --git a/dbms/src/Interpreters/Aggregator.cpp b/dbms/Interpreters/Aggregator.cpp similarity index 100% rename from dbms/src/Interpreters/Aggregator.cpp rename to dbms/Interpreters/Aggregator.cpp diff --git a/dbms/src/Interpreters/Aggregator.h b/dbms/Interpreters/Aggregator.h similarity index 100% rename from dbms/src/Interpreters/Aggregator.h rename to dbms/Interpreters/Aggregator.h diff --git a/dbms/src/Interpreters/Aliases.h b/dbms/Interpreters/Aliases.h similarity index 100% rename from dbms/src/Interpreters/Aliases.h rename to dbms/Interpreters/Aliases.h diff --git a/dbms/src/Interpreters/AnalyzedJoin.cpp b/dbms/Interpreters/AnalyzedJoin.cpp similarity index 100% rename from dbms/src/Interpreters/AnalyzedJoin.cpp rename to dbms/Interpreters/AnalyzedJoin.cpp diff --git a/dbms/src/Interpreters/AnalyzedJoin.h b/dbms/Interpreters/AnalyzedJoin.h similarity index 100% rename from dbms/src/Interpreters/AnalyzedJoin.h rename to dbms/Interpreters/AnalyzedJoin.h diff --git a/dbms/src/Interpreters/ArrayJoinAction.cpp b/dbms/Interpreters/ArrayJoinAction.cpp similarity index 100% rename from dbms/src/Interpreters/ArrayJoinAction.cpp rename to dbms/Interpreters/ArrayJoinAction.cpp diff --git a/dbms/src/Interpreters/ArrayJoinAction.h b/dbms/Interpreters/ArrayJoinAction.h similarity index 100% rename from dbms/src/Interpreters/ArrayJoinAction.h rename to dbms/Interpreters/ArrayJoinAction.h diff --git a/dbms/src/Interpreters/ArrayJoinedColumnsVisitor.h b/dbms/Interpreters/ArrayJoinedColumnsVisitor.h similarity index 100% rename from dbms/src/Interpreters/ArrayJoinedColumnsVisitor.h rename to dbms/Interpreters/ArrayJoinedColumnsVisitor.h diff --git a/dbms/src/Interpreters/AsteriskSemantic.h b/dbms/Interpreters/AsteriskSemantic.h similarity index 100% rename from dbms/src/Interpreters/AsteriskSemantic.h rename to dbms/Interpreters/AsteriskSemantic.h diff --git a/dbms/src/Interpreters/AsynchronousMetrics.cpp b/dbms/Interpreters/AsynchronousMetrics.cpp similarity index 100% rename from dbms/src/Interpreters/AsynchronousMetrics.cpp rename to dbms/Interpreters/AsynchronousMetrics.cpp diff --git a/dbms/src/Interpreters/AsynchronousMetrics.h b/dbms/Interpreters/AsynchronousMetrics.h similarity index 100% rename from dbms/src/Interpreters/AsynchronousMetrics.h rename to dbms/Interpreters/AsynchronousMetrics.h diff --git a/dbms/src/Interpreters/BloomFilter.cpp b/dbms/Interpreters/BloomFilter.cpp similarity index 100% rename from dbms/src/Interpreters/BloomFilter.cpp rename to dbms/Interpreters/BloomFilter.cpp diff --git a/dbms/src/Interpreters/BloomFilter.h b/dbms/Interpreters/BloomFilter.h similarity index 100% rename from dbms/src/Interpreters/BloomFilter.h rename to dbms/Interpreters/BloomFilter.h diff --git a/dbms/src/Interpreters/BloomFilterHash.h b/dbms/Interpreters/BloomFilterHash.h similarity index 100% rename from dbms/src/Interpreters/BloomFilterHash.h rename to dbms/Interpreters/BloomFilterHash.h diff --git a/dbms/src/Interpreters/CMakeLists.txt b/dbms/Interpreters/CMakeLists.txt similarity index 100% rename from dbms/src/Interpreters/CMakeLists.txt rename to dbms/Interpreters/CMakeLists.txt diff --git a/dbms/src/Interpreters/CancellationCode.h b/dbms/Interpreters/CancellationCode.h similarity index 100% rename from dbms/src/Interpreters/CancellationCode.h rename to dbms/Interpreters/CancellationCode.h diff --git a/dbms/src/Interpreters/CatBoostModel.cpp b/dbms/Interpreters/CatBoostModel.cpp similarity index 100% rename from dbms/src/Interpreters/CatBoostModel.cpp rename to dbms/Interpreters/CatBoostModel.cpp diff --git a/dbms/src/Interpreters/CatBoostModel.h b/dbms/Interpreters/CatBoostModel.h similarity index 100% rename from dbms/src/Interpreters/CatBoostModel.h rename to dbms/Interpreters/CatBoostModel.h diff --git a/dbms/src/Interpreters/ClientInfo.cpp b/dbms/Interpreters/ClientInfo.cpp similarity index 100% rename from dbms/src/Interpreters/ClientInfo.cpp rename to dbms/Interpreters/ClientInfo.cpp diff --git a/dbms/src/Interpreters/ClientInfo.h b/dbms/Interpreters/ClientInfo.h similarity index 100% rename from dbms/src/Interpreters/ClientInfo.h rename to dbms/Interpreters/ClientInfo.h diff --git a/dbms/src/Interpreters/Cluster.cpp b/dbms/Interpreters/Cluster.cpp similarity index 100% rename from dbms/src/Interpreters/Cluster.cpp rename to dbms/Interpreters/Cluster.cpp diff --git a/dbms/src/Interpreters/Cluster.h b/dbms/Interpreters/Cluster.h similarity index 100% rename from dbms/src/Interpreters/Cluster.h rename to dbms/Interpreters/Cluster.h diff --git a/dbms/src/Interpreters/ClusterProxy/IStreamFactory.h b/dbms/Interpreters/ClusterProxy/IStreamFactory.h similarity index 100% rename from dbms/src/Interpreters/ClusterProxy/IStreamFactory.h rename to dbms/Interpreters/ClusterProxy/IStreamFactory.h diff --git a/dbms/src/Interpreters/ClusterProxy/SelectStreamFactory.cpp b/dbms/Interpreters/ClusterProxy/SelectStreamFactory.cpp similarity index 100% rename from dbms/src/Interpreters/ClusterProxy/SelectStreamFactory.cpp rename to dbms/Interpreters/ClusterProxy/SelectStreamFactory.cpp diff --git a/dbms/src/Interpreters/ClusterProxy/SelectStreamFactory.h b/dbms/Interpreters/ClusterProxy/SelectStreamFactory.h similarity index 100% rename from dbms/src/Interpreters/ClusterProxy/SelectStreamFactory.h rename to dbms/Interpreters/ClusterProxy/SelectStreamFactory.h diff --git a/dbms/src/Interpreters/ClusterProxy/executeQuery.cpp b/dbms/Interpreters/ClusterProxy/executeQuery.cpp similarity index 100% rename from dbms/src/Interpreters/ClusterProxy/executeQuery.cpp rename to dbms/Interpreters/ClusterProxy/executeQuery.cpp diff --git a/dbms/src/Interpreters/ClusterProxy/executeQuery.h b/dbms/Interpreters/ClusterProxy/executeQuery.h similarity index 100% rename from dbms/src/Interpreters/ClusterProxy/executeQuery.h rename to dbms/Interpreters/ClusterProxy/executeQuery.h diff --git a/dbms/src/Interpreters/CollectJoinOnKeysVisitor.cpp b/dbms/Interpreters/CollectJoinOnKeysVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/CollectJoinOnKeysVisitor.cpp rename to dbms/Interpreters/CollectJoinOnKeysVisitor.cpp diff --git a/dbms/src/Interpreters/CollectJoinOnKeysVisitor.h b/dbms/Interpreters/CollectJoinOnKeysVisitor.h similarity index 100% rename from dbms/src/Interpreters/CollectJoinOnKeysVisitor.h rename to dbms/Interpreters/CollectJoinOnKeysVisitor.h diff --git a/dbms/src/Interpreters/ColumnNamesContext.cpp b/dbms/Interpreters/ColumnNamesContext.cpp similarity index 100% rename from dbms/src/Interpreters/ColumnNamesContext.cpp rename to dbms/Interpreters/ColumnNamesContext.cpp diff --git a/dbms/src/Interpreters/ColumnNamesContext.h b/dbms/Interpreters/ColumnNamesContext.h similarity index 100% rename from dbms/src/Interpreters/ColumnNamesContext.h rename to dbms/Interpreters/ColumnNamesContext.h diff --git a/dbms/src/Interpreters/Context.cpp b/dbms/Interpreters/Context.cpp similarity index 100% rename from dbms/src/Interpreters/Context.cpp rename to dbms/Interpreters/Context.cpp diff --git a/dbms/src/Interpreters/Context.h b/dbms/Interpreters/Context.h similarity index 100% rename from dbms/src/Interpreters/Context.h rename to dbms/Interpreters/Context.h diff --git a/dbms/src/Interpreters/CrossToInnerJoinVisitor.cpp b/dbms/Interpreters/CrossToInnerJoinVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/CrossToInnerJoinVisitor.cpp rename to dbms/Interpreters/CrossToInnerJoinVisitor.cpp diff --git a/dbms/src/Interpreters/CrossToInnerJoinVisitor.h b/dbms/Interpreters/CrossToInnerJoinVisitor.h similarity index 100% rename from dbms/src/Interpreters/CrossToInnerJoinVisitor.h rename to dbms/Interpreters/CrossToInnerJoinVisitor.h diff --git a/dbms/src/Interpreters/DDLWorker.cpp b/dbms/Interpreters/DDLWorker.cpp similarity index 100% rename from dbms/src/Interpreters/DDLWorker.cpp rename to dbms/Interpreters/DDLWorker.cpp diff --git a/dbms/src/Interpreters/DDLWorker.h b/dbms/Interpreters/DDLWorker.h similarity index 100% rename from dbms/src/Interpreters/DDLWorker.h rename to dbms/Interpreters/DDLWorker.h diff --git a/dbms/src/Interpreters/DNSCacheUpdater.cpp b/dbms/Interpreters/DNSCacheUpdater.cpp similarity index 100% rename from dbms/src/Interpreters/DNSCacheUpdater.cpp rename to dbms/Interpreters/DNSCacheUpdater.cpp diff --git a/dbms/src/Interpreters/DNSCacheUpdater.h b/dbms/Interpreters/DNSCacheUpdater.h similarity index 100% rename from dbms/src/Interpreters/DNSCacheUpdater.h rename to dbms/Interpreters/DNSCacheUpdater.h diff --git a/dbms/src/Interpreters/DatabaseAndTableWithAlias.cpp b/dbms/Interpreters/DatabaseAndTableWithAlias.cpp similarity index 100% rename from dbms/src/Interpreters/DatabaseAndTableWithAlias.cpp rename to dbms/Interpreters/DatabaseAndTableWithAlias.cpp diff --git a/dbms/src/Interpreters/DatabaseAndTableWithAlias.h b/dbms/Interpreters/DatabaseAndTableWithAlias.h similarity index 100% rename from dbms/src/Interpreters/DatabaseAndTableWithAlias.h rename to dbms/Interpreters/DatabaseAndTableWithAlias.h diff --git a/dbms/src/Interpreters/DatabaseCatalog.cpp b/dbms/Interpreters/DatabaseCatalog.cpp similarity index 100% rename from dbms/src/Interpreters/DatabaseCatalog.cpp rename to dbms/Interpreters/DatabaseCatalog.cpp diff --git a/dbms/src/Interpreters/DatabaseCatalog.h b/dbms/Interpreters/DatabaseCatalog.h similarity index 100% rename from dbms/src/Interpreters/DatabaseCatalog.h rename to dbms/Interpreters/DatabaseCatalog.h diff --git a/dbms/src/Interpreters/EmbeddedDictionaries.cpp b/dbms/Interpreters/EmbeddedDictionaries.cpp similarity index 100% rename from dbms/src/Interpreters/EmbeddedDictionaries.cpp rename to dbms/Interpreters/EmbeddedDictionaries.cpp diff --git a/dbms/src/Interpreters/EmbeddedDictionaries.h b/dbms/Interpreters/EmbeddedDictionaries.h similarity index 100% rename from dbms/src/Interpreters/EmbeddedDictionaries.h rename to dbms/Interpreters/EmbeddedDictionaries.h diff --git a/dbms/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp b/dbms/Interpreters/ExecuteScalarSubqueriesVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/ExecuteScalarSubqueriesVisitor.cpp rename to dbms/Interpreters/ExecuteScalarSubqueriesVisitor.cpp diff --git a/dbms/src/Interpreters/ExecuteScalarSubqueriesVisitor.h b/dbms/Interpreters/ExecuteScalarSubqueriesVisitor.h similarity index 100% rename from dbms/src/Interpreters/ExecuteScalarSubqueriesVisitor.h rename to dbms/Interpreters/ExecuteScalarSubqueriesVisitor.h diff --git a/dbms/src/Interpreters/ExpressionActions.cpp b/dbms/Interpreters/ExpressionActions.cpp similarity index 100% rename from dbms/src/Interpreters/ExpressionActions.cpp rename to dbms/Interpreters/ExpressionActions.cpp diff --git a/dbms/src/Interpreters/ExpressionActions.h b/dbms/Interpreters/ExpressionActions.h similarity index 100% rename from dbms/src/Interpreters/ExpressionActions.h rename to dbms/Interpreters/ExpressionActions.h diff --git a/dbms/src/Interpreters/ExpressionAnalyzer.cpp b/dbms/Interpreters/ExpressionAnalyzer.cpp similarity index 100% rename from dbms/src/Interpreters/ExpressionAnalyzer.cpp rename to dbms/Interpreters/ExpressionAnalyzer.cpp diff --git a/dbms/src/Interpreters/ExpressionAnalyzer.h b/dbms/Interpreters/ExpressionAnalyzer.h similarity index 100% rename from dbms/src/Interpreters/ExpressionAnalyzer.h rename to dbms/Interpreters/ExpressionAnalyzer.h diff --git a/dbms/src/Interpreters/ExpressionJIT.cpp b/dbms/Interpreters/ExpressionJIT.cpp similarity index 100% rename from dbms/src/Interpreters/ExpressionJIT.cpp rename to dbms/Interpreters/ExpressionJIT.cpp diff --git a/dbms/src/Interpreters/ExpressionJIT.h b/dbms/Interpreters/ExpressionJIT.h similarity index 100% rename from dbms/src/Interpreters/ExpressionJIT.h rename to dbms/Interpreters/ExpressionJIT.h diff --git a/dbms/src/Interpreters/ExternalDictionariesLoader.cpp b/dbms/Interpreters/ExternalDictionariesLoader.cpp similarity index 100% rename from dbms/src/Interpreters/ExternalDictionariesLoader.cpp rename to dbms/Interpreters/ExternalDictionariesLoader.cpp diff --git a/dbms/src/Interpreters/ExternalDictionariesLoader.h b/dbms/Interpreters/ExternalDictionariesLoader.h similarity index 100% rename from dbms/src/Interpreters/ExternalDictionariesLoader.h rename to dbms/Interpreters/ExternalDictionariesLoader.h diff --git a/dbms/src/Interpreters/ExternalLoader.cpp b/dbms/Interpreters/ExternalLoader.cpp similarity index 100% rename from dbms/src/Interpreters/ExternalLoader.cpp rename to dbms/Interpreters/ExternalLoader.cpp diff --git a/dbms/src/Interpreters/ExternalLoader.h b/dbms/Interpreters/ExternalLoader.h similarity index 100% rename from dbms/src/Interpreters/ExternalLoader.h rename to dbms/Interpreters/ExternalLoader.h diff --git a/dbms/src/Interpreters/ExternalLoaderDatabaseConfigRepository.cpp b/dbms/Interpreters/ExternalLoaderDatabaseConfigRepository.cpp similarity index 100% rename from dbms/src/Interpreters/ExternalLoaderDatabaseConfigRepository.cpp rename to dbms/Interpreters/ExternalLoaderDatabaseConfigRepository.cpp diff --git a/dbms/src/Interpreters/ExternalLoaderDatabaseConfigRepository.h b/dbms/Interpreters/ExternalLoaderDatabaseConfigRepository.h similarity index 100% rename from dbms/src/Interpreters/ExternalLoaderDatabaseConfigRepository.h rename to dbms/Interpreters/ExternalLoaderDatabaseConfigRepository.h diff --git a/dbms/src/Interpreters/ExternalLoaderTempConfigRepository.cpp b/dbms/Interpreters/ExternalLoaderTempConfigRepository.cpp similarity index 100% rename from dbms/src/Interpreters/ExternalLoaderTempConfigRepository.cpp rename to dbms/Interpreters/ExternalLoaderTempConfigRepository.cpp diff --git a/dbms/src/Interpreters/ExternalLoaderTempConfigRepository.h b/dbms/Interpreters/ExternalLoaderTempConfigRepository.h similarity index 100% rename from dbms/src/Interpreters/ExternalLoaderTempConfigRepository.h rename to dbms/Interpreters/ExternalLoaderTempConfigRepository.h diff --git a/dbms/src/Interpreters/ExternalLoaderXMLConfigRepository.cpp b/dbms/Interpreters/ExternalLoaderXMLConfigRepository.cpp similarity index 100% rename from dbms/src/Interpreters/ExternalLoaderXMLConfigRepository.cpp rename to dbms/Interpreters/ExternalLoaderXMLConfigRepository.cpp diff --git a/dbms/src/Interpreters/ExternalLoaderXMLConfigRepository.h b/dbms/Interpreters/ExternalLoaderXMLConfigRepository.h similarity index 100% rename from dbms/src/Interpreters/ExternalLoaderXMLConfigRepository.h rename to dbms/Interpreters/ExternalLoaderXMLConfigRepository.h diff --git a/dbms/src/Interpreters/ExternalModelsLoader.cpp b/dbms/Interpreters/ExternalModelsLoader.cpp similarity index 100% rename from dbms/src/Interpreters/ExternalModelsLoader.cpp rename to dbms/Interpreters/ExternalModelsLoader.cpp diff --git a/dbms/src/Interpreters/ExternalModelsLoader.h b/dbms/Interpreters/ExternalModelsLoader.h similarity index 100% rename from dbms/src/Interpreters/ExternalModelsLoader.h rename to dbms/Interpreters/ExternalModelsLoader.h diff --git a/dbms/src/Interpreters/ExtractExpressionInfoVisitor.cpp b/dbms/Interpreters/ExtractExpressionInfoVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/ExtractExpressionInfoVisitor.cpp rename to dbms/Interpreters/ExtractExpressionInfoVisitor.cpp diff --git a/dbms/src/Interpreters/ExtractExpressionInfoVisitor.h b/dbms/Interpreters/ExtractExpressionInfoVisitor.h similarity index 100% rename from dbms/src/Interpreters/ExtractExpressionInfoVisitor.h rename to dbms/Interpreters/ExtractExpressionInfoVisitor.h diff --git a/dbms/src/Interpreters/FillingRow.cpp b/dbms/Interpreters/FillingRow.cpp similarity index 100% rename from dbms/src/Interpreters/FillingRow.cpp rename to dbms/Interpreters/FillingRow.cpp diff --git a/dbms/src/Interpreters/FillingRow.h b/dbms/Interpreters/FillingRow.h similarity index 100% rename from dbms/src/Interpreters/FillingRow.h rename to dbms/Interpreters/FillingRow.h diff --git a/dbms/src/Interpreters/GetAggregatesVisitor.h b/dbms/Interpreters/GetAggregatesVisitor.h similarity index 100% rename from dbms/src/Interpreters/GetAggregatesVisitor.h rename to dbms/Interpreters/GetAggregatesVisitor.h diff --git a/dbms/src/Interpreters/GlobalSubqueriesVisitor.h b/dbms/Interpreters/GlobalSubqueriesVisitor.h similarity index 100% rename from dbms/src/Interpreters/GlobalSubqueriesVisitor.h rename to dbms/Interpreters/GlobalSubqueriesVisitor.h diff --git a/dbms/src/Interpreters/IExternalLoadable.cpp b/dbms/Interpreters/IExternalLoadable.cpp similarity index 100% rename from dbms/src/Interpreters/IExternalLoadable.cpp rename to dbms/Interpreters/IExternalLoadable.cpp diff --git a/dbms/src/Interpreters/IExternalLoadable.h b/dbms/Interpreters/IExternalLoadable.h similarity index 100% rename from dbms/src/Interpreters/IExternalLoadable.h rename to dbms/Interpreters/IExternalLoadable.h diff --git a/dbms/src/Interpreters/IExternalLoaderConfigRepository.h b/dbms/Interpreters/IExternalLoaderConfigRepository.h similarity index 100% rename from dbms/src/Interpreters/IExternalLoaderConfigRepository.h rename to dbms/Interpreters/IExternalLoaderConfigRepository.h diff --git a/dbms/src/Interpreters/IInterpreter.h b/dbms/Interpreters/IInterpreter.h similarity index 100% rename from dbms/src/Interpreters/IInterpreter.h rename to dbms/Interpreters/IInterpreter.h diff --git a/dbms/src/Interpreters/IJoin.h b/dbms/Interpreters/IJoin.h similarity index 100% rename from dbms/src/Interpreters/IJoin.h rename to dbms/Interpreters/IJoin.h diff --git a/dbms/src/Interpreters/IdentifierSemantic.cpp b/dbms/Interpreters/IdentifierSemantic.cpp similarity index 100% rename from dbms/src/Interpreters/IdentifierSemantic.cpp rename to dbms/Interpreters/IdentifierSemantic.cpp diff --git a/dbms/src/Interpreters/IdentifierSemantic.h b/dbms/Interpreters/IdentifierSemantic.h similarity index 100% rename from dbms/src/Interpreters/IdentifierSemantic.h rename to dbms/Interpreters/IdentifierSemantic.h diff --git a/dbms/src/Interpreters/InDepthNodeVisitor.h b/dbms/Interpreters/InDepthNodeVisitor.h similarity index 100% rename from dbms/src/Interpreters/InDepthNodeVisitor.h rename to dbms/Interpreters/InDepthNodeVisitor.h diff --git a/dbms/src/Interpreters/InJoinSubqueriesPreprocessor.cpp b/dbms/Interpreters/InJoinSubqueriesPreprocessor.cpp similarity index 100% rename from dbms/src/Interpreters/InJoinSubqueriesPreprocessor.cpp rename to dbms/Interpreters/InJoinSubqueriesPreprocessor.cpp diff --git a/dbms/src/Interpreters/InJoinSubqueriesPreprocessor.h b/dbms/Interpreters/InJoinSubqueriesPreprocessor.h similarity index 100% rename from dbms/src/Interpreters/InJoinSubqueriesPreprocessor.h rename to dbms/Interpreters/InJoinSubqueriesPreprocessor.h diff --git a/dbms/src/Interpreters/InternalTextLogsQueue.cpp b/dbms/Interpreters/InternalTextLogsQueue.cpp similarity index 100% rename from dbms/src/Interpreters/InternalTextLogsQueue.cpp rename to dbms/Interpreters/InternalTextLogsQueue.cpp diff --git a/dbms/src/Interpreters/InternalTextLogsQueue.h b/dbms/Interpreters/InternalTextLogsQueue.h similarity index 100% rename from dbms/src/Interpreters/InternalTextLogsQueue.h rename to dbms/Interpreters/InternalTextLogsQueue.h diff --git a/dbms/src/Interpreters/InterpreterAlterQuery.cpp b/dbms/Interpreters/InterpreterAlterQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterAlterQuery.cpp rename to dbms/Interpreters/InterpreterAlterQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterAlterQuery.h b/dbms/Interpreters/InterpreterAlterQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterAlterQuery.h rename to dbms/Interpreters/InterpreterAlterQuery.h diff --git a/dbms/src/Interpreters/InterpreterCheckQuery.cpp b/dbms/Interpreters/InterpreterCheckQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterCheckQuery.cpp rename to dbms/Interpreters/InterpreterCheckQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterCheckQuery.h b/dbms/Interpreters/InterpreterCheckQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterCheckQuery.h rename to dbms/Interpreters/InterpreterCheckQuery.h diff --git a/dbms/src/Interpreters/InterpreterCreateQuery.cpp b/dbms/Interpreters/InterpreterCreateQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateQuery.cpp rename to dbms/Interpreters/InterpreterCreateQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterCreateQuery.h b/dbms/Interpreters/InterpreterCreateQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateQuery.h rename to dbms/Interpreters/InterpreterCreateQuery.h diff --git a/dbms/src/Interpreters/InterpreterCreateQuotaQuery.cpp b/dbms/Interpreters/InterpreterCreateQuotaQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateQuotaQuery.cpp rename to dbms/Interpreters/InterpreterCreateQuotaQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterCreateQuotaQuery.h b/dbms/Interpreters/InterpreterCreateQuotaQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateQuotaQuery.h rename to dbms/Interpreters/InterpreterCreateQuotaQuery.h diff --git a/dbms/src/Interpreters/InterpreterCreateRoleQuery.cpp b/dbms/Interpreters/InterpreterCreateRoleQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateRoleQuery.cpp rename to dbms/Interpreters/InterpreterCreateRoleQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterCreateRoleQuery.h b/dbms/Interpreters/InterpreterCreateRoleQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateRoleQuery.h rename to dbms/Interpreters/InterpreterCreateRoleQuery.h diff --git a/dbms/src/Interpreters/InterpreterCreateRowPolicyQuery.cpp b/dbms/Interpreters/InterpreterCreateRowPolicyQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateRowPolicyQuery.cpp rename to dbms/Interpreters/InterpreterCreateRowPolicyQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterCreateRowPolicyQuery.h b/dbms/Interpreters/InterpreterCreateRowPolicyQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateRowPolicyQuery.h rename to dbms/Interpreters/InterpreterCreateRowPolicyQuery.h diff --git a/dbms/src/Interpreters/InterpreterCreateSettingsProfileQuery.cpp b/dbms/Interpreters/InterpreterCreateSettingsProfileQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateSettingsProfileQuery.cpp rename to dbms/Interpreters/InterpreterCreateSettingsProfileQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterCreateSettingsProfileQuery.h b/dbms/Interpreters/InterpreterCreateSettingsProfileQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateSettingsProfileQuery.h rename to dbms/Interpreters/InterpreterCreateSettingsProfileQuery.h diff --git a/dbms/src/Interpreters/InterpreterCreateUserQuery.cpp b/dbms/Interpreters/InterpreterCreateUserQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateUserQuery.cpp rename to dbms/Interpreters/InterpreterCreateUserQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterCreateUserQuery.h b/dbms/Interpreters/InterpreterCreateUserQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterCreateUserQuery.h rename to dbms/Interpreters/InterpreterCreateUserQuery.h diff --git a/dbms/src/Interpreters/InterpreterDescribeQuery.cpp b/dbms/Interpreters/InterpreterDescribeQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterDescribeQuery.cpp rename to dbms/Interpreters/InterpreterDescribeQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterDescribeQuery.h b/dbms/Interpreters/InterpreterDescribeQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterDescribeQuery.h rename to dbms/Interpreters/InterpreterDescribeQuery.h diff --git a/dbms/src/Interpreters/InterpreterDropAccessEntityQuery.cpp b/dbms/Interpreters/InterpreterDropAccessEntityQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterDropAccessEntityQuery.cpp rename to dbms/Interpreters/InterpreterDropAccessEntityQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterDropAccessEntityQuery.h b/dbms/Interpreters/InterpreterDropAccessEntityQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterDropAccessEntityQuery.h rename to dbms/Interpreters/InterpreterDropAccessEntityQuery.h diff --git a/dbms/src/Interpreters/InterpreterDropQuery.cpp b/dbms/Interpreters/InterpreterDropQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterDropQuery.cpp rename to dbms/Interpreters/InterpreterDropQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterDropQuery.h b/dbms/Interpreters/InterpreterDropQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterDropQuery.h rename to dbms/Interpreters/InterpreterDropQuery.h diff --git a/dbms/src/Interpreters/InterpreterExistsQuery.cpp b/dbms/Interpreters/InterpreterExistsQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterExistsQuery.cpp rename to dbms/Interpreters/InterpreterExistsQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterExistsQuery.h b/dbms/Interpreters/InterpreterExistsQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterExistsQuery.h rename to dbms/Interpreters/InterpreterExistsQuery.h diff --git a/dbms/src/Interpreters/InterpreterExplainQuery.cpp b/dbms/Interpreters/InterpreterExplainQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterExplainQuery.cpp rename to dbms/Interpreters/InterpreterExplainQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterExplainQuery.h b/dbms/Interpreters/InterpreterExplainQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterExplainQuery.h rename to dbms/Interpreters/InterpreterExplainQuery.h diff --git a/dbms/src/Interpreters/InterpreterFactory.cpp b/dbms/Interpreters/InterpreterFactory.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterFactory.cpp rename to dbms/Interpreters/InterpreterFactory.cpp diff --git a/dbms/src/Interpreters/InterpreterFactory.h b/dbms/Interpreters/InterpreterFactory.h similarity index 100% rename from dbms/src/Interpreters/InterpreterFactory.h rename to dbms/Interpreters/InterpreterFactory.h diff --git a/dbms/src/Interpreters/InterpreterGrantQuery.cpp b/dbms/Interpreters/InterpreterGrantQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterGrantQuery.cpp rename to dbms/Interpreters/InterpreterGrantQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterGrantQuery.h b/dbms/Interpreters/InterpreterGrantQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterGrantQuery.h rename to dbms/Interpreters/InterpreterGrantQuery.h diff --git a/dbms/src/Interpreters/InterpreterInsertQuery.cpp b/dbms/Interpreters/InterpreterInsertQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterInsertQuery.cpp rename to dbms/Interpreters/InterpreterInsertQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterInsertQuery.h b/dbms/Interpreters/InterpreterInsertQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterInsertQuery.h rename to dbms/Interpreters/InterpreterInsertQuery.h diff --git a/dbms/src/Interpreters/InterpreterKillQueryQuery.cpp b/dbms/Interpreters/InterpreterKillQueryQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterKillQueryQuery.cpp rename to dbms/Interpreters/InterpreterKillQueryQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterKillQueryQuery.h b/dbms/Interpreters/InterpreterKillQueryQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterKillQueryQuery.h rename to dbms/Interpreters/InterpreterKillQueryQuery.h diff --git a/dbms/src/Interpreters/InterpreterOptimizeQuery.cpp b/dbms/Interpreters/InterpreterOptimizeQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterOptimizeQuery.cpp rename to dbms/Interpreters/InterpreterOptimizeQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterOptimizeQuery.h b/dbms/Interpreters/InterpreterOptimizeQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterOptimizeQuery.h rename to dbms/Interpreters/InterpreterOptimizeQuery.h diff --git a/dbms/src/Interpreters/InterpreterRenameQuery.cpp b/dbms/Interpreters/InterpreterRenameQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterRenameQuery.cpp rename to dbms/Interpreters/InterpreterRenameQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterRenameQuery.h b/dbms/Interpreters/InterpreterRenameQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterRenameQuery.h rename to dbms/Interpreters/InterpreterRenameQuery.h diff --git a/dbms/src/Interpreters/InterpreterSelectQuery.cpp b/dbms/Interpreters/InterpreterSelectQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterSelectQuery.cpp rename to dbms/Interpreters/InterpreterSelectQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterSelectQuery.h b/dbms/Interpreters/InterpreterSelectQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterSelectQuery.h rename to dbms/Interpreters/InterpreterSelectQuery.h diff --git a/dbms/src/Interpreters/InterpreterSelectWithUnionQuery.cpp b/dbms/Interpreters/InterpreterSelectWithUnionQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterSelectWithUnionQuery.cpp rename to dbms/Interpreters/InterpreterSelectWithUnionQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterSelectWithUnionQuery.h b/dbms/Interpreters/InterpreterSelectWithUnionQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterSelectWithUnionQuery.h rename to dbms/Interpreters/InterpreterSelectWithUnionQuery.h diff --git a/dbms/src/Interpreters/InterpreterSetQuery.cpp b/dbms/Interpreters/InterpreterSetQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterSetQuery.cpp rename to dbms/Interpreters/InterpreterSetQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterSetQuery.h b/dbms/Interpreters/InterpreterSetQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterSetQuery.h rename to dbms/Interpreters/InterpreterSetQuery.h diff --git a/dbms/src/Interpreters/InterpreterSetRoleQuery.cpp b/dbms/Interpreters/InterpreterSetRoleQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterSetRoleQuery.cpp rename to dbms/Interpreters/InterpreterSetRoleQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterSetRoleQuery.h b/dbms/Interpreters/InterpreterSetRoleQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterSetRoleQuery.h rename to dbms/Interpreters/InterpreterSetRoleQuery.h diff --git a/dbms/src/Interpreters/InterpreterShowCreateAccessEntityQuery.cpp b/dbms/Interpreters/InterpreterShowCreateAccessEntityQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterShowCreateAccessEntityQuery.cpp rename to dbms/Interpreters/InterpreterShowCreateAccessEntityQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterShowCreateAccessEntityQuery.h b/dbms/Interpreters/InterpreterShowCreateAccessEntityQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterShowCreateAccessEntityQuery.h rename to dbms/Interpreters/InterpreterShowCreateAccessEntityQuery.h diff --git a/dbms/src/Interpreters/InterpreterShowCreateQuery.cpp b/dbms/Interpreters/InterpreterShowCreateQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterShowCreateQuery.cpp rename to dbms/Interpreters/InterpreterShowCreateQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterShowCreateQuery.h b/dbms/Interpreters/InterpreterShowCreateQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterShowCreateQuery.h rename to dbms/Interpreters/InterpreterShowCreateQuery.h diff --git a/dbms/src/Interpreters/InterpreterShowGrantsQuery.cpp b/dbms/Interpreters/InterpreterShowGrantsQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterShowGrantsQuery.cpp rename to dbms/Interpreters/InterpreterShowGrantsQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterShowGrantsQuery.h b/dbms/Interpreters/InterpreterShowGrantsQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterShowGrantsQuery.h rename to dbms/Interpreters/InterpreterShowGrantsQuery.h diff --git a/dbms/src/Interpreters/InterpreterShowProcesslistQuery.cpp b/dbms/Interpreters/InterpreterShowProcesslistQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterShowProcesslistQuery.cpp rename to dbms/Interpreters/InterpreterShowProcesslistQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterShowProcesslistQuery.h b/dbms/Interpreters/InterpreterShowProcesslistQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterShowProcesslistQuery.h rename to dbms/Interpreters/InterpreterShowProcesslistQuery.h diff --git a/dbms/src/Interpreters/InterpreterShowQuotasQuery.cpp b/dbms/Interpreters/InterpreterShowQuotasQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterShowQuotasQuery.cpp rename to dbms/Interpreters/InterpreterShowQuotasQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterShowQuotasQuery.h b/dbms/Interpreters/InterpreterShowQuotasQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterShowQuotasQuery.h rename to dbms/Interpreters/InterpreterShowQuotasQuery.h diff --git a/dbms/src/Interpreters/InterpreterShowRowPoliciesQuery.cpp b/dbms/Interpreters/InterpreterShowRowPoliciesQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterShowRowPoliciesQuery.cpp rename to dbms/Interpreters/InterpreterShowRowPoliciesQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterShowRowPoliciesQuery.h b/dbms/Interpreters/InterpreterShowRowPoliciesQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterShowRowPoliciesQuery.h rename to dbms/Interpreters/InterpreterShowRowPoliciesQuery.h diff --git a/dbms/src/Interpreters/InterpreterShowTablesQuery.cpp b/dbms/Interpreters/InterpreterShowTablesQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterShowTablesQuery.cpp rename to dbms/Interpreters/InterpreterShowTablesQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterShowTablesQuery.h b/dbms/Interpreters/InterpreterShowTablesQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterShowTablesQuery.h rename to dbms/Interpreters/InterpreterShowTablesQuery.h diff --git a/dbms/src/Interpreters/InterpreterSystemQuery.cpp b/dbms/Interpreters/InterpreterSystemQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterSystemQuery.cpp rename to dbms/Interpreters/InterpreterSystemQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterSystemQuery.h b/dbms/Interpreters/InterpreterSystemQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterSystemQuery.h rename to dbms/Interpreters/InterpreterSystemQuery.h diff --git a/dbms/src/Interpreters/InterpreterUseQuery.cpp b/dbms/Interpreters/InterpreterUseQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterUseQuery.cpp rename to dbms/Interpreters/InterpreterUseQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterUseQuery.h b/dbms/Interpreters/InterpreterUseQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterUseQuery.h rename to dbms/Interpreters/InterpreterUseQuery.h diff --git a/dbms/src/Interpreters/InterpreterWatchQuery.cpp b/dbms/Interpreters/InterpreterWatchQuery.cpp similarity index 100% rename from dbms/src/Interpreters/InterpreterWatchQuery.cpp rename to dbms/Interpreters/InterpreterWatchQuery.cpp diff --git a/dbms/src/Interpreters/InterpreterWatchQuery.h b/dbms/Interpreters/InterpreterWatchQuery.h similarity index 100% rename from dbms/src/Interpreters/InterpreterWatchQuery.h rename to dbms/Interpreters/InterpreterWatchQuery.h diff --git a/dbms/src/Interpreters/InterserverIOHandler.h b/dbms/Interpreters/InterserverIOHandler.h similarity index 100% rename from dbms/src/Interpreters/InterserverIOHandler.h rename to dbms/Interpreters/InterserverIOHandler.h diff --git a/dbms/src/Interpreters/Join.cpp b/dbms/Interpreters/Join.cpp similarity index 100% rename from dbms/src/Interpreters/Join.cpp rename to dbms/Interpreters/Join.cpp diff --git a/dbms/src/Interpreters/Join.h b/dbms/Interpreters/Join.h similarity index 100% rename from dbms/src/Interpreters/Join.h rename to dbms/Interpreters/Join.h diff --git a/dbms/src/Interpreters/JoinSwitcher.cpp b/dbms/Interpreters/JoinSwitcher.cpp similarity index 100% rename from dbms/src/Interpreters/JoinSwitcher.cpp rename to dbms/Interpreters/JoinSwitcher.cpp diff --git a/dbms/src/Interpreters/JoinSwitcher.h b/dbms/Interpreters/JoinSwitcher.h similarity index 100% rename from dbms/src/Interpreters/JoinSwitcher.h rename to dbms/Interpreters/JoinSwitcher.h diff --git a/dbms/src/Interpreters/JoinToSubqueryTransformVisitor.cpp b/dbms/Interpreters/JoinToSubqueryTransformVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/JoinToSubqueryTransformVisitor.cpp rename to dbms/Interpreters/JoinToSubqueryTransformVisitor.cpp diff --git a/dbms/src/Interpreters/JoinToSubqueryTransformVisitor.h b/dbms/Interpreters/JoinToSubqueryTransformVisitor.h similarity index 100% rename from dbms/src/Interpreters/JoinToSubqueryTransformVisitor.h rename to dbms/Interpreters/JoinToSubqueryTransformVisitor.h diff --git a/dbms/src/Interpreters/JoinedTables.cpp b/dbms/Interpreters/JoinedTables.cpp similarity index 100% rename from dbms/src/Interpreters/JoinedTables.cpp rename to dbms/Interpreters/JoinedTables.cpp diff --git a/dbms/src/Interpreters/JoinedTables.h b/dbms/Interpreters/JoinedTables.h similarity index 100% rename from dbms/src/Interpreters/JoinedTables.h rename to dbms/Interpreters/JoinedTables.h diff --git a/dbms/src/Interpreters/LogicalExpressionsOptimizer.cpp b/dbms/Interpreters/LogicalExpressionsOptimizer.cpp similarity index 100% rename from dbms/src/Interpreters/LogicalExpressionsOptimizer.cpp rename to dbms/Interpreters/LogicalExpressionsOptimizer.cpp diff --git a/dbms/src/Interpreters/LogicalExpressionsOptimizer.h b/dbms/Interpreters/LogicalExpressionsOptimizer.h similarity index 100% rename from dbms/src/Interpreters/LogicalExpressionsOptimizer.h rename to dbms/Interpreters/LogicalExpressionsOptimizer.h diff --git a/dbms/src/Interpreters/MarkTableIdentifiersVisitor.cpp b/dbms/Interpreters/MarkTableIdentifiersVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/MarkTableIdentifiersVisitor.cpp rename to dbms/Interpreters/MarkTableIdentifiersVisitor.cpp diff --git a/dbms/src/Interpreters/MarkTableIdentifiersVisitor.h b/dbms/Interpreters/MarkTableIdentifiersVisitor.h similarity index 100% rename from dbms/src/Interpreters/MarkTableIdentifiersVisitor.h rename to dbms/Interpreters/MarkTableIdentifiersVisitor.h diff --git a/dbms/src/Interpreters/MergeJoin.cpp b/dbms/Interpreters/MergeJoin.cpp similarity index 100% rename from dbms/src/Interpreters/MergeJoin.cpp rename to dbms/Interpreters/MergeJoin.cpp diff --git a/dbms/src/Interpreters/MergeJoin.h b/dbms/Interpreters/MergeJoin.h similarity index 100% rename from dbms/src/Interpreters/MergeJoin.h rename to dbms/Interpreters/MergeJoin.h diff --git a/dbms/src/Interpreters/MetricLog.cpp b/dbms/Interpreters/MetricLog.cpp similarity index 100% rename from dbms/src/Interpreters/MetricLog.cpp rename to dbms/Interpreters/MetricLog.cpp diff --git a/dbms/src/Interpreters/MetricLog.h b/dbms/Interpreters/MetricLog.h similarity index 100% rename from dbms/src/Interpreters/MetricLog.h rename to dbms/Interpreters/MetricLog.h diff --git a/dbms/src/Interpreters/MutationsInterpreter.cpp b/dbms/Interpreters/MutationsInterpreter.cpp similarity index 100% rename from dbms/src/Interpreters/MutationsInterpreter.cpp rename to dbms/Interpreters/MutationsInterpreter.cpp diff --git a/dbms/src/Interpreters/MutationsInterpreter.h b/dbms/Interpreters/MutationsInterpreter.h similarity index 100% rename from dbms/src/Interpreters/MutationsInterpreter.h rename to dbms/Interpreters/MutationsInterpreter.h diff --git a/dbms/src/Interpreters/NullableUtils.cpp b/dbms/Interpreters/NullableUtils.cpp similarity index 100% rename from dbms/src/Interpreters/NullableUtils.cpp rename to dbms/Interpreters/NullableUtils.cpp diff --git a/dbms/src/Interpreters/NullableUtils.h b/dbms/Interpreters/NullableUtils.h similarity index 100% rename from dbms/src/Interpreters/NullableUtils.h rename to dbms/Interpreters/NullableUtils.h diff --git a/dbms/src/Interpreters/OptimizeIfChains.cpp b/dbms/Interpreters/OptimizeIfChains.cpp similarity index 100% rename from dbms/src/Interpreters/OptimizeIfChains.cpp rename to dbms/Interpreters/OptimizeIfChains.cpp diff --git a/dbms/src/Interpreters/OptimizeIfChains.h b/dbms/Interpreters/OptimizeIfChains.h similarity index 100% rename from dbms/src/Interpreters/OptimizeIfChains.h rename to dbms/Interpreters/OptimizeIfChains.h diff --git a/dbms/src/Interpreters/OptimizeIfWithConstantConditionVisitor.cpp b/dbms/Interpreters/OptimizeIfWithConstantConditionVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/OptimizeIfWithConstantConditionVisitor.cpp rename to dbms/Interpreters/OptimizeIfWithConstantConditionVisitor.cpp diff --git a/dbms/src/Interpreters/OptimizeIfWithConstantConditionVisitor.h b/dbms/Interpreters/OptimizeIfWithConstantConditionVisitor.h similarity index 100% rename from dbms/src/Interpreters/OptimizeIfWithConstantConditionVisitor.h rename to dbms/Interpreters/OptimizeIfWithConstantConditionVisitor.h diff --git a/dbms/src/Interpreters/PartLog.cpp b/dbms/Interpreters/PartLog.cpp similarity index 100% rename from dbms/src/Interpreters/PartLog.cpp rename to dbms/Interpreters/PartLog.cpp diff --git a/dbms/src/Interpreters/PartLog.h b/dbms/Interpreters/PartLog.h similarity index 100% rename from dbms/src/Interpreters/PartLog.h rename to dbms/Interpreters/PartLog.h diff --git a/dbms/src/Interpreters/PredicateExpressionsOptimizer.cpp b/dbms/Interpreters/PredicateExpressionsOptimizer.cpp similarity index 100% rename from dbms/src/Interpreters/PredicateExpressionsOptimizer.cpp rename to dbms/Interpreters/PredicateExpressionsOptimizer.cpp diff --git a/dbms/src/Interpreters/PredicateExpressionsOptimizer.h b/dbms/Interpreters/PredicateExpressionsOptimizer.h similarity index 100% rename from dbms/src/Interpreters/PredicateExpressionsOptimizer.h rename to dbms/Interpreters/PredicateExpressionsOptimizer.h diff --git a/dbms/src/Interpreters/PredicateRewriteVisitor.cpp b/dbms/Interpreters/PredicateRewriteVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/PredicateRewriteVisitor.cpp rename to dbms/Interpreters/PredicateRewriteVisitor.cpp diff --git a/dbms/src/Interpreters/PredicateRewriteVisitor.h b/dbms/Interpreters/PredicateRewriteVisitor.h similarity index 100% rename from dbms/src/Interpreters/PredicateRewriteVisitor.h rename to dbms/Interpreters/PredicateRewriteVisitor.h diff --git a/dbms/src/Interpreters/PreparedSets.h b/dbms/Interpreters/PreparedSets.h similarity index 100% rename from dbms/src/Interpreters/PreparedSets.h rename to dbms/Interpreters/PreparedSets.h diff --git a/dbms/src/Interpreters/ProcessList.cpp b/dbms/Interpreters/ProcessList.cpp similarity index 100% rename from dbms/src/Interpreters/ProcessList.cpp rename to dbms/Interpreters/ProcessList.cpp diff --git a/dbms/src/Interpreters/ProcessList.h b/dbms/Interpreters/ProcessList.h similarity index 100% rename from dbms/src/Interpreters/ProcessList.h rename to dbms/Interpreters/ProcessList.h diff --git a/dbms/src/Interpreters/ProfileEventsExt.cpp b/dbms/Interpreters/ProfileEventsExt.cpp similarity index 100% rename from dbms/src/Interpreters/ProfileEventsExt.cpp rename to dbms/Interpreters/ProfileEventsExt.cpp diff --git a/dbms/src/Interpreters/ProfileEventsExt.h b/dbms/Interpreters/ProfileEventsExt.h similarity index 100% rename from dbms/src/Interpreters/ProfileEventsExt.h rename to dbms/Interpreters/ProfileEventsExt.h diff --git a/dbms/src/Interpreters/QueryAliasesVisitor.cpp b/dbms/Interpreters/QueryAliasesVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/QueryAliasesVisitor.cpp rename to dbms/Interpreters/QueryAliasesVisitor.cpp diff --git a/dbms/src/Interpreters/QueryAliasesVisitor.h b/dbms/Interpreters/QueryAliasesVisitor.h similarity index 100% rename from dbms/src/Interpreters/QueryAliasesVisitor.h rename to dbms/Interpreters/QueryAliasesVisitor.h diff --git a/dbms/src/Interpreters/QueryLog.cpp b/dbms/Interpreters/QueryLog.cpp similarity index 100% rename from dbms/src/Interpreters/QueryLog.cpp rename to dbms/Interpreters/QueryLog.cpp diff --git a/dbms/src/Interpreters/QueryLog.h b/dbms/Interpreters/QueryLog.h similarity index 100% rename from dbms/src/Interpreters/QueryLog.h rename to dbms/Interpreters/QueryLog.h diff --git a/dbms/src/Interpreters/QueryNormalizer.cpp b/dbms/Interpreters/QueryNormalizer.cpp similarity index 100% rename from dbms/src/Interpreters/QueryNormalizer.cpp rename to dbms/Interpreters/QueryNormalizer.cpp diff --git a/dbms/src/Interpreters/QueryNormalizer.h b/dbms/Interpreters/QueryNormalizer.h similarity index 100% rename from dbms/src/Interpreters/QueryNormalizer.h rename to dbms/Interpreters/QueryNormalizer.h diff --git a/dbms/src/Interpreters/QueryPriorities.h b/dbms/Interpreters/QueryPriorities.h similarity index 100% rename from dbms/src/Interpreters/QueryPriorities.h rename to dbms/Interpreters/QueryPriorities.h diff --git a/dbms/src/Interpreters/QueryThreadLog.cpp b/dbms/Interpreters/QueryThreadLog.cpp similarity index 100% rename from dbms/src/Interpreters/QueryThreadLog.cpp rename to dbms/Interpreters/QueryThreadLog.cpp diff --git a/dbms/src/Interpreters/QueryThreadLog.h b/dbms/Interpreters/QueryThreadLog.h similarity index 100% rename from dbms/src/Interpreters/QueryThreadLog.h rename to dbms/Interpreters/QueryThreadLog.h diff --git a/dbms/src/Interpreters/ReplaceQueryParameterVisitor.cpp b/dbms/Interpreters/ReplaceQueryParameterVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/ReplaceQueryParameterVisitor.cpp rename to dbms/Interpreters/ReplaceQueryParameterVisitor.cpp diff --git a/dbms/src/Interpreters/ReplaceQueryParameterVisitor.h b/dbms/Interpreters/ReplaceQueryParameterVisitor.h similarity index 100% rename from dbms/src/Interpreters/ReplaceQueryParameterVisitor.h rename to dbms/Interpreters/ReplaceQueryParameterVisitor.h diff --git a/dbms/src/Interpreters/RequiredSourceColumnsVisitor.cpp b/dbms/Interpreters/RequiredSourceColumnsVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/RequiredSourceColumnsVisitor.cpp rename to dbms/Interpreters/RequiredSourceColumnsVisitor.cpp diff --git a/dbms/src/Interpreters/RequiredSourceColumnsVisitor.h b/dbms/Interpreters/RequiredSourceColumnsVisitor.h similarity index 100% rename from dbms/src/Interpreters/RequiredSourceColumnsVisitor.h rename to dbms/Interpreters/RequiredSourceColumnsVisitor.h diff --git a/dbms/src/Interpreters/RowRefs.cpp b/dbms/Interpreters/RowRefs.cpp similarity index 100% rename from dbms/src/Interpreters/RowRefs.cpp rename to dbms/Interpreters/RowRefs.cpp diff --git a/dbms/src/Interpreters/RowRefs.h b/dbms/Interpreters/RowRefs.h similarity index 100% rename from dbms/src/Interpreters/RowRefs.h rename to dbms/Interpreters/RowRefs.h diff --git a/dbms/src/Interpreters/SelectQueryOptions.h b/dbms/Interpreters/SelectQueryOptions.h similarity index 100% rename from dbms/src/Interpreters/SelectQueryOptions.h rename to dbms/Interpreters/SelectQueryOptions.h diff --git a/dbms/src/Interpreters/Set.cpp b/dbms/Interpreters/Set.cpp similarity index 100% rename from dbms/src/Interpreters/Set.cpp rename to dbms/Interpreters/Set.cpp diff --git a/dbms/src/Interpreters/Set.h b/dbms/Interpreters/Set.h similarity index 100% rename from dbms/src/Interpreters/Set.h rename to dbms/Interpreters/Set.h diff --git a/dbms/src/Interpreters/SetVariants.cpp b/dbms/Interpreters/SetVariants.cpp similarity index 100% rename from dbms/src/Interpreters/SetVariants.cpp rename to dbms/Interpreters/SetVariants.cpp diff --git a/dbms/src/Interpreters/SetVariants.h b/dbms/Interpreters/SetVariants.h similarity index 100% rename from dbms/src/Interpreters/SetVariants.h rename to dbms/Interpreters/SetVariants.h diff --git a/dbms/src/Interpreters/StorageID.cpp b/dbms/Interpreters/StorageID.cpp similarity index 100% rename from dbms/src/Interpreters/StorageID.cpp rename to dbms/Interpreters/StorageID.cpp diff --git a/dbms/src/Interpreters/StorageID.h b/dbms/Interpreters/StorageID.h similarity index 100% rename from dbms/src/Interpreters/StorageID.h rename to dbms/Interpreters/StorageID.h diff --git a/dbms/src/Interpreters/SubqueryForSet.cpp b/dbms/Interpreters/SubqueryForSet.cpp similarity index 100% rename from dbms/src/Interpreters/SubqueryForSet.cpp rename to dbms/Interpreters/SubqueryForSet.cpp diff --git a/dbms/src/Interpreters/SubqueryForSet.h b/dbms/Interpreters/SubqueryForSet.h similarity index 100% rename from dbms/src/Interpreters/SubqueryForSet.h rename to dbms/Interpreters/SubqueryForSet.h diff --git a/dbms/src/Interpreters/SyntaxAnalyzer.cpp b/dbms/Interpreters/SyntaxAnalyzer.cpp similarity index 100% rename from dbms/src/Interpreters/SyntaxAnalyzer.cpp rename to dbms/Interpreters/SyntaxAnalyzer.cpp diff --git a/dbms/src/Interpreters/SyntaxAnalyzer.h b/dbms/Interpreters/SyntaxAnalyzer.h similarity index 100% rename from dbms/src/Interpreters/SyntaxAnalyzer.h rename to dbms/Interpreters/SyntaxAnalyzer.h diff --git a/dbms/src/Interpreters/SystemLog.cpp b/dbms/Interpreters/SystemLog.cpp similarity index 100% rename from dbms/src/Interpreters/SystemLog.cpp rename to dbms/Interpreters/SystemLog.cpp diff --git a/dbms/src/Interpreters/SystemLog.h b/dbms/Interpreters/SystemLog.h similarity index 100% rename from dbms/src/Interpreters/SystemLog.h rename to dbms/Interpreters/SystemLog.h diff --git a/dbms/src/Interpreters/TablesStatus.cpp b/dbms/Interpreters/TablesStatus.cpp similarity index 100% rename from dbms/src/Interpreters/TablesStatus.cpp rename to dbms/Interpreters/TablesStatus.cpp diff --git a/dbms/src/Interpreters/TablesStatus.h b/dbms/Interpreters/TablesStatus.h similarity index 100% rename from dbms/src/Interpreters/TablesStatus.h rename to dbms/Interpreters/TablesStatus.h diff --git a/dbms/src/Interpreters/TextLog.cpp b/dbms/Interpreters/TextLog.cpp similarity index 100% rename from dbms/src/Interpreters/TextLog.cpp rename to dbms/Interpreters/TextLog.cpp diff --git a/dbms/src/Interpreters/TextLog.h b/dbms/Interpreters/TextLog.h similarity index 100% rename from dbms/src/Interpreters/TextLog.h rename to dbms/Interpreters/TextLog.h diff --git a/dbms/src/Interpreters/ThreadStatusExt.cpp b/dbms/Interpreters/ThreadStatusExt.cpp similarity index 100% rename from dbms/src/Interpreters/ThreadStatusExt.cpp rename to dbms/Interpreters/ThreadStatusExt.cpp diff --git a/dbms/src/Interpreters/TraceLog.cpp b/dbms/Interpreters/TraceLog.cpp similarity index 100% rename from dbms/src/Interpreters/TraceLog.cpp rename to dbms/Interpreters/TraceLog.cpp diff --git a/dbms/src/Interpreters/TraceLog.h b/dbms/Interpreters/TraceLog.h similarity index 100% rename from dbms/src/Interpreters/TraceLog.h rename to dbms/Interpreters/TraceLog.h diff --git a/dbms/src/Interpreters/TranslateQualifiedNamesVisitor.cpp b/dbms/Interpreters/TranslateQualifiedNamesVisitor.cpp similarity index 100% rename from dbms/src/Interpreters/TranslateQualifiedNamesVisitor.cpp rename to dbms/Interpreters/TranslateQualifiedNamesVisitor.cpp diff --git a/dbms/src/Interpreters/TranslateQualifiedNamesVisitor.h b/dbms/Interpreters/TranslateQualifiedNamesVisitor.h similarity index 100% rename from dbms/src/Interpreters/TranslateQualifiedNamesVisitor.h rename to dbms/Interpreters/TranslateQualifiedNamesVisitor.h diff --git a/dbms/src/Interpreters/addMissingDefaults.cpp b/dbms/Interpreters/addMissingDefaults.cpp similarity index 100% rename from dbms/src/Interpreters/addMissingDefaults.cpp rename to dbms/Interpreters/addMissingDefaults.cpp diff --git a/dbms/src/Interpreters/addMissingDefaults.h b/dbms/Interpreters/addMissingDefaults.h similarity index 100% rename from dbms/src/Interpreters/addMissingDefaults.h rename to dbms/Interpreters/addMissingDefaults.h diff --git a/dbms/src/Interpreters/addTypeConversionToAST.cpp b/dbms/Interpreters/addTypeConversionToAST.cpp similarity index 100% rename from dbms/src/Interpreters/addTypeConversionToAST.cpp rename to dbms/Interpreters/addTypeConversionToAST.cpp diff --git a/dbms/src/Interpreters/addTypeConversionToAST.h b/dbms/Interpreters/addTypeConversionToAST.h similarity index 100% rename from dbms/src/Interpreters/addTypeConversionToAST.h rename to dbms/Interpreters/addTypeConversionToAST.h diff --git a/dbms/src/Interpreters/asof.h b/dbms/Interpreters/asof.h similarity index 100% rename from dbms/src/Interpreters/asof.h rename to dbms/Interpreters/asof.h diff --git a/dbms/src/Interpreters/castColumn.cpp b/dbms/Interpreters/castColumn.cpp similarity index 100% rename from dbms/src/Interpreters/castColumn.cpp rename to dbms/Interpreters/castColumn.cpp diff --git a/dbms/src/Interpreters/castColumn.h b/dbms/Interpreters/castColumn.h similarity index 100% rename from dbms/src/Interpreters/castColumn.h rename to dbms/Interpreters/castColumn.h diff --git a/dbms/src/Interpreters/convertFieldToType.cpp b/dbms/Interpreters/convertFieldToType.cpp similarity index 100% rename from dbms/src/Interpreters/convertFieldToType.cpp rename to dbms/Interpreters/convertFieldToType.cpp diff --git a/dbms/src/Interpreters/convertFieldToType.h b/dbms/Interpreters/convertFieldToType.h similarity index 100% rename from dbms/src/Interpreters/convertFieldToType.h rename to dbms/Interpreters/convertFieldToType.h diff --git a/dbms/src/Interpreters/createBlockSelector.cpp b/dbms/Interpreters/createBlockSelector.cpp similarity index 100% rename from dbms/src/Interpreters/createBlockSelector.cpp rename to dbms/Interpreters/createBlockSelector.cpp diff --git a/dbms/src/Interpreters/createBlockSelector.h b/dbms/Interpreters/createBlockSelector.h similarity index 100% rename from dbms/src/Interpreters/createBlockSelector.h rename to dbms/Interpreters/createBlockSelector.h diff --git a/dbms/src/Interpreters/evaluateConstantExpression.cpp b/dbms/Interpreters/evaluateConstantExpression.cpp similarity index 100% rename from dbms/src/Interpreters/evaluateConstantExpression.cpp rename to dbms/Interpreters/evaluateConstantExpression.cpp diff --git a/dbms/src/Interpreters/evaluateConstantExpression.h b/dbms/Interpreters/evaluateConstantExpression.h similarity index 100% rename from dbms/src/Interpreters/evaluateConstantExpression.h rename to dbms/Interpreters/evaluateConstantExpression.h diff --git a/dbms/src/Interpreters/executeQuery.cpp b/dbms/Interpreters/executeQuery.cpp similarity index 100% rename from dbms/src/Interpreters/executeQuery.cpp rename to dbms/Interpreters/executeQuery.cpp diff --git a/dbms/src/Interpreters/executeQuery.h b/dbms/Interpreters/executeQuery.h similarity index 100% rename from dbms/src/Interpreters/executeQuery.h rename to dbms/Interpreters/executeQuery.h diff --git a/dbms/src/Interpreters/getClusterName.cpp b/dbms/Interpreters/getClusterName.cpp similarity index 100% rename from dbms/src/Interpreters/getClusterName.cpp rename to dbms/Interpreters/getClusterName.cpp diff --git a/dbms/src/Interpreters/getClusterName.h b/dbms/Interpreters/getClusterName.h similarity index 100% rename from dbms/src/Interpreters/getClusterName.h rename to dbms/Interpreters/getClusterName.h diff --git a/dbms/src/Interpreters/getTableExpressions.cpp b/dbms/Interpreters/getTableExpressions.cpp similarity index 100% rename from dbms/src/Interpreters/getTableExpressions.cpp rename to dbms/Interpreters/getTableExpressions.cpp diff --git a/dbms/src/Interpreters/getTableExpressions.h b/dbms/Interpreters/getTableExpressions.h similarity index 100% rename from dbms/src/Interpreters/getTableExpressions.h rename to dbms/Interpreters/getTableExpressions.h diff --git a/dbms/src/Interpreters/inplaceBlockConversions.cpp b/dbms/Interpreters/inplaceBlockConversions.cpp similarity index 100% rename from dbms/src/Interpreters/inplaceBlockConversions.cpp rename to dbms/Interpreters/inplaceBlockConversions.cpp diff --git a/dbms/src/Interpreters/inplaceBlockConversions.h b/dbms/Interpreters/inplaceBlockConversions.h similarity index 100% rename from dbms/src/Interpreters/inplaceBlockConversions.h rename to dbms/Interpreters/inplaceBlockConversions.h diff --git a/dbms/src/Interpreters/interpretSubquery.cpp b/dbms/Interpreters/interpretSubquery.cpp similarity index 100% rename from dbms/src/Interpreters/interpretSubquery.cpp rename to dbms/Interpreters/interpretSubquery.cpp diff --git a/dbms/src/Interpreters/interpretSubquery.h b/dbms/Interpreters/interpretSubquery.h similarity index 100% rename from dbms/src/Interpreters/interpretSubquery.h rename to dbms/Interpreters/interpretSubquery.h diff --git a/dbms/src/Interpreters/joinDispatch.h b/dbms/Interpreters/joinDispatch.h similarity index 100% rename from dbms/src/Interpreters/joinDispatch.h rename to dbms/Interpreters/joinDispatch.h diff --git a/dbms/src/Interpreters/join_common.cpp b/dbms/Interpreters/join_common.cpp similarity index 100% rename from dbms/src/Interpreters/join_common.cpp rename to dbms/Interpreters/join_common.cpp diff --git a/dbms/src/Interpreters/join_common.h b/dbms/Interpreters/join_common.h similarity index 100% rename from dbms/src/Interpreters/join_common.h rename to dbms/Interpreters/join_common.h diff --git a/dbms/src/Interpreters/loadMetadata.cpp b/dbms/Interpreters/loadMetadata.cpp similarity index 100% rename from dbms/src/Interpreters/loadMetadata.cpp rename to dbms/Interpreters/loadMetadata.cpp diff --git a/dbms/src/Interpreters/loadMetadata.h b/dbms/Interpreters/loadMetadata.h similarity index 100% rename from dbms/src/Interpreters/loadMetadata.h rename to dbms/Interpreters/loadMetadata.h diff --git a/dbms/src/Interpreters/misc.h b/dbms/Interpreters/misc.h similarity index 100% rename from dbms/src/Interpreters/misc.h rename to dbms/Interpreters/misc.h diff --git a/dbms/src/Interpreters/sortBlock.cpp b/dbms/Interpreters/sortBlock.cpp similarity index 100% rename from dbms/src/Interpreters/sortBlock.cpp rename to dbms/Interpreters/sortBlock.cpp diff --git a/dbms/src/Interpreters/sortBlock.h b/dbms/Interpreters/sortBlock.h similarity index 100% rename from dbms/src/Interpreters/sortBlock.h rename to dbms/Interpreters/sortBlock.h diff --git a/dbms/src/Interpreters/tests/CMakeLists.txt b/dbms/Interpreters/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Interpreters/tests/CMakeLists.txt rename to dbms/Interpreters/tests/CMakeLists.txt diff --git a/dbms/src/Interpreters/tests/aggregate.cpp b/dbms/Interpreters/tests/aggregate.cpp similarity index 100% rename from dbms/src/Interpreters/tests/aggregate.cpp rename to dbms/Interpreters/tests/aggregate.cpp diff --git a/dbms/src/Interpreters/tests/create_query.cpp b/dbms/Interpreters/tests/create_query.cpp similarity index 100% rename from dbms/src/Interpreters/tests/create_query.cpp rename to dbms/Interpreters/tests/create_query.cpp diff --git a/dbms/src/Interpreters/tests/expression.cpp b/dbms/Interpreters/tests/expression.cpp similarity index 100% rename from dbms/src/Interpreters/tests/expression.cpp rename to dbms/Interpreters/tests/expression.cpp diff --git a/dbms/src/Interpreters/tests/expression_analyzer.cpp b/dbms/Interpreters/tests/expression_analyzer.cpp similarity index 100% rename from dbms/src/Interpreters/tests/expression_analyzer.cpp rename to dbms/Interpreters/tests/expression_analyzer.cpp diff --git a/dbms/src/Interpreters/tests/gtest_cycle_aliases.cpp b/dbms/Interpreters/tests/gtest_cycle_aliases.cpp similarity index 100% rename from dbms/src/Interpreters/tests/gtest_cycle_aliases.cpp rename to dbms/Interpreters/tests/gtest_cycle_aliases.cpp diff --git a/dbms/src/Interpreters/tests/gtest_merge_tree_set_index.cpp b/dbms/Interpreters/tests/gtest_merge_tree_set_index.cpp similarity index 100% rename from dbms/src/Interpreters/tests/gtest_merge_tree_set_index.cpp rename to dbms/Interpreters/tests/gtest_merge_tree_set_index.cpp diff --git a/dbms/src/Interpreters/tests/hash_map.cpp b/dbms/Interpreters/tests/hash_map.cpp similarity index 100% rename from dbms/src/Interpreters/tests/hash_map.cpp rename to dbms/Interpreters/tests/hash_map.cpp diff --git a/dbms/src/Interpreters/tests/hash_map3.cpp b/dbms/Interpreters/tests/hash_map3.cpp similarity index 100% rename from dbms/src/Interpreters/tests/hash_map3.cpp rename to dbms/Interpreters/tests/hash_map3.cpp diff --git a/dbms/src/Interpreters/tests/hash_map_lookup.cpp b/dbms/Interpreters/tests/hash_map_lookup.cpp similarity index 100% rename from dbms/src/Interpreters/tests/hash_map_lookup.cpp rename to dbms/Interpreters/tests/hash_map_lookup.cpp diff --git a/dbms/src/Interpreters/tests/hash_map_string.cpp b/dbms/Interpreters/tests/hash_map_string.cpp similarity index 100% rename from dbms/src/Interpreters/tests/hash_map_string.cpp rename to dbms/Interpreters/tests/hash_map_string.cpp diff --git a/dbms/src/Interpreters/tests/hash_map_string_2.cpp b/dbms/Interpreters/tests/hash_map_string_2.cpp similarity index 100% rename from dbms/src/Interpreters/tests/hash_map_string_2.cpp rename to dbms/Interpreters/tests/hash_map_string_2.cpp diff --git a/dbms/src/Interpreters/tests/hash_map_string_3.cpp b/dbms/Interpreters/tests/hash_map_string_3.cpp similarity index 100% rename from dbms/src/Interpreters/tests/hash_map_string_3.cpp rename to dbms/Interpreters/tests/hash_map_string_3.cpp diff --git a/dbms/src/Interpreters/tests/hash_map_string_small.cpp b/dbms/Interpreters/tests/hash_map_string_small.cpp similarity index 100% rename from dbms/src/Interpreters/tests/hash_map_string_small.cpp rename to dbms/Interpreters/tests/hash_map_string_small.cpp diff --git a/dbms/src/Interpreters/tests/in_join_subqueries_preprocessor.cpp b/dbms/Interpreters/tests/in_join_subqueries_preprocessor.cpp similarity index 100% rename from dbms/src/Interpreters/tests/in_join_subqueries_preprocessor.cpp rename to dbms/Interpreters/tests/in_join_subqueries_preprocessor.cpp diff --git a/dbms/src/Interpreters/tests/internal_iotop.cpp b/dbms/Interpreters/tests/internal_iotop.cpp similarity index 100% rename from dbms/src/Interpreters/tests/internal_iotop.cpp rename to dbms/Interpreters/tests/internal_iotop.cpp diff --git a/dbms/src/Interpreters/tests/logical_expressions_optimizer.cpp b/dbms/Interpreters/tests/logical_expressions_optimizer.cpp similarity index 100% rename from dbms/src/Interpreters/tests/logical_expressions_optimizer.cpp rename to dbms/Interpreters/tests/logical_expressions_optimizer.cpp diff --git a/dbms/src/Interpreters/tests/select_query.cpp b/dbms/Interpreters/tests/select_query.cpp similarity index 100% rename from dbms/src/Interpreters/tests/select_query.cpp rename to dbms/Interpreters/tests/select_query.cpp diff --git a/dbms/src/Interpreters/tests/string_hash_map.cpp b/dbms/Interpreters/tests/string_hash_map.cpp similarity index 100% rename from dbms/src/Interpreters/tests/string_hash_map.cpp rename to dbms/Interpreters/tests/string_hash_map.cpp diff --git a/dbms/src/Interpreters/tests/two_level_hash_map.cpp b/dbms/Interpreters/tests/two_level_hash_map.cpp similarity index 100% rename from dbms/src/Interpreters/tests/two_level_hash_map.cpp rename to dbms/Interpreters/tests/two_level_hash_map.cpp diff --git a/dbms/src/Interpreters/tests/users.cpp b/dbms/Interpreters/tests/users.cpp similarity index 100% rename from dbms/src/Interpreters/tests/users.cpp rename to dbms/Interpreters/tests/users.cpp diff --git a/dbms/src/NOTICE b/dbms/NOTICE similarity index 100% rename from dbms/src/NOTICE rename to dbms/NOTICE diff --git a/dbms/src/Parsers/ASTAlterQuery.cpp b/dbms/Parsers/ASTAlterQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTAlterQuery.cpp rename to dbms/Parsers/ASTAlterQuery.cpp diff --git a/dbms/src/Parsers/ASTAlterQuery.h b/dbms/Parsers/ASTAlterQuery.h similarity index 100% rename from dbms/src/Parsers/ASTAlterQuery.h rename to dbms/Parsers/ASTAlterQuery.h diff --git a/dbms/src/Parsers/ASTAssignment.h b/dbms/Parsers/ASTAssignment.h similarity index 100% rename from dbms/src/Parsers/ASTAssignment.h rename to dbms/Parsers/ASTAssignment.h diff --git a/dbms/src/Parsers/ASTAsterisk.cpp b/dbms/Parsers/ASTAsterisk.cpp similarity index 100% rename from dbms/src/Parsers/ASTAsterisk.cpp rename to dbms/Parsers/ASTAsterisk.cpp diff --git a/dbms/src/Parsers/ASTAsterisk.h b/dbms/Parsers/ASTAsterisk.h similarity index 100% rename from dbms/src/Parsers/ASTAsterisk.h rename to dbms/Parsers/ASTAsterisk.h diff --git a/dbms/src/Parsers/ASTCheckQuery.h b/dbms/Parsers/ASTCheckQuery.h similarity index 100% rename from dbms/src/Parsers/ASTCheckQuery.h rename to dbms/Parsers/ASTCheckQuery.h diff --git a/dbms/src/Parsers/ASTColumnDeclaration.cpp b/dbms/Parsers/ASTColumnDeclaration.cpp similarity index 100% rename from dbms/src/Parsers/ASTColumnDeclaration.cpp rename to dbms/Parsers/ASTColumnDeclaration.cpp diff --git a/dbms/src/Parsers/ASTColumnDeclaration.h b/dbms/Parsers/ASTColumnDeclaration.h similarity index 100% rename from dbms/src/Parsers/ASTColumnDeclaration.h rename to dbms/Parsers/ASTColumnDeclaration.h diff --git a/dbms/src/Parsers/ASTColumnsMatcher.cpp b/dbms/Parsers/ASTColumnsMatcher.cpp similarity index 100% rename from dbms/src/Parsers/ASTColumnsMatcher.cpp rename to dbms/Parsers/ASTColumnsMatcher.cpp diff --git a/dbms/src/Parsers/ASTColumnsMatcher.h b/dbms/Parsers/ASTColumnsMatcher.h similarity index 100% rename from dbms/src/Parsers/ASTColumnsMatcher.h rename to dbms/Parsers/ASTColumnsMatcher.h diff --git a/dbms/src/Parsers/ASTConstraintDeclaration.cpp b/dbms/Parsers/ASTConstraintDeclaration.cpp similarity index 100% rename from dbms/src/Parsers/ASTConstraintDeclaration.cpp rename to dbms/Parsers/ASTConstraintDeclaration.cpp diff --git a/dbms/src/Parsers/ASTConstraintDeclaration.h b/dbms/Parsers/ASTConstraintDeclaration.h similarity index 100% rename from dbms/src/Parsers/ASTConstraintDeclaration.h rename to dbms/Parsers/ASTConstraintDeclaration.h diff --git a/dbms/src/Parsers/ASTCreateQuery.cpp b/dbms/Parsers/ASTCreateQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTCreateQuery.cpp rename to dbms/Parsers/ASTCreateQuery.cpp diff --git a/dbms/src/Parsers/ASTCreateQuery.h b/dbms/Parsers/ASTCreateQuery.h similarity index 100% rename from dbms/src/Parsers/ASTCreateQuery.h rename to dbms/Parsers/ASTCreateQuery.h diff --git a/dbms/src/Parsers/ASTCreateQuotaQuery.cpp b/dbms/Parsers/ASTCreateQuotaQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTCreateQuotaQuery.cpp rename to dbms/Parsers/ASTCreateQuotaQuery.cpp diff --git a/dbms/src/Parsers/ASTCreateQuotaQuery.h b/dbms/Parsers/ASTCreateQuotaQuery.h similarity index 100% rename from dbms/src/Parsers/ASTCreateQuotaQuery.h rename to dbms/Parsers/ASTCreateQuotaQuery.h diff --git a/dbms/src/Parsers/ASTCreateRoleQuery.cpp b/dbms/Parsers/ASTCreateRoleQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTCreateRoleQuery.cpp rename to dbms/Parsers/ASTCreateRoleQuery.cpp diff --git a/dbms/src/Parsers/ASTCreateRoleQuery.h b/dbms/Parsers/ASTCreateRoleQuery.h similarity index 100% rename from dbms/src/Parsers/ASTCreateRoleQuery.h rename to dbms/Parsers/ASTCreateRoleQuery.h diff --git a/dbms/src/Parsers/ASTCreateRowPolicyQuery.cpp b/dbms/Parsers/ASTCreateRowPolicyQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTCreateRowPolicyQuery.cpp rename to dbms/Parsers/ASTCreateRowPolicyQuery.cpp diff --git a/dbms/src/Parsers/ASTCreateRowPolicyQuery.h b/dbms/Parsers/ASTCreateRowPolicyQuery.h similarity index 100% rename from dbms/src/Parsers/ASTCreateRowPolicyQuery.h rename to dbms/Parsers/ASTCreateRowPolicyQuery.h diff --git a/dbms/src/Parsers/ASTCreateSettingsProfileQuery.cpp b/dbms/Parsers/ASTCreateSettingsProfileQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTCreateSettingsProfileQuery.cpp rename to dbms/Parsers/ASTCreateSettingsProfileQuery.cpp diff --git a/dbms/src/Parsers/ASTCreateSettingsProfileQuery.h b/dbms/Parsers/ASTCreateSettingsProfileQuery.h similarity index 100% rename from dbms/src/Parsers/ASTCreateSettingsProfileQuery.h rename to dbms/Parsers/ASTCreateSettingsProfileQuery.h diff --git a/dbms/src/Parsers/ASTCreateUserQuery.cpp b/dbms/Parsers/ASTCreateUserQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTCreateUserQuery.cpp rename to dbms/Parsers/ASTCreateUserQuery.cpp diff --git a/dbms/src/Parsers/ASTCreateUserQuery.h b/dbms/Parsers/ASTCreateUserQuery.h similarity index 100% rename from dbms/src/Parsers/ASTCreateUserQuery.h rename to dbms/Parsers/ASTCreateUserQuery.h diff --git a/dbms/src/Parsers/ASTDictionary.cpp b/dbms/Parsers/ASTDictionary.cpp similarity index 100% rename from dbms/src/Parsers/ASTDictionary.cpp rename to dbms/Parsers/ASTDictionary.cpp diff --git a/dbms/src/Parsers/ASTDictionary.h b/dbms/Parsers/ASTDictionary.h similarity index 100% rename from dbms/src/Parsers/ASTDictionary.h rename to dbms/Parsers/ASTDictionary.h diff --git a/dbms/src/Parsers/ASTDictionaryAttributeDeclaration.cpp b/dbms/Parsers/ASTDictionaryAttributeDeclaration.cpp similarity index 100% rename from dbms/src/Parsers/ASTDictionaryAttributeDeclaration.cpp rename to dbms/Parsers/ASTDictionaryAttributeDeclaration.cpp diff --git a/dbms/src/Parsers/ASTDictionaryAttributeDeclaration.h b/dbms/Parsers/ASTDictionaryAttributeDeclaration.h similarity index 100% rename from dbms/src/Parsers/ASTDictionaryAttributeDeclaration.h rename to dbms/Parsers/ASTDictionaryAttributeDeclaration.h diff --git a/dbms/src/Parsers/ASTDropAccessEntityQuery.cpp b/dbms/Parsers/ASTDropAccessEntityQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTDropAccessEntityQuery.cpp rename to dbms/Parsers/ASTDropAccessEntityQuery.cpp diff --git a/dbms/src/Parsers/ASTDropAccessEntityQuery.h b/dbms/Parsers/ASTDropAccessEntityQuery.h similarity index 100% rename from dbms/src/Parsers/ASTDropAccessEntityQuery.h rename to dbms/Parsers/ASTDropAccessEntityQuery.h diff --git a/dbms/src/Parsers/ASTDropQuery.cpp b/dbms/Parsers/ASTDropQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTDropQuery.cpp rename to dbms/Parsers/ASTDropQuery.cpp diff --git a/dbms/src/Parsers/ASTDropQuery.h b/dbms/Parsers/ASTDropQuery.h similarity index 100% rename from dbms/src/Parsers/ASTDropQuery.h rename to dbms/Parsers/ASTDropQuery.h diff --git a/dbms/src/Parsers/ASTEnumElement.h b/dbms/Parsers/ASTEnumElement.h similarity index 100% rename from dbms/src/Parsers/ASTEnumElement.h rename to dbms/Parsers/ASTEnumElement.h diff --git a/dbms/src/Parsers/ASTExplainQuery.h b/dbms/Parsers/ASTExplainQuery.h similarity index 100% rename from dbms/src/Parsers/ASTExplainQuery.h rename to dbms/Parsers/ASTExplainQuery.h diff --git a/dbms/src/Parsers/ASTExpressionList.cpp b/dbms/Parsers/ASTExpressionList.cpp similarity index 100% rename from dbms/src/Parsers/ASTExpressionList.cpp rename to dbms/Parsers/ASTExpressionList.cpp diff --git a/dbms/src/Parsers/ASTExpressionList.h b/dbms/Parsers/ASTExpressionList.h similarity index 100% rename from dbms/src/Parsers/ASTExpressionList.h rename to dbms/Parsers/ASTExpressionList.h diff --git a/dbms/src/Parsers/ASTExtendedRoleSet.cpp b/dbms/Parsers/ASTExtendedRoleSet.cpp similarity index 100% rename from dbms/src/Parsers/ASTExtendedRoleSet.cpp rename to dbms/Parsers/ASTExtendedRoleSet.cpp diff --git a/dbms/src/Parsers/ASTExtendedRoleSet.h b/dbms/Parsers/ASTExtendedRoleSet.h similarity index 100% rename from dbms/src/Parsers/ASTExtendedRoleSet.h rename to dbms/Parsers/ASTExtendedRoleSet.h diff --git a/dbms/src/Parsers/ASTFunction.cpp b/dbms/Parsers/ASTFunction.cpp similarity index 100% rename from dbms/src/Parsers/ASTFunction.cpp rename to dbms/Parsers/ASTFunction.cpp diff --git a/dbms/src/Parsers/ASTFunction.h b/dbms/Parsers/ASTFunction.h similarity index 100% rename from dbms/src/Parsers/ASTFunction.h rename to dbms/Parsers/ASTFunction.h diff --git a/dbms/src/Parsers/ASTFunctionWithKeyValueArguments.cpp b/dbms/Parsers/ASTFunctionWithKeyValueArguments.cpp similarity index 100% rename from dbms/src/Parsers/ASTFunctionWithKeyValueArguments.cpp rename to dbms/Parsers/ASTFunctionWithKeyValueArguments.cpp diff --git a/dbms/src/Parsers/ASTFunctionWithKeyValueArguments.h b/dbms/Parsers/ASTFunctionWithKeyValueArguments.h similarity index 100% rename from dbms/src/Parsers/ASTFunctionWithKeyValueArguments.h rename to dbms/Parsers/ASTFunctionWithKeyValueArguments.h diff --git a/dbms/src/Parsers/ASTGrantQuery.cpp b/dbms/Parsers/ASTGrantQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTGrantQuery.cpp rename to dbms/Parsers/ASTGrantQuery.cpp diff --git a/dbms/src/Parsers/ASTGrantQuery.h b/dbms/Parsers/ASTGrantQuery.h similarity index 100% rename from dbms/src/Parsers/ASTGrantQuery.h rename to dbms/Parsers/ASTGrantQuery.h diff --git a/dbms/src/Parsers/ASTIdentifier.cpp b/dbms/Parsers/ASTIdentifier.cpp similarity index 100% rename from dbms/src/Parsers/ASTIdentifier.cpp rename to dbms/Parsers/ASTIdentifier.cpp diff --git a/dbms/src/Parsers/ASTIdentifier.h b/dbms/Parsers/ASTIdentifier.h similarity index 100% rename from dbms/src/Parsers/ASTIdentifier.h rename to dbms/Parsers/ASTIdentifier.h diff --git a/dbms/src/Parsers/ASTIndexDeclaration.h b/dbms/Parsers/ASTIndexDeclaration.h similarity index 100% rename from dbms/src/Parsers/ASTIndexDeclaration.h rename to dbms/Parsers/ASTIndexDeclaration.h diff --git a/dbms/src/Parsers/ASTInsertQuery.cpp b/dbms/Parsers/ASTInsertQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTInsertQuery.cpp rename to dbms/Parsers/ASTInsertQuery.cpp diff --git a/dbms/src/Parsers/ASTInsertQuery.h b/dbms/Parsers/ASTInsertQuery.h similarity index 100% rename from dbms/src/Parsers/ASTInsertQuery.h rename to dbms/Parsers/ASTInsertQuery.h diff --git a/dbms/src/Parsers/ASTKillQueryQuery.cpp b/dbms/Parsers/ASTKillQueryQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTKillQueryQuery.cpp rename to dbms/Parsers/ASTKillQueryQuery.cpp diff --git a/dbms/src/Parsers/ASTKillQueryQuery.h b/dbms/Parsers/ASTKillQueryQuery.h similarity index 100% rename from dbms/src/Parsers/ASTKillQueryQuery.h rename to dbms/Parsers/ASTKillQueryQuery.h diff --git a/dbms/src/Parsers/ASTLiteral.cpp b/dbms/Parsers/ASTLiteral.cpp similarity index 100% rename from dbms/src/Parsers/ASTLiteral.cpp rename to dbms/Parsers/ASTLiteral.cpp diff --git a/dbms/src/Parsers/ASTLiteral.h b/dbms/Parsers/ASTLiteral.h similarity index 100% rename from dbms/src/Parsers/ASTLiteral.h rename to dbms/Parsers/ASTLiteral.h diff --git a/dbms/src/Parsers/ASTNameTypePair.h b/dbms/Parsers/ASTNameTypePair.h similarity index 100% rename from dbms/src/Parsers/ASTNameTypePair.h rename to dbms/Parsers/ASTNameTypePair.h diff --git a/dbms/src/Parsers/ASTOptimizeQuery.cpp b/dbms/Parsers/ASTOptimizeQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTOptimizeQuery.cpp rename to dbms/Parsers/ASTOptimizeQuery.cpp diff --git a/dbms/src/Parsers/ASTOptimizeQuery.h b/dbms/Parsers/ASTOptimizeQuery.h similarity index 100% rename from dbms/src/Parsers/ASTOptimizeQuery.h rename to dbms/Parsers/ASTOptimizeQuery.h diff --git a/dbms/src/Parsers/ASTOrderByElement.cpp b/dbms/Parsers/ASTOrderByElement.cpp similarity index 100% rename from dbms/src/Parsers/ASTOrderByElement.cpp rename to dbms/Parsers/ASTOrderByElement.cpp diff --git a/dbms/src/Parsers/ASTOrderByElement.h b/dbms/Parsers/ASTOrderByElement.h similarity index 100% rename from dbms/src/Parsers/ASTOrderByElement.h rename to dbms/Parsers/ASTOrderByElement.h diff --git a/dbms/src/Parsers/ASTPartition.cpp b/dbms/Parsers/ASTPartition.cpp similarity index 100% rename from dbms/src/Parsers/ASTPartition.cpp rename to dbms/Parsers/ASTPartition.cpp diff --git a/dbms/src/Parsers/ASTPartition.h b/dbms/Parsers/ASTPartition.h similarity index 100% rename from dbms/src/Parsers/ASTPartition.h rename to dbms/Parsers/ASTPartition.h diff --git a/dbms/src/Parsers/ASTQualifiedAsterisk.cpp b/dbms/Parsers/ASTQualifiedAsterisk.cpp similarity index 100% rename from dbms/src/Parsers/ASTQualifiedAsterisk.cpp rename to dbms/Parsers/ASTQualifiedAsterisk.cpp diff --git a/dbms/src/Parsers/ASTQualifiedAsterisk.h b/dbms/Parsers/ASTQualifiedAsterisk.h similarity index 100% rename from dbms/src/Parsers/ASTQualifiedAsterisk.h rename to dbms/Parsers/ASTQualifiedAsterisk.h diff --git a/dbms/src/Parsers/ASTQueryParameter.cpp b/dbms/Parsers/ASTQueryParameter.cpp similarity index 100% rename from dbms/src/Parsers/ASTQueryParameter.cpp rename to dbms/Parsers/ASTQueryParameter.cpp diff --git a/dbms/src/Parsers/ASTQueryParameter.h b/dbms/Parsers/ASTQueryParameter.h similarity index 100% rename from dbms/src/Parsers/ASTQueryParameter.h rename to dbms/Parsers/ASTQueryParameter.h diff --git a/dbms/src/Parsers/ASTQueryWithOnCluster.cpp b/dbms/Parsers/ASTQueryWithOnCluster.cpp similarity index 100% rename from dbms/src/Parsers/ASTQueryWithOnCluster.cpp rename to dbms/Parsers/ASTQueryWithOnCluster.cpp diff --git a/dbms/src/Parsers/ASTQueryWithOnCluster.h b/dbms/Parsers/ASTQueryWithOnCluster.h similarity index 100% rename from dbms/src/Parsers/ASTQueryWithOnCluster.h rename to dbms/Parsers/ASTQueryWithOnCluster.h diff --git a/dbms/src/Parsers/ASTQueryWithOutput.cpp b/dbms/Parsers/ASTQueryWithOutput.cpp similarity index 100% rename from dbms/src/Parsers/ASTQueryWithOutput.cpp rename to dbms/Parsers/ASTQueryWithOutput.cpp diff --git a/dbms/src/Parsers/ASTQueryWithOutput.h b/dbms/Parsers/ASTQueryWithOutput.h similarity index 100% rename from dbms/src/Parsers/ASTQueryWithOutput.h rename to dbms/Parsers/ASTQueryWithOutput.h diff --git a/dbms/src/Parsers/ASTQueryWithTableAndOutput.cpp b/dbms/Parsers/ASTQueryWithTableAndOutput.cpp similarity index 100% rename from dbms/src/Parsers/ASTQueryWithTableAndOutput.cpp rename to dbms/Parsers/ASTQueryWithTableAndOutput.cpp diff --git a/dbms/src/Parsers/ASTQueryWithTableAndOutput.h b/dbms/Parsers/ASTQueryWithTableAndOutput.h similarity index 100% rename from dbms/src/Parsers/ASTQueryWithTableAndOutput.h rename to dbms/Parsers/ASTQueryWithTableAndOutput.h diff --git a/dbms/src/Parsers/ASTRenameQuery.h b/dbms/Parsers/ASTRenameQuery.h similarity index 100% rename from dbms/src/Parsers/ASTRenameQuery.h rename to dbms/Parsers/ASTRenameQuery.h diff --git a/dbms/src/Parsers/ASTSampleRatio.cpp b/dbms/Parsers/ASTSampleRatio.cpp similarity index 100% rename from dbms/src/Parsers/ASTSampleRatio.cpp rename to dbms/Parsers/ASTSampleRatio.cpp diff --git a/dbms/src/Parsers/ASTSampleRatio.h b/dbms/Parsers/ASTSampleRatio.h similarity index 100% rename from dbms/src/Parsers/ASTSampleRatio.h rename to dbms/Parsers/ASTSampleRatio.h diff --git a/dbms/src/Parsers/ASTSelectQuery.cpp b/dbms/Parsers/ASTSelectQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTSelectQuery.cpp rename to dbms/Parsers/ASTSelectQuery.cpp diff --git a/dbms/src/Parsers/ASTSelectQuery.h b/dbms/Parsers/ASTSelectQuery.h similarity index 100% rename from dbms/src/Parsers/ASTSelectQuery.h rename to dbms/Parsers/ASTSelectQuery.h diff --git a/dbms/src/Parsers/ASTSelectWithUnionQuery.cpp b/dbms/Parsers/ASTSelectWithUnionQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTSelectWithUnionQuery.cpp rename to dbms/Parsers/ASTSelectWithUnionQuery.cpp diff --git a/dbms/src/Parsers/ASTSelectWithUnionQuery.h b/dbms/Parsers/ASTSelectWithUnionQuery.h similarity index 100% rename from dbms/src/Parsers/ASTSelectWithUnionQuery.h rename to dbms/Parsers/ASTSelectWithUnionQuery.h diff --git a/dbms/src/Parsers/ASTSetQuery.h b/dbms/Parsers/ASTSetQuery.h similarity index 100% rename from dbms/src/Parsers/ASTSetQuery.h rename to dbms/Parsers/ASTSetQuery.h diff --git a/dbms/src/Parsers/ASTSetRoleQuery.cpp b/dbms/Parsers/ASTSetRoleQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTSetRoleQuery.cpp rename to dbms/Parsers/ASTSetRoleQuery.cpp diff --git a/dbms/src/Parsers/ASTSetRoleQuery.h b/dbms/Parsers/ASTSetRoleQuery.h similarity index 100% rename from dbms/src/Parsers/ASTSetRoleQuery.h rename to dbms/Parsers/ASTSetRoleQuery.h diff --git a/dbms/src/Parsers/ASTSettingsProfileElement.cpp b/dbms/Parsers/ASTSettingsProfileElement.cpp similarity index 100% rename from dbms/src/Parsers/ASTSettingsProfileElement.cpp rename to dbms/Parsers/ASTSettingsProfileElement.cpp diff --git a/dbms/src/Parsers/ASTSettingsProfileElement.h b/dbms/Parsers/ASTSettingsProfileElement.h similarity index 100% rename from dbms/src/Parsers/ASTSettingsProfileElement.h rename to dbms/Parsers/ASTSettingsProfileElement.h diff --git a/dbms/src/Parsers/ASTShowCreateAccessEntityQuery.cpp b/dbms/Parsers/ASTShowCreateAccessEntityQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTShowCreateAccessEntityQuery.cpp rename to dbms/Parsers/ASTShowCreateAccessEntityQuery.cpp diff --git a/dbms/src/Parsers/ASTShowCreateAccessEntityQuery.h b/dbms/Parsers/ASTShowCreateAccessEntityQuery.h similarity index 100% rename from dbms/src/Parsers/ASTShowCreateAccessEntityQuery.h rename to dbms/Parsers/ASTShowCreateAccessEntityQuery.h diff --git a/dbms/src/Parsers/ASTShowGrantsQuery.cpp b/dbms/Parsers/ASTShowGrantsQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTShowGrantsQuery.cpp rename to dbms/Parsers/ASTShowGrantsQuery.cpp diff --git a/dbms/src/Parsers/ASTShowGrantsQuery.h b/dbms/Parsers/ASTShowGrantsQuery.h similarity index 100% rename from dbms/src/Parsers/ASTShowGrantsQuery.h rename to dbms/Parsers/ASTShowGrantsQuery.h diff --git a/dbms/src/Parsers/ASTShowProcesslistQuery.h b/dbms/Parsers/ASTShowProcesslistQuery.h similarity index 100% rename from dbms/src/Parsers/ASTShowProcesslistQuery.h rename to dbms/Parsers/ASTShowProcesslistQuery.h diff --git a/dbms/src/Parsers/ASTShowQuotasQuery.cpp b/dbms/Parsers/ASTShowQuotasQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTShowQuotasQuery.cpp rename to dbms/Parsers/ASTShowQuotasQuery.cpp diff --git a/dbms/src/Parsers/ASTShowQuotasQuery.h b/dbms/Parsers/ASTShowQuotasQuery.h similarity index 100% rename from dbms/src/Parsers/ASTShowQuotasQuery.h rename to dbms/Parsers/ASTShowQuotasQuery.h diff --git a/dbms/src/Parsers/ASTShowRowPoliciesQuery.cpp b/dbms/Parsers/ASTShowRowPoliciesQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTShowRowPoliciesQuery.cpp rename to dbms/Parsers/ASTShowRowPoliciesQuery.cpp diff --git a/dbms/src/Parsers/ASTShowRowPoliciesQuery.h b/dbms/Parsers/ASTShowRowPoliciesQuery.h similarity index 100% rename from dbms/src/Parsers/ASTShowRowPoliciesQuery.h rename to dbms/Parsers/ASTShowRowPoliciesQuery.h diff --git a/dbms/src/Parsers/ASTShowTablesQuery.cpp b/dbms/Parsers/ASTShowTablesQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTShowTablesQuery.cpp rename to dbms/Parsers/ASTShowTablesQuery.cpp diff --git a/dbms/src/Parsers/ASTShowTablesQuery.h b/dbms/Parsers/ASTShowTablesQuery.h similarity index 100% rename from dbms/src/Parsers/ASTShowTablesQuery.h rename to dbms/Parsers/ASTShowTablesQuery.h diff --git a/dbms/src/Parsers/ASTSubquery.cpp b/dbms/Parsers/ASTSubquery.cpp similarity index 100% rename from dbms/src/Parsers/ASTSubquery.cpp rename to dbms/Parsers/ASTSubquery.cpp diff --git a/dbms/src/Parsers/ASTSubquery.h b/dbms/Parsers/ASTSubquery.h similarity index 100% rename from dbms/src/Parsers/ASTSubquery.h rename to dbms/Parsers/ASTSubquery.h diff --git a/dbms/src/Parsers/ASTSystemQuery.cpp b/dbms/Parsers/ASTSystemQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTSystemQuery.cpp rename to dbms/Parsers/ASTSystemQuery.cpp diff --git a/dbms/src/Parsers/ASTSystemQuery.h b/dbms/Parsers/ASTSystemQuery.h similarity index 100% rename from dbms/src/Parsers/ASTSystemQuery.h rename to dbms/Parsers/ASTSystemQuery.h diff --git a/dbms/src/Parsers/ASTTTLElement.cpp b/dbms/Parsers/ASTTTLElement.cpp similarity index 100% rename from dbms/src/Parsers/ASTTTLElement.cpp rename to dbms/Parsers/ASTTTLElement.cpp diff --git a/dbms/src/Parsers/ASTTTLElement.h b/dbms/Parsers/ASTTTLElement.h similarity index 100% rename from dbms/src/Parsers/ASTTTLElement.h rename to dbms/Parsers/ASTTTLElement.h diff --git a/dbms/src/Parsers/ASTTablesInSelectQuery.cpp b/dbms/Parsers/ASTTablesInSelectQuery.cpp similarity index 100% rename from dbms/src/Parsers/ASTTablesInSelectQuery.cpp rename to dbms/Parsers/ASTTablesInSelectQuery.cpp diff --git a/dbms/src/Parsers/ASTTablesInSelectQuery.h b/dbms/Parsers/ASTTablesInSelectQuery.h similarity index 100% rename from dbms/src/Parsers/ASTTablesInSelectQuery.h rename to dbms/Parsers/ASTTablesInSelectQuery.h diff --git a/dbms/src/Parsers/ASTUseQuery.h b/dbms/Parsers/ASTUseQuery.h similarity index 100% rename from dbms/src/Parsers/ASTUseQuery.h rename to dbms/Parsers/ASTUseQuery.h diff --git a/dbms/src/Parsers/ASTWatchQuery.h b/dbms/Parsers/ASTWatchQuery.h similarity index 100% rename from dbms/src/Parsers/ASTWatchQuery.h rename to dbms/Parsers/ASTWatchQuery.h diff --git a/dbms/src/Parsers/ASTWithAlias.cpp b/dbms/Parsers/ASTWithAlias.cpp similarity index 100% rename from dbms/src/Parsers/ASTWithAlias.cpp rename to dbms/Parsers/ASTWithAlias.cpp diff --git a/dbms/src/Parsers/ASTWithAlias.h b/dbms/Parsers/ASTWithAlias.h similarity index 100% rename from dbms/src/Parsers/ASTWithAlias.h rename to dbms/Parsers/ASTWithAlias.h diff --git a/dbms/src/Parsers/CMakeLists.txt b/dbms/Parsers/CMakeLists.txt similarity index 87% rename from dbms/src/Parsers/CMakeLists.txt rename to dbms/Parsers/CMakeLists.txt index 086384196aa..6424cdfe9ea 100644 --- a/dbms/src/Parsers/CMakeLists.txt +++ b/dbms/Parsers/CMakeLists.txt @@ -5,7 +5,7 @@ target_link_libraries(clickhouse_parsers PUBLIC clickhouse_common_io) target_include_directories(clickhouse_parsers PUBLIC ${DBMS_INCLUDE_DIR}) if (USE_DEBUG_HELPERS) - set (INCLUDE_DEBUG_HELPERS "-I${ClickHouse_SOURCE_DIR}/base -include ${ClickHouse_SOURCE_DIR}/dbms/src/Parsers/iostream_debug_helpers.h") + set (INCLUDE_DEBUG_HELPERS "-I${ClickHouse_SOURCE_DIR}/base -include ${ClickHouse_SOURCE_DIR}/dbms/Parsers/iostream_debug_helpers.h") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${INCLUDE_DEBUG_HELPERS}") endif () diff --git a/dbms/src/Parsers/CommonParsers.cpp b/dbms/Parsers/CommonParsers.cpp similarity index 100% rename from dbms/src/Parsers/CommonParsers.cpp rename to dbms/Parsers/CommonParsers.cpp diff --git a/dbms/src/Parsers/CommonParsers.h b/dbms/Parsers/CommonParsers.h similarity index 100% rename from dbms/src/Parsers/CommonParsers.h rename to dbms/Parsers/CommonParsers.h diff --git a/dbms/src/Parsers/DumpASTNode.h b/dbms/Parsers/DumpASTNode.h similarity index 100% rename from dbms/src/Parsers/DumpASTNode.h rename to dbms/Parsers/DumpASTNode.h diff --git a/dbms/src/Parsers/ExpressionElementParsers.cpp b/dbms/Parsers/ExpressionElementParsers.cpp similarity index 100% rename from dbms/src/Parsers/ExpressionElementParsers.cpp rename to dbms/Parsers/ExpressionElementParsers.cpp diff --git a/dbms/src/Parsers/ExpressionElementParsers.h b/dbms/Parsers/ExpressionElementParsers.h similarity index 100% rename from dbms/src/Parsers/ExpressionElementParsers.h rename to dbms/Parsers/ExpressionElementParsers.h diff --git a/dbms/src/Parsers/ExpressionListParsers.cpp b/dbms/Parsers/ExpressionListParsers.cpp similarity index 100% rename from dbms/src/Parsers/ExpressionListParsers.cpp rename to dbms/Parsers/ExpressionListParsers.cpp diff --git a/dbms/src/Parsers/ExpressionListParsers.h b/dbms/Parsers/ExpressionListParsers.h similarity index 100% rename from dbms/src/Parsers/ExpressionListParsers.h rename to dbms/Parsers/ExpressionListParsers.h diff --git a/dbms/src/Parsers/IAST.cpp b/dbms/Parsers/IAST.cpp similarity index 100% rename from dbms/src/Parsers/IAST.cpp rename to dbms/Parsers/IAST.cpp diff --git a/dbms/src/Parsers/IAST.h b/dbms/Parsers/IAST.h similarity index 100% rename from dbms/src/Parsers/IAST.h rename to dbms/Parsers/IAST.h diff --git a/dbms/src/Parsers/IAST_fwd.h b/dbms/Parsers/IAST_fwd.h similarity index 100% rename from dbms/src/Parsers/IAST_fwd.h rename to dbms/Parsers/IAST_fwd.h diff --git a/dbms/src/Parsers/IParser.h b/dbms/Parsers/IParser.h similarity index 100% rename from dbms/src/Parsers/IParser.h rename to dbms/Parsers/IParser.h diff --git a/dbms/src/Parsers/IParserBase.cpp b/dbms/Parsers/IParserBase.cpp similarity index 100% rename from dbms/src/Parsers/IParserBase.cpp rename to dbms/Parsers/IParserBase.cpp diff --git a/dbms/src/Parsers/IParserBase.h b/dbms/Parsers/IParserBase.h similarity index 100% rename from dbms/src/Parsers/IParserBase.h rename to dbms/Parsers/IParserBase.h diff --git a/dbms/src/Parsers/IdentifierQuotingStyle.h b/dbms/Parsers/IdentifierQuotingStyle.h similarity index 100% rename from dbms/src/Parsers/IdentifierQuotingStyle.h rename to dbms/Parsers/IdentifierQuotingStyle.h diff --git a/dbms/src/Parsers/Lexer.cpp b/dbms/Parsers/Lexer.cpp similarity index 100% rename from dbms/src/Parsers/Lexer.cpp rename to dbms/Parsers/Lexer.cpp diff --git a/dbms/src/Parsers/Lexer.h b/dbms/Parsers/Lexer.h similarity index 100% rename from dbms/src/Parsers/Lexer.h rename to dbms/Parsers/Lexer.h diff --git a/dbms/src/Parsers/ParserAlterQuery.cpp b/dbms/Parsers/ParserAlterQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserAlterQuery.cpp rename to dbms/Parsers/ParserAlterQuery.cpp diff --git a/dbms/src/Parsers/ParserAlterQuery.h b/dbms/Parsers/ParserAlterQuery.h similarity index 100% rename from dbms/src/Parsers/ParserAlterQuery.h rename to dbms/Parsers/ParserAlterQuery.h diff --git a/dbms/src/Parsers/ParserCase.cpp b/dbms/Parsers/ParserCase.cpp similarity index 100% rename from dbms/src/Parsers/ParserCase.cpp rename to dbms/Parsers/ParserCase.cpp diff --git a/dbms/src/Parsers/ParserCase.h b/dbms/Parsers/ParserCase.h similarity index 100% rename from dbms/src/Parsers/ParserCase.h rename to dbms/Parsers/ParserCase.h diff --git a/dbms/src/Parsers/ParserCheckQuery.cpp b/dbms/Parsers/ParserCheckQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserCheckQuery.cpp rename to dbms/Parsers/ParserCheckQuery.cpp diff --git a/dbms/src/Parsers/ParserCheckQuery.h b/dbms/Parsers/ParserCheckQuery.h similarity index 100% rename from dbms/src/Parsers/ParserCheckQuery.h rename to dbms/Parsers/ParserCheckQuery.h diff --git a/dbms/src/Parsers/ParserCreateQuery.cpp b/dbms/Parsers/ParserCreateQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserCreateQuery.cpp rename to dbms/Parsers/ParserCreateQuery.cpp diff --git a/dbms/src/Parsers/ParserCreateQuery.h b/dbms/Parsers/ParserCreateQuery.h similarity index 100% rename from dbms/src/Parsers/ParserCreateQuery.h rename to dbms/Parsers/ParserCreateQuery.h diff --git a/dbms/src/Parsers/ParserCreateQuotaQuery.cpp b/dbms/Parsers/ParserCreateQuotaQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserCreateQuotaQuery.cpp rename to dbms/Parsers/ParserCreateQuotaQuery.cpp diff --git a/dbms/src/Parsers/ParserCreateQuotaQuery.h b/dbms/Parsers/ParserCreateQuotaQuery.h similarity index 100% rename from dbms/src/Parsers/ParserCreateQuotaQuery.h rename to dbms/Parsers/ParserCreateQuotaQuery.h diff --git a/dbms/src/Parsers/ParserCreateRoleQuery.cpp b/dbms/Parsers/ParserCreateRoleQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserCreateRoleQuery.cpp rename to dbms/Parsers/ParserCreateRoleQuery.cpp diff --git a/dbms/src/Parsers/ParserCreateRoleQuery.h b/dbms/Parsers/ParserCreateRoleQuery.h similarity index 100% rename from dbms/src/Parsers/ParserCreateRoleQuery.h rename to dbms/Parsers/ParserCreateRoleQuery.h diff --git a/dbms/src/Parsers/ParserCreateRowPolicyQuery.cpp b/dbms/Parsers/ParserCreateRowPolicyQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserCreateRowPolicyQuery.cpp rename to dbms/Parsers/ParserCreateRowPolicyQuery.cpp diff --git a/dbms/src/Parsers/ParserCreateRowPolicyQuery.h b/dbms/Parsers/ParserCreateRowPolicyQuery.h similarity index 100% rename from dbms/src/Parsers/ParserCreateRowPolicyQuery.h rename to dbms/Parsers/ParserCreateRowPolicyQuery.h diff --git a/dbms/src/Parsers/ParserCreateSettingsProfileQuery.cpp b/dbms/Parsers/ParserCreateSettingsProfileQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserCreateSettingsProfileQuery.cpp rename to dbms/Parsers/ParserCreateSettingsProfileQuery.cpp diff --git a/dbms/src/Parsers/ParserCreateSettingsProfileQuery.h b/dbms/Parsers/ParserCreateSettingsProfileQuery.h similarity index 100% rename from dbms/src/Parsers/ParserCreateSettingsProfileQuery.h rename to dbms/Parsers/ParserCreateSettingsProfileQuery.h diff --git a/dbms/src/Parsers/ParserCreateUserQuery.cpp b/dbms/Parsers/ParserCreateUserQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserCreateUserQuery.cpp rename to dbms/Parsers/ParserCreateUserQuery.cpp diff --git a/dbms/src/Parsers/ParserCreateUserQuery.h b/dbms/Parsers/ParserCreateUserQuery.h similarity index 100% rename from dbms/src/Parsers/ParserCreateUserQuery.h rename to dbms/Parsers/ParserCreateUserQuery.h diff --git a/dbms/src/Parsers/ParserDescribeTableQuery.cpp b/dbms/Parsers/ParserDescribeTableQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserDescribeTableQuery.cpp rename to dbms/Parsers/ParserDescribeTableQuery.cpp diff --git a/dbms/src/Parsers/ParserDescribeTableQuery.h b/dbms/Parsers/ParserDescribeTableQuery.h similarity index 100% rename from dbms/src/Parsers/ParserDescribeTableQuery.h rename to dbms/Parsers/ParserDescribeTableQuery.h diff --git a/dbms/src/Parsers/ParserDictionary.cpp b/dbms/Parsers/ParserDictionary.cpp similarity index 100% rename from dbms/src/Parsers/ParserDictionary.cpp rename to dbms/Parsers/ParserDictionary.cpp diff --git a/dbms/src/Parsers/ParserDictionary.h b/dbms/Parsers/ParserDictionary.h similarity index 100% rename from dbms/src/Parsers/ParserDictionary.h rename to dbms/Parsers/ParserDictionary.h diff --git a/dbms/src/Parsers/ParserDictionaryAttributeDeclaration.cpp b/dbms/Parsers/ParserDictionaryAttributeDeclaration.cpp similarity index 100% rename from dbms/src/Parsers/ParserDictionaryAttributeDeclaration.cpp rename to dbms/Parsers/ParserDictionaryAttributeDeclaration.cpp diff --git a/dbms/src/Parsers/ParserDictionaryAttributeDeclaration.h b/dbms/Parsers/ParserDictionaryAttributeDeclaration.h similarity index 100% rename from dbms/src/Parsers/ParserDictionaryAttributeDeclaration.h rename to dbms/Parsers/ParserDictionaryAttributeDeclaration.h diff --git a/dbms/src/Parsers/ParserDropAccessEntityQuery.cpp b/dbms/Parsers/ParserDropAccessEntityQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserDropAccessEntityQuery.cpp rename to dbms/Parsers/ParserDropAccessEntityQuery.cpp diff --git a/dbms/src/Parsers/ParserDropAccessEntityQuery.h b/dbms/Parsers/ParserDropAccessEntityQuery.h similarity index 100% rename from dbms/src/Parsers/ParserDropAccessEntityQuery.h rename to dbms/Parsers/ParserDropAccessEntityQuery.h diff --git a/dbms/src/Parsers/ParserDropQuery.cpp b/dbms/Parsers/ParserDropQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserDropQuery.cpp rename to dbms/Parsers/ParserDropQuery.cpp diff --git a/dbms/src/Parsers/ParserDropQuery.h b/dbms/Parsers/ParserDropQuery.h similarity index 100% rename from dbms/src/Parsers/ParserDropQuery.h rename to dbms/Parsers/ParserDropQuery.h diff --git a/dbms/src/Parsers/ParserExtendedRoleSet.cpp b/dbms/Parsers/ParserExtendedRoleSet.cpp similarity index 100% rename from dbms/src/Parsers/ParserExtendedRoleSet.cpp rename to dbms/Parsers/ParserExtendedRoleSet.cpp diff --git a/dbms/src/Parsers/ParserExtendedRoleSet.h b/dbms/Parsers/ParserExtendedRoleSet.h similarity index 100% rename from dbms/src/Parsers/ParserExtendedRoleSet.h rename to dbms/Parsers/ParserExtendedRoleSet.h diff --git a/dbms/src/Parsers/ParserGrantQuery.cpp b/dbms/Parsers/ParserGrantQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserGrantQuery.cpp rename to dbms/Parsers/ParserGrantQuery.cpp diff --git a/dbms/src/Parsers/ParserGrantQuery.h b/dbms/Parsers/ParserGrantQuery.h similarity index 100% rename from dbms/src/Parsers/ParserGrantQuery.h rename to dbms/Parsers/ParserGrantQuery.h diff --git a/dbms/src/Parsers/ParserInsertQuery.cpp b/dbms/Parsers/ParserInsertQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserInsertQuery.cpp rename to dbms/Parsers/ParserInsertQuery.cpp diff --git a/dbms/src/Parsers/ParserInsertQuery.h b/dbms/Parsers/ParserInsertQuery.h similarity index 100% rename from dbms/src/Parsers/ParserInsertQuery.h rename to dbms/Parsers/ParserInsertQuery.h diff --git a/dbms/src/Parsers/ParserKillQueryQuery.cpp b/dbms/Parsers/ParserKillQueryQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserKillQueryQuery.cpp rename to dbms/Parsers/ParserKillQueryQuery.cpp diff --git a/dbms/src/Parsers/ParserKillQueryQuery.h b/dbms/Parsers/ParserKillQueryQuery.h similarity index 100% rename from dbms/src/Parsers/ParserKillQueryQuery.h rename to dbms/Parsers/ParserKillQueryQuery.h diff --git a/dbms/src/Parsers/ParserOptimizeQuery.cpp b/dbms/Parsers/ParserOptimizeQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserOptimizeQuery.cpp rename to dbms/Parsers/ParserOptimizeQuery.cpp diff --git a/dbms/src/Parsers/ParserOptimizeQuery.h b/dbms/Parsers/ParserOptimizeQuery.h similarity index 100% rename from dbms/src/Parsers/ParserOptimizeQuery.h rename to dbms/Parsers/ParserOptimizeQuery.h diff --git a/dbms/src/Parsers/ParserPartition.cpp b/dbms/Parsers/ParserPartition.cpp similarity index 100% rename from dbms/src/Parsers/ParserPartition.cpp rename to dbms/Parsers/ParserPartition.cpp diff --git a/dbms/src/Parsers/ParserPartition.h b/dbms/Parsers/ParserPartition.h similarity index 100% rename from dbms/src/Parsers/ParserPartition.h rename to dbms/Parsers/ParserPartition.h diff --git a/dbms/src/Parsers/ParserQuery.cpp b/dbms/Parsers/ParserQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserQuery.cpp rename to dbms/Parsers/ParserQuery.cpp diff --git a/dbms/src/Parsers/ParserQuery.h b/dbms/Parsers/ParserQuery.h similarity index 100% rename from dbms/src/Parsers/ParserQuery.h rename to dbms/Parsers/ParserQuery.h diff --git a/dbms/src/Parsers/ParserQueryWithOutput.cpp b/dbms/Parsers/ParserQueryWithOutput.cpp similarity index 100% rename from dbms/src/Parsers/ParserQueryWithOutput.cpp rename to dbms/Parsers/ParserQueryWithOutput.cpp diff --git a/dbms/src/Parsers/ParserQueryWithOutput.h b/dbms/Parsers/ParserQueryWithOutput.h similarity index 100% rename from dbms/src/Parsers/ParserQueryWithOutput.h rename to dbms/Parsers/ParserQueryWithOutput.h diff --git a/dbms/src/Parsers/ParserRenameQuery.cpp b/dbms/Parsers/ParserRenameQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserRenameQuery.cpp rename to dbms/Parsers/ParserRenameQuery.cpp diff --git a/dbms/src/Parsers/ParserRenameQuery.h b/dbms/Parsers/ParserRenameQuery.h similarity index 100% rename from dbms/src/Parsers/ParserRenameQuery.h rename to dbms/Parsers/ParserRenameQuery.h diff --git a/dbms/src/Parsers/ParserSampleRatio.cpp b/dbms/Parsers/ParserSampleRatio.cpp similarity index 100% rename from dbms/src/Parsers/ParserSampleRatio.cpp rename to dbms/Parsers/ParserSampleRatio.cpp diff --git a/dbms/src/Parsers/ParserSampleRatio.h b/dbms/Parsers/ParserSampleRatio.h similarity index 100% rename from dbms/src/Parsers/ParserSampleRatio.h rename to dbms/Parsers/ParserSampleRatio.h diff --git a/dbms/src/Parsers/ParserSelectQuery.cpp b/dbms/Parsers/ParserSelectQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserSelectQuery.cpp rename to dbms/Parsers/ParserSelectQuery.cpp diff --git a/dbms/src/Parsers/ParserSelectQuery.h b/dbms/Parsers/ParserSelectQuery.h similarity index 100% rename from dbms/src/Parsers/ParserSelectQuery.h rename to dbms/Parsers/ParserSelectQuery.h diff --git a/dbms/src/Parsers/ParserSelectWithUnionQuery.cpp b/dbms/Parsers/ParserSelectWithUnionQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserSelectWithUnionQuery.cpp rename to dbms/Parsers/ParserSelectWithUnionQuery.cpp diff --git a/dbms/src/Parsers/ParserSelectWithUnionQuery.h b/dbms/Parsers/ParserSelectWithUnionQuery.h similarity index 100% rename from dbms/src/Parsers/ParserSelectWithUnionQuery.h rename to dbms/Parsers/ParserSelectWithUnionQuery.h diff --git a/dbms/src/Parsers/ParserSetQuery.cpp b/dbms/Parsers/ParserSetQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserSetQuery.cpp rename to dbms/Parsers/ParserSetQuery.cpp diff --git a/dbms/src/Parsers/ParserSetQuery.h b/dbms/Parsers/ParserSetQuery.h similarity index 100% rename from dbms/src/Parsers/ParserSetQuery.h rename to dbms/Parsers/ParserSetQuery.h diff --git a/dbms/src/Parsers/ParserSetRoleQuery.cpp b/dbms/Parsers/ParserSetRoleQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserSetRoleQuery.cpp rename to dbms/Parsers/ParserSetRoleQuery.cpp diff --git a/dbms/src/Parsers/ParserSetRoleQuery.h b/dbms/Parsers/ParserSetRoleQuery.h similarity index 100% rename from dbms/src/Parsers/ParserSetRoleQuery.h rename to dbms/Parsers/ParserSetRoleQuery.h diff --git a/dbms/src/Parsers/ParserSettingsProfileElement.cpp b/dbms/Parsers/ParserSettingsProfileElement.cpp similarity index 100% rename from dbms/src/Parsers/ParserSettingsProfileElement.cpp rename to dbms/Parsers/ParserSettingsProfileElement.cpp diff --git a/dbms/src/Parsers/ParserSettingsProfileElement.h b/dbms/Parsers/ParserSettingsProfileElement.h similarity index 100% rename from dbms/src/Parsers/ParserSettingsProfileElement.h rename to dbms/Parsers/ParserSettingsProfileElement.h diff --git a/dbms/src/Parsers/ParserShowCreateAccessEntityQuery.cpp b/dbms/Parsers/ParserShowCreateAccessEntityQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserShowCreateAccessEntityQuery.cpp rename to dbms/Parsers/ParserShowCreateAccessEntityQuery.cpp diff --git a/dbms/src/Parsers/ParserShowCreateAccessEntityQuery.h b/dbms/Parsers/ParserShowCreateAccessEntityQuery.h similarity index 100% rename from dbms/src/Parsers/ParserShowCreateAccessEntityQuery.h rename to dbms/Parsers/ParserShowCreateAccessEntityQuery.h diff --git a/dbms/src/Parsers/ParserShowGrantsQuery.cpp b/dbms/Parsers/ParserShowGrantsQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserShowGrantsQuery.cpp rename to dbms/Parsers/ParserShowGrantsQuery.cpp diff --git a/dbms/src/Parsers/ParserShowGrantsQuery.h b/dbms/Parsers/ParserShowGrantsQuery.h similarity index 100% rename from dbms/src/Parsers/ParserShowGrantsQuery.h rename to dbms/Parsers/ParserShowGrantsQuery.h diff --git a/dbms/src/Parsers/ParserShowProcesslistQuery.h b/dbms/Parsers/ParserShowProcesslistQuery.h similarity index 100% rename from dbms/src/Parsers/ParserShowProcesslistQuery.h rename to dbms/Parsers/ParserShowProcesslistQuery.h diff --git a/dbms/src/Parsers/ParserShowQuotasQuery.cpp b/dbms/Parsers/ParserShowQuotasQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserShowQuotasQuery.cpp rename to dbms/Parsers/ParserShowQuotasQuery.cpp diff --git a/dbms/src/Parsers/ParserShowQuotasQuery.h b/dbms/Parsers/ParserShowQuotasQuery.h similarity index 100% rename from dbms/src/Parsers/ParserShowQuotasQuery.h rename to dbms/Parsers/ParserShowQuotasQuery.h diff --git a/dbms/src/Parsers/ParserShowRowPoliciesQuery.cpp b/dbms/Parsers/ParserShowRowPoliciesQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserShowRowPoliciesQuery.cpp rename to dbms/Parsers/ParserShowRowPoliciesQuery.cpp diff --git a/dbms/src/Parsers/ParserShowRowPoliciesQuery.h b/dbms/Parsers/ParserShowRowPoliciesQuery.h similarity index 100% rename from dbms/src/Parsers/ParserShowRowPoliciesQuery.h rename to dbms/Parsers/ParserShowRowPoliciesQuery.h diff --git a/dbms/src/Parsers/ParserShowTablesQuery.cpp b/dbms/Parsers/ParserShowTablesQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserShowTablesQuery.cpp rename to dbms/Parsers/ParserShowTablesQuery.cpp diff --git a/dbms/src/Parsers/ParserShowTablesQuery.h b/dbms/Parsers/ParserShowTablesQuery.h similarity index 100% rename from dbms/src/Parsers/ParserShowTablesQuery.h rename to dbms/Parsers/ParserShowTablesQuery.h diff --git a/dbms/src/Parsers/ParserSystemQuery.cpp b/dbms/Parsers/ParserSystemQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserSystemQuery.cpp rename to dbms/Parsers/ParserSystemQuery.cpp diff --git a/dbms/src/Parsers/ParserSystemQuery.h b/dbms/Parsers/ParserSystemQuery.h similarity index 100% rename from dbms/src/Parsers/ParserSystemQuery.h rename to dbms/Parsers/ParserSystemQuery.h diff --git a/dbms/src/Parsers/ParserTablePropertiesQuery.cpp b/dbms/Parsers/ParserTablePropertiesQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserTablePropertiesQuery.cpp rename to dbms/Parsers/ParserTablePropertiesQuery.cpp diff --git a/dbms/src/Parsers/ParserTablePropertiesQuery.h b/dbms/Parsers/ParserTablePropertiesQuery.h similarity index 100% rename from dbms/src/Parsers/ParserTablePropertiesQuery.h rename to dbms/Parsers/ParserTablePropertiesQuery.h diff --git a/dbms/src/Parsers/ParserTablesInSelectQuery.cpp b/dbms/Parsers/ParserTablesInSelectQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserTablesInSelectQuery.cpp rename to dbms/Parsers/ParserTablesInSelectQuery.cpp diff --git a/dbms/src/Parsers/ParserTablesInSelectQuery.h b/dbms/Parsers/ParserTablesInSelectQuery.h similarity index 100% rename from dbms/src/Parsers/ParserTablesInSelectQuery.h rename to dbms/Parsers/ParserTablesInSelectQuery.h diff --git a/dbms/src/Parsers/ParserUnionQueryElement.cpp b/dbms/Parsers/ParserUnionQueryElement.cpp similarity index 100% rename from dbms/src/Parsers/ParserUnionQueryElement.cpp rename to dbms/Parsers/ParserUnionQueryElement.cpp diff --git a/dbms/src/Parsers/ParserUnionQueryElement.h b/dbms/Parsers/ParserUnionQueryElement.h similarity index 100% rename from dbms/src/Parsers/ParserUnionQueryElement.h rename to dbms/Parsers/ParserUnionQueryElement.h diff --git a/dbms/src/Parsers/ParserUseQuery.cpp b/dbms/Parsers/ParserUseQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserUseQuery.cpp rename to dbms/Parsers/ParserUseQuery.cpp diff --git a/dbms/src/Parsers/ParserUseQuery.h b/dbms/Parsers/ParserUseQuery.h similarity index 100% rename from dbms/src/Parsers/ParserUseQuery.h rename to dbms/Parsers/ParserUseQuery.h diff --git a/dbms/src/Parsers/ParserWatchQuery.cpp b/dbms/Parsers/ParserWatchQuery.cpp similarity index 100% rename from dbms/src/Parsers/ParserWatchQuery.cpp rename to dbms/Parsers/ParserWatchQuery.cpp diff --git a/dbms/src/Parsers/ParserWatchQuery.h b/dbms/Parsers/ParserWatchQuery.h similarity index 100% rename from dbms/src/Parsers/ParserWatchQuery.h rename to dbms/Parsers/ParserWatchQuery.h diff --git a/dbms/src/Parsers/StringRange.h b/dbms/Parsers/StringRange.h similarity index 100% rename from dbms/src/Parsers/StringRange.h rename to dbms/Parsers/StringRange.h diff --git a/dbms/src/Parsers/TablePropertiesQueriesASTs.h b/dbms/Parsers/TablePropertiesQueriesASTs.h similarity index 100% rename from dbms/src/Parsers/TablePropertiesQueriesASTs.h rename to dbms/Parsers/TablePropertiesQueriesASTs.h diff --git a/dbms/src/Parsers/TokenIterator.cpp b/dbms/Parsers/TokenIterator.cpp similarity index 100% rename from dbms/src/Parsers/TokenIterator.cpp rename to dbms/Parsers/TokenIterator.cpp diff --git a/dbms/src/Parsers/TokenIterator.h b/dbms/Parsers/TokenIterator.h similarity index 100% rename from dbms/src/Parsers/TokenIterator.h rename to dbms/Parsers/TokenIterator.h diff --git a/dbms/src/Parsers/formatAST.cpp b/dbms/Parsers/formatAST.cpp similarity index 100% rename from dbms/src/Parsers/formatAST.cpp rename to dbms/Parsers/formatAST.cpp diff --git a/dbms/src/Parsers/formatAST.h b/dbms/Parsers/formatAST.h similarity index 100% rename from dbms/src/Parsers/formatAST.h rename to dbms/Parsers/formatAST.h diff --git a/dbms/src/Parsers/iostream_debug_helpers.cpp b/dbms/Parsers/iostream_debug_helpers.cpp similarity index 100% rename from dbms/src/Parsers/iostream_debug_helpers.cpp rename to dbms/Parsers/iostream_debug_helpers.cpp diff --git a/dbms/src/Parsers/iostream_debug_helpers.h b/dbms/Parsers/iostream_debug_helpers.h similarity index 100% rename from dbms/src/Parsers/iostream_debug_helpers.h rename to dbms/Parsers/iostream_debug_helpers.h diff --git a/dbms/src/Parsers/parseDatabaseAndTableName.cpp b/dbms/Parsers/parseDatabaseAndTableName.cpp similarity index 100% rename from dbms/src/Parsers/parseDatabaseAndTableName.cpp rename to dbms/Parsers/parseDatabaseAndTableName.cpp diff --git a/dbms/src/Parsers/parseDatabaseAndTableName.h b/dbms/Parsers/parseDatabaseAndTableName.h similarity index 100% rename from dbms/src/Parsers/parseDatabaseAndTableName.h rename to dbms/Parsers/parseDatabaseAndTableName.h diff --git a/dbms/src/Parsers/parseIdentifierOrStringLiteral.cpp b/dbms/Parsers/parseIdentifierOrStringLiteral.cpp similarity index 100% rename from dbms/src/Parsers/parseIdentifierOrStringLiteral.cpp rename to dbms/Parsers/parseIdentifierOrStringLiteral.cpp diff --git a/dbms/src/Parsers/parseIdentifierOrStringLiteral.h b/dbms/Parsers/parseIdentifierOrStringLiteral.h similarity index 100% rename from dbms/src/Parsers/parseIdentifierOrStringLiteral.h rename to dbms/Parsers/parseIdentifierOrStringLiteral.h diff --git a/dbms/src/Parsers/parseIntervalKind.cpp b/dbms/Parsers/parseIntervalKind.cpp similarity index 100% rename from dbms/src/Parsers/parseIntervalKind.cpp rename to dbms/Parsers/parseIntervalKind.cpp diff --git a/dbms/src/Parsers/parseIntervalKind.h b/dbms/Parsers/parseIntervalKind.h similarity index 100% rename from dbms/src/Parsers/parseIntervalKind.h rename to dbms/Parsers/parseIntervalKind.h diff --git a/dbms/src/Parsers/parseQuery.cpp b/dbms/Parsers/parseQuery.cpp similarity index 100% rename from dbms/src/Parsers/parseQuery.cpp rename to dbms/Parsers/parseQuery.cpp diff --git a/dbms/src/Parsers/parseQuery.h b/dbms/Parsers/parseQuery.h similarity index 100% rename from dbms/src/Parsers/parseQuery.h rename to dbms/Parsers/parseQuery.h diff --git a/dbms/src/Parsers/parseUserName.cpp b/dbms/Parsers/parseUserName.cpp similarity index 100% rename from dbms/src/Parsers/parseUserName.cpp rename to dbms/Parsers/parseUserName.cpp diff --git a/dbms/src/Parsers/parseUserName.h b/dbms/Parsers/parseUserName.h similarity index 100% rename from dbms/src/Parsers/parseUserName.h rename to dbms/Parsers/parseUserName.h diff --git a/dbms/src/Parsers/queryToString.cpp b/dbms/Parsers/queryToString.cpp similarity index 100% rename from dbms/src/Parsers/queryToString.cpp rename to dbms/Parsers/queryToString.cpp diff --git a/dbms/src/Parsers/queryToString.h b/dbms/Parsers/queryToString.h similarity index 100% rename from dbms/src/Parsers/queryToString.h rename to dbms/Parsers/queryToString.h diff --git a/dbms/src/Parsers/tests/CMakeLists.txt b/dbms/Parsers/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Parsers/tests/CMakeLists.txt rename to dbms/Parsers/tests/CMakeLists.txt diff --git a/dbms/src/Parsers/tests/create_parser.cpp b/dbms/Parsers/tests/create_parser.cpp similarity index 100% rename from dbms/src/Parsers/tests/create_parser.cpp rename to dbms/Parsers/tests/create_parser.cpp diff --git a/dbms/src/Parsers/tests/gtest_dictionary_parser.cpp b/dbms/Parsers/tests/gtest_dictionary_parser.cpp similarity index 100% rename from dbms/src/Parsers/tests/gtest_dictionary_parser.cpp rename to dbms/Parsers/tests/gtest_dictionary_parser.cpp diff --git a/dbms/src/Parsers/tests/lexer.cpp b/dbms/Parsers/tests/lexer.cpp similarity index 96% rename from dbms/src/Parsers/tests/lexer.cpp rename to dbms/Parsers/tests/lexer.cpp index d9135b08c28..074338d15b9 100644 --- a/dbms/src/Parsers/tests/lexer.cpp +++ b/dbms/Parsers/tests/lexer.cpp @@ -9,7 +9,7 @@ /// How to test: -/// for i in ~/work/ClickHouse/dbms/tests/queries/0_stateless/*.sql; do echo $i; grep -q 'FORMAT' $i || ./lexer < $i || break; done +/// for i in ~/work/ClickHouse/tests/queries/0_stateless/*.sql; do echo $i; grep -q 'FORMAT' $i || ./lexer < $i || break; done /// diff --git a/dbms/src/Parsers/tests/select_parser.cpp b/dbms/Parsers/tests/select_parser.cpp similarity index 100% rename from dbms/src/Parsers/tests/select_parser.cpp rename to dbms/Parsers/tests/select_parser.cpp diff --git a/dbms/src/Processors/CMakeLists.txt b/dbms/Processors/CMakeLists.txt similarity index 100% rename from dbms/src/Processors/CMakeLists.txt rename to dbms/Processors/CMakeLists.txt diff --git a/dbms/src/Processors/Chunk.cpp b/dbms/Processors/Chunk.cpp similarity index 100% rename from dbms/src/Processors/Chunk.cpp rename to dbms/Processors/Chunk.cpp diff --git a/dbms/src/Processors/Chunk.h b/dbms/Processors/Chunk.h similarity index 100% rename from dbms/src/Processors/Chunk.h rename to dbms/Processors/Chunk.h diff --git a/dbms/src/Processors/ConcatProcessor.cpp b/dbms/Processors/ConcatProcessor.cpp similarity index 100% rename from dbms/src/Processors/ConcatProcessor.cpp rename to dbms/Processors/ConcatProcessor.cpp diff --git a/dbms/src/Processors/ConcatProcessor.h b/dbms/Processors/ConcatProcessor.h similarity index 100% rename from dbms/src/Processors/ConcatProcessor.h rename to dbms/Processors/ConcatProcessor.h diff --git a/dbms/src/Processors/DelayedPortsProcessor.cpp b/dbms/Processors/DelayedPortsProcessor.cpp similarity index 100% rename from dbms/src/Processors/DelayedPortsProcessor.cpp rename to dbms/Processors/DelayedPortsProcessor.cpp diff --git a/dbms/src/Processors/DelayedPortsProcessor.h b/dbms/Processors/DelayedPortsProcessor.h similarity index 100% rename from dbms/src/Processors/DelayedPortsProcessor.h rename to dbms/Processors/DelayedPortsProcessor.h diff --git a/dbms/src/Processors/Executors/ParallelPipelineExecutor.cpp b/dbms/Processors/Executors/ParallelPipelineExecutor.cpp similarity index 100% rename from dbms/src/Processors/Executors/ParallelPipelineExecutor.cpp rename to dbms/Processors/Executors/ParallelPipelineExecutor.cpp diff --git a/dbms/src/Processors/Executors/ParallelPipelineExecutor.h b/dbms/Processors/Executors/ParallelPipelineExecutor.h similarity index 100% rename from dbms/src/Processors/Executors/ParallelPipelineExecutor.h rename to dbms/Processors/Executors/ParallelPipelineExecutor.h diff --git a/dbms/src/Processors/Executors/PipelineExecutor.cpp b/dbms/Processors/Executors/PipelineExecutor.cpp similarity index 100% rename from dbms/src/Processors/Executors/PipelineExecutor.cpp rename to dbms/Processors/Executors/PipelineExecutor.cpp diff --git a/dbms/src/Processors/Executors/PipelineExecutor.h b/dbms/Processors/Executors/PipelineExecutor.h similarity index 100% rename from dbms/src/Processors/Executors/PipelineExecutor.h rename to dbms/Processors/Executors/PipelineExecutor.h diff --git a/dbms/src/Processors/Executors/SequentialPipelineExecutor.cpp b/dbms/Processors/Executors/SequentialPipelineExecutor.cpp similarity index 100% rename from dbms/src/Processors/Executors/SequentialPipelineExecutor.cpp rename to dbms/Processors/Executors/SequentialPipelineExecutor.cpp diff --git a/dbms/src/Processors/Executors/SequentialPipelineExecutor.h b/dbms/Processors/Executors/SequentialPipelineExecutor.h similarity index 100% rename from dbms/src/Processors/Executors/SequentialPipelineExecutor.h rename to dbms/Processors/Executors/SequentialPipelineExecutor.h diff --git a/dbms/src/Processors/Executors/ThreadsQueue.h b/dbms/Processors/Executors/ThreadsQueue.h similarity index 100% rename from dbms/src/Processors/Executors/ThreadsQueue.h rename to dbms/Processors/Executors/ThreadsQueue.h diff --git a/dbms/src/Processors/Executors/TreeExecutorBlockInputStream.cpp b/dbms/Processors/Executors/TreeExecutorBlockInputStream.cpp similarity index 100% rename from dbms/src/Processors/Executors/TreeExecutorBlockInputStream.cpp rename to dbms/Processors/Executors/TreeExecutorBlockInputStream.cpp diff --git a/dbms/src/Processors/Executors/TreeExecutorBlockInputStream.h b/dbms/Processors/Executors/TreeExecutorBlockInputStream.h similarity index 100% rename from dbms/src/Processors/Executors/TreeExecutorBlockInputStream.h rename to dbms/Processors/Executors/TreeExecutorBlockInputStream.h diff --git a/dbms/src/Processors/Executors/traverse.h b/dbms/Processors/Executors/traverse.h similarity index 100% rename from dbms/src/Processors/Executors/traverse.h rename to dbms/Processors/Executors/traverse.h diff --git a/dbms/src/Processors/ForkProcessor.cpp b/dbms/Processors/ForkProcessor.cpp similarity index 100% rename from dbms/src/Processors/ForkProcessor.cpp rename to dbms/Processors/ForkProcessor.cpp diff --git a/dbms/src/Processors/ForkProcessor.h b/dbms/Processors/ForkProcessor.h similarity index 100% rename from dbms/src/Processors/ForkProcessor.h rename to dbms/Processors/ForkProcessor.h diff --git a/dbms/src/Processors/Formats/IInputFormat.cpp b/dbms/Processors/Formats/IInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/IInputFormat.cpp rename to dbms/Processors/Formats/IInputFormat.cpp diff --git a/dbms/src/Processors/Formats/IInputFormat.h b/dbms/Processors/Formats/IInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/IInputFormat.h rename to dbms/Processors/Formats/IInputFormat.h diff --git a/dbms/src/Processors/Formats/IOutputFormat.cpp b/dbms/Processors/Formats/IOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/IOutputFormat.cpp rename to dbms/Processors/Formats/IOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/IOutputFormat.h b/dbms/Processors/Formats/IOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/IOutputFormat.h rename to dbms/Processors/Formats/IOutputFormat.h diff --git a/dbms/src/Processors/Formats/IRowInputFormat.cpp b/dbms/Processors/Formats/IRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/IRowInputFormat.cpp rename to dbms/Processors/Formats/IRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/IRowInputFormat.h b/dbms/Processors/Formats/IRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/IRowInputFormat.h rename to dbms/Processors/Formats/IRowInputFormat.h diff --git a/dbms/src/Processors/Formats/IRowOutputFormat.cpp b/dbms/Processors/Formats/IRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/IRowOutputFormat.cpp rename to dbms/Processors/Formats/IRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/IRowOutputFormat.h b/dbms/Processors/Formats/IRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/IRowOutputFormat.h rename to dbms/Processors/Formats/IRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ArrowColumnToCHColumn.cpp b/dbms/Processors/Formats/Impl/ArrowColumnToCHColumn.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ArrowColumnToCHColumn.cpp rename to dbms/Processors/Formats/Impl/ArrowColumnToCHColumn.cpp diff --git a/dbms/src/Processors/Formats/Impl/ArrowColumnToCHColumn.h b/dbms/Processors/Formats/Impl/ArrowColumnToCHColumn.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ArrowColumnToCHColumn.h rename to dbms/Processors/Formats/Impl/ArrowColumnToCHColumn.h diff --git a/dbms/src/Processors/Formats/Impl/AvroRowInputFormat.cpp b/dbms/Processors/Formats/Impl/AvroRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/AvroRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/AvroRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/AvroRowInputFormat.h b/dbms/Processors/Formats/Impl/AvroRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/AvroRowInputFormat.h rename to dbms/Processors/Formats/Impl/AvroRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/AvroRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/AvroRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/AvroRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/AvroRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/AvroRowOutputFormat.h b/dbms/Processors/Formats/Impl/AvroRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/AvroRowOutputFormat.h rename to dbms/Processors/Formats/Impl/AvroRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/BinaryRowInputFormat.cpp b/dbms/Processors/Formats/Impl/BinaryRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/BinaryRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/BinaryRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/BinaryRowInputFormat.h b/dbms/Processors/Formats/Impl/BinaryRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/BinaryRowInputFormat.h rename to dbms/Processors/Formats/Impl/BinaryRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/BinaryRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/BinaryRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/BinaryRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/BinaryRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/BinaryRowOutputFormat.h b/dbms/Processors/Formats/Impl/BinaryRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/BinaryRowOutputFormat.h rename to dbms/Processors/Formats/Impl/BinaryRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/CMakeLists.txt b/dbms/Processors/Formats/Impl/CMakeLists.txt similarity index 100% rename from dbms/src/Processors/Formats/Impl/CMakeLists.txt rename to dbms/Processors/Formats/Impl/CMakeLists.txt diff --git a/dbms/src/Processors/Formats/Impl/CSVRowInputFormat.cpp b/dbms/Processors/Formats/Impl/CSVRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/CSVRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/CSVRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/CSVRowInputFormat.h b/dbms/Processors/Formats/Impl/CSVRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/CSVRowInputFormat.h rename to dbms/Processors/Formats/Impl/CSVRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/CSVRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/CSVRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/CSVRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/CSVRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/CSVRowOutputFormat.h b/dbms/Processors/Formats/Impl/CSVRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/CSVRowOutputFormat.h rename to dbms/Processors/Formats/Impl/CSVRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp b/dbms/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/CapnProtoRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.h b/dbms/Processors/Formats/Impl/CapnProtoRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/CapnProtoRowInputFormat.h rename to dbms/Processors/Formats/Impl/CapnProtoRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ConstantExpressionTemplate.cpp b/dbms/Processors/Formats/Impl/ConstantExpressionTemplate.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ConstantExpressionTemplate.cpp rename to dbms/Processors/Formats/Impl/ConstantExpressionTemplate.cpp diff --git a/dbms/src/Processors/Formats/Impl/ConstantExpressionTemplate.h b/dbms/Processors/Formats/Impl/ConstantExpressionTemplate.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ConstantExpressionTemplate.h rename to dbms/Processors/Formats/Impl/ConstantExpressionTemplate.h diff --git a/dbms/src/Processors/Formats/Impl/JSONCompactEachRowRowInputFormat.cpp b/dbms/Processors/Formats/Impl/JSONCompactEachRowRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONCompactEachRowRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/JSONCompactEachRowRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/JSONCompactEachRowRowInputFormat.h b/dbms/Processors/Formats/Impl/JSONCompactEachRowRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONCompactEachRowRowInputFormat.h rename to dbms/Processors/Formats/Impl/JSONCompactEachRowRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.h b/dbms/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.h rename to dbms/Processors/Formats/Impl/JSONCompactEachRowRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/JSONCompactRowOutputFormat.h b/dbms/Processors/Formats/Impl/JSONCompactRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONCompactRowOutputFormat.h rename to dbms/Processors/Formats/Impl/JSONCompactRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp b/dbms/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/JSONEachRowRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.h b/dbms/Processors/Formats/Impl/JSONEachRowRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONEachRowRowInputFormat.h rename to dbms/Processors/Formats/Impl/JSONEachRowRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/JSONEachRowRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/JSONEachRowRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.h b/dbms/Processors/Formats/Impl/JSONEachRowRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONEachRowRowOutputFormat.h rename to dbms/Processors/Formats/Impl/JSONEachRowRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/JSONEachRowWithProgressRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/JSONEachRowWithProgressRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONEachRowWithProgressRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/JSONEachRowWithProgressRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/JSONEachRowWithProgressRowOutputFormat.h b/dbms/Processors/Formats/Impl/JSONEachRowWithProgressRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONEachRowWithProgressRowOutputFormat.h rename to dbms/Processors/Formats/Impl/JSONEachRowWithProgressRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/JSONRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/JSONRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/JSONRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/JSONRowOutputFormat.h b/dbms/Processors/Formats/Impl/JSONRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/JSONRowOutputFormat.h rename to dbms/Processors/Formats/Impl/JSONRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/MySQLOutputFormat.cpp b/dbms/Processors/Formats/Impl/MySQLOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/MySQLOutputFormat.cpp rename to dbms/Processors/Formats/Impl/MySQLOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/MySQLOutputFormat.h b/dbms/Processors/Formats/Impl/MySQLOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/MySQLOutputFormat.h rename to dbms/Processors/Formats/Impl/MySQLOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/NativeFormat.cpp b/dbms/Processors/Formats/Impl/NativeFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/NativeFormat.cpp rename to dbms/Processors/Formats/Impl/NativeFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/NullFormat.cpp b/dbms/Processors/Formats/Impl/NullFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/NullFormat.cpp rename to dbms/Processors/Formats/Impl/NullFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ODBCDriver2BlockOutputFormat.cpp b/dbms/Processors/Formats/Impl/ODBCDriver2BlockOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ODBCDriver2BlockOutputFormat.cpp rename to dbms/Processors/Formats/Impl/ODBCDriver2BlockOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ODBCDriver2BlockOutputFormat.h b/dbms/Processors/Formats/Impl/ODBCDriver2BlockOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ODBCDriver2BlockOutputFormat.h rename to dbms/Processors/Formats/Impl/ODBCDriver2BlockOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ODBCDriverBlockOutputFormat.cpp b/dbms/Processors/Formats/Impl/ODBCDriverBlockOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ODBCDriverBlockOutputFormat.cpp rename to dbms/Processors/Formats/Impl/ODBCDriverBlockOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ODBCDriverBlockOutputFormat.h b/dbms/Processors/Formats/Impl/ODBCDriverBlockOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ODBCDriverBlockOutputFormat.h rename to dbms/Processors/Formats/Impl/ODBCDriverBlockOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ORCBlockInputFormat.cpp b/dbms/Processors/Formats/Impl/ORCBlockInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ORCBlockInputFormat.cpp rename to dbms/Processors/Formats/Impl/ORCBlockInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ORCBlockInputFormat.h b/dbms/Processors/Formats/Impl/ORCBlockInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ORCBlockInputFormat.h rename to dbms/Processors/Formats/Impl/ORCBlockInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ParquetBlockInputFormat.cpp b/dbms/Processors/Formats/Impl/ParquetBlockInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ParquetBlockInputFormat.cpp rename to dbms/Processors/Formats/Impl/ParquetBlockInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ParquetBlockInputFormat.h b/dbms/Processors/Formats/Impl/ParquetBlockInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ParquetBlockInputFormat.h rename to dbms/Processors/Formats/Impl/ParquetBlockInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp b/dbms/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp rename to dbms/Processors/Formats/Impl/ParquetBlockOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ParquetBlockOutputFormat.h b/dbms/Processors/Formats/Impl/ParquetBlockOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ParquetBlockOutputFormat.h rename to dbms/Processors/Formats/Impl/ParquetBlockOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/PrettyBlockOutputFormat.cpp b/dbms/Processors/Formats/Impl/PrettyBlockOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/PrettyBlockOutputFormat.cpp rename to dbms/Processors/Formats/Impl/PrettyBlockOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/PrettyBlockOutputFormat.h b/dbms/Processors/Formats/Impl/PrettyBlockOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/PrettyBlockOutputFormat.h rename to dbms/Processors/Formats/Impl/PrettyBlockOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/PrettyCompactBlockOutputFormat.cpp b/dbms/Processors/Formats/Impl/PrettyCompactBlockOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/PrettyCompactBlockOutputFormat.cpp rename to dbms/Processors/Formats/Impl/PrettyCompactBlockOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/PrettyCompactBlockOutputFormat.h b/dbms/Processors/Formats/Impl/PrettyCompactBlockOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/PrettyCompactBlockOutputFormat.h rename to dbms/Processors/Formats/Impl/PrettyCompactBlockOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.cpp b/dbms/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.cpp rename to dbms/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.h b/dbms/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.h rename to dbms/Processors/Formats/Impl/PrettySpaceBlockOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ProtobufRowInputFormat.cpp b/dbms/Processors/Formats/Impl/ProtobufRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ProtobufRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/ProtobufRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ProtobufRowInputFormat.h b/dbms/Processors/Formats/Impl/ProtobufRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ProtobufRowInputFormat.h rename to dbms/Processors/Formats/Impl/ProtobufRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/ProtobufRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ProtobufRowOutputFormat.h b/dbms/Processors/Formats/Impl/ProtobufRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ProtobufRowOutputFormat.h rename to dbms/Processors/Formats/Impl/ProtobufRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/RegexpRowInputFormat.cpp b/dbms/Processors/Formats/Impl/RegexpRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/RegexpRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/RegexpRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/RegexpRowInputFormat.h b/dbms/Processors/Formats/Impl/RegexpRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/RegexpRowInputFormat.h rename to dbms/Processors/Formats/Impl/RegexpRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/TSKVRowInputFormat.cpp b/dbms/Processors/Formats/Impl/TSKVRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/TSKVRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/TSKVRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/TSKVRowInputFormat.h b/dbms/Processors/Formats/Impl/TSKVRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/TSKVRowInputFormat.h rename to dbms/Processors/Formats/Impl/TSKVRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/TSKVRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/TSKVRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/TSKVRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/TSKVRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/TSKVRowOutputFormat.h b/dbms/Processors/Formats/Impl/TSKVRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/TSKVRowOutputFormat.h rename to dbms/Processors/Formats/Impl/TSKVRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/TabSeparatedRawRowOutputFormat.h b/dbms/Processors/Formats/Impl/TabSeparatedRawRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/TabSeparatedRawRowOutputFormat.h rename to dbms/Processors/Formats/Impl/TabSeparatedRawRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp b/dbms/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/TabSeparatedRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.h b/dbms/Processors/Formats/Impl/TabSeparatedRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/TabSeparatedRowInputFormat.h rename to dbms/Processors/Formats/Impl/TabSeparatedRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/TabSeparatedRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/TabSeparatedRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.h b/dbms/Processors/Formats/Impl/TabSeparatedRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/TabSeparatedRowOutputFormat.h rename to dbms/Processors/Formats/Impl/TabSeparatedRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/TemplateBlockOutputFormat.cpp b/dbms/Processors/Formats/Impl/TemplateBlockOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/TemplateBlockOutputFormat.cpp rename to dbms/Processors/Formats/Impl/TemplateBlockOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/TemplateBlockOutputFormat.h b/dbms/Processors/Formats/Impl/TemplateBlockOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/TemplateBlockOutputFormat.h rename to dbms/Processors/Formats/Impl/TemplateBlockOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp b/dbms/Processors/Formats/Impl/TemplateRowInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/TemplateRowInputFormat.cpp rename to dbms/Processors/Formats/Impl/TemplateRowInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/TemplateRowInputFormat.h b/dbms/Processors/Formats/Impl/TemplateRowInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/TemplateRowInputFormat.h rename to dbms/Processors/Formats/Impl/TemplateRowInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp b/dbms/Processors/Formats/Impl/ValuesBlockInputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ValuesBlockInputFormat.cpp rename to dbms/Processors/Formats/Impl/ValuesBlockInputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ValuesBlockInputFormat.h b/dbms/Processors/Formats/Impl/ValuesBlockInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ValuesBlockInputFormat.h rename to dbms/Processors/Formats/Impl/ValuesBlockInputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/ValuesRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/ValuesRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/ValuesRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/ValuesRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/ValuesRowOutputFormat.h b/dbms/Processors/Formats/Impl/ValuesRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/ValuesRowOutputFormat.h rename to dbms/Processors/Formats/Impl/ValuesRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/VerticalRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/VerticalRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/VerticalRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/VerticalRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/VerticalRowOutputFormat.h b/dbms/Processors/Formats/Impl/VerticalRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/VerticalRowOutputFormat.h rename to dbms/Processors/Formats/Impl/VerticalRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/Impl/XMLRowOutputFormat.cpp b/dbms/Processors/Formats/Impl/XMLRowOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/Impl/XMLRowOutputFormat.cpp rename to dbms/Processors/Formats/Impl/XMLRowOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/Impl/XMLRowOutputFormat.h b/dbms/Processors/Formats/Impl/XMLRowOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/Impl/XMLRowOutputFormat.h rename to dbms/Processors/Formats/Impl/XMLRowOutputFormat.h diff --git a/dbms/src/Processors/Formats/InputStreamFromInputFormat.h b/dbms/Processors/Formats/InputStreamFromInputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/InputStreamFromInputFormat.h rename to dbms/Processors/Formats/InputStreamFromInputFormat.h diff --git a/dbms/src/Processors/Formats/LazyOutputFormat.cpp b/dbms/Processors/Formats/LazyOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/LazyOutputFormat.cpp rename to dbms/Processors/Formats/LazyOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/LazyOutputFormat.h b/dbms/Processors/Formats/LazyOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/LazyOutputFormat.h rename to dbms/Processors/Formats/LazyOutputFormat.h diff --git a/dbms/src/Processors/Formats/OutputStreamToOutputFormat.cpp b/dbms/Processors/Formats/OutputStreamToOutputFormat.cpp similarity index 100% rename from dbms/src/Processors/Formats/OutputStreamToOutputFormat.cpp rename to dbms/Processors/Formats/OutputStreamToOutputFormat.cpp diff --git a/dbms/src/Processors/Formats/OutputStreamToOutputFormat.h b/dbms/Processors/Formats/OutputStreamToOutputFormat.h similarity index 100% rename from dbms/src/Processors/Formats/OutputStreamToOutputFormat.h rename to dbms/Processors/Formats/OutputStreamToOutputFormat.h diff --git a/dbms/src/Processors/Formats/RowInputFormatWithDiagnosticInfo.cpp b/dbms/Processors/Formats/RowInputFormatWithDiagnosticInfo.cpp similarity index 100% rename from dbms/src/Processors/Formats/RowInputFormatWithDiagnosticInfo.cpp rename to dbms/Processors/Formats/RowInputFormatWithDiagnosticInfo.cpp diff --git a/dbms/src/Processors/Formats/RowInputFormatWithDiagnosticInfo.h b/dbms/Processors/Formats/RowInputFormatWithDiagnosticInfo.h similarity index 100% rename from dbms/src/Processors/Formats/RowInputFormatWithDiagnosticInfo.h rename to dbms/Processors/Formats/RowInputFormatWithDiagnosticInfo.h diff --git a/dbms/src/Processors/IAccumulatingTransform.cpp b/dbms/Processors/IAccumulatingTransform.cpp similarity index 100% rename from dbms/src/Processors/IAccumulatingTransform.cpp rename to dbms/Processors/IAccumulatingTransform.cpp diff --git a/dbms/src/Processors/IAccumulatingTransform.h b/dbms/Processors/IAccumulatingTransform.h similarity index 100% rename from dbms/src/Processors/IAccumulatingTransform.h rename to dbms/Processors/IAccumulatingTransform.h diff --git a/dbms/src/Processors/IInflatingTransform.cpp b/dbms/Processors/IInflatingTransform.cpp similarity index 100% rename from dbms/src/Processors/IInflatingTransform.cpp rename to dbms/Processors/IInflatingTransform.cpp diff --git a/dbms/src/Processors/IInflatingTransform.h b/dbms/Processors/IInflatingTransform.h similarity index 100% rename from dbms/src/Processors/IInflatingTransform.h rename to dbms/Processors/IInflatingTransform.h diff --git a/dbms/src/Processors/IProcessor.cpp b/dbms/Processors/IProcessor.cpp similarity index 100% rename from dbms/src/Processors/IProcessor.cpp rename to dbms/Processors/IProcessor.cpp diff --git a/dbms/src/Processors/IProcessor.h b/dbms/Processors/IProcessor.h similarity index 100% rename from dbms/src/Processors/IProcessor.h rename to dbms/Processors/IProcessor.h diff --git a/dbms/src/Processors/ISimpleTransform.cpp b/dbms/Processors/ISimpleTransform.cpp similarity index 100% rename from dbms/src/Processors/ISimpleTransform.cpp rename to dbms/Processors/ISimpleTransform.cpp diff --git a/dbms/src/Processors/ISimpleTransform.h b/dbms/Processors/ISimpleTransform.h similarity index 100% rename from dbms/src/Processors/ISimpleTransform.h rename to dbms/Processors/ISimpleTransform.h diff --git a/dbms/src/Processors/ISink.cpp b/dbms/Processors/ISink.cpp similarity index 100% rename from dbms/src/Processors/ISink.cpp rename to dbms/Processors/ISink.cpp diff --git a/dbms/src/Processors/ISink.h b/dbms/Processors/ISink.h similarity index 100% rename from dbms/src/Processors/ISink.h rename to dbms/Processors/ISink.h diff --git a/dbms/src/Processors/ISource.cpp b/dbms/Processors/ISource.cpp similarity index 100% rename from dbms/src/Processors/ISource.cpp rename to dbms/Processors/ISource.cpp diff --git a/dbms/src/Processors/ISource.h b/dbms/Processors/ISource.h similarity index 100% rename from dbms/src/Processors/ISource.h rename to dbms/Processors/ISource.h diff --git a/dbms/src/Processors/LimitTransform.cpp b/dbms/Processors/LimitTransform.cpp similarity index 100% rename from dbms/src/Processors/LimitTransform.cpp rename to dbms/Processors/LimitTransform.cpp diff --git a/dbms/src/Processors/LimitTransform.h b/dbms/Processors/LimitTransform.h similarity index 100% rename from dbms/src/Processors/LimitTransform.h rename to dbms/Processors/LimitTransform.h diff --git a/dbms/src/Processors/NullSink.h b/dbms/Processors/NullSink.h similarity index 100% rename from dbms/src/Processors/NullSink.h rename to dbms/Processors/NullSink.h diff --git a/dbms/src/Processors/Pipe.cpp b/dbms/Processors/Pipe.cpp similarity index 100% rename from dbms/src/Processors/Pipe.cpp rename to dbms/Processors/Pipe.cpp diff --git a/dbms/src/Processors/Pipe.h b/dbms/Processors/Pipe.h similarity index 100% rename from dbms/src/Processors/Pipe.h rename to dbms/Processors/Pipe.h diff --git a/dbms/src/Processors/Port.cpp b/dbms/Processors/Port.cpp similarity index 100% rename from dbms/src/Processors/Port.cpp rename to dbms/Processors/Port.cpp diff --git a/dbms/src/Processors/Port.h b/dbms/Processors/Port.h similarity index 100% rename from dbms/src/Processors/Port.h rename to dbms/Processors/Port.h diff --git a/dbms/src/Processors/QueryPipeline.cpp b/dbms/Processors/QueryPipeline.cpp similarity index 100% rename from dbms/src/Processors/QueryPipeline.cpp rename to dbms/Processors/QueryPipeline.cpp diff --git a/dbms/src/Processors/QueryPipeline.h b/dbms/Processors/QueryPipeline.h similarity index 100% rename from dbms/src/Processors/QueryPipeline.h rename to dbms/Processors/QueryPipeline.h diff --git a/dbms/src/Processors/QueueBuffer.h b/dbms/Processors/QueueBuffer.h similarity index 100% rename from dbms/src/Processors/QueueBuffer.h rename to dbms/Processors/QueueBuffer.h diff --git a/dbms/src/Processors/ResizeProcessor.cpp b/dbms/Processors/ResizeProcessor.cpp similarity index 100% rename from dbms/src/Processors/ResizeProcessor.cpp rename to dbms/Processors/ResizeProcessor.cpp diff --git a/dbms/src/Processors/ResizeProcessor.h b/dbms/Processors/ResizeProcessor.h similarity index 100% rename from dbms/src/Processors/ResizeProcessor.h rename to dbms/Processors/ResizeProcessor.h diff --git a/dbms/src/Processors/RowsBeforeLimitCounter.h b/dbms/Processors/RowsBeforeLimitCounter.h similarity index 100% rename from dbms/src/Processors/RowsBeforeLimitCounter.h rename to dbms/Processors/RowsBeforeLimitCounter.h diff --git a/dbms/src/Processors/Sources/NullSource.h b/dbms/Processors/Sources/NullSource.h similarity index 100% rename from dbms/src/Processors/Sources/NullSource.h rename to dbms/Processors/Sources/NullSource.h diff --git a/dbms/src/Processors/Sources/SinkToOutputStream.cpp b/dbms/Processors/Sources/SinkToOutputStream.cpp similarity index 100% rename from dbms/src/Processors/Sources/SinkToOutputStream.cpp rename to dbms/Processors/Sources/SinkToOutputStream.cpp diff --git a/dbms/src/Processors/Sources/SinkToOutputStream.h b/dbms/Processors/Sources/SinkToOutputStream.h similarity index 100% rename from dbms/src/Processors/Sources/SinkToOutputStream.h rename to dbms/Processors/Sources/SinkToOutputStream.h diff --git a/dbms/src/Processors/Sources/SourceFromInputStream.cpp b/dbms/Processors/Sources/SourceFromInputStream.cpp similarity index 100% rename from dbms/src/Processors/Sources/SourceFromInputStream.cpp rename to dbms/Processors/Sources/SourceFromInputStream.cpp diff --git a/dbms/src/Processors/Sources/SourceFromInputStream.h b/dbms/Processors/Sources/SourceFromInputStream.h similarity index 100% rename from dbms/src/Processors/Sources/SourceFromInputStream.h rename to dbms/Processors/Sources/SourceFromInputStream.h diff --git a/dbms/src/Processors/Sources/SourceFromSingleChunk.h b/dbms/Processors/Sources/SourceFromSingleChunk.h similarity index 100% rename from dbms/src/Processors/Sources/SourceFromSingleChunk.h rename to dbms/Processors/Sources/SourceFromSingleChunk.h diff --git a/dbms/src/Processors/Sources/SourceWithProgress.cpp b/dbms/Processors/Sources/SourceWithProgress.cpp similarity index 100% rename from dbms/src/Processors/Sources/SourceWithProgress.cpp rename to dbms/Processors/Sources/SourceWithProgress.cpp diff --git a/dbms/src/Processors/Sources/SourceWithProgress.h b/dbms/Processors/Sources/SourceWithProgress.h similarity index 100% rename from dbms/src/Processors/Sources/SourceWithProgress.h rename to dbms/Processors/Sources/SourceWithProgress.h diff --git a/dbms/src/Processors/Transforms/AddingConstColumnTransform.h b/dbms/Processors/Transforms/AddingConstColumnTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/AddingConstColumnTransform.h rename to dbms/Processors/Transforms/AddingConstColumnTransform.h diff --git a/dbms/src/Processors/Transforms/AddingMissedTransform.cpp b/dbms/Processors/Transforms/AddingMissedTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/AddingMissedTransform.cpp rename to dbms/Processors/Transforms/AddingMissedTransform.cpp diff --git a/dbms/src/Processors/Transforms/AddingMissedTransform.h b/dbms/Processors/Transforms/AddingMissedTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/AddingMissedTransform.h rename to dbms/Processors/Transforms/AddingMissedTransform.h diff --git a/dbms/src/Processors/Transforms/AggregatingTransform.cpp b/dbms/Processors/Transforms/AggregatingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/AggregatingTransform.cpp rename to dbms/Processors/Transforms/AggregatingTransform.cpp diff --git a/dbms/src/Processors/Transforms/AggregatingTransform.h b/dbms/Processors/Transforms/AggregatingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/AggregatingTransform.h rename to dbms/Processors/Transforms/AggregatingTransform.h diff --git a/dbms/src/Processors/Transforms/ConvertingTransform.cpp b/dbms/Processors/Transforms/ConvertingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/ConvertingTransform.cpp rename to dbms/Processors/Transforms/ConvertingTransform.cpp diff --git a/dbms/src/Processors/Transforms/ConvertingTransform.h b/dbms/Processors/Transforms/ConvertingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/ConvertingTransform.h rename to dbms/Processors/Transforms/ConvertingTransform.h diff --git a/dbms/src/Processors/Transforms/CreatingSetsTransform.cpp b/dbms/Processors/Transforms/CreatingSetsTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/CreatingSetsTransform.cpp rename to dbms/Processors/Transforms/CreatingSetsTransform.cpp diff --git a/dbms/src/Processors/Transforms/CreatingSetsTransform.h b/dbms/Processors/Transforms/CreatingSetsTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/CreatingSetsTransform.h rename to dbms/Processors/Transforms/CreatingSetsTransform.h diff --git a/dbms/src/Processors/Transforms/CubeTransform.cpp b/dbms/Processors/Transforms/CubeTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/CubeTransform.cpp rename to dbms/Processors/Transforms/CubeTransform.cpp diff --git a/dbms/src/Processors/Transforms/CubeTransform.h b/dbms/Processors/Transforms/CubeTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/CubeTransform.h rename to dbms/Processors/Transforms/CubeTransform.h diff --git a/dbms/src/Processors/Transforms/DistinctTransform.cpp b/dbms/Processors/Transforms/DistinctTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/DistinctTransform.cpp rename to dbms/Processors/Transforms/DistinctTransform.cpp diff --git a/dbms/src/Processors/Transforms/DistinctTransform.h b/dbms/Processors/Transforms/DistinctTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/DistinctTransform.h rename to dbms/Processors/Transforms/DistinctTransform.h diff --git a/dbms/src/Processors/Transforms/ExpressionTransform.cpp b/dbms/Processors/Transforms/ExpressionTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/ExpressionTransform.cpp rename to dbms/Processors/Transforms/ExpressionTransform.cpp diff --git a/dbms/src/Processors/Transforms/ExpressionTransform.h b/dbms/Processors/Transforms/ExpressionTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/ExpressionTransform.h rename to dbms/Processors/Transforms/ExpressionTransform.h diff --git a/dbms/src/Processors/Transforms/ExtremesTransform.cpp b/dbms/Processors/Transforms/ExtremesTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/ExtremesTransform.cpp rename to dbms/Processors/Transforms/ExtremesTransform.cpp diff --git a/dbms/src/Processors/Transforms/ExtremesTransform.h b/dbms/Processors/Transforms/ExtremesTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/ExtremesTransform.h rename to dbms/Processors/Transforms/ExtremesTransform.h diff --git a/dbms/src/Processors/Transforms/FillingTransform.cpp b/dbms/Processors/Transforms/FillingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/FillingTransform.cpp rename to dbms/Processors/Transforms/FillingTransform.cpp diff --git a/dbms/src/Processors/Transforms/FillingTransform.h b/dbms/Processors/Transforms/FillingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/FillingTransform.h rename to dbms/Processors/Transforms/FillingTransform.h diff --git a/dbms/src/Processors/Transforms/FilterTransform.cpp b/dbms/Processors/Transforms/FilterTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/FilterTransform.cpp rename to dbms/Processors/Transforms/FilterTransform.cpp diff --git a/dbms/src/Processors/Transforms/FilterTransform.h b/dbms/Processors/Transforms/FilterTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/FilterTransform.h rename to dbms/Processors/Transforms/FilterTransform.h diff --git a/dbms/src/Processors/Transforms/FinishSortingTransform.cpp b/dbms/Processors/Transforms/FinishSortingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/FinishSortingTransform.cpp rename to dbms/Processors/Transforms/FinishSortingTransform.cpp diff --git a/dbms/src/Processors/Transforms/FinishSortingTransform.h b/dbms/Processors/Transforms/FinishSortingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/FinishSortingTransform.h rename to dbms/Processors/Transforms/FinishSortingTransform.h diff --git a/dbms/src/Processors/Transforms/InflatingExpressionTransform.cpp b/dbms/Processors/Transforms/InflatingExpressionTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/InflatingExpressionTransform.cpp rename to dbms/Processors/Transforms/InflatingExpressionTransform.cpp diff --git a/dbms/src/Processors/Transforms/InflatingExpressionTransform.h b/dbms/Processors/Transforms/InflatingExpressionTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/InflatingExpressionTransform.h rename to dbms/Processors/Transforms/InflatingExpressionTransform.h diff --git a/dbms/src/Processors/Transforms/LimitByTransform.cpp b/dbms/Processors/Transforms/LimitByTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/LimitByTransform.cpp rename to dbms/Processors/Transforms/LimitByTransform.cpp diff --git a/dbms/src/Processors/Transforms/LimitByTransform.h b/dbms/Processors/Transforms/LimitByTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/LimitByTransform.h rename to dbms/Processors/Transforms/LimitByTransform.h diff --git a/dbms/src/Processors/Transforms/LimitsCheckingTransform.cpp b/dbms/Processors/Transforms/LimitsCheckingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/LimitsCheckingTransform.cpp rename to dbms/Processors/Transforms/LimitsCheckingTransform.cpp diff --git a/dbms/src/Processors/Transforms/LimitsCheckingTransform.h b/dbms/Processors/Transforms/LimitsCheckingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/LimitsCheckingTransform.h rename to dbms/Processors/Transforms/LimitsCheckingTransform.h diff --git a/dbms/src/Processors/Transforms/MaterializingTransform.cpp b/dbms/Processors/Transforms/MaterializingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/MaterializingTransform.cpp rename to dbms/Processors/Transforms/MaterializingTransform.cpp diff --git a/dbms/src/Processors/Transforms/MaterializingTransform.h b/dbms/Processors/Transforms/MaterializingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/MaterializingTransform.h rename to dbms/Processors/Transforms/MaterializingTransform.h diff --git a/dbms/src/Processors/Transforms/MergeSortingTransform.cpp b/dbms/Processors/Transforms/MergeSortingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/MergeSortingTransform.cpp rename to dbms/Processors/Transforms/MergeSortingTransform.cpp diff --git a/dbms/src/Processors/Transforms/MergeSortingTransform.h b/dbms/Processors/Transforms/MergeSortingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/MergeSortingTransform.h rename to dbms/Processors/Transforms/MergeSortingTransform.h diff --git a/dbms/src/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.cpp b/dbms/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.cpp rename to dbms/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.cpp diff --git a/dbms/src/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.h b/dbms/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.h rename to dbms/Processors/Transforms/MergingAggregatedMemoryEfficientTransform.h diff --git a/dbms/src/Processors/Transforms/MergingAggregatedTransform.cpp b/dbms/Processors/Transforms/MergingAggregatedTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/MergingAggregatedTransform.cpp rename to dbms/Processors/Transforms/MergingAggregatedTransform.cpp diff --git a/dbms/src/Processors/Transforms/MergingAggregatedTransform.h b/dbms/Processors/Transforms/MergingAggregatedTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/MergingAggregatedTransform.h rename to dbms/Processors/Transforms/MergingAggregatedTransform.h diff --git a/dbms/src/Processors/Transforms/MergingSortedTransform.cpp b/dbms/Processors/Transforms/MergingSortedTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/MergingSortedTransform.cpp rename to dbms/Processors/Transforms/MergingSortedTransform.cpp diff --git a/dbms/src/Processors/Transforms/MergingSortedTransform.h b/dbms/Processors/Transforms/MergingSortedTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/MergingSortedTransform.h rename to dbms/Processors/Transforms/MergingSortedTransform.h diff --git a/dbms/src/Processors/Transforms/PartialSortingTransform.cpp b/dbms/Processors/Transforms/PartialSortingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/PartialSortingTransform.cpp rename to dbms/Processors/Transforms/PartialSortingTransform.cpp diff --git a/dbms/src/Processors/Transforms/PartialSortingTransform.h b/dbms/Processors/Transforms/PartialSortingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/PartialSortingTransform.h rename to dbms/Processors/Transforms/PartialSortingTransform.h diff --git a/dbms/src/Processors/Transforms/ReverseTransform.cpp b/dbms/Processors/Transforms/ReverseTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/ReverseTransform.cpp rename to dbms/Processors/Transforms/ReverseTransform.cpp diff --git a/dbms/src/Processors/Transforms/ReverseTransform.h b/dbms/Processors/Transforms/ReverseTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/ReverseTransform.h rename to dbms/Processors/Transforms/ReverseTransform.h diff --git a/dbms/src/Processors/Transforms/RollupTransform.cpp b/dbms/Processors/Transforms/RollupTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/RollupTransform.cpp rename to dbms/Processors/Transforms/RollupTransform.cpp diff --git a/dbms/src/Processors/Transforms/RollupTransform.h b/dbms/Processors/Transforms/RollupTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/RollupTransform.h rename to dbms/Processors/Transforms/RollupTransform.h diff --git a/dbms/src/Processors/Transforms/SortingTransform.cpp b/dbms/Processors/Transforms/SortingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/SortingTransform.cpp rename to dbms/Processors/Transforms/SortingTransform.cpp diff --git a/dbms/src/Processors/Transforms/SortingTransform.h b/dbms/Processors/Transforms/SortingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/SortingTransform.h rename to dbms/Processors/Transforms/SortingTransform.h diff --git a/dbms/src/Processors/Transforms/TotalsHavingTransform.cpp b/dbms/Processors/Transforms/TotalsHavingTransform.cpp similarity index 100% rename from dbms/src/Processors/Transforms/TotalsHavingTransform.cpp rename to dbms/Processors/Transforms/TotalsHavingTransform.cpp diff --git a/dbms/src/Processors/Transforms/TotalsHavingTransform.h b/dbms/Processors/Transforms/TotalsHavingTransform.h similarity index 100% rename from dbms/src/Processors/Transforms/TotalsHavingTransform.h rename to dbms/Processors/Transforms/TotalsHavingTransform.h diff --git a/dbms/src/Processors/printPipeline.h b/dbms/Processors/printPipeline.h similarity index 100% rename from dbms/src/Processors/printPipeline.h rename to dbms/Processors/printPipeline.h diff --git a/dbms/src/Processors/tests/CMakeLists.txt b/dbms/Processors/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Processors/tests/CMakeLists.txt rename to dbms/Processors/tests/CMakeLists.txt diff --git a/dbms/src/Processors/tests/gtest_exception_on_incorrect_pipeline.cpp b/dbms/Processors/tests/gtest_exception_on_incorrect_pipeline.cpp similarity index 100% rename from dbms/src/Processors/tests/gtest_exception_on_incorrect_pipeline.cpp rename to dbms/Processors/tests/gtest_exception_on_incorrect_pipeline.cpp diff --git a/dbms/src/Processors/tests/processors_test.cpp b/dbms/Processors/tests/processors_test.cpp similarity index 100% rename from dbms/src/Processors/tests/processors_test.cpp rename to dbms/Processors/tests/processors_test.cpp diff --git a/dbms/src/Processors/tests/processors_test_aggregation.cpp b/dbms/Processors/tests/processors_test_aggregation.cpp similarity index 100% rename from dbms/src/Processors/tests/processors_test_aggregation.cpp rename to dbms/Processors/tests/processors_test_aggregation.cpp diff --git a/dbms/src/Processors/tests/processors_test_chain.cpp b/dbms/Processors/tests/processors_test_chain.cpp similarity index 100% rename from dbms/src/Processors/tests/processors_test_chain.cpp rename to dbms/Processors/tests/processors_test_chain.cpp diff --git a/dbms/src/Processors/tests/processors_test_expand_pipeline.cpp b/dbms/Processors/tests/processors_test_expand_pipeline.cpp similarity index 100% rename from dbms/src/Processors/tests/processors_test_expand_pipeline.cpp rename to dbms/Processors/tests/processors_test_expand_pipeline.cpp diff --git a/dbms/src/Processors/tests/processors_test_merge.cpp b/dbms/Processors/tests/processors_test_merge.cpp similarity index 100% rename from dbms/src/Processors/tests/processors_test_merge.cpp rename to dbms/Processors/tests/processors_test_merge.cpp diff --git a/dbms/src/Processors/tests/processors_test_merge_sorting_transform.cpp b/dbms/Processors/tests/processors_test_merge_sorting_transform.cpp similarity index 100% rename from dbms/src/Processors/tests/processors_test_merge_sorting_transform.cpp rename to dbms/Processors/tests/processors_test_merge_sorting_transform.cpp diff --git a/dbms/src/Processors/tests/processors_test_merging_sorted_transform.cpp b/dbms/Processors/tests/processors_test_merging_sorted_transform.cpp similarity index 100% rename from dbms/src/Processors/tests/processors_test_merging_sorted_transform.cpp rename to dbms/Processors/tests/processors_test_merging_sorted_transform.cpp diff --git a/dbms/src/Storages/AlterCommands.cpp b/dbms/Storages/AlterCommands.cpp similarity index 100% rename from dbms/src/Storages/AlterCommands.cpp rename to dbms/Storages/AlterCommands.cpp diff --git a/dbms/src/Storages/AlterCommands.h b/dbms/Storages/AlterCommands.h similarity index 100% rename from dbms/src/Storages/AlterCommands.h rename to dbms/Storages/AlterCommands.h diff --git a/dbms/src/Storages/CMakeLists.txt b/dbms/Storages/CMakeLists.txt similarity index 100% rename from dbms/src/Storages/CMakeLists.txt rename to dbms/Storages/CMakeLists.txt diff --git a/dbms/src/Storages/CheckResults.h b/dbms/Storages/CheckResults.h similarity index 100% rename from dbms/src/Storages/CheckResults.h rename to dbms/Storages/CheckResults.h diff --git a/dbms/src/Storages/ColumnCodec.h b/dbms/Storages/ColumnCodec.h similarity index 100% rename from dbms/src/Storages/ColumnCodec.h rename to dbms/Storages/ColumnCodec.h diff --git a/dbms/src/Storages/ColumnDefault.cpp b/dbms/Storages/ColumnDefault.cpp similarity index 100% rename from dbms/src/Storages/ColumnDefault.cpp rename to dbms/Storages/ColumnDefault.cpp diff --git a/dbms/src/Storages/ColumnDefault.h b/dbms/Storages/ColumnDefault.h similarity index 100% rename from dbms/src/Storages/ColumnDefault.h rename to dbms/Storages/ColumnDefault.h diff --git a/dbms/src/Storages/ColumnDependency.h b/dbms/Storages/ColumnDependency.h similarity index 100% rename from dbms/src/Storages/ColumnDependency.h rename to dbms/Storages/ColumnDependency.h diff --git a/dbms/src/Storages/ColumnsDescription.cpp b/dbms/Storages/ColumnsDescription.cpp similarity index 100% rename from dbms/src/Storages/ColumnsDescription.cpp rename to dbms/Storages/ColumnsDescription.cpp diff --git a/dbms/src/Storages/ColumnsDescription.h b/dbms/Storages/ColumnsDescription.h similarity index 100% rename from dbms/src/Storages/ColumnsDescription.h rename to dbms/Storages/ColumnsDescription.h diff --git a/dbms/src/Storages/CompressionCodecSelector.h b/dbms/Storages/CompressionCodecSelector.h similarity index 100% rename from dbms/src/Storages/CompressionCodecSelector.h rename to dbms/Storages/CompressionCodecSelector.h diff --git a/dbms/src/Storages/ConstraintsDescription.cpp b/dbms/Storages/ConstraintsDescription.cpp similarity index 100% rename from dbms/src/Storages/ConstraintsDescription.cpp rename to dbms/Storages/ConstraintsDescription.cpp diff --git a/dbms/src/Storages/ConstraintsDescription.h b/dbms/Storages/ConstraintsDescription.h similarity index 100% rename from dbms/src/Storages/ConstraintsDescription.h rename to dbms/Storages/ConstraintsDescription.h diff --git a/dbms/src/Storages/Distributed/DirectoryMonitor.cpp b/dbms/Storages/Distributed/DirectoryMonitor.cpp similarity index 100% rename from dbms/src/Storages/Distributed/DirectoryMonitor.cpp rename to dbms/Storages/Distributed/DirectoryMonitor.cpp diff --git a/dbms/src/Storages/Distributed/DirectoryMonitor.h b/dbms/Storages/Distributed/DirectoryMonitor.h similarity index 100% rename from dbms/src/Storages/Distributed/DirectoryMonitor.h rename to dbms/Storages/Distributed/DirectoryMonitor.h diff --git a/dbms/src/Storages/Distributed/DistributedBlockOutputStream.cpp b/dbms/Storages/Distributed/DistributedBlockOutputStream.cpp similarity index 100% rename from dbms/src/Storages/Distributed/DistributedBlockOutputStream.cpp rename to dbms/Storages/Distributed/DistributedBlockOutputStream.cpp diff --git a/dbms/src/Storages/Distributed/DistributedBlockOutputStream.h b/dbms/Storages/Distributed/DistributedBlockOutputStream.h similarity index 100% rename from dbms/src/Storages/Distributed/DistributedBlockOutputStream.h rename to dbms/Storages/Distributed/DistributedBlockOutputStream.h diff --git a/dbms/src/Storages/IStorage.cpp b/dbms/Storages/IStorage.cpp similarity index 100% rename from dbms/src/Storages/IStorage.cpp rename to dbms/Storages/IStorage.cpp diff --git a/dbms/src/Storages/IStorage.h b/dbms/Storages/IStorage.h similarity index 100% rename from dbms/src/Storages/IStorage.h rename to dbms/Storages/IStorage.h diff --git a/dbms/src/Storages/IStorage_fwd.h b/dbms/Storages/IStorage_fwd.h similarity index 100% rename from dbms/src/Storages/IStorage_fwd.h rename to dbms/Storages/IStorage_fwd.h diff --git a/dbms/src/Storages/IndicesDescription.cpp b/dbms/Storages/IndicesDescription.cpp similarity index 100% rename from dbms/src/Storages/IndicesDescription.cpp rename to dbms/Storages/IndicesDescription.cpp diff --git a/dbms/src/Storages/IndicesDescription.h b/dbms/Storages/IndicesDescription.h similarity index 100% rename from dbms/src/Storages/IndicesDescription.h rename to dbms/Storages/IndicesDescription.h diff --git a/dbms/src/Storages/Kafka/Buffer_fwd.h b/dbms/Storages/Kafka/Buffer_fwd.h similarity index 100% rename from dbms/src/Storages/Kafka/Buffer_fwd.h rename to dbms/Storages/Kafka/Buffer_fwd.h diff --git a/dbms/src/Storages/Kafka/KafkaBlockInputStream.cpp b/dbms/Storages/Kafka/KafkaBlockInputStream.cpp similarity index 100% rename from dbms/src/Storages/Kafka/KafkaBlockInputStream.cpp rename to dbms/Storages/Kafka/KafkaBlockInputStream.cpp diff --git a/dbms/src/Storages/Kafka/KafkaBlockInputStream.h b/dbms/Storages/Kafka/KafkaBlockInputStream.h similarity index 100% rename from dbms/src/Storages/Kafka/KafkaBlockInputStream.h rename to dbms/Storages/Kafka/KafkaBlockInputStream.h diff --git a/dbms/src/Storages/Kafka/KafkaBlockOutputStream.cpp b/dbms/Storages/Kafka/KafkaBlockOutputStream.cpp similarity index 100% rename from dbms/src/Storages/Kafka/KafkaBlockOutputStream.cpp rename to dbms/Storages/Kafka/KafkaBlockOutputStream.cpp diff --git a/dbms/src/Storages/Kafka/KafkaBlockOutputStream.h b/dbms/Storages/Kafka/KafkaBlockOutputStream.h similarity index 100% rename from dbms/src/Storages/Kafka/KafkaBlockOutputStream.h rename to dbms/Storages/Kafka/KafkaBlockOutputStream.h diff --git a/dbms/src/Storages/Kafka/KafkaSettings.cpp b/dbms/Storages/Kafka/KafkaSettings.cpp similarity index 100% rename from dbms/src/Storages/Kafka/KafkaSettings.cpp rename to dbms/Storages/Kafka/KafkaSettings.cpp diff --git a/dbms/src/Storages/Kafka/KafkaSettings.h b/dbms/Storages/Kafka/KafkaSettings.h similarity index 100% rename from dbms/src/Storages/Kafka/KafkaSettings.h rename to dbms/Storages/Kafka/KafkaSettings.h diff --git a/dbms/src/Storages/Kafka/ReadBufferFromKafkaConsumer.cpp b/dbms/Storages/Kafka/ReadBufferFromKafkaConsumer.cpp similarity index 100% rename from dbms/src/Storages/Kafka/ReadBufferFromKafkaConsumer.cpp rename to dbms/Storages/Kafka/ReadBufferFromKafkaConsumer.cpp diff --git a/dbms/src/Storages/Kafka/ReadBufferFromKafkaConsumer.h b/dbms/Storages/Kafka/ReadBufferFromKafkaConsumer.h similarity index 100% rename from dbms/src/Storages/Kafka/ReadBufferFromKafkaConsumer.h rename to dbms/Storages/Kafka/ReadBufferFromKafkaConsumer.h diff --git a/dbms/src/Storages/Kafka/StorageKafka.cpp b/dbms/Storages/Kafka/StorageKafka.cpp similarity index 100% rename from dbms/src/Storages/Kafka/StorageKafka.cpp rename to dbms/Storages/Kafka/StorageKafka.cpp diff --git a/dbms/src/Storages/Kafka/StorageKafka.h b/dbms/Storages/Kafka/StorageKafka.h similarity index 100% rename from dbms/src/Storages/Kafka/StorageKafka.h rename to dbms/Storages/Kafka/StorageKafka.h diff --git a/dbms/src/Storages/Kafka/WriteBufferToKafkaProducer.cpp b/dbms/Storages/Kafka/WriteBufferToKafkaProducer.cpp similarity index 100% rename from dbms/src/Storages/Kafka/WriteBufferToKafkaProducer.cpp rename to dbms/Storages/Kafka/WriteBufferToKafkaProducer.cpp diff --git a/dbms/src/Storages/Kafka/WriteBufferToKafkaProducer.h b/dbms/Storages/Kafka/WriteBufferToKafkaProducer.h similarity index 100% rename from dbms/src/Storages/Kafka/WriteBufferToKafkaProducer.h rename to dbms/Storages/Kafka/WriteBufferToKafkaProducer.h diff --git a/dbms/src/Storages/LiveView/LiveViewBlockInputStream.h b/dbms/Storages/LiveView/LiveViewBlockInputStream.h similarity index 100% rename from dbms/src/Storages/LiveView/LiveViewBlockInputStream.h rename to dbms/Storages/LiveView/LiveViewBlockInputStream.h diff --git a/dbms/src/Storages/LiveView/LiveViewBlockOutputStream.h b/dbms/Storages/LiveView/LiveViewBlockOutputStream.h similarity index 100% rename from dbms/src/Storages/LiveView/LiveViewBlockOutputStream.h rename to dbms/Storages/LiveView/LiveViewBlockOutputStream.h diff --git a/dbms/src/Storages/LiveView/LiveViewCommands.h b/dbms/Storages/LiveView/LiveViewCommands.h similarity index 100% rename from dbms/src/Storages/LiveView/LiveViewCommands.h rename to dbms/Storages/LiveView/LiveViewCommands.h diff --git a/dbms/src/Storages/LiveView/LiveViewEventsBlockInputStream.h b/dbms/Storages/LiveView/LiveViewEventsBlockInputStream.h similarity index 100% rename from dbms/src/Storages/LiveView/LiveViewEventsBlockInputStream.h rename to dbms/Storages/LiveView/LiveViewEventsBlockInputStream.h diff --git a/dbms/src/Storages/LiveView/StorageBlocks.h b/dbms/Storages/LiveView/StorageBlocks.h similarity index 100% rename from dbms/src/Storages/LiveView/StorageBlocks.h rename to dbms/Storages/LiveView/StorageBlocks.h diff --git a/dbms/src/Storages/LiveView/StorageLiveView.cpp b/dbms/Storages/LiveView/StorageLiveView.cpp similarity index 100% rename from dbms/src/Storages/LiveView/StorageLiveView.cpp rename to dbms/Storages/LiveView/StorageLiveView.cpp diff --git a/dbms/src/Storages/LiveView/StorageLiveView.h b/dbms/Storages/LiveView/StorageLiveView.h similarity index 100% rename from dbms/src/Storages/LiveView/StorageLiveView.h rename to dbms/Storages/LiveView/StorageLiveView.h diff --git a/dbms/src/Storages/MarkCache.h b/dbms/Storages/MarkCache.h similarity index 100% rename from dbms/src/Storages/MarkCache.h rename to dbms/Storages/MarkCache.h diff --git a/dbms/src/Storages/MergeTree/ActiveDataPartSet.cpp b/dbms/Storages/MergeTree/ActiveDataPartSet.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ActiveDataPartSet.cpp rename to dbms/Storages/MergeTree/ActiveDataPartSet.cpp diff --git a/dbms/src/Storages/MergeTree/ActiveDataPartSet.h b/dbms/Storages/MergeTree/ActiveDataPartSet.h similarity index 100% rename from dbms/src/Storages/MergeTree/ActiveDataPartSet.h rename to dbms/Storages/MergeTree/ActiveDataPartSet.h diff --git a/dbms/src/Storages/MergeTree/AllMergeSelector.cpp b/dbms/Storages/MergeTree/AllMergeSelector.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/AllMergeSelector.cpp rename to dbms/Storages/MergeTree/AllMergeSelector.cpp diff --git a/dbms/src/Storages/MergeTree/AllMergeSelector.h b/dbms/Storages/MergeTree/AllMergeSelector.h similarity index 100% rename from dbms/src/Storages/MergeTree/AllMergeSelector.h rename to dbms/Storages/MergeTree/AllMergeSelector.h diff --git a/dbms/src/Storages/MergeTree/BackgroundProcessingPool.cpp b/dbms/Storages/MergeTree/BackgroundProcessingPool.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/BackgroundProcessingPool.cpp rename to dbms/Storages/MergeTree/BackgroundProcessingPool.cpp diff --git a/dbms/src/Storages/MergeTree/BackgroundProcessingPool.h b/dbms/Storages/MergeTree/BackgroundProcessingPool.h similarity index 100% rename from dbms/src/Storages/MergeTree/BackgroundProcessingPool.h rename to dbms/Storages/MergeTree/BackgroundProcessingPool.h diff --git a/dbms/src/Storages/MergeTree/BoolMask.cpp b/dbms/Storages/MergeTree/BoolMask.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/BoolMask.cpp rename to dbms/Storages/MergeTree/BoolMask.cpp diff --git a/dbms/src/Storages/MergeTree/BoolMask.h b/dbms/Storages/MergeTree/BoolMask.h similarity index 100% rename from dbms/src/Storages/MergeTree/BoolMask.h rename to dbms/Storages/MergeTree/BoolMask.h diff --git a/dbms/src/Storages/MergeTree/DataPartsExchange.cpp b/dbms/Storages/MergeTree/DataPartsExchange.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/DataPartsExchange.cpp rename to dbms/Storages/MergeTree/DataPartsExchange.cpp diff --git a/dbms/src/Storages/MergeTree/DataPartsExchange.h b/dbms/Storages/MergeTree/DataPartsExchange.h similarity index 100% rename from dbms/src/Storages/MergeTree/DataPartsExchange.h rename to dbms/Storages/MergeTree/DataPartsExchange.h diff --git a/dbms/src/Storages/MergeTree/EphemeralLockInZooKeeper.cpp b/dbms/Storages/MergeTree/EphemeralLockInZooKeeper.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/EphemeralLockInZooKeeper.cpp rename to dbms/Storages/MergeTree/EphemeralLockInZooKeeper.cpp diff --git a/dbms/src/Storages/MergeTree/EphemeralLockInZooKeeper.h b/dbms/Storages/MergeTree/EphemeralLockInZooKeeper.h similarity index 100% rename from dbms/src/Storages/MergeTree/EphemeralLockInZooKeeper.h rename to dbms/Storages/MergeTree/EphemeralLockInZooKeeper.h diff --git a/dbms/src/Storages/MergeTree/IMergeTreeDataPart.cpp b/dbms/Storages/MergeTree/IMergeTreeDataPart.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/IMergeTreeDataPart.cpp rename to dbms/Storages/MergeTree/IMergeTreeDataPart.cpp diff --git a/dbms/src/Storages/MergeTree/IMergeTreeDataPart.h b/dbms/Storages/MergeTree/IMergeTreeDataPart.h similarity index 100% rename from dbms/src/Storages/MergeTree/IMergeTreeDataPart.h rename to dbms/Storages/MergeTree/IMergeTreeDataPart.h diff --git a/dbms/src/Storages/MergeTree/IMergeTreeDataPartWriter.cpp b/dbms/Storages/MergeTree/IMergeTreeDataPartWriter.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/IMergeTreeDataPartWriter.cpp rename to dbms/Storages/MergeTree/IMergeTreeDataPartWriter.cpp diff --git a/dbms/src/Storages/MergeTree/IMergeTreeDataPartWriter.h b/dbms/Storages/MergeTree/IMergeTreeDataPartWriter.h similarity index 100% rename from dbms/src/Storages/MergeTree/IMergeTreeDataPartWriter.h rename to dbms/Storages/MergeTree/IMergeTreeDataPartWriter.h diff --git a/dbms/src/Storages/MergeTree/IMergeTreeReader.cpp b/dbms/Storages/MergeTree/IMergeTreeReader.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/IMergeTreeReader.cpp rename to dbms/Storages/MergeTree/IMergeTreeReader.cpp diff --git a/dbms/src/Storages/MergeTree/IMergeTreeReader.h b/dbms/Storages/MergeTree/IMergeTreeReader.h similarity index 100% rename from dbms/src/Storages/MergeTree/IMergeTreeReader.h rename to dbms/Storages/MergeTree/IMergeTreeReader.h diff --git a/dbms/src/Storages/MergeTree/IMergedBlockOutputStream.cpp b/dbms/Storages/MergeTree/IMergedBlockOutputStream.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/IMergedBlockOutputStream.cpp rename to dbms/Storages/MergeTree/IMergedBlockOutputStream.cpp diff --git a/dbms/src/Storages/MergeTree/IMergedBlockOutputStream.h b/dbms/Storages/MergeTree/IMergedBlockOutputStream.h similarity index 100% rename from dbms/src/Storages/MergeTree/IMergedBlockOutputStream.h rename to dbms/Storages/MergeTree/IMergedBlockOutputStream.h diff --git a/dbms/src/Storages/MergeTree/KeyCondition.cpp b/dbms/Storages/MergeTree/KeyCondition.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/KeyCondition.cpp rename to dbms/Storages/MergeTree/KeyCondition.cpp diff --git a/dbms/src/Storages/MergeTree/KeyCondition.h b/dbms/Storages/MergeTree/KeyCondition.h similarity index 100% rename from dbms/src/Storages/MergeTree/KeyCondition.h rename to dbms/Storages/MergeTree/KeyCondition.h diff --git a/dbms/src/Storages/MergeTree/LevelMergeSelector.cpp b/dbms/Storages/MergeTree/LevelMergeSelector.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/LevelMergeSelector.cpp rename to dbms/Storages/MergeTree/LevelMergeSelector.cpp diff --git a/dbms/src/Storages/MergeTree/LevelMergeSelector.h b/dbms/Storages/MergeTree/LevelMergeSelector.h similarity index 100% rename from dbms/src/Storages/MergeTree/LevelMergeSelector.h rename to dbms/Storages/MergeTree/LevelMergeSelector.h diff --git a/dbms/src/Storages/MergeTree/MarkRange.h b/dbms/Storages/MergeTree/MarkRange.h similarity index 100% rename from dbms/src/Storages/MergeTree/MarkRange.h rename to dbms/Storages/MergeTree/MarkRange.h diff --git a/dbms/src/Storages/MergeTree/MergeList.cpp b/dbms/Storages/MergeTree/MergeList.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeList.cpp rename to dbms/Storages/MergeTree/MergeList.cpp diff --git a/dbms/src/Storages/MergeTree/MergeList.h b/dbms/Storages/MergeTree/MergeList.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeList.h rename to dbms/Storages/MergeTree/MergeList.h diff --git a/dbms/src/Storages/MergeTree/MergeSelector.h b/dbms/Storages/MergeTree/MergeSelector.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeSelector.h rename to dbms/Storages/MergeTree/MergeSelector.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp b/dbms/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp rename to dbms/Storages/MergeTree/MergeTreeBaseSelectProcessor.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.h b/dbms/Storages/MergeTree/MergeTreeBaseSelectProcessor.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeBaseSelectProcessor.h rename to dbms/Storages/MergeTree/MergeTreeBaseSelectProcessor.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeBlockOutputStream.cpp b/dbms/Storages/MergeTree/MergeTreeBlockOutputStream.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeBlockOutputStream.cpp rename to dbms/Storages/MergeTree/MergeTreeBlockOutputStream.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeBlockOutputStream.h b/dbms/Storages/MergeTree/MergeTreeBlockOutputStream.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeBlockOutputStream.h rename to dbms/Storages/MergeTree/MergeTreeBlockOutputStream.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeBlockReadUtils.cpp b/dbms/Storages/MergeTree/MergeTreeBlockReadUtils.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeBlockReadUtils.cpp rename to dbms/Storages/MergeTree/MergeTreeBlockReadUtils.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeBlockReadUtils.h b/dbms/Storages/MergeTree/MergeTreeBlockReadUtils.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeBlockReadUtils.h rename to dbms/Storages/MergeTree/MergeTreeBlockReadUtils.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeData.cpp b/dbms/Storages/MergeTree/MergeTreeData.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeData.cpp rename to dbms/Storages/MergeTree/MergeTreeData.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeData.h b/dbms/Storages/MergeTree/MergeTreeData.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeData.h rename to dbms/Storages/MergeTree/MergeTreeData.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataFormatVersion.h b/dbms/Storages/MergeTree/MergeTreeDataFormatVersion.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataFormatVersion.h rename to dbms/Storages/MergeTree/MergeTreeDataFormatVersion.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataMergerMutator.cpp b/dbms/Storages/MergeTree/MergeTreeDataMergerMutator.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataMergerMutator.cpp rename to dbms/Storages/MergeTree/MergeTreeDataMergerMutator.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataMergerMutator.h b/dbms/Storages/MergeTree/MergeTreeDataMergerMutator.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataMergerMutator.h rename to dbms/Storages/MergeTree/MergeTreeDataMergerMutator.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp b/dbms/Storages/MergeTree/MergeTreeDataPartChecksum.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartChecksum.cpp rename to dbms/Storages/MergeTree/MergeTreeDataPartChecksum.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartChecksum.h b/dbms/Storages/MergeTree/MergeTreeDataPartChecksum.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartChecksum.h rename to dbms/Storages/MergeTree/MergeTreeDataPartChecksum.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartCompact.cpp b/dbms/Storages/MergeTree/MergeTreeDataPartCompact.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartCompact.cpp rename to dbms/Storages/MergeTree/MergeTreeDataPartCompact.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartCompact.h b/dbms/Storages/MergeTree/MergeTreeDataPartCompact.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartCompact.h rename to dbms/Storages/MergeTree/MergeTreeDataPartCompact.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartTTLInfo.cpp b/dbms/Storages/MergeTree/MergeTreeDataPartTTLInfo.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartTTLInfo.cpp rename to dbms/Storages/MergeTree/MergeTreeDataPartTTLInfo.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartTTLInfo.h b/dbms/Storages/MergeTree/MergeTreeDataPartTTLInfo.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartTTLInfo.h rename to dbms/Storages/MergeTree/MergeTreeDataPartTTLInfo.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartType.cpp b/dbms/Storages/MergeTree/MergeTreeDataPartType.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartType.cpp rename to dbms/Storages/MergeTree/MergeTreeDataPartType.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartType.h b/dbms/Storages/MergeTree/MergeTreeDataPartType.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartType.h rename to dbms/Storages/MergeTree/MergeTreeDataPartType.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartWide.cpp b/dbms/Storages/MergeTree/MergeTreeDataPartWide.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartWide.cpp rename to dbms/Storages/MergeTree/MergeTreeDataPartWide.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartWide.h b/dbms/Storages/MergeTree/MergeTreeDataPartWide.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartWide.h rename to dbms/Storages/MergeTree/MergeTreeDataPartWide.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartWriterCompact.cpp b/dbms/Storages/MergeTree/MergeTreeDataPartWriterCompact.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartWriterCompact.cpp rename to dbms/Storages/MergeTree/MergeTreeDataPartWriterCompact.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartWriterCompact.h b/dbms/Storages/MergeTree/MergeTreeDataPartWriterCompact.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartWriterCompact.h rename to dbms/Storages/MergeTree/MergeTreeDataPartWriterCompact.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartWriterWide.cpp b/dbms/Storages/MergeTree/MergeTreeDataPartWriterWide.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartWriterWide.cpp rename to dbms/Storages/MergeTree/MergeTreeDataPartWriterWide.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataPartWriterWide.h b/dbms/Storages/MergeTree/MergeTreeDataPartWriterWide.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataPartWriterWide.h rename to dbms/Storages/MergeTree/MergeTreeDataPartWriterWide.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp b/dbms/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp rename to dbms/Storages/MergeTree/MergeTreeDataSelectExecutor.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataSelectExecutor.h b/dbms/Storages/MergeTree/MergeTreeDataSelectExecutor.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataSelectExecutor.h rename to dbms/Storages/MergeTree/MergeTreeDataSelectExecutor.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataWriter.cpp b/dbms/Storages/MergeTree/MergeTreeDataWriter.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataWriter.cpp rename to dbms/Storages/MergeTree/MergeTreeDataWriter.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeDataWriter.h b/dbms/Storages/MergeTree/MergeTreeDataWriter.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeDataWriter.h rename to dbms/Storages/MergeTree/MergeTreeDataWriter.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIOSettings.h b/dbms/Storages/MergeTree/MergeTreeIOSettings.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIOSettings.h rename to dbms/Storages/MergeTree/MergeTreeIOSettings.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexAggregatorBloomFilter.cpp b/dbms/Storages/MergeTree/MergeTreeIndexAggregatorBloomFilter.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexAggregatorBloomFilter.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexAggregatorBloomFilter.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexAggregatorBloomFilter.h b/dbms/Storages/MergeTree/MergeTreeIndexAggregatorBloomFilter.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexAggregatorBloomFilter.h rename to dbms/Storages/MergeTree/MergeTreeIndexAggregatorBloomFilter.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp b/dbms/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexBloomFilter.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexBloomFilter.h b/dbms/Storages/MergeTree/MergeTreeIndexBloomFilter.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexBloomFilter.h rename to dbms/Storages/MergeTree/MergeTreeIndexBloomFilter.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexConditionBloomFilter.cpp b/dbms/Storages/MergeTree/MergeTreeIndexConditionBloomFilter.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexConditionBloomFilter.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexConditionBloomFilter.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexConditionBloomFilter.h b/dbms/Storages/MergeTree/MergeTreeIndexConditionBloomFilter.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexConditionBloomFilter.h rename to dbms/Storages/MergeTree/MergeTreeIndexConditionBloomFilter.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexFullText.cpp b/dbms/Storages/MergeTree/MergeTreeIndexFullText.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexFullText.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexFullText.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexFullText.h b/dbms/Storages/MergeTree/MergeTreeIndexFullText.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexFullText.h rename to dbms/Storages/MergeTree/MergeTreeIndexFullText.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexGranularity.cpp b/dbms/Storages/MergeTree/MergeTreeIndexGranularity.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexGranularity.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexGranularity.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexGranularity.h b/dbms/Storages/MergeTree/MergeTreeIndexGranularity.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexGranularity.h rename to dbms/Storages/MergeTree/MergeTreeIndexGranularity.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexGranularityInfo.cpp b/dbms/Storages/MergeTree/MergeTreeIndexGranularityInfo.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexGranularityInfo.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexGranularityInfo.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexGranularityInfo.h b/dbms/Storages/MergeTree/MergeTreeIndexGranularityInfo.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexGranularityInfo.h rename to dbms/Storages/MergeTree/MergeTreeIndexGranularityInfo.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexGranularityInfo.h.gch b/dbms/Storages/MergeTree/MergeTreeIndexGranularityInfo.h.gch similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexGranularityInfo.h.gch rename to dbms/Storages/MergeTree/MergeTreeIndexGranularityInfo.h.gch diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexGranuleBloomFilter.cpp b/dbms/Storages/MergeTree/MergeTreeIndexGranuleBloomFilter.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexGranuleBloomFilter.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexGranuleBloomFilter.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexGranuleBloomFilter.h b/dbms/Storages/MergeTree/MergeTreeIndexGranuleBloomFilter.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexGranuleBloomFilter.h rename to dbms/Storages/MergeTree/MergeTreeIndexGranuleBloomFilter.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexMinMax.cpp b/dbms/Storages/MergeTree/MergeTreeIndexMinMax.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexMinMax.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexMinMax.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexMinMax.h b/dbms/Storages/MergeTree/MergeTreeIndexMinMax.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexMinMax.h rename to dbms/Storages/MergeTree/MergeTreeIndexMinMax.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexReader.cpp b/dbms/Storages/MergeTree/MergeTreeIndexReader.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexReader.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexReader.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexReader.h b/dbms/Storages/MergeTree/MergeTreeIndexReader.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexReader.h rename to dbms/Storages/MergeTree/MergeTreeIndexReader.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexSet.cpp b/dbms/Storages/MergeTree/MergeTreeIndexSet.cpp similarity index 99% rename from dbms/src/Storages/MergeTree/MergeTreeIndexSet.cpp rename to dbms/Storages/MergeTree/MergeTreeIndexSet.cpp index f68184e2691..e888fb38822 100644 --- a/dbms/src/Storages/MergeTree/MergeTreeIndexSet.cpp +++ b/dbms/Storages/MergeTree/MergeTreeIndexSet.cpp @@ -239,7 +239,7 @@ MergeTreeIndexConditionSet::MergeTreeIndexConditionSet( return; /// Replace logical functions with bit functions. - /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/src/Storages/MergeTree/BoolMask.h). + /// Working with UInt8: last bit = can be true, previous = can be false (Like dbms/Storages/MergeTree/BoolMask.h). traverseAST(expression_ast); auto syntax_analyzer_result = SyntaxAnalyzer(context).analyze( diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndexSet.h b/dbms/Storages/MergeTree/MergeTreeIndexSet.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndexSet.h rename to dbms/Storages/MergeTree/MergeTreeIndexSet.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndices.cpp b/dbms/Storages/MergeTree/MergeTreeIndices.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndices.cpp rename to dbms/Storages/MergeTree/MergeTreeIndices.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeIndices.h b/dbms/Storages/MergeTree/MergeTreeIndices.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeIndices.h rename to dbms/Storages/MergeTree/MergeTreeIndices.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeMarksLoader.cpp b/dbms/Storages/MergeTree/MergeTreeMarksLoader.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeMarksLoader.cpp rename to dbms/Storages/MergeTree/MergeTreeMarksLoader.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeMarksLoader.h b/dbms/Storages/MergeTree/MergeTreeMarksLoader.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeMarksLoader.h rename to dbms/Storages/MergeTree/MergeTreeMarksLoader.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeMutationEntry.cpp b/dbms/Storages/MergeTree/MergeTreeMutationEntry.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeMutationEntry.cpp rename to dbms/Storages/MergeTree/MergeTreeMutationEntry.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeMutationEntry.h b/dbms/Storages/MergeTree/MergeTreeMutationEntry.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeMutationEntry.h rename to dbms/Storages/MergeTree/MergeTreeMutationEntry.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeMutationStatus.h b/dbms/Storages/MergeTree/MergeTreeMutationStatus.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeMutationStatus.h rename to dbms/Storages/MergeTree/MergeTreeMutationStatus.h diff --git a/dbms/src/Storages/MergeTree/MergeTreePartInfo.cpp b/dbms/Storages/MergeTree/MergeTreePartInfo.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreePartInfo.cpp rename to dbms/Storages/MergeTree/MergeTreePartInfo.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreePartInfo.h b/dbms/Storages/MergeTree/MergeTreePartInfo.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreePartInfo.h rename to dbms/Storages/MergeTree/MergeTreePartInfo.h diff --git a/dbms/src/Storages/MergeTree/MergeTreePartition.cpp b/dbms/Storages/MergeTree/MergeTreePartition.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreePartition.cpp rename to dbms/Storages/MergeTree/MergeTreePartition.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreePartition.h b/dbms/Storages/MergeTree/MergeTreePartition.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreePartition.h rename to dbms/Storages/MergeTree/MergeTreePartition.h diff --git a/dbms/src/Storages/MergeTree/MergeTreePartsMover.cpp b/dbms/Storages/MergeTree/MergeTreePartsMover.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreePartsMover.cpp rename to dbms/Storages/MergeTree/MergeTreePartsMover.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreePartsMover.h b/dbms/Storages/MergeTree/MergeTreePartsMover.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreePartsMover.h rename to dbms/Storages/MergeTree/MergeTreePartsMover.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp b/dbms/Storages/MergeTree/MergeTreeRangeReader.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp rename to dbms/Storages/MergeTree/MergeTreeRangeReader.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeRangeReader.h b/dbms/Storages/MergeTree/MergeTreeRangeReader.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeRangeReader.h rename to dbms/Storages/MergeTree/MergeTreeRangeReader.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeReadPool.cpp b/dbms/Storages/MergeTree/MergeTreeReadPool.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReadPool.cpp rename to dbms/Storages/MergeTree/MergeTreeReadPool.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeReadPool.h b/dbms/Storages/MergeTree/MergeTreeReadPool.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReadPool.h rename to dbms/Storages/MergeTree/MergeTreeReadPool.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeReaderCompact.cpp b/dbms/Storages/MergeTree/MergeTreeReaderCompact.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReaderCompact.cpp rename to dbms/Storages/MergeTree/MergeTreeReaderCompact.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeReaderCompact.h b/dbms/Storages/MergeTree/MergeTreeReaderCompact.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReaderCompact.h rename to dbms/Storages/MergeTree/MergeTreeReaderCompact.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeReaderStream.cpp b/dbms/Storages/MergeTree/MergeTreeReaderStream.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReaderStream.cpp rename to dbms/Storages/MergeTree/MergeTreeReaderStream.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeReaderStream.h b/dbms/Storages/MergeTree/MergeTreeReaderStream.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReaderStream.h rename to dbms/Storages/MergeTree/MergeTreeReaderStream.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeReaderWide.cpp b/dbms/Storages/MergeTree/MergeTreeReaderWide.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReaderWide.cpp rename to dbms/Storages/MergeTree/MergeTreeReaderWide.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeReaderWide.h b/dbms/Storages/MergeTree/MergeTreeReaderWide.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReaderWide.h rename to dbms/Storages/MergeTree/MergeTreeReaderWide.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeReverseSelectProcessor.cpp b/dbms/Storages/MergeTree/MergeTreeReverseSelectProcessor.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReverseSelectProcessor.cpp rename to dbms/Storages/MergeTree/MergeTreeReverseSelectProcessor.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeReverseSelectProcessor.h b/dbms/Storages/MergeTree/MergeTreeReverseSelectProcessor.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeReverseSelectProcessor.h rename to dbms/Storages/MergeTree/MergeTreeReverseSelectProcessor.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeSelectProcessor.cpp b/dbms/Storages/MergeTree/MergeTreeSelectProcessor.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeSelectProcessor.cpp rename to dbms/Storages/MergeTree/MergeTreeSelectProcessor.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeSelectProcessor.h b/dbms/Storages/MergeTree/MergeTreeSelectProcessor.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeSelectProcessor.h rename to dbms/Storages/MergeTree/MergeTreeSelectProcessor.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeSequentialBlockInputStream.cpp b/dbms/Storages/MergeTree/MergeTreeSequentialBlockInputStream.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeSequentialBlockInputStream.cpp rename to dbms/Storages/MergeTree/MergeTreeSequentialBlockInputStream.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeSequentialBlockInputStream.h b/dbms/Storages/MergeTree/MergeTreeSequentialBlockInputStream.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeSequentialBlockInputStream.h rename to dbms/Storages/MergeTree/MergeTreeSequentialBlockInputStream.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeSettings.cpp b/dbms/Storages/MergeTree/MergeTreeSettings.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeSettings.cpp rename to dbms/Storages/MergeTree/MergeTreeSettings.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeSettings.h b/dbms/Storages/MergeTree/MergeTreeSettings.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeSettings.h rename to dbms/Storages/MergeTree/MergeTreeSettings.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeThreadSelectBlockInputProcessor.cpp b/dbms/Storages/MergeTree/MergeTreeThreadSelectBlockInputProcessor.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeThreadSelectBlockInputProcessor.cpp rename to dbms/Storages/MergeTree/MergeTreeThreadSelectBlockInputProcessor.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeThreadSelectBlockInputProcessor.h b/dbms/Storages/MergeTree/MergeTreeThreadSelectBlockInputProcessor.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeThreadSelectBlockInputProcessor.h rename to dbms/Storages/MergeTree/MergeTreeThreadSelectBlockInputProcessor.h diff --git a/dbms/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp b/dbms/Storages/MergeTree/MergeTreeWhereOptimizer.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeWhereOptimizer.cpp rename to dbms/Storages/MergeTree/MergeTreeWhereOptimizer.cpp diff --git a/dbms/src/Storages/MergeTree/MergeTreeWhereOptimizer.h b/dbms/Storages/MergeTree/MergeTreeWhereOptimizer.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergeTreeWhereOptimizer.h rename to dbms/Storages/MergeTree/MergeTreeWhereOptimizer.h diff --git a/dbms/src/Storages/MergeTree/MergedBlockOutputStream.cpp b/dbms/Storages/MergeTree/MergedBlockOutputStream.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergedBlockOutputStream.cpp rename to dbms/Storages/MergeTree/MergedBlockOutputStream.cpp diff --git a/dbms/src/Storages/MergeTree/MergedBlockOutputStream.h b/dbms/Storages/MergeTree/MergedBlockOutputStream.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergedBlockOutputStream.h rename to dbms/Storages/MergeTree/MergedBlockOutputStream.h diff --git a/dbms/src/Storages/MergeTree/MergedColumnOnlyOutputStream.cpp b/dbms/Storages/MergeTree/MergedColumnOnlyOutputStream.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/MergedColumnOnlyOutputStream.cpp rename to dbms/Storages/MergeTree/MergedColumnOnlyOutputStream.cpp diff --git a/dbms/src/Storages/MergeTree/MergedColumnOnlyOutputStream.h b/dbms/Storages/MergeTree/MergedColumnOnlyOutputStream.h similarity index 100% rename from dbms/src/Storages/MergeTree/MergedColumnOnlyOutputStream.h rename to dbms/Storages/MergeTree/MergedColumnOnlyOutputStream.h diff --git a/dbms/src/Storages/MergeTree/PartDestinationType.h b/dbms/Storages/MergeTree/PartDestinationType.h similarity index 100% rename from dbms/src/Storages/MergeTree/PartDestinationType.h rename to dbms/Storages/MergeTree/PartDestinationType.h diff --git a/dbms/src/Storages/MergeTree/RPNBuilder.h b/dbms/Storages/MergeTree/RPNBuilder.h similarity index 100% rename from dbms/src/Storages/MergeTree/RPNBuilder.h rename to dbms/Storages/MergeTree/RPNBuilder.h diff --git a/dbms/src/Storages/MergeTree/RangesInDataPart.h b/dbms/Storages/MergeTree/RangesInDataPart.h similarity index 100% rename from dbms/src/Storages/MergeTree/RangesInDataPart.h rename to dbms/Storages/MergeTree/RangesInDataPart.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeAddress.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreeAddress.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeAddress.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreeAddress.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeAddress.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeAddress.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeAddress.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeAddress.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeAltersSequence.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreeAltersSequence.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeAltersSequence.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreeAltersSequence.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeAltersSequence.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeAltersSequence.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeAltersSequence.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeAltersSequence.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeCleanupThread.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeLogEntry.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreeLogEntry.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeLogEntry.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreeLogEntry.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeLogEntry.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeLogEntry.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeLogEntry.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeLogEntry.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeMutationEntry.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreeMutationEntry.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeMutationEntry.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreeMutationEntry.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeMutationEntry.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeMutationEntry.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeMutationEntry.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeMutationEntry.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.h b/dbms/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreePartCheckThread.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartHeader.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreePartHeader.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreePartHeader.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreePartHeader.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreePartHeader.h b/dbms/Storages/MergeTree/ReplicatedMergeTreePartHeader.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreePartHeader.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreePartHeader.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreeQueue.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeQueue.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeQueue.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeQueue.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQuorumAddedParts.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeQuorumAddedParts.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeQuorumAddedParts.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeQuorumAddedParts.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeQuorumEntry.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeQuorumEntry.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeQuorumEntry.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeQuorumEntry.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeRestartingThread.h diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeTableMetadata.cpp b/dbms/Storages/MergeTree/ReplicatedMergeTreeTableMetadata.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeTableMetadata.cpp rename to dbms/Storages/MergeTree/ReplicatedMergeTreeTableMetadata.cpp diff --git a/dbms/src/Storages/MergeTree/ReplicatedMergeTreeTableMetadata.h b/dbms/Storages/MergeTree/ReplicatedMergeTreeTableMetadata.h similarity index 100% rename from dbms/src/Storages/MergeTree/ReplicatedMergeTreeTableMetadata.h rename to dbms/Storages/MergeTree/ReplicatedMergeTreeTableMetadata.h diff --git a/dbms/src/Storages/MergeTree/SimpleMergeSelector.cpp b/dbms/Storages/MergeTree/SimpleMergeSelector.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/SimpleMergeSelector.cpp rename to dbms/Storages/MergeTree/SimpleMergeSelector.cpp diff --git a/dbms/src/Storages/MergeTree/SimpleMergeSelector.h b/dbms/Storages/MergeTree/SimpleMergeSelector.h similarity index 100% rename from dbms/src/Storages/MergeTree/SimpleMergeSelector.h rename to dbms/Storages/MergeTree/SimpleMergeSelector.h diff --git a/dbms/src/Storages/MergeTree/StorageFromMergeTreeDataPart.h b/dbms/Storages/MergeTree/StorageFromMergeTreeDataPart.h similarity index 100% rename from dbms/src/Storages/MergeTree/StorageFromMergeTreeDataPart.h rename to dbms/Storages/MergeTree/StorageFromMergeTreeDataPart.h diff --git a/dbms/src/Storages/MergeTree/TTLMergeSelector.cpp b/dbms/Storages/MergeTree/TTLMergeSelector.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/TTLMergeSelector.cpp rename to dbms/Storages/MergeTree/TTLMergeSelector.cpp diff --git a/dbms/src/Storages/MergeTree/TTLMergeSelector.h b/dbms/Storages/MergeTree/TTLMergeSelector.h similarity index 100% rename from dbms/src/Storages/MergeTree/TTLMergeSelector.h rename to dbms/Storages/MergeTree/TTLMergeSelector.h diff --git a/dbms/src/Storages/MergeTree/checkDataPart.cpp b/dbms/Storages/MergeTree/checkDataPart.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/checkDataPart.cpp rename to dbms/Storages/MergeTree/checkDataPart.cpp diff --git a/dbms/src/Storages/MergeTree/checkDataPart.h b/dbms/Storages/MergeTree/checkDataPart.h similarity index 100% rename from dbms/src/Storages/MergeTree/checkDataPart.h rename to dbms/Storages/MergeTree/checkDataPart.h diff --git a/dbms/src/Storages/MergeTree/localBackup.cpp b/dbms/Storages/MergeTree/localBackup.cpp similarity index 100% rename from dbms/src/Storages/MergeTree/localBackup.cpp rename to dbms/Storages/MergeTree/localBackup.cpp diff --git a/dbms/src/Storages/MergeTree/localBackup.h b/dbms/Storages/MergeTree/localBackup.h similarity index 100% rename from dbms/src/Storages/MergeTree/localBackup.h rename to dbms/Storages/MergeTree/localBackup.h diff --git a/dbms/src/Storages/MergeTree/registerStorageMergeTree.cpp b/dbms/Storages/MergeTree/registerStorageMergeTree.cpp similarity index 99% rename from dbms/src/Storages/MergeTree/registerStorageMergeTree.cpp rename to dbms/Storages/MergeTree/registerStorageMergeTree.cpp index e6a6beff57d..79ac28eb145 100644 --- a/dbms/src/Storages/MergeTree/registerStorageMergeTree.cpp +++ b/dbms/Storages/MergeTree/registerStorageMergeTree.cpp @@ -280,7 +280,7 @@ Careful choice of the primary key is extremely important for processing short-ti Optional sampling expression can be specified in the SAMPLE BY clause. It is used to implement the SAMPLE clause in a SELECT query for approximate query execution. Sampling expression must be one of the elements of the primary key tuple. For example, if your primary key is (CounterID, EventDate, intHash64(UserID)), your sampling expression might be intHash64(UserID). -Engine settings can be specified in the SETTINGS clause. Full list is in the source code in the 'dbms/src/Storages/MergeTree/MergeTreeSettings.h' file. +Engine settings can be specified in the SETTINGS clause. Full list is in the source code in the 'dbms/Storages/MergeTree/MergeTreeSettings.h' file. E.g. you can specify the index (primary key) granularity with SETTINGS index_granularity = 8192. Examples: diff --git a/dbms/src/Storages/MutationCommands.cpp b/dbms/Storages/MutationCommands.cpp similarity index 100% rename from dbms/src/Storages/MutationCommands.cpp rename to dbms/Storages/MutationCommands.cpp diff --git a/dbms/src/Storages/MutationCommands.h b/dbms/Storages/MutationCommands.h similarity index 100% rename from dbms/src/Storages/MutationCommands.h rename to dbms/Storages/MutationCommands.h diff --git a/dbms/src/Storages/PartitionCommands.cpp b/dbms/Storages/PartitionCommands.cpp similarity index 100% rename from dbms/src/Storages/PartitionCommands.cpp rename to dbms/Storages/PartitionCommands.cpp diff --git a/dbms/src/Storages/PartitionCommands.h b/dbms/Storages/PartitionCommands.h similarity index 100% rename from dbms/src/Storages/PartitionCommands.h rename to dbms/Storages/PartitionCommands.h diff --git a/dbms/src/Storages/ReadInOrderOptimizer.cpp b/dbms/Storages/ReadInOrderOptimizer.cpp similarity index 100% rename from dbms/src/Storages/ReadInOrderOptimizer.cpp rename to dbms/Storages/ReadInOrderOptimizer.cpp diff --git a/dbms/src/Storages/ReadInOrderOptimizer.h b/dbms/Storages/ReadInOrderOptimizer.h similarity index 100% rename from dbms/src/Storages/ReadInOrderOptimizer.h rename to dbms/Storages/ReadInOrderOptimizer.h diff --git a/dbms/src/Storages/SelectQueryInfo.h b/dbms/Storages/SelectQueryInfo.h similarity index 100% rename from dbms/src/Storages/SelectQueryInfo.h rename to dbms/Storages/SelectQueryInfo.h diff --git a/dbms/src/Storages/StorageBuffer.cpp b/dbms/Storages/StorageBuffer.cpp similarity index 100% rename from dbms/src/Storages/StorageBuffer.cpp rename to dbms/Storages/StorageBuffer.cpp diff --git a/dbms/src/Storages/StorageBuffer.h b/dbms/Storages/StorageBuffer.h similarity index 100% rename from dbms/src/Storages/StorageBuffer.h rename to dbms/Storages/StorageBuffer.h diff --git a/dbms/src/Storages/StorageDictionary.cpp b/dbms/Storages/StorageDictionary.cpp similarity index 100% rename from dbms/src/Storages/StorageDictionary.cpp rename to dbms/Storages/StorageDictionary.cpp diff --git a/dbms/src/Storages/StorageDictionary.h b/dbms/Storages/StorageDictionary.h similarity index 100% rename from dbms/src/Storages/StorageDictionary.h rename to dbms/Storages/StorageDictionary.h diff --git a/dbms/src/Storages/StorageDistributed.cpp b/dbms/Storages/StorageDistributed.cpp similarity index 100% rename from dbms/src/Storages/StorageDistributed.cpp rename to dbms/Storages/StorageDistributed.cpp diff --git a/dbms/src/Storages/StorageDistributed.h b/dbms/Storages/StorageDistributed.h similarity index 100% rename from dbms/src/Storages/StorageDistributed.h rename to dbms/Storages/StorageDistributed.h diff --git a/dbms/src/Storages/StorageFactory.cpp b/dbms/Storages/StorageFactory.cpp similarity index 100% rename from dbms/src/Storages/StorageFactory.cpp rename to dbms/Storages/StorageFactory.cpp diff --git a/dbms/src/Storages/StorageFactory.h b/dbms/Storages/StorageFactory.h similarity index 100% rename from dbms/src/Storages/StorageFactory.h rename to dbms/Storages/StorageFactory.h diff --git a/dbms/src/Storages/StorageFile.cpp b/dbms/Storages/StorageFile.cpp similarity index 100% rename from dbms/src/Storages/StorageFile.cpp rename to dbms/Storages/StorageFile.cpp diff --git a/dbms/src/Storages/StorageFile.h b/dbms/Storages/StorageFile.h similarity index 100% rename from dbms/src/Storages/StorageFile.h rename to dbms/Storages/StorageFile.h diff --git a/dbms/src/Storages/StorageGenerateRandom.cpp b/dbms/Storages/StorageGenerateRandom.cpp similarity index 100% rename from dbms/src/Storages/StorageGenerateRandom.cpp rename to dbms/Storages/StorageGenerateRandom.cpp diff --git a/dbms/src/Storages/StorageGenerateRandom.h b/dbms/Storages/StorageGenerateRandom.h similarity index 100% rename from dbms/src/Storages/StorageGenerateRandom.h rename to dbms/Storages/StorageGenerateRandom.h diff --git a/dbms/src/Storages/StorageHDFS.cpp b/dbms/Storages/StorageHDFS.cpp similarity index 100% rename from dbms/src/Storages/StorageHDFS.cpp rename to dbms/Storages/StorageHDFS.cpp diff --git a/dbms/src/Storages/StorageHDFS.h b/dbms/Storages/StorageHDFS.h similarity index 100% rename from dbms/src/Storages/StorageHDFS.h rename to dbms/Storages/StorageHDFS.h diff --git a/dbms/src/Storages/StorageInMemoryMetadata.cpp b/dbms/Storages/StorageInMemoryMetadata.cpp similarity index 100% rename from dbms/src/Storages/StorageInMemoryMetadata.cpp rename to dbms/Storages/StorageInMemoryMetadata.cpp diff --git a/dbms/src/Storages/StorageInMemoryMetadata.h b/dbms/Storages/StorageInMemoryMetadata.h similarity index 100% rename from dbms/src/Storages/StorageInMemoryMetadata.h rename to dbms/Storages/StorageInMemoryMetadata.h diff --git a/dbms/src/Storages/StorageInput.cpp b/dbms/Storages/StorageInput.cpp similarity index 100% rename from dbms/src/Storages/StorageInput.cpp rename to dbms/Storages/StorageInput.cpp diff --git a/dbms/src/Storages/StorageInput.h b/dbms/Storages/StorageInput.h similarity index 100% rename from dbms/src/Storages/StorageInput.h rename to dbms/Storages/StorageInput.h diff --git a/dbms/src/Storages/StorageJoin.cpp b/dbms/Storages/StorageJoin.cpp similarity index 100% rename from dbms/src/Storages/StorageJoin.cpp rename to dbms/Storages/StorageJoin.cpp diff --git a/dbms/src/Storages/StorageJoin.h b/dbms/Storages/StorageJoin.h similarity index 100% rename from dbms/src/Storages/StorageJoin.h rename to dbms/Storages/StorageJoin.h diff --git a/dbms/src/Storages/StorageLog.cpp b/dbms/Storages/StorageLog.cpp similarity index 100% rename from dbms/src/Storages/StorageLog.cpp rename to dbms/Storages/StorageLog.cpp diff --git a/dbms/src/Storages/StorageLog.h b/dbms/Storages/StorageLog.h similarity index 100% rename from dbms/src/Storages/StorageLog.h rename to dbms/Storages/StorageLog.h diff --git a/dbms/src/Storages/StorageLogSettings.cpp b/dbms/Storages/StorageLogSettings.cpp similarity index 100% rename from dbms/src/Storages/StorageLogSettings.cpp rename to dbms/Storages/StorageLogSettings.cpp diff --git a/dbms/src/Storages/StorageLogSettings.h b/dbms/Storages/StorageLogSettings.h similarity index 100% rename from dbms/src/Storages/StorageLogSettings.h rename to dbms/Storages/StorageLogSettings.h diff --git a/dbms/src/Storages/StorageMaterializedView.cpp b/dbms/Storages/StorageMaterializedView.cpp similarity index 100% rename from dbms/src/Storages/StorageMaterializedView.cpp rename to dbms/Storages/StorageMaterializedView.cpp diff --git a/dbms/src/Storages/StorageMaterializedView.h b/dbms/Storages/StorageMaterializedView.h similarity index 100% rename from dbms/src/Storages/StorageMaterializedView.h rename to dbms/Storages/StorageMaterializedView.h diff --git a/dbms/src/Storages/StorageMemory.cpp b/dbms/Storages/StorageMemory.cpp similarity index 100% rename from dbms/src/Storages/StorageMemory.cpp rename to dbms/Storages/StorageMemory.cpp diff --git a/dbms/src/Storages/StorageMemory.h b/dbms/Storages/StorageMemory.h similarity index 100% rename from dbms/src/Storages/StorageMemory.h rename to dbms/Storages/StorageMemory.h diff --git a/dbms/src/Storages/StorageMerge.cpp b/dbms/Storages/StorageMerge.cpp similarity index 100% rename from dbms/src/Storages/StorageMerge.cpp rename to dbms/Storages/StorageMerge.cpp diff --git a/dbms/src/Storages/StorageMerge.h b/dbms/Storages/StorageMerge.h similarity index 100% rename from dbms/src/Storages/StorageMerge.h rename to dbms/Storages/StorageMerge.h diff --git a/dbms/src/Storages/StorageMergeTree.cpp b/dbms/Storages/StorageMergeTree.cpp similarity index 100% rename from dbms/src/Storages/StorageMergeTree.cpp rename to dbms/Storages/StorageMergeTree.cpp diff --git a/dbms/src/Storages/StorageMergeTree.h b/dbms/Storages/StorageMergeTree.h similarity index 100% rename from dbms/src/Storages/StorageMergeTree.h rename to dbms/Storages/StorageMergeTree.h diff --git a/dbms/src/Storages/StorageMySQL.cpp b/dbms/Storages/StorageMySQL.cpp similarity index 100% rename from dbms/src/Storages/StorageMySQL.cpp rename to dbms/Storages/StorageMySQL.cpp diff --git a/dbms/src/Storages/StorageMySQL.h b/dbms/Storages/StorageMySQL.h similarity index 100% rename from dbms/src/Storages/StorageMySQL.h rename to dbms/Storages/StorageMySQL.h diff --git a/dbms/src/Storages/StorageNull.cpp b/dbms/Storages/StorageNull.cpp similarity index 100% rename from dbms/src/Storages/StorageNull.cpp rename to dbms/Storages/StorageNull.cpp diff --git a/dbms/src/Storages/StorageNull.h b/dbms/Storages/StorageNull.h similarity index 100% rename from dbms/src/Storages/StorageNull.h rename to dbms/Storages/StorageNull.h diff --git a/dbms/src/Storages/StorageReplicatedMergeTree.cpp b/dbms/Storages/StorageReplicatedMergeTree.cpp similarity index 100% rename from dbms/src/Storages/StorageReplicatedMergeTree.cpp rename to dbms/Storages/StorageReplicatedMergeTree.cpp diff --git a/dbms/src/Storages/StorageReplicatedMergeTree.h b/dbms/Storages/StorageReplicatedMergeTree.h similarity index 100% rename from dbms/src/Storages/StorageReplicatedMergeTree.h rename to dbms/Storages/StorageReplicatedMergeTree.h diff --git a/dbms/src/Storages/StorageS3.cpp b/dbms/Storages/StorageS3.cpp similarity index 100% rename from dbms/src/Storages/StorageS3.cpp rename to dbms/Storages/StorageS3.cpp diff --git a/dbms/src/Storages/StorageS3.h b/dbms/Storages/StorageS3.h similarity index 100% rename from dbms/src/Storages/StorageS3.h rename to dbms/Storages/StorageS3.h diff --git a/dbms/src/Storages/StorageSet.cpp b/dbms/Storages/StorageSet.cpp similarity index 100% rename from dbms/src/Storages/StorageSet.cpp rename to dbms/Storages/StorageSet.cpp diff --git a/dbms/src/Storages/StorageSet.h b/dbms/Storages/StorageSet.h similarity index 100% rename from dbms/src/Storages/StorageSet.h rename to dbms/Storages/StorageSet.h diff --git a/dbms/src/Storages/StorageStripeLog.cpp b/dbms/Storages/StorageStripeLog.cpp similarity index 100% rename from dbms/src/Storages/StorageStripeLog.cpp rename to dbms/Storages/StorageStripeLog.cpp diff --git a/dbms/src/Storages/StorageStripeLog.h b/dbms/Storages/StorageStripeLog.h similarity index 100% rename from dbms/src/Storages/StorageStripeLog.h rename to dbms/Storages/StorageStripeLog.h diff --git a/dbms/src/Storages/StorageTinyLog.cpp b/dbms/Storages/StorageTinyLog.cpp similarity index 100% rename from dbms/src/Storages/StorageTinyLog.cpp rename to dbms/Storages/StorageTinyLog.cpp diff --git a/dbms/src/Storages/StorageTinyLog.h b/dbms/Storages/StorageTinyLog.h similarity index 100% rename from dbms/src/Storages/StorageTinyLog.h rename to dbms/Storages/StorageTinyLog.h diff --git a/dbms/src/Storages/StorageURL.cpp b/dbms/Storages/StorageURL.cpp similarity index 100% rename from dbms/src/Storages/StorageURL.cpp rename to dbms/Storages/StorageURL.cpp diff --git a/dbms/src/Storages/StorageURL.h b/dbms/Storages/StorageURL.h similarity index 100% rename from dbms/src/Storages/StorageURL.h rename to dbms/Storages/StorageURL.h diff --git a/dbms/src/Storages/StorageValues.cpp b/dbms/Storages/StorageValues.cpp similarity index 100% rename from dbms/src/Storages/StorageValues.cpp rename to dbms/Storages/StorageValues.cpp diff --git a/dbms/src/Storages/StorageValues.h b/dbms/Storages/StorageValues.h similarity index 100% rename from dbms/src/Storages/StorageValues.h rename to dbms/Storages/StorageValues.h diff --git a/dbms/src/Storages/StorageView.cpp b/dbms/Storages/StorageView.cpp similarity index 100% rename from dbms/src/Storages/StorageView.cpp rename to dbms/Storages/StorageView.cpp diff --git a/dbms/src/Storages/StorageView.h b/dbms/Storages/StorageView.h similarity index 100% rename from dbms/src/Storages/StorageView.h rename to dbms/Storages/StorageView.h diff --git a/dbms/src/Storages/StorageXDBC.cpp b/dbms/Storages/StorageXDBC.cpp similarity index 100% rename from dbms/src/Storages/StorageXDBC.cpp rename to dbms/Storages/StorageXDBC.cpp diff --git a/dbms/src/Storages/StorageXDBC.h b/dbms/Storages/StorageXDBC.h similarity index 100% rename from dbms/src/Storages/StorageXDBC.h rename to dbms/Storages/StorageXDBC.h diff --git a/dbms/src/Storages/System/CMakeLists.txt b/dbms/Storages/System/CMakeLists.txt similarity index 100% rename from dbms/src/Storages/System/CMakeLists.txt rename to dbms/Storages/System/CMakeLists.txt diff --git a/dbms/src/Storages/System/IStorageSystemOneBlock.h b/dbms/Storages/System/IStorageSystemOneBlock.h similarity index 100% rename from dbms/src/Storages/System/IStorageSystemOneBlock.h rename to dbms/Storages/System/IStorageSystemOneBlock.h diff --git a/dbms/src/Storages/System/StorageSystemAggregateFunctionCombinators.cpp b/dbms/Storages/System/StorageSystemAggregateFunctionCombinators.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemAggregateFunctionCombinators.cpp rename to dbms/Storages/System/StorageSystemAggregateFunctionCombinators.cpp diff --git a/dbms/src/Storages/System/StorageSystemAggregateFunctionCombinators.h b/dbms/Storages/System/StorageSystemAggregateFunctionCombinators.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemAggregateFunctionCombinators.h rename to dbms/Storages/System/StorageSystemAggregateFunctionCombinators.h diff --git a/dbms/src/Storages/System/StorageSystemAsynchronousMetrics.cpp b/dbms/Storages/System/StorageSystemAsynchronousMetrics.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemAsynchronousMetrics.cpp rename to dbms/Storages/System/StorageSystemAsynchronousMetrics.cpp diff --git a/dbms/src/Storages/System/StorageSystemAsynchronousMetrics.h b/dbms/Storages/System/StorageSystemAsynchronousMetrics.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemAsynchronousMetrics.h rename to dbms/Storages/System/StorageSystemAsynchronousMetrics.h diff --git a/dbms/src/Storages/System/StorageSystemBuildOptions.cpp b/dbms/Storages/System/StorageSystemBuildOptions.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemBuildOptions.cpp rename to dbms/Storages/System/StorageSystemBuildOptions.cpp diff --git a/dbms/src/Storages/System/StorageSystemBuildOptions.generated.cpp.in b/dbms/Storages/System/StorageSystemBuildOptions.generated.cpp.in similarity index 100% rename from dbms/src/Storages/System/StorageSystemBuildOptions.generated.cpp.in rename to dbms/Storages/System/StorageSystemBuildOptions.generated.cpp.in diff --git a/dbms/src/Storages/System/StorageSystemBuildOptions.h b/dbms/Storages/System/StorageSystemBuildOptions.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemBuildOptions.h rename to dbms/Storages/System/StorageSystemBuildOptions.h diff --git a/dbms/src/Storages/System/StorageSystemClusters.cpp b/dbms/Storages/System/StorageSystemClusters.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemClusters.cpp rename to dbms/Storages/System/StorageSystemClusters.cpp diff --git a/dbms/src/Storages/System/StorageSystemClusters.h b/dbms/Storages/System/StorageSystemClusters.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemClusters.h rename to dbms/Storages/System/StorageSystemClusters.h diff --git a/dbms/src/Storages/System/StorageSystemCollations.cpp b/dbms/Storages/System/StorageSystemCollations.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemCollations.cpp rename to dbms/Storages/System/StorageSystemCollations.cpp diff --git a/dbms/src/Storages/System/StorageSystemCollations.h b/dbms/Storages/System/StorageSystemCollations.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemCollations.h rename to dbms/Storages/System/StorageSystemCollations.h diff --git a/dbms/src/Storages/System/StorageSystemColumns.cpp b/dbms/Storages/System/StorageSystemColumns.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemColumns.cpp rename to dbms/Storages/System/StorageSystemColumns.cpp diff --git a/dbms/src/Storages/System/StorageSystemColumns.h b/dbms/Storages/System/StorageSystemColumns.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemColumns.h rename to dbms/Storages/System/StorageSystemColumns.h diff --git a/dbms/src/Storages/System/StorageSystemContributors.cpp b/dbms/Storages/System/StorageSystemContributors.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemContributors.cpp rename to dbms/Storages/System/StorageSystemContributors.cpp diff --git a/dbms/src/Storages/System/StorageSystemContributors.generated.cpp b/dbms/Storages/System/StorageSystemContributors.generated.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemContributors.generated.cpp rename to dbms/Storages/System/StorageSystemContributors.generated.cpp diff --git a/dbms/src/Storages/System/StorageSystemContributors.h b/dbms/Storages/System/StorageSystemContributors.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemContributors.h rename to dbms/Storages/System/StorageSystemContributors.h diff --git a/dbms/src/Storages/System/StorageSystemContributors.sh b/dbms/Storages/System/StorageSystemContributors.sh similarity index 100% rename from dbms/src/Storages/System/StorageSystemContributors.sh rename to dbms/Storages/System/StorageSystemContributors.sh diff --git a/dbms/src/Storages/System/StorageSystemDataTypeFamilies.cpp b/dbms/Storages/System/StorageSystemDataTypeFamilies.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemDataTypeFamilies.cpp rename to dbms/Storages/System/StorageSystemDataTypeFamilies.cpp diff --git a/dbms/src/Storages/System/StorageSystemDataTypeFamilies.h b/dbms/Storages/System/StorageSystemDataTypeFamilies.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemDataTypeFamilies.h rename to dbms/Storages/System/StorageSystemDataTypeFamilies.h diff --git a/dbms/src/Storages/System/StorageSystemDatabases.cpp b/dbms/Storages/System/StorageSystemDatabases.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemDatabases.cpp rename to dbms/Storages/System/StorageSystemDatabases.cpp diff --git a/dbms/src/Storages/System/StorageSystemDatabases.h b/dbms/Storages/System/StorageSystemDatabases.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemDatabases.h rename to dbms/Storages/System/StorageSystemDatabases.h diff --git a/dbms/src/Storages/System/StorageSystemDetachedParts.cpp b/dbms/Storages/System/StorageSystemDetachedParts.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemDetachedParts.cpp rename to dbms/Storages/System/StorageSystemDetachedParts.cpp diff --git a/dbms/src/Storages/System/StorageSystemDetachedParts.h b/dbms/Storages/System/StorageSystemDetachedParts.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemDetachedParts.h rename to dbms/Storages/System/StorageSystemDetachedParts.h diff --git a/dbms/src/Storages/System/StorageSystemDictionaries.cpp b/dbms/Storages/System/StorageSystemDictionaries.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemDictionaries.cpp rename to dbms/Storages/System/StorageSystemDictionaries.cpp diff --git a/dbms/src/Storages/System/StorageSystemDictionaries.h b/dbms/Storages/System/StorageSystemDictionaries.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemDictionaries.h rename to dbms/Storages/System/StorageSystemDictionaries.h diff --git a/dbms/src/Storages/System/StorageSystemDisks.cpp b/dbms/Storages/System/StorageSystemDisks.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemDisks.cpp rename to dbms/Storages/System/StorageSystemDisks.cpp diff --git a/dbms/src/Storages/System/StorageSystemDisks.h b/dbms/Storages/System/StorageSystemDisks.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemDisks.h rename to dbms/Storages/System/StorageSystemDisks.h diff --git a/dbms/src/Storages/System/StorageSystemEvents.cpp b/dbms/Storages/System/StorageSystemEvents.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemEvents.cpp rename to dbms/Storages/System/StorageSystemEvents.cpp diff --git a/dbms/src/Storages/System/StorageSystemEvents.h b/dbms/Storages/System/StorageSystemEvents.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemEvents.h rename to dbms/Storages/System/StorageSystemEvents.h diff --git a/dbms/src/Storages/System/StorageSystemFormats.cpp b/dbms/Storages/System/StorageSystemFormats.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemFormats.cpp rename to dbms/Storages/System/StorageSystemFormats.cpp diff --git a/dbms/src/Storages/System/StorageSystemFormats.h b/dbms/Storages/System/StorageSystemFormats.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemFormats.h rename to dbms/Storages/System/StorageSystemFormats.h diff --git a/dbms/src/Storages/System/StorageSystemFunctions.cpp b/dbms/Storages/System/StorageSystemFunctions.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemFunctions.cpp rename to dbms/Storages/System/StorageSystemFunctions.cpp diff --git a/dbms/src/Storages/System/StorageSystemFunctions.h b/dbms/Storages/System/StorageSystemFunctions.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemFunctions.h rename to dbms/Storages/System/StorageSystemFunctions.h diff --git a/dbms/src/Storages/System/StorageSystemGraphite.cpp b/dbms/Storages/System/StorageSystemGraphite.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemGraphite.cpp rename to dbms/Storages/System/StorageSystemGraphite.cpp diff --git a/dbms/src/Storages/System/StorageSystemGraphite.h b/dbms/Storages/System/StorageSystemGraphite.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemGraphite.h rename to dbms/Storages/System/StorageSystemGraphite.h diff --git a/dbms/src/Storages/System/StorageSystemMacros.cpp b/dbms/Storages/System/StorageSystemMacros.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemMacros.cpp rename to dbms/Storages/System/StorageSystemMacros.cpp diff --git a/dbms/src/Storages/System/StorageSystemMacros.h b/dbms/Storages/System/StorageSystemMacros.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemMacros.h rename to dbms/Storages/System/StorageSystemMacros.h diff --git a/dbms/src/Storages/System/StorageSystemMergeTreeSettings.cpp b/dbms/Storages/System/StorageSystemMergeTreeSettings.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemMergeTreeSettings.cpp rename to dbms/Storages/System/StorageSystemMergeTreeSettings.cpp diff --git a/dbms/src/Storages/System/StorageSystemMergeTreeSettings.h b/dbms/Storages/System/StorageSystemMergeTreeSettings.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemMergeTreeSettings.h rename to dbms/Storages/System/StorageSystemMergeTreeSettings.h diff --git a/dbms/src/Storages/System/StorageSystemMerges.cpp b/dbms/Storages/System/StorageSystemMerges.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemMerges.cpp rename to dbms/Storages/System/StorageSystemMerges.cpp diff --git a/dbms/src/Storages/System/StorageSystemMerges.h b/dbms/Storages/System/StorageSystemMerges.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemMerges.h rename to dbms/Storages/System/StorageSystemMerges.h diff --git a/dbms/src/Storages/System/StorageSystemMetrics.cpp b/dbms/Storages/System/StorageSystemMetrics.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemMetrics.cpp rename to dbms/Storages/System/StorageSystemMetrics.cpp diff --git a/dbms/src/Storages/System/StorageSystemMetrics.h b/dbms/Storages/System/StorageSystemMetrics.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemMetrics.h rename to dbms/Storages/System/StorageSystemMetrics.h diff --git a/dbms/src/Storages/System/StorageSystemModels.cpp b/dbms/Storages/System/StorageSystemModels.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemModels.cpp rename to dbms/Storages/System/StorageSystemModels.cpp diff --git a/dbms/src/Storages/System/StorageSystemModels.h b/dbms/Storages/System/StorageSystemModels.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemModels.h rename to dbms/Storages/System/StorageSystemModels.h diff --git a/dbms/src/Storages/System/StorageSystemMutations.cpp b/dbms/Storages/System/StorageSystemMutations.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemMutations.cpp rename to dbms/Storages/System/StorageSystemMutations.cpp diff --git a/dbms/src/Storages/System/StorageSystemMutations.h b/dbms/Storages/System/StorageSystemMutations.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemMutations.h rename to dbms/Storages/System/StorageSystemMutations.h diff --git a/dbms/src/Storages/System/StorageSystemNumbers.cpp b/dbms/Storages/System/StorageSystemNumbers.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemNumbers.cpp rename to dbms/Storages/System/StorageSystemNumbers.cpp diff --git a/dbms/src/Storages/System/StorageSystemNumbers.h b/dbms/Storages/System/StorageSystemNumbers.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemNumbers.h rename to dbms/Storages/System/StorageSystemNumbers.h diff --git a/dbms/src/Storages/System/StorageSystemOne.cpp b/dbms/Storages/System/StorageSystemOne.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemOne.cpp rename to dbms/Storages/System/StorageSystemOne.cpp diff --git a/dbms/src/Storages/System/StorageSystemOne.h b/dbms/Storages/System/StorageSystemOne.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemOne.h rename to dbms/Storages/System/StorageSystemOne.h diff --git a/dbms/src/Storages/System/StorageSystemParts.cpp b/dbms/Storages/System/StorageSystemParts.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemParts.cpp rename to dbms/Storages/System/StorageSystemParts.cpp diff --git a/dbms/src/Storages/System/StorageSystemParts.h b/dbms/Storages/System/StorageSystemParts.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemParts.h rename to dbms/Storages/System/StorageSystemParts.h diff --git a/dbms/src/Storages/System/StorageSystemPartsBase.cpp b/dbms/Storages/System/StorageSystemPartsBase.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemPartsBase.cpp rename to dbms/Storages/System/StorageSystemPartsBase.cpp diff --git a/dbms/src/Storages/System/StorageSystemPartsBase.h b/dbms/Storages/System/StorageSystemPartsBase.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemPartsBase.h rename to dbms/Storages/System/StorageSystemPartsBase.h diff --git a/dbms/src/Storages/System/StorageSystemPartsColumns.cpp b/dbms/Storages/System/StorageSystemPartsColumns.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemPartsColumns.cpp rename to dbms/Storages/System/StorageSystemPartsColumns.cpp diff --git a/dbms/src/Storages/System/StorageSystemPartsColumns.h b/dbms/Storages/System/StorageSystemPartsColumns.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemPartsColumns.h rename to dbms/Storages/System/StorageSystemPartsColumns.h diff --git a/dbms/src/Storages/System/StorageSystemProcesses.cpp b/dbms/Storages/System/StorageSystemProcesses.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemProcesses.cpp rename to dbms/Storages/System/StorageSystemProcesses.cpp diff --git a/dbms/src/Storages/System/StorageSystemProcesses.h b/dbms/Storages/System/StorageSystemProcesses.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemProcesses.h rename to dbms/Storages/System/StorageSystemProcesses.h diff --git a/dbms/src/Storages/System/StorageSystemQuotaUsage.cpp b/dbms/Storages/System/StorageSystemQuotaUsage.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemQuotaUsage.cpp rename to dbms/Storages/System/StorageSystemQuotaUsage.cpp diff --git a/dbms/src/Storages/System/StorageSystemQuotaUsage.h b/dbms/Storages/System/StorageSystemQuotaUsage.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemQuotaUsage.h rename to dbms/Storages/System/StorageSystemQuotaUsage.h diff --git a/dbms/src/Storages/System/StorageSystemQuotas.cpp b/dbms/Storages/System/StorageSystemQuotas.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemQuotas.cpp rename to dbms/Storages/System/StorageSystemQuotas.cpp diff --git a/dbms/src/Storages/System/StorageSystemQuotas.h b/dbms/Storages/System/StorageSystemQuotas.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemQuotas.h rename to dbms/Storages/System/StorageSystemQuotas.h diff --git a/dbms/src/Storages/System/StorageSystemReplicas.cpp b/dbms/Storages/System/StorageSystemReplicas.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemReplicas.cpp rename to dbms/Storages/System/StorageSystemReplicas.cpp diff --git a/dbms/src/Storages/System/StorageSystemReplicas.h b/dbms/Storages/System/StorageSystemReplicas.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemReplicas.h rename to dbms/Storages/System/StorageSystemReplicas.h diff --git a/dbms/src/Storages/System/StorageSystemReplicationQueue.cpp b/dbms/Storages/System/StorageSystemReplicationQueue.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemReplicationQueue.cpp rename to dbms/Storages/System/StorageSystemReplicationQueue.cpp diff --git a/dbms/src/Storages/System/StorageSystemReplicationQueue.h b/dbms/Storages/System/StorageSystemReplicationQueue.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemReplicationQueue.h rename to dbms/Storages/System/StorageSystemReplicationQueue.h diff --git a/dbms/src/Storages/System/StorageSystemRowPolicies.cpp b/dbms/Storages/System/StorageSystemRowPolicies.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemRowPolicies.cpp rename to dbms/Storages/System/StorageSystemRowPolicies.cpp diff --git a/dbms/src/Storages/System/StorageSystemRowPolicies.h b/dbms/Storages/System/StorageSystemRowPolicies.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemRowPolicies.h rename to dbms/Storages/System/StorageSystemRowPolicies.h diff --git a/dbms/src/Storages/System/StorageSystemSettings.cpp b/dbms/Storages/System/StorageSystemSettings.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemSettings.cpp rename to dbms/Storages/System/StorageSystemSettings.cpp diff --git a/dbms/src/Storages/System/StorageSystemSettings.h b/dbms/Storages/System/StorageSystemSettings.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemSettings.h rename to dbms/Storages/System/StorageSystemSettings.h diff --git a/dbms/src/Storages/System/StorageSystemStackTrace.cpp b/dbms/Storages/System/StorageSystemStackTrace.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemStackTrace.cpp rename to dbms/Storages/System/StorageSystemStackTrace.cpp diff --git a/dbms/src/Storages/System/StorageSystemStackTrace.h b/dbms/Storages/System/StorageSystemStackTrace.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemStackTrace.h rename to dbms/Storages/System/StorageSystemStackTrace.h diff --git a/dbms/src/Storages/System/StorageSystemStoragePolicies.cpp b/dbms/Storages/System/StorageSystemStoragePolicies.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemStoragePolicies.cpp rename to dbms/Storages/System/StorageSystemStoragePolicies.cpp diff --git a/dbms/src/Storages/System/StorageSystemStoragePolicies.h b/dbms/Storages/System/StorageSystemStoragePolicies.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemStoragePolicies.h rename to dbms/Storages/System/StorageSystemStoragePolicies.h diff --git a/dbms/src/Storages/System/StorageSystemTableEngines.cpp b/dbms/Storages/System/StorageSystemTableEngines.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemTableEngines.cpp rename to dbms/Storages/System/StorageSystemTableEngines.cpp diff --git a/dbms/src/Storages/System/StorageSystemTableEngines.h b/dbms/Storages/System/StorageSystemTableEngines.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemTableEngines.h rename to dbms/Storages/System/StorageSystemTableEngines.h diff --git a/dbms/src/Storages/System/StorageSystemTableFunctions.cpp b/dbms/Storages/System/StorageSystemTableFunctions.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemTableFunctions.cpp rename to dbms/Storages/System/StorageSystemTableFunctions.cpp diff --git a/dbms/src/Storages/System/StorageSystemTableFunctions.h b/dbms/Storages/System/StorageSystemTableFunctions.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemTableFunctions.h rename to dbms/Storages/System/StorageSystemTableFunctions.h diff --git a/dbms/src/Storages/System/StorageSystemTables.cpp b/dbms/Storages/System/StorageSystemTables.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemTables.cpp rename to dbms/Storages/System/StorageSystemTables.cpp diff --git a/dbms/src/Storages/System/StorageSystemTables.h b/dbms/Storages/System/StorageSystemTables.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemTables.h rename to dbms/Storages/System/StorageSystemTables.h diff --git a/dbms/src/Storages/System/StorageSystemZeros.cpp b/dbms/Storages/System/StorageSystemZeros.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemZeros.cpp rename to dbms/Storages/System/StorageSystemZeros.cpp diff --git a/dbms/src/Storages/System/StorageSystemZeros.h b/dbms/Storages/System/StorageSystemZeros.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemZeros.h rename to dbms/Storages/System/StorageSystemZeros.h diff --git a/dbms/src/Storages/System/StorageSystemZooKeeper.cpp b/dbms/Storages/System/StorageSystemZooKeeper.cpp similarity index 100% rename from dbms/src/Storages/System/StorageSystemZooKeeper.cpp rename to dbms/Storages/System/StorageSystemZooKeeper.cpp diff --git a/dbms/src/Storages/System/StorageSystemZooKeeper.h b/dbms/Storages/System/StorageSystemZooKeeper.h similarity index 100% rename from dbms/src/Storages/System/StorageSystemZooKeeper.h rename to dbms/Storages/System/StorageSystemZooKeeper.h diff --git a/dbms/src/Storages/System/attachSystemTables.cpp b/dbms/Storages/System/attachSystemTables.cpp similarity index 100% rename from dbms/src/Storages/System/attachSystemTables.cpp rename to dbms/Storages/System/attachSystemTables.cpp diff --git a/dbms/src/Storages/System/attachSystemTables.h b/dbms/Storages/System/attachSystemTables.h similarity index 100% rename from dbms/src/Storages/System/attachSystemTables.h rename to dbms/Storages/System/attachSystemTables.h diff --git a/dbms/src/Storages/TableStructureLockHolder.h b/dbms/Storages/TableStructureLockHolder.h similarity index 100% rename from dbms/src/Storages/TableStructureLockHolder.h rename to dbms/Storages/TableStructureLockHolder.h diff --git a/dbms/src/Storages/VirtualColumnUtils.cpp b/dbms/Storages/VirtualColumnUtils.cpp similarity index 100% rename from dbms/src/Storages/VirtualColumnUtils.cpp rename to dbms/Storages/VirtualColumnUtils.cpp diff --git a/dbms/src/Storages/VirtualColumnUtils.h b/dbms/Storages/VirtualColumnUtils.h similarity index 100% rename from dbms/src/Storages/VirtualColumnUtils.h rename to dbms/Storages/VirtualColumnUtils.h diff --git a/dbms/src/Storages/getStructureOfRemoteTable.cpp b/dbms/Storages/getStructureOfRemoteTable.cpp similarity index 100% rename from dbms/src/Storages/getStructureOfRemoteTable.cpp rename to dbms/Storages/getStructureOfRemoteTable.cpp diff --git a/dbms/src/Storages/getStructureOfRemoteTable.h b/dbms/Storages/getStructureOfRemoteTable.h similarity index 100% rename from dbms/src/Storages/getStructureOfRemoteTable.h rename to dbms/Storages/getStructureOfRemoteTable.h diff --git a/dbms/src/Storages/registerStorages.cpp b/dbms/Storages/registerStorages.cpp similarity index 100% rename from dbms/src/Storages/registerStorages.cpp rename to dbms/Storages/registerStorages.cpp diff --git a/dbms/src/Storages/registerStorages.h b/dbms/Storages/registerStorages.h similarity index 100% rename from dbms/src/Storages/registerStorages.h rename to dbms/Storages/registerStorages.h diff --git a/dbms/src/Storages/tests/CMakeLists.txt b/dbms/Storages/tests/CMakeLists.txt similarity index 100% rename from dbms/src/Storages/tests/CMakeLists.txt rename to dbms/Storages/tests/CMakeLists.txt diff --git a/dbms/src/Storages/tests/active_parts.py b/dbms/Storages/tests/active_parts.py similarity index 100% rename from dbms/src/Storages/tests/active_parts.py rename to dbms/Storages/tests/active_parts.py diff --git a/dbms/src/Storages/tests/get_abandonable_lock_in_all_partitions.cpp b/dbms/Storages/tests/get_abandonable_lock_in_all_partitions.cpp similarity index 100% rename from dbms/src/Storages/tests/get_abandonable_lock_in_all_partitions.cpp rename to dbms/Storages/tests/get_abandonable_lock_in_all_partitions.cpp diff --git a/dbms/src/Storages/tests/get_current_inserts_in_replicated.cpp b/dbms/Storages/tests/get_current_inserts_in_replicated.cpp similarity index 100% rename from dbms/src/Storages/tests/get_current_inserts_in_replicated.cpp rename to dbms/Storages/tests/get_current_inserts_in_replicated.cpp diff --git a/dbms/src/Storages/tests/gtest_aux_funcs_for_adaptive_granularity.cpp b/dbms/Storages/tests/gtest_aux_funcs_for_adaptive_granularity.cpp similarity index 100% rename from dbms/src/Storages/tests/gtest_aux_funcs_for_adaptive_granularity.cpp rename to dbms/Storages/tests/gtest_aux_funcs_for_adaptive_granularity.cpp diff --git a/dbms/src/Storages/tests/gtest_row_source_bits_test.cpp b/dbms/Storages/tests/gtest_row_source_bits_test.cpp similarity index 100% rename from dbms/src/Storages/tests/gtest_row_source_bits_test.cpp rename to dbms/Storages/tests/gtest_row_source_bits_test.cpp diff --git a/dbms/src/Storages/tests/gtest_storage_log.cpp b/dbms/Storages/tests/gtest_storage_log.cpp similarity index 100% rename from dbms/src/Storages/tests/gtest_storage_log.cpp rename to dbms/Storages/tests/gtest_storage_log.cpp diff --git a/dbms/src/Storages/tests/gtest_transform_query_for_external_database.cpp b/dbms/Storages/tests/gtest_transform_query_for_external_database.cpp similarity index 100% rename from dbms/src/Storages/tests/gtest_transform_query_for_external_database.cpp rename to dbms/Storages/tests/gtest_transform_query_for_external_database.cpp diff --git a/dbms/src/Storages/tests/merge_selector.cpp b/dbms/Storages/tests/merge_selector.cpp similarity index 100% rename from dbms/src/Storages/tests/merge_selector.cpp rename to dbms/Storages/tests/merge_selector.cpp diff --git a/dbms/src/Storages/tests/merge_selector2.cpp b/dbms/Storages/tests/merge_selector2.cpp similarity index 100% rename from dbms/src/Storages/tests/merge_selector2.cpp rename to dbms/Storages/tests/merge_selector2.cpp diff --git a/dbms/src/Storages/tests/part_name.cpp b/dbms/Storages/tests/part_name.cpp similarity index 100% rename from dbms/src/Storages/tests/part_name.cpp rename to dbms/Storages/tests/part_name.cpp diff --git a/dbms/src/Storages/tests/remove_symlink_directory.cpp b/dbms/Storages/tests/remove_symlink_directory.cpp similarity index 100% rename from dbms/src/Storages/tests/remove_symlink_directory.cpp rename to dbms/Storages/tests/remove_symlink_directory.cpp diff --git a/dbms/src/Storages/tests/storage_log.cpp b/dbms/Storages/tests/storage_log.cpp similarity index 100% rename from dbms/src/Storages/tests/storage_log.cpp rename to dbms/Storages/tests/storage_log.cpp diff --git a/dbms/src/Storages/tests/system_numbers.cpp b/dbms/Storages/tests/system_numbers.cpp similarity index 100% rename from dbms/src/Storages/tests/system_numbers.cpp rename to dbms/Storages/tests/system_numbers.cpp diff --git a/dbms/src/Storages/tests/test_alter_distributed.sql b/dbms/Storages/tests/test_alter_distributed.sql similarity index 100% rename from dbms/src/Storages/tests/test_alter_distributed.sql rename to dbms/Storages/tests/test_alter_distributed.sql diff --git a/dbms/src/Storages/tests/test_alter_merge.sql b/dbms/Storages/tests/test_alter_merge.sql similarity index 100% rename from dbms/src/Storages/tests/test_alter_merge.sql rename to dbms/Storages/tests/test_alter_merge.sql diff --git a/dbms/src/Storages/tests/test_alter_merge_tree.sql b/dbms/Storages/tests/test_alter_merge_tree.sql similarity index 100% rename from dbms/src/Storages/tests/test_alter_merge_tree.sql rename to dbms/Storages/tests/test_alter_merge_tree.sql diff --git a/dbms/src/Storages/tests/transform_part_zk_nodes.cpp b/dbms/Storages/tests/transform_part_zk_nodes.cpp similarity index 100% rename from dbms/src/Storages/tests/transform_part_zk_nodes.cpp rename to dbms/Storages/tests/transform_part_zk_nodes.cpp diff --git a/dbms/src/Storages/transformQueryForExternalDatabase.cpp b/dbms/Storages/transformQueryForExternalDatabase.cpp similarity index 100% rename from dbms/src/Storages/transformQueryForExternalDatabase.cpp rename to dbms/Storages/transformQueryForExternalDatabase.cpp diff --git a/dbms/src/Storages/transformQueryForExternalDatabase.h b/dbms/Storages/transformQueryForExternalDatabase.h similarity index 100% rename from dbms/src/Storages/transformQueryForExternalDatabase.h rename to dbms/Storages/transformQueryForExternalDatabase.h diff --git a/dbms/src/TableFunctions/CMakeLists.txt b/dbms/TableFunctions/CMakeLists.txt similarity index 100% rename from dbms/src/TableFunctions/CMakeLists.txt rename to dbms/TableFunctions/CMakeLists.txt diff --git a/dbms/src/TableFunctions/ITableFunction.cpp b/dbms/TableFunctions/ITableFunction.cpp similarity index 100% rename from dbms/src/TableFunctions/ITableFunction.cpp rename to dbms/TableFunctions/ITableFunction.cpp diff --git a/dbms/src/TableFunctions/ITableFunction.h b/dbms/TableFunctions/ITableFunction.h similarity index 100% rename from dbms/src/TableFunctions/ITableFunction.h rename to dbms/TableFunctions/ITableFunction.h diff --git a/dbms/src/TableFunctions/ITableFunctionFileLike.cpp b/dbms/TableFunctions/ITableFunctionFileLike.cpp similarity index 100% rename from dbms/src/TableFunctions/ITableFunctionFileLike.cpp rename to dbms/TableFunctions/ITableFunctionFileLike.cpp diff --git a/dbms/src/TableFunctions/ITableFunctionFileLike.h b/dbms/TableFunctions/ITableFunctionFileLike.h similarity index 100% rename from dbms/src/TableFunctions/ITableFunctionFileLike.h rename to dbms/TableFunctions/ITableFunctionFileLike.h diff --git a/dbms/src/TableFunctions/ITableFunctionXDBC.cpp b/dbms/TableFunctions/ITableFunctionXDBC.cpp similarity index 100% rename from dbms/src/TableFunctions/ITableFunctionXDBC.cpp rename to dbms/TableFunctions/ITableFunctionXDBC.cpp diff --git a/dbms/src/TableFunctions/ITableFunctionXDBC.h b/dbms/TableFunctions/ITableFunctionXDBC.h similarity index 100% rename from dbms/src/TableFunctions/ITableFunctionXDBC.h rename to dbms/TableFunctions/ITableFunctionXDBC.h diff --git a/dbms/src/TableFunctions/TableFunctionFactory.cpp b/dbms/TableFunctions/TableFunctionFactory.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionFactory.cpp rename to dbms/TableFunctions/TableFunctionFactory.cpp diff --git a/dbms/src/TableFunctions/TableFunctionFactory.h b/dbms/TableFunctions/TableFunctionFactory.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionFactory.h rename to dbms/TableFunctions/TableFunctionFactory.h diff --git a/dbms/src/TableFunctions/TableFunctionFile.cpp b/dbms/TableFunctions/TableFunctionFile.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionFile.cpp rename to dbms/TableFunctions/TableFunctionFile.cpp diff --git a/dbms/src/TableFunctions/TableFunctionFile.h b/dbms/TableFunctions/TableFunctionFile.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionFile.h rename to dbms/TableFunctions/TableFunctionFile.h diff --git a/dbms/src/TableFunctions/TableFunctionGenerateRandom.cpp b/dbms/TableFunctions/TableFunctionGenerateRandom.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionGenerateRandom.cpp rename to dbms/TableFunctions/TableFunctionGenerateRandom.cpp diff --git a/dbms/src/TableFunctions/TableFunctionGenerateRandom.h b/dbms/TableFunctions/TableFunctionGenerateRandom.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionGenerateRandom.h rename to dbms/TableFunctions/TableFunctionGenerateRandom.h diff --git a/dbms/src/TableFunctions/TableFunctionHDFS.cpp b/dbms/TableFunctions/TableFunctionHDFS.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionHDFS.cpp rename to dbms/TableFunctions/TableFunctionHDFS.cpp diff --git a/dbms/src/TableFunctions/TableFunctionHDFS.h b/dbms/TableFunctions/TableFunctionHDFS.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionHDFS.h rename to dbms/TableFunctions/TableFunctionHDFS.h diff --git a/dbms/src/TableFunctions/TableFunctionInput.cpp b/dbms/TableFunctions/TableFunctionInput.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionInput.cpp rename to dbms/TableFunctions/TableFunctionInput.cpp diff --git a/dbms/src/TableFunctions/TableFunctionInput.h b/dbms/TableFunctions/TableFunctionInput.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionInput.h rename to dbms/TableFunctions/TableFunctionInput.h diff --git a/dbms/src/TableFunctions/TableFunctionMerge.cpp b/dbms/TableFunctions/TableFunctionMerge.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionMerge.cpp rename to dbms/TableFunctions/TableFunctionMerge.cpp diff --git a/dbms/src/TableFunctions/TableFunctionMerge.h b/dbms/TableFunctions/TableFunctionMerge.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionMerge.h rename to dbms/TableFunctions/TableFunctionMerge.h diff --git a/dbms/src/TableFunctions/TableFunctionMySQL.cpp b/dbms/TableFunctions/TableFunctionMySQL.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionMySQL.cpp rename to dbms/TableFunctions/TableFunctionMySQL.cpp diff --git a/dbms/src/TableFunctions/TableFunctionMySQL.h b/dbms/TableFunctions/TableFunctionMySQL.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionMySQL.h rename to dbms/TableFunctions/TableFunctionMySQL.h diff --git a/dbms/src/TableFunctions/TableFunctionNumbers.cpp b/dbms/TableFunctions/TableFunctionNumbers.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionNumbers.cpp rename to dbms/TableFunctions/TableFunctionNumbers.cpp diff --git a/dbms/src/TableFunctions/TableFunctionNumbers.h b/dbms/TableFunctions/TableFunctionNumbers.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionNumbers.h rename to dbms/TableFunctions/TableFunctionNumbers.h diff --git a/dbms/src/TableFunctions/TableFunctionRemote.cpp b/dbms/TableFunctions/TableFunctionRemote.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionRemote.cpp rename to dbms/TableFunctions/TableFunctionRemote.cpp diff --git a/dbms/src/TableFunctions/TableFunctionRemote.h b/dbms/TableFunctions/TableFunctionRemote.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionRemote.h rename to dbms/TableFunctions/TableFunctionRemote.h diff --git a/dbms/src/TableFunctions/TableFunctionS3.cpp b/dbms/TableFunctions/TableFunctionS3.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionS3.cpp rename to dbms/TableFunctions/TableFunctionS3.cpp diff --git a/dbms/src/TableFunctions/TableFunctionS3.h b/dbms/TableFunctions/TableFunctionS3.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionS3.h rename to dbms/TableFunctions/TableFunctionS3.h diff --git a/dbms/src/TableFunctions/TableFunctionURL.cpp b/dbms/TableFunctions/TableFunctionURL.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionURL.cpp rename to dbms/TableFunctions/TableFunctionURL.cpp diff --git a/dbms/src/TableFunctions/TableFunctionURL.h b/dbms/TableFunctions/TableFunctionURL.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionURL.h rename to dbms/TableFunctions/TableFunctionURL.h diff --git a/dbms/src/TableFunctions/TableFunctionValues.cpp b/dbms/TableFunctions/TableFunctionValues.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionValues.cpp rename to dbms/TableFunctions/TableFunctionValues.cpp diff --git a/dbms/src/TableFunctions/TableFunctionValues.h b/dbms/TableFunctions/TableFunctionValues.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionValues.h rename to dbms/TableFunctions/TableFunctionValues.h diff --git a/dbms/src/TableFunctions/TableFunctionZeros.cpp b/dbms/TableFunctions/TableFunctionZeros.cpp similarity index 100% rename from dbms/src/TableFunctions/TableFunctionZeros.cpp rename to dbms/TableFunctions/TableFunctionZeros.cpp diff --git a/dbms/src/TableFunctions/TableFunctionZeros.h b/dbms/TableFunctions/TableFunctionZeros.h similarity index 100% rename from dbms/src/TableFunctions/TableFunctionZeros.h rename to dbms/TableFunctions/TableFunctionZeros.h diff --git a/dbms/src/TableFunctions/parseColumnsListForTableFunction.cpp b/dbms/TableFunctions/parseColumnsListForTableFunction.cpp similarity index 100% rename from dbms/src/TableFunctions/parseColumnsListForTableFunction.cpp rename to dbms/TableFunctions/parseColumnsListForTableFunction.cpp diff --git a/dbms/src/TableFunctions/parseColumnsListForTableFunction.h b/dbms/TableFunctions/parseColumnsListForTableFunction.h similarity index 100% rename from dbms/src/TableFunctions/parseColumnsListForTableFunction.h rename to dbms/TableFunctions/parseColumnsListForTableFunction.h diff --git a/dbms/src/TableFunctions/registerTableFunctions.cpp b/dbms/TableFunctions/registerTableFunctions.cpp similarity index 100% rename from dbms/src/TableFunctions/registerTableFunctions.cpp rename to dbms/TableFunctions/registerTableFunctions.cpp diff --git a/dbms/src/TableFunctions/registerTableFunctions.h b/dbms/TableFunctions/registerTableFunctions.h similarity index 100% rename from dbms/src/TableFunctions/registerTableFunctions.h rename to dbms/TableFunctions/registerTableFunctions.h diff --git a/dbms/src/CMakeLists.txt b/dbms/src/CMakeLists.txt deleted file mode 100644 index b54266f4693..00000000000 --- a/dbms/src/CMakeLists.txt +++ /dev/null @@ -1,19 +0,0 @@ -add_subdirectory (Access) -add_subdirectory (Columns) -add_subdirectory (Common) -add_subdirectory (Core) -add_subdirectory (DataStreams) -add_subdirectory (DataTypes) -add_subdirectory (Dictionaries) -add_subdirectory (Disks) -add_subdirectory (Storages) -add_subdirectory (Parsers) -add_subdirectory (IO) -add_subdirectory (Functions) -add_subdirectory (Interpreters) -add_subdirectory (AggregateFunctions) -add_subdirectory (Client) -add_subdirectory (TableFunctions) -add_subdirectory (Processors) -add_subdirectory (Formats) -add_subdirectory (Compression) diff --git a/docker/builder/README.md b/docker/builder/README.md index 7fd8fe42335..5ae9a95a646 100644 --- a/docker/builder/README.md +++ b/docker/builder/README.md @@ -13,21 +13,21 @@ Run build: make build ``` -Before run, ensure that your user has access to docker: -To check, that you have access to Docker, run `docker ps`. -If not, you must add this user to `docker` group: `sudo usermod -aG docker $USER` and relogin. +Before run, ensure that your user has access to docker: +To check, that you have access to Docker, run `docker ps`. +If not, you must add this user to `docker` group: `sudo usermod -aG docker $USER` and relogin. (You must close all your sessions. For example, restart your computer.) -Build results are available in `build_docker` directory at top level of your working copy. +Build results are available in `build_docker` directory at top level of your working copy. It builds only binaries, not packages. For example, run server: ``` -cd $(git rev-parse --show-toplevel)/dbms/src/Server -$(git rev-parse --show-toplevel)/docker/builder/dbms/programs/clickhouse server --config-file $(git rev-parse --show-toplevel)/dbms/programs/server/config.xml +cd $(git rev-parse --show-toplevel)/dbms/Server +$(git rev-parse --show-toplevel)/docker/builder/programs/clickhouse server --config-file $(git rev-parse --show-toplevel)/programs/server/config.xml ``` Run client: ``` -$(git rev-parse --show-toplevel)/docker/builder/dbms/programs/clickhouse client +$(git rev-parse --show-toplevel)/docker/builder/programs/clickhouse client ``` diff --git a/docker/images.json b/docker/images.json index d21365fd49d..c7dfc82d906 100644 --- a/docker/images.json +++ b/docker/images.json @@ -14,5 +14,5 @@ "docker/test/unit": "yandex/clickhouse-unit-test", "docker/test/stress": "yandex/clickhouse-stress-test", "docker/test/split_build_smoke_test": "yandex/clickhouse-split-build-smoke-test", - "dbms/tests/integration/image": "yandex/clickhouse-integration-tests-runner" + "tests/integration/image": "yandex/clickhouse-integration-tests-runner" } diff --git a/docker/packager/binary/build.sh b/docker/packager/binary/build.sh index 94615a5a39d..e254fde8c52 100755 --- a/docker/packager/binary/build.sh +++ b/docker/packager/binary/build.sh @@ -16,7 +16,7 @@ rm -f CMakeCache.txt cmake .. -LA -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSANITIZE=$SANITIZER $CMAKE_FLAGS ninja ccache --show-stats ||: -mv ./dbms/programs/clickhouse* /output +mv ./programs/clickhouse* /output mv ./dbms/unit_tests_dbms /output find . -name '*.so' -print -exec mv '{}' /output \; find . -name '*.so.*' -print -exec mv '{}' /output \; @@ -24,7 +24,7 @@ find . -name '*.so.*' -print -exec mv '{}' /output \; # Different files for performance test. if [ "performance" == "$COMBINED_OUTPUT" ] then - cp -r ../dbms/tests/performance /output + cp -r ../tests/performance /output cp -r ../docker/test/performance-comparison/config /output ||: rm /output/unit_tests_dbms ||: rm /output/clickhouse-odbc-bridge ||: @@ -36,9 +36,9 @@ fi if [ "" != "$COMBINED_OUTPUT" ] then mkdir -p /output/config - cp ../dbms/programs/server/config.xml /output/config - cp ../dbms/programs/server/users.xml /output/config - cp -r ../dbms/programs/server/config.d /output/config + cp ../programs/server/config.xml /output/config + cp ../programs/server/users.xml /output/config + cp -r ../programs/server/config.d /output/config tar -czvf "$COMBINED_OUTPUT.tgz" /output rm -r /output/* mv "$COMBINED_OUTPUT.tgz" /output diff --git a/docker/packager/packager b/docker/packager/packager index 3c10788e662..506ac1bc19b 100755 --- a/docker/packager/packager +++ b/docker/packager/packager @@ -101,7 +101,7 @@ def run_vagrant_box_with_env(image_path, output_dir, ch_root): logging.info("Running build") vagrant.execute_cmd("cd ~/ClickHouse && cmake . && ninja") logging.info("Copying binary back") - vagrant.copy_from_image("~/ClickHouse/dbms/programs/clickhouse", output_dir) + vagrant.copy_from_image("~/ClickHouse/programs/clickhouse", output_dir) def parse_env_variables(build_type, compiler, sanitizer, package_type, image_type, cache, distcc_hosts, unbundled, split_binary, clang_tidy, version, author, official, alien_pkgs, with_coverage): CLANG_PREFIX = "clang" diff --git a/docker/test/performance-comparison/entrypoint.sh b/docker/test/performance-comparison/entrypoint.sh index 4176a1b1d7d..1aba59e982a 100755 --- a/docker/test/performance-comparison/entrypoint.sh +++ b/docker/test/performance-comparison/entrypoint.sh @@ -82,7 +82,7 @@ if [ "$REF_PR" == "" ]; then echo Reference PR is not specified ; exit 1 ; fi ) | tee right-commit.txt # Prepare the list of changed tests for use by compare.sh -git -C ch diff --name-only "$SHA_TO_TEST" "$(git -C ch merge-base "$SHA_TO_TEST"~ master)" -- dbms/tests/performance | tee changed-tests.txt +git -C ch diff --name-only "$SHA_TO_TEST" "$(git -C ch merge-base "$SHA_TO_TEST"~ master)" -- tests/performance | tee changed-tests.txt # Set python output encoding so that we can print queries with Russian letters. export PYTHONIOENCODING=utf-8 diff --git a/docker/test/performance-comparison/performance_comparison.md b/docker/test/performance-comparison/performance_comparison.md index 7c5172bf110..7407702b475 100644 --- a/docker/test/performance-comparison/performance_comparison.md +++ b/docker/test/performance-comparison/performance_comparison.md @@ -50,7 +50,7 @@ More stages are available, e.g. restart servers or run the tests. See the code. #### Run a single test on the already configured servers ``` -docker/test/performance-comparison/perf.py --host=localhost --port=9000 --runs=1 dbms/tests/performance/logical_functions_small.xml +docker/test/performance-comparison/perf.py --host=localhost --port=9000 --runs=1 tests/performance/logical_functions_small.xml ``` ### References diff --git a/docker/test/test_runner.sh b/docker/test/test_runner.sh index 6e6d4537603..76e142e61f9 100755 --- a/docker/test/test_runner.sh +++ b/docker/test/test_runner.sh @@ -42,8 +42,8 @@ if [ ${CLICKHOUSE_PACKAGES_ARG} != ${NO_REBUILD_FLAG} ]; then fi # # Create a bind-volume to the clickhouse-test script file -# docker volume create --driver local --opt type=none --opt device=/home/enmk/proj/ClickHouse_master/dbms/tests/clickhouse-test --opt o=bind clickhouse-test-script-volume -# docker volume create --driver local --opt type=none --opt device=/home/enmk/proj/ClickHouse_master/dbms/tests/queries --opt o=bind clickhouse-test-queries-dir-volume +# docker volume create --driver local --opt type=none --opt device=/home/enmk/proj/ClickHouse_master/tests/clickhouse-test --opt o=bind clickhouse-test-script-volume +# docker volume create --driver local --opt type=none --opt device=/home/enmk/proj/ClickHouse_master/tests/queries --opt o=bind clickhouse-test-queries-dir-volume # Build server image (optional) from local packages if [ -z "${CLICKHOUSE_SERVER_IMAGE}" ]; then @@ -81,4 +81,4 @@ CLICKHOUSE_SERVER_IMAGE="${CLICKHOUSE_SERVER_IMAGE}" \ docker-compose -f "${CLICKHOUSE_DOCKER_DIR}/test/test_runner_docker_compose.yaml" \ run \ --name test-runner \ - test-runner \ No newline at end of file + test-runner diff --git a/docker/test/test_runner_docker_compose.yaml b/docker/test/test_runner_docker_compose.yaml index ba2e525b3a5..2aef6a48d77 100644 --- a/docker/test/test_runner_docker_compose.yaml +++ b/docker/test/test_runner_docker_compose.yaml @@ -27,8 +27,8 @@ services: # NOTE: Dev-mode: mount newest versions of the queries and clickhouse-test script into container. # volumes: - # - /home/enmk/proj/ClickHouse_master/dbms/tests/queries:/usr/share/clickhouse-test/queries:ro - # - /home/enmk/proj/ClickHouse_master/dbms/tests/clickhouse-test:/usr/bin/clickhouse-test:ro + # - /home/enmk/proj/ClickHouse_master/tests/queries:/usr/share/clickhouse-test/queries:ro + # - /home/enmk/proj/ClickHouse_master/tests/clickhouse-test:/usr/bin/clickhouse-test:ro # String-form instead of list-form to allow multiple arguments in "${CLICKHOUSE_TEST_ARGS}" entrypoint: "clickhouse-test ${CLICKHOUSE_TEST_ARGS}" diff --git a/docs/en/development/browse_code.md b/docs/en/development/browse_code.md index 2a109c9323c..d6994c293ac 100644 --- a/docs/en/development/browse_code.md +++ b/docs/en/development/browse_code.md @@ -1,6 +1,6 @@ # Browse ClickHouse Source Code {#browse-clickhouse-source-code} -You can use **Woboq** online code browser available [here](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/src/index.html). It provides code navigation and semantic highlighting, search and indexing. The code snapshot is updated daily. +You can use **Woboq** online code browser available [here](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/index.html). It provides code navigation and semantic highlighting, search and indexing. The code snapshot is updated daily. Also, you can browse sources on [GitHub](https://github.com/ClickHouse/ClickHouse) as usual. diff --git a/docs/en/development/build.md b/docs/en/development/build.md index 57873226f7c..65558060925 100644 --- a/docs/en/development/build.md +++ b/docs/en/development/build.md @@ -60,7 +60,7 @@ $ cd .. ``` To create an executable, run `ninja clickhouse`. -This will create the `dbms/programs/clickhouse` executable, which can be used with `client` or `server` arguments. +This will create the `programs/clickhouse` executable, which can be used with `client` or `server` arguments. # How to Build ClickHouse on Any Linux {#how-to-build-clickhouse-on-any-linux} diff --git a/docs/en/development/developer_instruction.md b/docs/en/development/developer_instruction.md index c9cfd10a070..66294f1fbd4 100644 --- a/docs/en/development/developer_instruction.md +++ b/docs/en/development/developer_instruction.md @@ -193,19 +193,19 @@ Upon the successful start of the building process, you’ll see the build progre While building messages about protobuf files in libhdfs2 library like `libprotobuf WARNING` may show up. They affect nothing and are safe to be ignored. -Upon successful build you get an executable file `ClickHouse//dbms/programs/clickhouse`: +Upon successful build you get an executable file `ClickHouse//programs/clickhouse`: - ls -l dbms/programs/clickhouse + ls -l programs/clickhouse # Running the built executable of ClickHouse {#running-the-built-executable-of-clickhouse} -To run the server under the current user you need to navigate to `ClickHouse/dbms/programs/server/` (located outside of `build`) and run: +To run the server under the current user you need to navigate to `ClickHouse/programs/server/` (located outside of `build`) and run: - ../../../build/dbms/programs/clickhouse server + ../../../build/programs/clickhouse server In this case, ClickHouse will use config files located in the current directory. You can run `clickhouse server` from any directory specifying the path to a config file as a command-line parameter `--config-file`. -To connect to ClickHouse with clickhouse-client in another terminal navigate to `ClickHouse/build/dbms/programs/` and run `clickhouse client`. +To connect to ClickHouse with clickhouse-client in another terminal navigate to `ClickHouse/build/programs/` and run `clickhouse client`. If you get `Connection refused` message on Mac OS X or FreeBSD, try specifying host address 127.0.0.1: @@ -214,7 +214,7 @@ If you get `Connection refused` message on Mac OS X or FreeBSD, try specifying h You can replace the production version of ClickHouse binary installed in your system with your custom-built ClickHouse binary. To do that install ClickHouse on your machine following the instructions from the official website. Next, run the following: sudo service clickhouse-server stop - sudo cp ClickHouse/build/dbms/programs/clickhouse /usr/bin/ + sudo cp ClickHouse/build/programs/clickhouse /usr/bin/ sudo service clickhouse-server start Note that `clickhouse-client`, `clickhouse-server` and others are symlinks to the commonly shared `clickhouse` binary. @@ -222,7 +222,7 @@ Note that `clickhouse-client`, `clickhouse-server` and others are symlinks to th You can also run your custom-built ClickHouse binary with the config file from the ClickHouse package installed on your system: sudo service clickhouse-server stop - sudo -u clickhouse ClickHouse/build/dbms/programs/clickhouse server --config-file /etc/clickhouse-server/config.xml + sudo -u clickhouse ClickHouse/build/programs/clickhouse server --config-file /etc/clickhouse-server/config.xml # IDE (Integrated Development Environment) {#ide-integrated-development-environment} @@ -242,7 +242,7 @@ The Code Style Guide: https://clickhouse.tech/docs/en/development/style/ Writing tests: https://clickhouse.tech/docs/en/development/tests/ -List of tasks: https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/instructions/easy\_tasks\_sorted\_en.md +List of tasks: https://github.com/ClickHouse/ClickHouse/blob/master/testsructions/easy\_tasks\_sorted\_en.md # Test Data {#test-data} diff --git a/docs/en/development/tests.md b/docs/en/development/tests.md index e061f1c3144..ac0051fed70 100644 --- a/docs/en/development/tests.md +++ b/docs/en/development/tests.md @@ -6,15 +6,15 @@ Functional tests are the most simple and convenient to use. Most of ClickHouse f Each functional test sends one or multiple queries to the running ClickHouse server and compares the result with reference. -Tests are located in `dbms/tests/queries` directory. There are two subdirectories: `stateless` and `stateful`. Stateless tests run queries without any preloaded test data - they often create small synthetic datasets on the fly, within the test itself. Stateful tests require preloaded test data from Yandex.Metrica and not available to general public. We tend to use only `stateless` tests and avoid adding new `stateful` tests. +Tests are located in `testsies` directory. There are two subdirectories: `stateless` and `stateful`. Stateless tests run queries without any preloaded test data - they often create small synthetic datasets on the fly, within the test itself. Stateful tests require preloaded test data from Yandex.Metrica and not available to general public. We tend to use only `stateless` tests and avoid adding new `stateful` tests. Each test can be one of two types: `.sql` and `.sh`. `.sql` test is the simple SQL script that is piped to `clickhouse-client --multiquery --testmode`. `.sh` test is a script that is run by itself. -To run all tests, use `dbms/tests/clickhouse-test` tool. Look `--help` for the list of possible options. You can simply run all tests or run subset of tests filtered by substring in test name: `./clickhouse-test substring`. +To run all tests, use `testskhouse-test` tool. Look `--help` for the list of possible options. You can simply run all tests or run subset of tests filtered by substring in test name: `./clickhouse-test substring`. The most simple way to invoke functional tests is to copy `clickhouse-client` to `/usr/bin/`, run `clickhouse-server` and then run `./clickhouse-test` from its own directory. -To add new test, create a `.sql` or `.sh` file in `dbms/tests/queries/0_stateless` directory, check it manually and then generate `.reference` file in the following way: `clickhouse-client -n --testmode < 00000_test.sql > 00000_test.reference` or `./00000_test.sh > ./00000_test.reference`. +To add new test, create a `.sql` or `.sh` file in `testsies/0_stateless` directory, check it manually and then generate `.reference` file in the following way: `clickhouse-client -n --testmode < 00000_test.sql > 00000_test.reference` or `./00000_test.sh > ./00000_test.reference`. Tests should use (create, drop, etc) only tables in `test` database that is assumed to be created beforehand; also tests can use temporary tables. @@ -29,13 +29,13 @@ disable these groups of tests using `--no-zookeeper`, `--no-shard` and ## Known bugs {#known-bugs} -If we know some bugs that can be easily reproduced by functional tests, we place prepared functional tests in `dbms/tests/queries/bugs` directory. These tests will be moved to `dbms/tests/queries/0_stateless` when bugs are fixed. +If we know some bugs that can be easily reproduced by functional tests, we place prepared functional tests in `testsies/bugs` directory. These tests will be moved to `teststests_stateless` when bugs are fixed. ## Integration Tests {#integration-tests} Integration tests allow to test ClickHouse in clustered configuration and ClickHouse interaction with other servers like MySQL, Postgres, MongoDB. They are useful to emulate network splits, packet drops, etc. These tests are run under Docker and create multiple containers with various software. -See `dbms/tests/integration/README.md` on how to run these tests. +See `testsgration/README.md` on how to run these tests. Note that integration of ClickHouse with third-party drivers is not tested. Also we currently don’t have integration tests with our JDBC and ODBC drivers. @@ -47,7 +47,7 @@ It’s not necessarily to have unit tests if the code is already covered by func ## Performance Tests {#performance-tests} -Performance tests allow to measure and compare performance of some isolated part of ClickHouse on synthetic queries. Tests are located at `dbms/tests/performance`. Each test is represented by `.xml` file with description of test case. Tests are run with `clickhouse performance-test` tool (that is embedded in `clickhouse` binary). See `--help` for invocation. +Performance tests allow to measure and compare performance of some isolated part of ClickHouse on synthetic queries. Tests are located at `tests/performance`. Each test is represented by `.xml` file with description of test case. Tests are run with `clickhouse performance-test` tool (that is embedded in `clickhouse` binary). See `--help` for invocation. Each test run one or miltiple queries (possibly with combinations of parameters) in a loop with some conditions for stop (like “maximum execution speed is not changing in three seconds”) and measure some metrics about query performance (like “maximum execution speed”). Some tests can contain preconditions on preloaded test dataset. @@ -55,13 +55,13 @@ If you want to improve performance of ClickHouse in some scenario, and if improv ## Test Tools And Scripts {#test-tools-and-scripts} -Some programs in `tests` directory are not prepared tests, but are test tools. For example, for `Lexer` there is a tool `dbms/src/Parsers/tests/lexer` that just do tokenization of stdin and writes colorized result to stdout. You can use these kind of tools as a code examples and for exploration and manual testing. +Some programs in `tests` directory are not prepared tests, but are test tools. For example, for `Lexer` there is a tool `dbms/Parsers/tests/lexer` that just do tokenization of stdin and writes colorized result to stdout. You can use these kind of tools as a code examples and for exploration and manual testing. You can also place pair of files `.sh` and `.reference` along with the tool to run it on some predefined input - then script result can be compared to `.reference` file. These kind of tests are not automated. ## Miscellanous Tests {#miscellanous-tests} -There are tests for external dictionaries located at `dbms/tests/external_dictionaries` and for machine learned models in `dbms/tests/external_models`. These tests are not updated and must be transferred to integration tests. +There are tests for external dictionaries located at `tests/external_dictionaries` and for machine learned models in `tests/external_models`. These tests are not updated and must be transferred to integration tests. There is separate test for quorum inserts. This test run ClickHouse cluster on separate servers and emulate various failure cases: network split, packet drop (between ClickHouse nodes, between ClickHouse and ZooKeeper, between ClickHouse server and client, etc.), `kill -9`, `kill -STOP` and `kill -CONT` , like [Jepsen](https://aphyr.com/tags/Jepsen). Then the test checks that all acknowledged inserts was written and all rejected inserts was not. @@ -71,9 +71,9 @@ Quorum test was written by separate team before ClickHouse was open-sourced. Thi When you develop a new feature, it is reasonable to also test it manually. You can do it with the following steps: -Build ClickHouse. Run ClickHouse from the terminal: change directory to `dbms/src/programs/clickhouse-server` and run it with `./clickhouse-server`. It will use configuration (`config.xml`, `users.xml` and files within `config.d` and `users.d` directories) from the current directory by default. To connect to ClickHouse server, run `dbms/src/programs/clickhouse-client/clickhouse-client`. +Build ClickHouse. Run ClickHouse from the terminal: change directory to `programs/clickhouse-server` and run it with `./clickhouse-server`. It will use configuration (`config.xml`, `users.xml` and files within `config.d` and `users.d` directories) from the current directory by default. To connect to ClickHouse server, run `programs/clickhouse-client/clickhouse-client`. -Note that all clickhouse tools (server, client, etc) are just symlinks to a single binary named `clickhouse`. You can find this binary at `dbms/src/programs/clickhouse`. All tools can also be invoked as `clickhouse tool` instead of `clickhouse-tool`. +Note that all clickhouse tools (server, client, etc) are just symlinks to a single binary named `clickhouse`. You can find this binary at `programs/clickhouse`. All tools can also be invoked as `clickhouse tool` instead of `clickhouse-tool`. Alternatively you can install ClickHouse package: either stable release from Yandex repository or you can build package for yourself with `./release` in ClickHouse sources root. Then start the server with `sudo service clickhouse-server start` (or stop to stop the server). Look for logs at `/etc/clickhouse-server/clickhouse-server.log`. @@ -202,7 +202,7 @@ People from Yandex Cloud department do some basic overview of ClickHouse capabil ## Static Analyzers {#static-analyzers} -We run `PVS-Studio` on per-commit basis. We have evaluated `clang-tidy`, `Coverity`, `cppcheck`, `PVS-Studio`, `tscancode`. You will find instructions for usage in `dbms/tests/instructions/` directory. Also you can read [the article in russian](https://habr.com/company/yandex/blog/342018/). +We run `PVS-Studio` on per-commit basis. We have evaluated `clang-tidy`, `Coverity`, `cppcheck`, `PVS-Studio`, `tscancode`. You will find instructions for usage in `tests/instructions/` directory. Also you can read [the article in russian](https://habr.com/company/yandex/blog/342018/). If you use `CLion` as an IDE, you can leverage some `clang-tidy` checks out of the box. @@ -242,3 +242,4 @@ We don’t use Travis CI due to the limit on time and computational power. We don’t use Jenkins. It was used before and now we are happy we are not using Jenkins. [Original article](https://clickhouse.tech/docs/en/development/tests/) +velopment/tests/) diff --git a/docs/en/getting_started/example_datasets/metrica.md b/docs/en/getting_started/example_datasets/metrica.md index e855f4b98a3..d4373948c03 100644 --- a/docs/en/getting_started/example_datasets/metrica.md +++ b/docs/en/getting_started/example_datasets/metrica.md @@ -60,4 +60,4 @@ clickhouse-client --query "SELECT COUNT(*) FROM datasets.visits_v1" [ClickHouse tutorial](../../getting_started/tutorial.md) is based on Yandex.Metrica dataset and the recommended way to get started with this dataset is to just go through tutorial. -Additional examples of queries to these tables can be found among [stateful tests](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/tests/queries/1_stateful) of ClickHouse (they are named `test.hists` and `test.visits` there). +Additional examples of queries to these tables can be found among [stateful tests](https://github.com/ClickHouse/ClickHouse/tree/master/tests/queries/1_stateful) of ClickHouse (they are named `test.hists` and `test.visits` there). diff --git a/docs/en/getting_started/install.md b/docs/en/getting_started/install.md index c54051581f6..3af47b81c88 100644 --- a/docs/en/getting_started/install.md +++ b/docs/en/getting_started/install.md @@ -104,10 +104,10 @@ To manually compile ClickHouse, follow the instructions for [Linux](../developme You can compile packages and install them or use programs without installing packages. Also by building manually you can disable SSE 4.2 requirement or build for AArch64 CPUs. - Client: dbms/programs/clickhouse-client - Server: dbms/programs/clickhouse-server + Client: programs/clickhouse-client + Server: programs/clickhouse-server -You’ll need to create a data and metadata folders and `chown` them for the desired user. Their paths can be changed in server config (src/dbms/programs/server/config.xml), by default they are: +You’ll need to create a data and metadata folders and `chown` them for the desired user. Their paths can be changed in server config (src/programs/server/config.xml), by default they are: /opt/clickhouse/data/default/ /opt/clickhouse/metadata/default/ diff --git a/docs/en/interfaces/tcp.md b/docs/en/interfaces/tcp.md index 03122beb8c3..876ccf12f8a 100644 --- a/docs/en/interfaces/tcp.md +++ b/docs/en/interfaces/tcp.md @@ -1,5 +1,5 @@ # Native Interface (TCP) {#native-interface-tcp} -The native protocol is used in the [command-line client](cli.md), for inter-server communication during distributed query processing, and also in other C++ programs. Unfortunately, native ClickHouse protocol does not have formal specification yet, but it can be reverse-engineered from ClickHouse source code (starting [around here](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/src/Client)) and/or by intercepting and analyzing TCP traffic. +The native protocol is used in the [command-line client](cli.md), for inter-server communication during distributed query processing, and also in other C++ programs. Unfortunately, native ClickHouse protocol does not have formal specification yet, but it can be reverse-engineered from ClickHouse source code (starting [around here](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/Client)) and/or by intercepting and analyzing TCP traffic. [Original article](https://clickhouse.tech/docs/en/interfaces/tcp/) diff --git a/docs/en/operations/backup.md b/docs/en/operations/backup.md index d9d9cf3f284..52f7705f568 100644 --- a/docs/en/operations/backup.md +++ b/docs/en/operations/backup.md @@ -1,6 +1,6 @@ # Data Backup {#data-backup} -While [replication](table_engines/replication.md) provides protection from hardware failures, it does not protect against human errors: accidental deletion of data, deletion of the wrong table or a table on the wrong cluster, and software bugs that result in incorrect data processing or data corruption. In many cases mistakes like these will affect all replicas. ClickHouse has built-in safeguards to prevent some types of mistakes — for example, by default [you can’t just drop tables with a MergeTree-like engine containing more than 50 Gb of data](https://github.com/ClickHouse/ClickHouse/blob/v18.14.18-stable/dbms/programs/server/config.xml#L322-L330). However, these safeguards don’t cover all possible cases and can be circumvented. +While [replication](table_engines/replication.md) provides protection from hardware failures, it does not protect against human errors: accidental deletion of data, deletion of the wrong table or a table on the wrong cluster, and software bugs that result in incorrect data processing or data corruption. In many cases mistakes like these will affect all replicas. ClickHouse has built-in safeguards to prevent some types of mistakes — for example, by default [you can’t just drop tables with a MergeTree-like engine containing more than 50 Gb of data](https://github.com/ClickHouse/ClickHouse/blob/v18.14.18-stable/programs/server/config.xml#L322-L330). However, these safeguards don’t cover all possible cases and can be circumvented. In order to effectively mitigate possible human errors, you should carefully prepare a strategy for backing up and restoring your data **in advance**. diff --git a/docs/en/operations/performance/sampling_query_profiler_example_result.txt b/docs/en/operations/performance/sampling_query_profiler_example_result.txt index 8e4e0e0fd70..56c2fdf9c65 100644 --- a/docs/en/operations/performance/sampling_query_profiler_example_result.txt +++ b/docs/en/operations/performance/sampling_query_profiler_example_result.txt @@ -2,55 +2,55 @@ Row 1: ────── count(): 6344 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 read DB::ReadBufferFromFileDescriptor::nextImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBufferFromFileDescriptor.cpp:56 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBufferFromFileDescriptor.cpp:56 DB::CompressedReadBufferBase::readCompressedData(unsigned long&, unsigned long&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBuffer.h:54 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBuffer.h:54 DB::CompressedReadBufferFromFile::nextImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Compression/CompressedReadBufferFromFile.cpp:22 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Compression/CompressedReadBufferFromFile.cpp:22 DB::CompressedReadBufferFromFile::seek(unsigned long, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Compression/CompressedReadBufferFromFile.cpp:63 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Compression/CompressedReadBufferFromFile.cpp:63 DB::MergeTreeReaderStream::seekToMark(unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReaderStream.cpp:200 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReaderStream.cpp:200 std::_Function_handler > const&), DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool)::{lambda(bool)#1}::operator()(bool) const::{lambda(std::vector > const&)#1}>::_M_invoke(std::_Any_data const&, std::vector > const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:212 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:212 DB::IDataType::deserializeBinaryBulkWithMultipleStreams(DB::IColumn&, unsigned long, DB::IDataType::DeserializeBinaryBulkSettings&, std::shared_ptr&) const /usr/local/include/c++/9.1.0/bits/std_function.h:690 DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:232 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:232 DB::MergeTreeReader::readRows(unsigned long, bool, unsigned long, DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:111 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:111 DB::MergeTreeRangeReader::DelayedStream::finalize(DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:35 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:35 DB::MergeTreeRangeReader::continueReadingChain(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:219 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:219 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:487 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:487 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -66,9 +66,9 @@ Row 2: ────── count(): 3295 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 __pthread_cond_wait @@ -82,11 +82,11 @@ DB::UnionBlockInputStream::readImpl() DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Core/Block.h:90 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Core/Block.h:90 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::LimitBlockInputStream::readImpl() @@ -100,7 +100,7 @@ std::_Function_handler::worker(std::_List_iterator) /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/gthr-default.h:748 ThreadFromGlobalPool::ThreadFromGlobalPool::scheduleImpl(std::function, int, std::optional)::{lambda()#3}>(ThreadPoolImpl::scheduleImpl(std::function, int, std::optional)::{lambda()#3}&&)::{lambda()#1}::operator()() const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/ThreadPool.h:146 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/ThreadPool.h:146 ThreadPoolImpl::worker(std::_List_iterator) /usr/local/include/c++/9.1.0/bits/unique_lock.h:69 execute_native_thread_routine @@ -114,47 +114,47 @@ Row 3: ────── count(): 1978 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 DB::VolnitskyBase >::search(unsigned char const*, unsigned long) const - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::MatchImpl::vector_constant(DB::PODArray, 15ul, 16ul> const&, DB::PODArray, 15ul, 16ul> const&, std::__cxx11::basic_string, std::allocator > const&, DB::PODArray, 15ul, 16ul>&) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::FunctionsStringSearch, DB::NameLike>::executeImpl(DB::Block&, std::vector > const&, unsigned long, unsigned long) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::PreparedFunctionImpl::execute(DB::Block&, std::vector > const&, unsigned long, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Functions/IFunction.cpp:464 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Functions/IFunction.cpp:464 DB::ExpressionAction::execute(DB::Block&, bool) const /usr/local/include/c++/9.1.0/bits/stl_vector.h:677 DB::ExpressionActions::execute(DB::Block&, bool) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Interpreters/ExpressionActions.cpp:739 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Interpreters/ExpressionActions.cpp:739 DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:660 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:660 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:546 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:546 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -170,47 +170,47 @@ Row 4: ────── count(): 1913 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 DB::VolnitskyBase >::search(unsigned char const*, unsigned long) const - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::MatchImpl::vector_constant(DB::PODArray, 15ul, 16ul> const&, DB::PODArray, 15ul, 16ul> const&, std::__cxx11::basic_string, std::allocator > const&, DB::PODArray, 15ul, 16ul>&) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::FunctionsStringSearch, DB::NameLike>::executeImpl(DB::Block&, std::vector > const&, unsigned long, unsigned long) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::PreparedFunctionImpl::execute(DB::Block&, std::vector > const&, unsigned long, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Functions/IFunction.cpp:464 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Functions/IFunction.cpp:464 DB::ExpressionAction::execute(DB::Block&, bool) const /usr/local/include/c++/9.1.0/bits/stl_vector.h:677 DB::ExpressionActions::execute(DB::Block&, bool) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Interpreters/ExpressionActions.cpp:739 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Interpreters/ExpressionActions.cpp:739 DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:660 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:660 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:546 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:546 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -226,47 +226,47 @@ Row 5: ────── count(): 1672 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 DB::VolnitskyBase >::search(unsigned char const*, unsigned long) const - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::MatchImpl::vector_constant(DB::PODArray, 15ul, 16ul> const&, DB::PODArray, 15ul, 16ul> const&, std::__cxx11::basic_string, std::allocator > const&, DB::PODArray, 15ul, 16ul>&) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::FunctionsStringSearch, DB::NameLike>::executeImpl(DB::Block&, std::vector > const&, unsigned long, unsigned long) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::PreparedFunctionImpl::execute(DB::Block&, std::vector > const&, unsigned long, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Functions/IFunction.cpp:464 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Functions/IFunction.cpp:464 DB::ExpressionAction::execute(DB::Block&, bool) const /usr/local/include/c++/9.1.0/bits/stl_vector.h:677 DB::ExpressionActions::execute(DB::Block&, bool) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Interpreters/ExpressionActions.cpp:739 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Interpreters/ExpressionActions.cpp:739 DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:660 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:660 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:546 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:546 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -282,53 +282,53 @@ Row 6: ────── count(): 1531 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 read DB::ReadBufferFromFileDescriptor::nextImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBufferFromFileDescriptor.cpp:56 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBufferFromFileDescriptor.cpp:56 DB::CompressedReadBufferBase::readCompressedData(unsigned long&, unsigned long&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBuffer.h:54 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBuffer.h:54 DB::CompressedReadBufferFromFile::nextImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Compression/CompressedReadBufferFromFile.cpp:22 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Compression/CompressedReadBufferFromFile.cpp:22 void DB::deserializeBinarySSE2<4>(DB::PODArray, 15ul, 16ul>&, DB::PODArray, 15ul, 16ul>&, DB::ReadBuffer&, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBuffer.h:53 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBuffer.h:53 DB::DataTypeString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataTypes/DataTypeString.cpp:202 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataTypes/DataTypeString.cpp:202 DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:232 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:232 DB::MergeTreeReader::readRows(unsigned long, bool, unsigned long, DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:111 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:111 DB::MergeTreeRangeReader::DelayedStream::finalize(DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:35 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:35 DB::MergeTreeRangeReader::startReadingChain(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:219 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:219 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -344,47 +344,47 @@ Row 7: ────── count(): 1034 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 DB::VolnitskyBase >::search(unsigned char const*, unsigned long) const - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::MatchImpl::vector_constant(DB::PODArray, 15ul, 16ul> const&, DB::PODArray, 15ul, 16ul> const&, std::__cxx11::basic_string, std::allocator > const&, DB::PODArray, 15ul, 16ul>&) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::FunctionsStringSearch, DB::NameLike>::executeImpl(DB::Block&, std::vector > const&, unsigned long, unsigned long) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::PreparedFunctionImpl::execute(DB::Block&, std::vector > const&, unsigned long, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Functions/IFunction.cpp:464 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Functions/IFunction.cpp:464 DB::ExpressionAction::execute(DB::Block&, bool) const /usr/local/include/c++/9.1.0/bits/stl_vector.h:677 DB::ExpressionActions::execute(DB::Block&, bool) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Interpreters/ExpressionActions.cpp:739 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Interpreters/ExpressionActions.cpp:739 DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:660 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:660 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:546 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:546 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -400,9 +400,9 @@ Row 8: ────── count(): 989 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 __lll_lock_wait @@ -412,7 +412,7 @@ pthread_mutex_lock DB::MergeTreeReaderStream::loadMarks() /usr/local/include/c++/9.1.0/bits/std_mutex.h:103 DB::MergeTreeReaderStream::MergeTreeReaderStream(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, unsigned long, std::vector > const&, DB::MarkCache*, bool, DB::UncompressedCache*, unsigned long, unsigned long, unsigned long, DB::MergeTreeIndexGranularityInfo const*, std::function const&, int) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReaderStream.cpp:107 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReaderStream.cpp:107 std::_Function_handler > const&), DB::MergeTreeReader::addStreams(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, std::function const&, int)::{lambda(std::vector > const&)#1}>::_M_invoke(std::_Any_data const&, std::vector > const&) /usr/local/include/c++/9.1.0/bits/unique_ptr.h:147 DB::MergeTreeReader::addStreams(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, std::function const&, int) @@ -422,21 +422,21 @@ DB::MergeTreeReader::MergeTreeReader(std::__cxx11::basic_string::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -452,45 +452,45 @@ Row 9: ─────── count(): 779 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 void DB::deserializeBinarySSE2<4>(DB::PODArray, 15ul, 16ul>&, DB::PODArray, 15ul, 16ul>&, DB::ReadBuffer&, unsigned long) /usr/local/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include/emmintrin.h:727 DB::DataTypeString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataTypes/DataTypeString.cpp:202 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataTypes/DataTypeString.cpp:202 DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:232 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:232 DB::MergeTreeReader::readRows(unsigned long, bool, unsigned long, DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:111 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:111 DB::MergeTreeRangeReader::DelayedStream::finalize(DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:35 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:35 DB::MergeTreeRangeReader::startReadingChain(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:219 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:219 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -506,45 +506,45 @@ Row 10: ─────── count(): 666 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 void DB::deserializeBinarySSE2<4>(DB::PODArray, 15ul, 16ul>&, DB::PODArray, 15ul, 16ul>&, DB::ReadBuffer&, unsigned long) /usr/local/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include/emmintrin.h:727 DB::DataTypeString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataTypes/DataTypeString.cpp:202 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataTypes/DataTypeString.cpp:202 DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:232 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:232 DB::MergeTreeReader::readRows(unsigned long, bool, unsigned long, DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:111 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:111 DB::MergeTreeRangeReader::DelayedStream::finalize(DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:35 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:35 DB::MergeTreeRangeReader::startReadingChain(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:219 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:219 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) diff --git a/docs/en/operations/performance_test.md b/docs/en/operations/performance_test.md index 3413bc87346..c7cb0e2d78f 100644 --- a/docs/en/operations/performance_test.md +++ b/docs/en/operations/performance_test.md @@ -23,19 +23,19 @@ With this instruction you can run basic ClickHouse performance test on any serve - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/programs/server/config.xml - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/programs/server/users.xml + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/config.xml + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/users.xml mkdir config.d - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/programs/server/config.d/path.xml -O config.d/path.xml - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/programs/server/config.d/log_to_console.xml -O config.d/log_to_console.xml + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/config.d/path.xml -O config.d/path.xml + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/config.d/log_to_console.xml -O config.d/log_to_console.xml 1. Download benchmark files: - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/benchmark/clickhouse/benchmark-new.sh + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/benchmark/clickhouse/benchmark-new.sh chmod a+x benchmark-new.sh - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/benchmark/clickhouse/queries.sql + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/benchmark/clickhouse/queries.sql 1. Download test data according to the [Yandex.Metrica dataset](../getting_started/example_datasets/metrica.md) instruction (“hits” table containing 100 million rows). diff --git a/docs/en/operations/settings/query_complexity.md b/docs/en/operations/settings/query_complexity.md index 6f3819d48e9..f62fa3b0008 100644 --- a/docs/en/operations/settings/query_complexity.md +++ b/docs/en/operations/settings/query_complexity.md @@ -37,7 +37,7 @@ Memory consumption is also restricted by the parameters `max_memory_usage_for_us The maximum amount of RAM to use for running a user’s queries on a single server. -Default values are defined in [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Core/Settings.h#L288). By default, the amount is not restricted (`max_memory_usage_for_user = 0`). +Default values are defined in [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Core/Settings.h#L288). By default, the amount is not restricted (`max_memory_usage_for_user = 0`). See also the description of [max\_memory\_usage](#settings_max_memory_usage). @@ -45,7 +45,7 @@ See also the description of [max\_memory\_usage](#settings_max_memory_usage). The maximum amount of RAM to use for running all queries on a single server. -Default values are defined in [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Core/Settings.h#L289). By default, the amount is not restricted (`max_memory_usage_for_all_queries = 0`). +Default values are defined in [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Core/Settings.h#L289). By default, the amount is not restricted (`max_memory_usage_for_all_queries = 0`). See also the description of [max\_memory\_usage](#settings_max_memory_usage). diff --git a/docs/en/operations/system_tables.md b/docs/en/operations/system_tables.md index 1ef90001ae1..4bd58052196 100644 --- a/docs/en/operations/system_tables.md +++ b/docs/en/operations/system_tables.md @@ -252,7 +252,7 @@ Columns: - `value` ([Int64](../data_types/int_uint.md)) — Metric value. - `description` ([String](../data_types/string.md)) — Metric description. -The list of supported metrics you can find in the [dbms/src/Common/CurrentMetrics.cpp](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Common/CurrentMetrics.cpp) source file of ClickHouse. +The list of supported metrics you can find in the [dbms/Common/CurrentMetrics.cpp](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Common/CurrentMetrics.cpp) source file of ClickHouse. **Example** diff --git a/docs/en/query_language/alter.md b/docs/en/query_language/alter.md index 8e9915194c9..625b460c0ef 100644 --- a/docs/en/query_language/alter.md +++ b/docs/en/query_language/alter.md @@ -442,7 +442,7 @@ All the rules above are also true for the [OPTIMIZE](misc.md#misc_operations-opt OPTIMIZE TABLE table_not_partitioned PARTITION tuple() FINAL; ``` -The examples of `ALTER ... PARTITION` queries are demonstrated in the tests [`00502_custom_partitioning_local`](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00502_custom_partitioning_local.sql) and [`00502_custom_partitioning_replicated_zookeeper`](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql). +The examples of `ALTER ... PARTITION` queries are demonstrated in the tests [`00502_custom_partitioning_local`](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00502_custom_partitioning_local.sql) and [`00502_custom_partitioning_replicated_zookeeper`](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql). ### Manipulations with Table TTL {#manipulations-with-table-ttl} diff --git a/docs/en/query_language/create.md b/docs/en/query_language/create.md index e0ee7b71d9d..066eb396b19 100644 --- a/docs/en/query_language/create.md +++ b/docs/en/query_language/create.md @@ -147,7 +147,7 @@ ENGINE = If a codec is specified, the default codec doesn’t apply. Codecs can be combined in a pipeline, for example, `CODEC(Delta, ZSTD)`. To select the best codec combination for you project, pass benchmarks similar to described in the Altinity [New Encodings to Improve ClickHouse Efficiency](https://www.altinity.com/blog/2019/7/new-encodings-to-improve-clickhouse) article. !!! warning "Warning" - You can’t decompress ClickHouse database files with external utilities like `lz4`. Instead, use the special [clickhouse-compressor](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/programs/compressor) utility. + You can’t decompress ClickHouse database files with external utilities like `lz4`. Instead, use the special [clickhouse-compressor](https://github.com/ClickHouse/ClickHouse/tree/master/programs/compressor) utility. Compression is supported for the following table engines: diff --git a/docs/en/query_language/functions/introspection.md b/docs/en/query_language/functions/introspection.md index 389a0555315..5193d3a85a7 100644 --- a/docs/en/query_language/functions/introspection.md +++ b/docs/en/query_language/functions/introspection.md @@ -35,7 +35,7 @@ addressToLine(address_of_binary_instruction) - Source code filename and the line number in this file delimited by colon. - For example, `/build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:199`, where `199` is a line number. + For example, `/build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.cpp:199`, where `199` is a line number. - Name of a binary, if the function couldn’t find the debug information. @@ -80,7 +80,7 @@ SELECT addressToLine(94784076370703) \G ``` text Row 1: ────── -addressToLine(94784076370703): /build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:199 +addressToLine(94784076370703): /build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.cpp:199 ``` Applying the function to the whole stack trace: @@ -100,8 +100,8 @@ Row 1: ────── trace_source_code_lines: /lib/x86_64-linux-gnu/libpthread-2.27.so /usr/lib/debug/usr/bin/clickhouse -/build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:199 -/build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.h:155 +/build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.cpp:199 +/build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.h:155 /usr/include/c++/9/bits/atomic_base.h:551 /usr/lib/debug/usr/bin/clickhouse /lib/x86_64-linux-gnu/libpthread-2.27.so diff --git a/docs/en/query_language/operators.md b/docs/en/query_language/operators.md index 5630ce31e34..700a5c87c9a 100644 --- a/docs/en/query_language/operators.md +++ b/docs/en/query_language/operators.md @@ -129,7 +129,7 @@ FROM test.Orders; └───────────┴────────────┴──────────┴───────────┴─────────────┴─────────────┘ ``` -You can see more examples in [tests](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00619_extract.sql). +You can see more examples in [tests](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00619_extract.sql). ### INTERVAL {#operator-interval} diff --git a/docs/es/changelog/index.md b/docs/es/changelog/index.md index 4ee7c076082..26a516494f3 100644 --- a/docs/es/changelog/index.md +++ b/docs/es/changelog/index.md @@ -241,7 +241,7 @@ machine_translated: true - Comprobación actualizada de consultas colgadas en el script de prueba de clickhouse [\#8858](https://github.com/ClickHouse/ClickHouse/pull/8858) ([Alejandro Kazakov](https://github.com/Akazz)) - Se eliminaron algunos archivos inútiles del repositorio. [\#8843](https://github.com/ClickHouse/ClickHouse/pull/8843) ([alexey-milovidov](https://github.com/alexey-milovidov)) - Tipo cambiado de perftests matemáticos de `once` a `loop`. [\#8783](https://github.com/ClickHouse/ClickHouse/pull/8783) ([Nikolai Kochetov](https://github.com/KochetovNicolai)) -- Agregue una imagen acoplable que permite construir un informe HTML del navegador de código interactivo para nuestra base de código. [\#8781](https://github.com/ClickHouse/ClickHouse/pull/8781) ([alesapin](https://github.com/alesapin)) Ver [Navegador de código Woboq](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/src/index.html) +- Agregue una imagen acoplable que permite construir un informe HTML del navegador de código interactivo para nuestra base de código. [\#8781](https://github.com/ClickHouse/ClickHouse/pull/8781) ([alesapin](https://github.com/alesapin)) Ver [Navegador de código Woboq](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/index.html) - Suprima algunas fallas de prueba bajo MSan. [\#8780](https://github.com/ClickHouse/ClickHouse/pull/8780) ([Alejandro Kuzmenkov](https://github.com/akuzm)) - Aceleración “exception while insert” prueba. Esta prueba a menudo se agota en la compilación de depuración con cobertura. [\#8711](https://github.com/ClickHouse/ClickHouse/pull/8711) ([alexey-milovidov](https://github.com/alexey-milovidov)) - Actualizar `libcxx` y `libcxxabi` dominar. En preparación para [\#9304](https://github.com/ClickHouse/ClickHouse/issues/9304) [\#9308](https://github.com/ClickHouse/ClickHouse/pull/9308) ([alexey-milovidov](https://github.com/alexey-milovidov)) diff --git a/docs/es/development/browse_code.md b/docs/es/development/browse_code.md index d3d4e54f264..05af0a77d99 100644 --- a/docs/es/development/browse_code.md +++ b/docs/es/development/browse_code.md @@ -4,7 +4,7 @@ machine_translated: true # Examinar el código fuente de ClickHouse {#browse-clickhouse-source-code} -Usted puede utilizar **Woboq** navegador de código en línea disponible [aqui](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/src/index.html). Proporciona navegación de código y resaltado semántico, búsqueda e indexación. La instantánea de código se actualiza diariamente. +Usted puede utilizar **Woboq** navegador de código en línea disponible [aqui](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/index.html). Proporciona navegación de código y resaltado semántico, búsqueda e indexación. La instantánea de código se actualiza diariamente. Además, puede navegar por las fuentes en [GitHub](https://github.com/ClickHouse/ClickHouse) como de costumbre. diff --git a/docs/es/development/build.md b/docs/es/development/build.md index 9e4ab7628f2..0f93822d1e9 100644 --- a/docs/es/development/build.md +++ b/docs/es/development/build.md @@ -64,7 +64,7 @@ $ cd .. ``` Para crear un ejecutable, ejecute `ninja clickhouse`. -Esto creará el `dbms/programs/clickhouse` ejecutable, que se puede usar con `client` o `server` argumento. +Esto creará el `programs/clickhouse` ejecutable, que se puede usar con `client` o `server` argumento. # Cómo construir ClickHouse en cualquier Linux {#how-to-build-clickhouse-on-any-linux} diff --git a/docs/es/development/developer_instruction.md b/docs/es/development/developer_instruction.md index 62d22eecb9e..f0c84485c55 100644 --- a/docs/es/development/developer_instruction.md +++ b/docs/es/development/developer_instruction.md @@ -197,19 +197,19 @@ Cuando se inicie correctamente el proceso de construcción, verá el progreso de Al crear mensajes sobre archivos protobuf en la biblioteca libhdfs2, como `libprotobuf WARNING` puede aparecer. Afectan a nada y son seguros para ser ignorado. -Tras la compilación exitosa, obtienes un archivo ejecutable `ClickHouse//dbms/programs/clickhouse`: +Tras la compilación exitosa, obtienes un archivo ejecutable `ClickHouse//programs/clickhouse`: - ls -l dbms/programs/clickhouse + ls -l programs/clickhouse # Ejecutando el ejecutable construido de ClickHouse {#running-the-built-executable-of-clickhouse} -Para ejecutar el servidor bajo el usuario actual, debe navegar hasta `ClickHouse/dbms/programs/server/` (situado fuera de `build`) y ejecutar: +Para ejecutar el servidor bajo el usuario actual, debe navegar hasta `ClickHouse/programs/server/` (situado fuera de `build`) y ejecutar: - ../../../build/dbms/programs/clickhouse server + ../../../build/programs/clickhouse server En este caso, ClickHouse usará archivos de configuración ubicados en el directorio actual. Puede ejecutar `clickhouse server` desde cualquier directorio que especifique la ruta a un archivo de configuración como un parámetro de línea de comandos `--config-file`. -Para conectarse a ClickHouse con clickhouse-client en otro terminal, vaya a `ClickHouse/build/dbms/programs/` y ejecutar `clickhouse client`. +Para conectarse a ClickHouse con clickhouse-client en otro terminal, vaya a `ClickHouse/build/programs/` y ejecutar `clickhouse client`. Si usted consigue `Connection refused` mensaje en Mac OS X o FreeBSD, intente especificar la dirección de host 127.0.0.1: @@ -218,7 +218,7 @@ Si usted consigue `Connection refused` mensaje en Mac OS X o FreeBSD, intente es Puede reemplazar la versión de producción del binario ClickHouse instalado en su sistema con su binario ClickHouse personalizado. Para ello, instale ClickHouse en su máquina siguiendo las instrucciones del sitio web oficial. A continuación, ejecute lo siguiente: sudo service clickhouse-server stop - sudo cp ClickHouse/build/dbms/programs/clickhouse /usr/bin/ + sudo cp ClickHouse/build/programs/clickhouse /usr/bin/ sudo service clickhouse-server start Tenga en cuenta que `clickhouse-client`, `clickhouse-server` y otros son enlaces simbólicos a los comúnmente compartidos `clickhouse` Binario. @@ -226,7 +226,7 @@ Tenga en cuenta que `clickhouse-client`, `clickhouse-server` y otros son enlaces También puede ejecutar su binario ClickHouse personalizado con el archivo de configuración del paquete ClickHouse instalado en su sistema: sudo service clickhouse-server stop - sudo -u clickhouse ClickHouse/build/dbms/programs/clickhouse server --config-file /etc/clickhouse-server/config.xml + sudo -u clickhouse ClickHouse/build/programs/clickhouse server --config-file /etc/clickhouse-server/config.xml # IDE (entorno de desarrollo integrado) {#ide-integrated-development-environment} @@ -246,7 +246,7 @@ La Guía de estilo de código: https://clickhouse.tech/docs/es/development/style Pruebas de escritura: https://clickhouse.tech/docs/es/development/tests/ -Lista de tareas: https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/instructions/easy\_tasks\_sorted\_en.md +Lista de tareas: https://github.com/ClickHouse/ClickHouse/blob/master/tests/instructions/easy\_tasks\_sorted\_en.md # Datos de prueba {#test-data} diff --git a/docs/es/development/tests.md b/docs/es/development/tests.md index 1cfd6d253c0..b7d0c182e6d 100644 --- a/docs/es/development/tests.md +++ b/docs/es/development/tests.md @@ -10,15 +10,15 @@ Las pruebas funcionales son las más simples y cómodas de usar. La mayoría de Cada prueba funcional envía una o varias consultas al servidor ClickHouse en ejecución y compara el resultado con la referencia. -Las pruebas se encuentran en `dbms/tests/queries` Directorio. Hay dos subdirectorios: `stateless` y `stateful`. Las pruebas sin estado ejecutan consultas sin datos de prueba precargados: a menudo crean pequeños conjuntos de datos sintéticos sobre la marcha, dentro de la prueba misma. Las pruebas estatales requieren datos de prueba precargados de Yandex.Métrica y no está disponible para el público en general. Tendemos a usar sólo `stateless` pruebas y evitar la adición de nuevos `stateful` prueba. +Las pruebas se encuentran en `tests/queries` Directorio. Hay dos subdirectorios: `stateless` y `stateful`. Las pruebas sin estado ejecutan consultas sin datos de prueba precargados: a menudo crean pequeños conjuntos de datos sintéticos sobre la marcha, dentro de la prueba misma. Las pruebas estatales requieren datos de prueba precargados de Yandex.Métrica y no está disponible para el público en general. Tendemos a usar sólo `stateless` pruebas y evitar la adición de nuevos `stateful` prueba. Cada prueba puede ser de dos tipos: `.sql` y `.sh`. `.sql` prueba es el script SQL simple que se canaliza a `clickhouse-client --multiquery --testmode`. `.sh` test es un script que se ejecuta por sí mismo. -Para ejecutar todas las pruebas, use `dbms/tests/clickhouse-test` herramienta. Mira `--help` para la lista de posibles opciones. Simplemente puede ejecutar todas las pruebas o ejecutar un subconjunto de pruebas filtradas por subcadena en el nombre de la prueba: `./clickhouse-test substring`. +Para ejecutar todas las pruebas, use `tests/clickhouse-test` herramienta. Mira `--help` para la lista de posibles opciones. Simplemente puede ejecutar todas las pruebas o ejecutar un subconjunto de pruebas filtradas por subcadena en el nombre de la prueba: `./clickhouse-test substring`. La forma más sencilla de invocar pruebas funcionales es copiar `clickhouse-client` Naciones `/usr/bin/`, ejecutar `clickhouse-server` y luego ejecutar `./clickhouse-test` de su propio directorio. -Atracciones cercanas al hotel `.sql` o `.sh` archivo en `dbms/tests/queries/0_stateless` directorio, compruébelo manualmente y luego genere `.reference` archivo de la siguiente manera: `clickhouse-client -n --testmode < 00000_test.sql > 00000_test.reference` o `./00000_test.sh > ./00000_test.reference`. +Atracciones cercanas al hotel `.sql` o `.sh` archivo en `tests/queries/0_stateless` directorio, compruébelo manualmente y luego genere `.reference` archivo de la siguiente manera: `clickhouse-client -n --testmode < 00000_test.sql > 00000_test.reference` o `./00000_test.sh > ./00000_test.reference`. Las pruebas deben usar (crear, soltar, etc.) solo tablas en `test` base de datos que se supone que se crea de antemano; también las pruebas pueden usar tablas temporales. @@ -33,13 +33,13 @@ Deshabilitar estos grupos de pruebas utilizando `--no-zookeeper`, `--no-shard` y ## Errores conocidos {#known-bugs} -Si conocemos algunos errores que se pueden reproducir fácilmente mediante pruebas funcionales, colocamos pruebas funcionales preparadas en `dbms/tests/queries/bugs` directorio. Estas pruebas se moverán a `dbms/tests/queries/0_stateless` cuando se corrigen errores. +Si conocemos algunos errores que se pueden reproducir fácilmente mediante pruebas funcionales, colocamos pruebas funcionales preparadas en `tests/queries/bugs` directorio. Estas pruebas se moverán a `tests/queries/0_stateless` cuando se corrigen errores. ## Pruebas de integración {#integration-tests} Las pruebas de integración permiten probar ClickHouse en la configuración agrupada y la interacción de ClickHouse con otros servidores como MySQL, Postgres, MongoDB. Son útiles para emular divisiones de red, caídas de paquetes, etc. Estas pruebas se ejecutan bajo Docker y crean múltiples contenedores con varios software. -Ver `dbms/tests/integration/README.md` sobre cómo ejecutar estas pruebas. +Ver `tests/integration/README.md` sobre cómo ejecutar estas pruebas. Tenga en cuenta que la integración de ClickHouse con controladores de terceros no se ha probado. Además, actualmente no tenemos pruebas de integración con nuestros controladores JDBC y ODBC. @@ -51,7 +51,7 @@ No es necesariamente tener pruebas unitarias si el código ya está cubierto por ## Pruebas de rendimiento {#performance-tests} -Las pruebas de rendimiento permiten medir y comparar el rendimiento de alguna parte aislada de ClickHouse en consultas sintéticas. Las pruebas se encuentran en `dbms/tests/performance`. Cada prueba está representada por `.xml` archivo con la descripción del caso de prueba. Las pruebas se ejecutan con `clickhouse performance-test` herramienta (que está incrustada en `clickhouse` binario). Ver `--help` para la invocación. +Las pruebas de rendimiento permiten medir y comparar el rendimiento de alguna parte aislada de ClickHouse en consultas sintéticas. Las pruebas se encuentran en `tests/performance`. Cada prueba está representada por `.xml` archivo con la descripción del caso de prueba. Las pruebas se ejecutan con `clickhouse performance-test` herramienta (que está incrustada en `clickhouse` binario). Ver `--help` para la invocación. Cada prueba ejecuta una o múltiples consultas (posiblemente con combinaciones de parámetros) en un bucle con algunas condiciones para stop (como “maximum execution speed is not changing in three seconds”) y medir algunas métricas sobre el rendimiento de las consultas (como “maximum execution speed”). Algunas pruebas pueden contener condiciones previas en el conjunto de datos de pruebas precargado. @@ -59,13 +59,13 @@ Si desea mejorar el rendimiento de ClickHouse en algún escenario, y si se puede ## Herramientas de prueba y secuencias de comandos {#test-tools-and-scripts} -Algunos programas en `tests` directorio no son pruebas preparadas, pero son herramientas de prueba. Por ejemplo, párr `Lexer` hay una herramienta `dbms/src/Parsers/tests/lexer` que solo hacen la tokenización de stdin y escriben el resultado coloreado en stdout. Puede usar este tipo de herramientas como ejemplos de código y para exploración y pruebas manuales. +Algunos programas en `tests` directorio no son pruebas preparadas, pero son herramientas de prueba. Por ejemplo, párr `Lexer` hay una herramienta `dbms/Parsers/tests/lexer` que solo hacen la tokenización de stdin y escriben el resultado coloreado en stdout. Puede usar este tipo de herramientas como ejemplos de código y para exploración y pruebas manuales. También puede colocar un par de archivos `.sh` y `.reference` junto con la herramienta para ejecutarlo en alguna entrada predefinida, entonces el resultado del script se puede comparar con `.reference` file. Este tipo de pruebas no están automatizadas. ## Pruebas misceláneas {#miscellanous-tests} -Hay pruebas para diccionarios externos ubicados en `dbms/tests/external_dictionaries` y para modelos aprendidos a máquina en `dbms/tests/external_models`. Estas pruebas no se actualizan y deben transferirse a pruebas de integración. +Hay pruebas para diccionarios externos ubicados en `tests/external_dictionaries` y para modelos aprendidos a máquina en `tests/external_models`. Estas pruebas no se actualizan y deben transferirse a pruebas de integración. Hay una prueba separada para inserciones de quórum. Esta prueba ejecuta el clúster ClickHouse en servidores separados y emula varios casos de fallas: división de red, caída de paquetes (entre nodos ClickHouse, entre ClickHouse y ZooKeeper, entre el servidor ClickHouse y el cliente, etc.), `kill -9`, `kill -STOP` y `kill -CONT` , como [Jepsen](https://aphyr.com/tags/Jepsen). A continuación, la prueba comprueba que todas las inserciones reconocidas se escribieron y todas las inserciones rechazadas no. @@ -75,9 +75,9 @@ La prueba de quórum fue escrita por un equipo separado antes de que ClickHouse Cuando desarrolla una nueva característica, es razonable probarla también manualmente. Puede hacerlo con los siguientes pasos: -Construir ClickHouse. Ejecute ClickHouse desde el terminal: cambie el directorio a `dbms/src/programs/clickhouse-server` y ejecutarlo con `./clickhouse-server`. Se utilizará la configuración (`config.xml`, `users.xml` y archivos dentro de `config.d` y `users.d` directorios) desde el directorio actual de forma predeterminada. Para conectarse al servidor ClickHouse, ejecute `dbms/src/programs/clickhouse-client/clickhouse-client`. +Construir ClickHouse. Ejecute ClickHouse desde el terminal: cambie el directorio a `programs/clickhouse-server` y ejecutarlo con `./clickhouse-server`. Se utilizará la configuración (`config.xml`, `users.xml` y archivos dentro de `config.d` y `users.d` directorios) desde el directorio actual de forma predeterminada. Para conectarse al servidor ClickHouse, ejecute `programs/clickhouse-client/clickhouse-client`. -Tenga en cuenta que todas las herramientas de clickhouse (servidor, cliente, etc.) son solo enlaces simbólicos a un único binario llamado `clickhouse`. Puede encontrar este binario en `dbms/src/programs/clickhouse`. Todas las herramientas también se pueden invocar como `clickhouse tool` es lugar de `clickhouse-tool`. +Tenga en cuenta que todas las herramientas de clickhouse (servidor, cliente, etc.) son solo enlaces simbólicos a un único binario llamado `clickhouse`. Puede encontrar este binario en `programs/clickhouse`. Todas las herramientas también se pueden invocar como `clickhouse tool` es lugar de `clickhouse-tool`. Alternativamente, puede instalar el paquete ClickHouse: ya sea una versión estable del repositorio de Yandex o puede crear un paquete para usted con `./release` en la raíz de fuentes de ClickHouse. Luego inicie el servidor con `sudo service clickhouse-server start` (o detener para detener el servidor). Busque registros en `/etc/clickhouse-server/clickhouse-server.log`. @@ -206,7 +206,7 @@ La gente del departamento de Yandex Cloud hace una visión general básica de la ## Analizadores estáticos {#static-analyzers} -Corremos `PVS-Studio` por compromiso. Hemos evaluado `clang-tidy`, `Coverity`, `cppcheck`, `PVS-Studio`, `tscancode`. Encontrará instrucciones de uso en `dbms/tests/instructions/` directorio. También puedes leer [el artículo en ruso](https://habr.com/company/yandex/blog/342018/). +Corremos `PVS-Studio` por compromiso. Hemos evaluado `clang-tidy`, `Coverity`, `cppcheck`, `PVS-Studio`, `tscancode`. Encontrará instrucciones de uso en `tests/instructions/` directorio. También puedes leer [el artículo en ruso](https://habr.com/company/yandex/blog/342018/). Si usted estados unidos `CLion` Como IDE, puede aprovechar algunos `clang-tidy` comprueba fuera de la caja. diff --git a/docs/es/getting_started/example_datasets/metrica.md b/docs/es/getting_started/example_datasets/metrica.md index d5d8067333c..4c74ebce034 100644 --- a/docs/es/getting_started/example_datasets/metrica.md +++ b/docs/es/getting_started/example_datasets/metrica.md @@ -64,4 +64,4 @@ clickhouse-client --query "SELECT COUNT(*) FROM datasets.visits_v1" [Tutorial de ClickHouse](../../getting_started/tutorial.md) se basa en Yandex.El conjunto de datos de Metrica y la forma recomendada de comenzar con este conjunto de datos es simplemente pasar por el tutorial. -Se pueden encontrar ejemplos adicionales de consultas a estas tablas entre [pruebas estatales](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/tests/queries/1_stateful) de ClickHouse (se nombran `test.hists` y `test.visits` Todos los derechos reservados. +Se pueden encontrar ejemplos adicionales de consultas a estas tablas entre [pruebas estatales](https://github.com/ClickHouse/ClickHouse/tree/master/tests/queries/1_stateful) de ClickHouse (se nombran `test.hists` y `test.visits` Todos los derechos reservados. diff --git a/docs/es/getting_started/install.md b/docs/es/getting_started/install.md index 014afc99ce5..e3997f8d1f5 100644 --- a/docs/es/getting_started/install.md +++ b/docs/es/getting_started/install.md @@ -108,10 +108,10 @@ Para compilar manualmente ClickHouse, siga las instrucciones para [Linux](../dev Puede compilar paquetes e instalarlos o usar programas sin instalar paquetes. Además, al construir manualmente, puede deshabilitar el requisito de SSE 4.2 o compilar para CPU AArch64. - Client: dbms/programs/clickhouse-client - Server: dbms/programs/clickhouse-server + Client: programs/clickhouse-client + Server: programs/clickhouse-server -Tendrá que crear carpetas de datos y metadatos y `chown` para el usuario deseado. Sus rutas se pueden cambiar en la configuración del servidor (src/dbms/programs/server/config .xml), por defecto son: +Tendrá que crear carpetas de datos y metadatos y `chown` para el usuario deseado. Sus rutas se pueden cambiar en la configuración del servidor (src/programs/server/config .xml), por defecto son: /opt/clickhouse/data/default/ /opt/clickhouse/metadata/default/ diff --git a/docs/es/interfaces/tcp.md b/docs/es/interfaces/tcp.md index 660f506ee04..868ec644104 100644 --- a/docs/es/interfaces/tcp.md +++ b/docs/es/interfaces/tcp.md @@ -4,6 +4,6 @@ machine_translated: true # Interfaz nativa (TCP) {#native-interface-tcp} -El protocolo nativo se utiliza en el [cliente de línea de comandos](cli.md), para la comunicación entre servidores durante el procesamiento de consultas distribuidas, y también en otros programas de C, Desafortunadamente, el protocolo nativo de ClickHouse aún no tiene especificaciones formales, pero puede ser diseñado de manera inversa desde el código fuente de ClickHouse (comenzando [por aquí](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/src/Client)) y/o mediante la interceptación y el análisis del tráfico TCP. +El protocolo nativo se utiliza en el [cliente de línea de comandos](cli.md), para la comunicación entre servidores durante el procesamiento de consultas distribuidas, y también en otros programas de C, Desafortunadamente, el protocolo nativo de ClickHouse aún no tiene especificaciones formales, pero puede ser diseñado de manera inversa desde el código fuente de ClickHouse (comenzando [por aquí](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/Client)) y/o mediante la interceptación y el análisis del tráfico TCP. [Artículo Original](https://clickhouse.tech/docs/es/interfaces/tcp/) diff --git a/docs/es/operations/backup.md b/docs/es/operations/backup.md index 5f1ffc79648..17a57d40487 100644 --- a/docs/es/operations/backup.md +++ b/docs/es/operations/backup.md @@ -4,7 +4,7 @@ machine_translated: true # Copia de seguridad de datos {#data-backup} -Mientras [replicación](table_engines/replication.md) proporciona protección contra fallas de hardware, no protege contra errores humanos: eliminación accidental de datos, eliminación de la tabla incorrecta o una tabla en el clúster incorrecto y errores de software que resultan en un procesamiento incorrecto de datos o daños en los datos. En muchos casos, errores como estos afectarán a todas las réplicas. ClickHouse tiene protecciones integradas para evitar algunos tipos de errores, por ejemplo, de forma predeterminada [no puede simplemente colocar tablas con un motor similar a MergeTree que contenga más de 50 Gb de datos](https://github.com/ClickHouse/ClickHouse/blob/v18.14.18-stable/dbms/programs/server/config.xml#L322-L330). Sin embargo, estas garantías no cubren todos los casos posibles y pueden eludirse. +Mientras [replicación](table_engines/replication.md) proporciona protección contra fallas de hardware, no protege contra errores humanos: eliminación accidental de datos, eliminación de la tabla incorrecta o una tabla en el clúster incorrecto y errores de software que resultan en un procesamiento incorrecto de datos o daños en los datos. En muchos casos, errores como estos afectarán a todas las réplicas. ClickHouse tiene protecciones integradas para evitar algunos tipos de errores, por ejemplo, de forma predeterminada [no puede simplemente colocar tablas con un motor similar a MergeTree que contenga más de 50 Gb de datos](https://github.com/ClickHouse/ClickHouse/blob/v18.14.18-stable/programs/server/config.xml#L322-L330). Sin embargo, estas garantías no cubren todos los casos posibles y pueden eludirse. Para mitigar eficazmente los posibles errores humanos, debe preparar cuidadosamente una estrategia para realizar copias de seguridad y restaurar sus datos **previamente**. diff --git a/docs/es/operations/performance/sampling_query_profiler_example_result.txt b/docs/es/operations/performance/sampling_query_profiler_example_result.txt index 8e4e0e0fd70..56c2fdf9c65 100644 --- a/docs/es/operations/performance/sampling_query_profiler_example_result.txt +++ b/docs/es/operations/performance/sampling_query_profiler_example_result.txt @@ -2,55 +2,55 @@ Row 1: ────── count(): 6344 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 read DB::ReadBufferFromFileDescriptor::nextImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBufferFromFileDescriptor.cpp:56 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBufferFromFileDescriptor.cpp:56 DB::CompressedReadBufferBase::readCompressedData(unsigned long&, unsigned long&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBuffer.h:54 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBuffer.h:54 DB::CompressedReadBufferFromFile::nextImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Compression/CompressedReadBufferFromFile.cpp:22 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Compression/CompressedReadBufferFromFile.cpp:22 DB::CompressedReadBufferFromFile::seek(unsigned long, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Compression/CompressedReadBufferFromFile.cpp:63 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Compression/CompressedReadBufferFromFile.cpp:63 DB::MergeTreeReaderStream::seekToMark(unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReaderStream.cpp:200 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReaderStream.cpp:200 std::_Function_handler > const&), DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool)::{lambda(bool)#1}::operator()(bool) const::{lambda(std::vector > const&)#1}>::_M_invoke(std::_Any_data const&, std::vector > const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:212 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:212 DB::IDataType::deserializeBinaryBulkWithMultipleStreams(DB::IColumn&, unsigned long, DB::IDataType::DeserializeBinaryBulkSettings&, std::shared_ptr&) const /usr/local/include/c++/9.1.0/bits/std_function.h:690 DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:232 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:232 DB::MergeTreeReader::readRows(unsigned long, bool, unsigned long, DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:111 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:111 DB::MergeTreeRangeReader::DelayedStream::finalize(DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:35 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:35 DB::MergeTreeRangeReader::continueReadingChain(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:219 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:219 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:487 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:487 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -66,9 +66,9 @@ Row 2: ────── count(): 3295 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 __pthread_cond_wait @@ -82,11 +82,11 @@ DB::UnionBlockInputStream::readImpl() DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Core/Block.h:90 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Core/Block.h:90 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::LimitBlockInputStream::readImpl() @@ -100,7 +100,7 @@ std::_Function_handler::worker(std::_List_iterator) /usr/local/include/c++/9.1.0/x86_64-pc-linux-gnu/bits/gthr-default.h:748 ThreadFromGlobalPool::ThreadFromGlobalPool::scheduleImpl(std::function, int, std::optional)::{lambda()#3}>(ThreadPoolImpl::scheduleImpl(std::function, int, std::optional)::{lambda()#3}&&)::{lambda()#1}::operator()() const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/ThreadPool.h:146 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/ThreadPool.h:146 ThreadPoolImpl::worker(std::_List_iterator) /usr/local/include/c++/9.1.0/bits/unique_lock.h:69 execute_native_thread_routine @@ -114,47 +114,47 @@ Row 3: ────── count(): 1978 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 DB::VolnitskyBase >::search(unsigned char const*, unsigned long) const - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::MatchImpl::vector_constant(DB::PODArray, 15ul, 16ul> const&, DB::PODArray, 15ul, 16ul> const&, std::__cxx11::basic_string, std::allocator > const&, DB::PODArray, 15ul, 16ul>&) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::FunctionsStringSearch, DB::NameLike>::executeImpl(DB::Block&, std::vector > const&, unsigned long, unsigned long) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::PreparedFunctionImpl::execute(DB::Block&, std::vector > const&, unsigned long, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Functions/IFunction.cpp:464 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Functions/IFunction.cpp:464 DB::ExpressionAction::execute(DB::Block&, bool) const /usr/local/include/c++/9.1.0/bits/stl_vector.h:677 DB::ExpressionActions::execute(DB::Block&, bool) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Interpreters/ExpressionActions.cpp:739 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Interpreters/ExpressionActions.cpp:739 DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:660 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:660 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:546 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:546 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -170,47 +170,47 @@ Row 4: ────── count(): 1913 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 DB::VolnitskyBase >::search(unsigned char const*, unsigned long) const - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::MatchImpl::vector_constant(DB::PODArray, 15ul, 16ul> const&, DB::PODArray, 15ul, 16ul> const&, std::__cxx11::basic_string, std::allocator > const&, DB::PODArray, 15ul, 16ul>&) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::FunctionsStringSearch, DB::NameLike>::executeImpl(DB::Block&, std::vector > const&, unsigned long, unsigned long) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::PreparedFunctionImpl::execute(DB::Block&, std::vector > const&, unsigned long, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Functions/IFunction.cpp:464 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Functions/IFunction.cpp:464 DB::ExpressionAction::execute(DB::Block&, bool) const /usr/local/include/c++/9.1.0/bits/stl_vector.h:677 DB::ExpressionActions::execute(DB::Block&, bool) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Interpreters/ExpressionActions.cpp:739 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Interpreters/ExpressionActions.cpp:739 DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:660 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:660 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:546 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:546 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -226,47 +226,47 @@ Row 5: ────── count(): 1672 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 DB::VolnitskyBase >::search(unsigned char const*, unsigned long) const - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::MatchImpl::vector_constant(DB::PODArray, 15ul, 16ul> const&, DB::PODArray, 15ul, 16ul> const&, std::__cxx11::basic_string, std::allocator > const&, DB::PODArray, 15ul, 16ul>&) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::FunctionsStringSearch, DB::NameLike>::executeImpl(DB::Block&, std::vector > const&, unsigned long, unsigned long) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::PreparedFunctionImpl::execute(DB::Block&, std::vector > const&, unsigned long, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Functions/IFunction.cpp:464 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Functions/IFunction.cpp:464 DB::ExpressionAction::execute(DB::Block&, bool) const /usr/local/include/c++/9.1.0/bits/stl_vector.h:677 DB::ExpressionActions::execute(DB::Block&, bool) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Interpreters/ExpressionActions.cpp:739 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Interpreters/ExpressionActions.cpp:739 DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:660 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:660 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:546 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:546 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -282,53 +282,53 @@ Row 6: ────── count(): 1531 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 read DB::ReadBufferFromFileDescriptor::nextImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBufferFromFileDescriptor.cpp:56 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBufferFromFileDescriptor.cpp:56 DB::CompressedReadBufferBase::readCompressedData(unsigned long&, unsigned long&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBuffer.h:54 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBuffer.h:54 DB::CompressedReadBufferFromFile::nextImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Compression/CompressedReadBufferFromFile.cpp:22 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Compression/CompressedReadBufferFromFile.cpp:22 void DB::deserializeBinarySSE2<4>(DB::PODArray, 15ul, 16ul>&, DB::PODArray, 15ul, 16ul>&, DB::ReadBuffer&, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/ReadBuffer.h:53 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/ReadBuffer.h:53 DB::DataTypeString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataTypes/DataTypeString.cpp:202 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataTypes/DataTypeString.cpp:202 DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:232 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:232 DB::MergeTreeReader::readRows(unsigned long, bool, unsigned long, DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:111 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:111 DB::MergeTreeRangeReader::DelayedStream::finalize(DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:35 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:35 DB::MergeTreeRangeReader::startReadingChain(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:219 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:219 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -344,47 +344,47 @@ Row 7: ────── count(): 1034 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 DB::VolnitskyBase >::search(unsigned char const*, unsigned long) const - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::MatchImpl::vector_constant(DB::PODArray, 15ul, 16ul> const&, DB::PODArray, 15ul, 16ul> const&, std::__cxx11::basic_string, std::allocator > const&, DB::PODArray, 15ul, 16ul>&) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::FunctionsStringSearch, DB::NameLike>::executeImpl(DB::Block&, std::vector > const&, unsigned long, unsigned long) - /opt/milovidov/ClickHouse/build_gcc9/dbms/programs/clickhouse + /opt/milovidov/ClickHouse/build_gcc9/programs/clickhouse DB::PreparedFunctionImpl::execute(DB::Block&, std::vector > const&, unsigned long, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Functions/IFunction.cpp:464 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Functions/IFunction.cpp:464 DB::ExpressionAction::execute(DB::Block&, bool) const /usr/local/include/c++/9.1.0/bits/stl_vector.h:677 DB::ExpressionActions::execute(DB::Block&, bool) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Interpreters/ExpressionActions.cpp:739 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Interpreters/ExpressionActions.cpp:739 DB::MergeTreeRangeReader::executePrewhereActionsAndFilterColumns(DB::MergeTreeRangeReader::ReadResult&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:660 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:660 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:546 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:546 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -400,9 +400,9 @@ Row 8: ────── count(): 989 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 __lll_lock_wait @@ -412,7 +412,7 @@ pthread_mutex_lock DB::MergeTreeReaderStream::loadMarks() /usr/local/include/c++/9.1.0/bits/std_mutex.h:103 DB::MergeTreeReaderStream::MergeTreeReaderStream(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, unsigned long, std::vector > const&, DB::MarkCache*, bool, DB::UncompressedCache*, unsigned long, unsigned long, unsigned long, DB::MergeTreeIndexGranularityInfo const*, std::function const&, int) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReaderStream.cpp:107 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReaderStream.cpp:107 std::_Function_handler > const&), DB::MergeTreeReader::addStreams(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, std::function const&, int)::{lambda(std::vector > const&)#1}>::_M_invoke(std::_Any_data const&, std::vector > const&) /usr/local/include/c++/9.1.0/bits/unique_ptr.h:147 DB::MergeTreeReader::addStreams(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, std::function const&, int) @@ -422,21 +422,21 @@ DB::MergeTreeReader::MergeTreeReader(std::__cxx11::basic_string::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -452,45 +452,45 @@ Row 9: ─────── count(): 779 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 void DB::deserializeBinarySSE2<4>(DB::PODArray, 15ul, 16ul>&, DB::PODArray, 15ul, 16ul>&, DB::ReadBuffer&, unsigned long) /usr/local/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include/emmintrin.h:727 DB::DataTypeString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataTypes/DataTypeString.cpp:202 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataTypes/DataTypeString.cpp:202 DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:232 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:232 DB::MergeTreeReader::readRows(unsigned long, bool, unsigned long, DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:111 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:111 DB::MergeTreeRangeReader::DelayedStream::finalize(DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:35 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:35 DB::MergeTreeRangeReader::startReadingChain(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:219 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:219 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) @@ -506,45 +506,45 @@ Row 10: ─────── count(): 666 sym: StackTrace::StackTrace(ucontext_t const&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Common/StackTrace.cpp:208 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Common/StackTrace.cpp:208 DB::(anonymous namespace)::writeTraceInfo(DB::TimerType, int, siginfo_t*, void*) [clone .isra.0] - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/IO/BufferBase.h:99 + /home/milovidov/ClickHouse/build_gcc9/../dbms/IO/BufferBase.h:99 void DB::deserializeBinarySSE2<4>(DB::PODArray, 15ul, 16ul>&, DB::PODArray, 15ul, 16ul>&, DB::ReadBuffer&, unsigned long) /usr/local/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include/emmintrin.h:727 DB::DataTypeString::deserializeBinaryBulk(DB::IColumn&, DB::ReadBuffer&, unsigned long, double) const - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataTypes/DataTypeString.cpp:202 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataTypes/DataTypeString.cpp:202 DB::MergeTreeReader::readData(std::__cxx11::basic_string, std::allocator > const&, DB::IDataType const&, DB::IColumn&, unsigned long, bool, unsigned long, bool) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:232 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:232 DB::MergeTreeReader::readRows(unsigned long, bool, unsigned long, DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeReader.cpp:111 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeReader.cpp:111 DB::MergeTreeRangeReader::DelayedStream::finalize(DB::Block&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:35 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:35 DB::MergeTreeRangeReader::startReadingChain(unsigned long, std::vector >&) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeRangeReader.cpp:219 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeRangeReader.cpp:219 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeRangeReader::read(unsigned long, std::vector >&) /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::MergeTreeBaseSelectBlockInputStream::readFromPartImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 + /home/milovidov/ClickHouse/build_gcc9/../dbms/Storages/MergeTree/MergeTreeBaseSelectBlockInputStream.cpp:158 DB::MergeTreeBaseSelectBlockInputStream::readImpl() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ExpressionBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ExpressionBlockInputStream.cpp:34 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ExpressionBlockInputStream.cpp:34 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::PartialSortingBlockInputStream::readImpl() - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/PartialSortingBlockInputStream.cpp:13 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/PartialSortingBlockInputStream.cpp:13 DB::IBlockInputStream::read() /usr/local/include/c++/9.1.0/bits/stl_vector.h:108 DB::ParallelInputsProcessor::loop(unsigned long) /usr/local/include/c++/9.1.0/bits/atomic_base.h:419 DB::ParallelInputsProcessor::thread(std::shared_ptr, unsigned long) - /home/milovidov/ClickHouse/build_gcc9/../dbms/src/DataStreams/ParallelInputsProcessor.h:215 + /home/milovidov/ClickHouse/build_gcc9/../dbms/DataStreams/ParallelInputsProcessor.h:215 ThreadFromGlobalPool::ThreadFromGlobalPool::*)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*, std::shared_ptr, unsigned long&>(void (DB::ParallelInputsProcessor::*&&)(std::shared_ptr, unsigned long), DB::ParallelInputsProcessor*&&, std::shared_ptr&&, unsigned long&)::{lambda()#1}::operator()() const /usr/local/include/c++/9.1.0/bits/shared_ptr_base.h:729 ThreadPoolImpl::worker(std::_List_iterator) diff --git a/docs/es/operations/performance_test.md b/docs/es/operations/performance_test.md index 62e5078691b..3e1448ffa87 100644 --- a/docs/es/operations/performance_test.md +++ b/docs/es/operations/performance_test.md @@ -27,19 +27,19 @@ Con esta instrucción, puede ejecutar una prueba de rendimiento básica de Click - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/programs/server/config.xml - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/programs/server/users.xml + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/config.xml + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/users.xml mkdir config.d - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/programs/server/config.d/path.xml -O config.d/path.xml - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/programs/server/config.d/log_to_console.xml -O config.d/log_to_console.xml + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/config.d/path.xml -O config.d/path.xml + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/programs/server/config.d/log_to_console.xml -O config.d/log_to_console.xml 1. Descargar archivos de referencia: - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/benchmark/clickhouse/benchmark-new.sh + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/benchmark/clickhouse/benchmark-new.sh chmod a+x benchmark-new.sh - wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/dbms/benchmark/clickhouse/queries.sql + wget https://raw.githubusercontent.com/ClickHouse/ClickHouse/master/benchmark/clickhouse/queries.sql 1. Descargue los datos de prueba de acuerdo con el [El Yandex.Conjunto de datos de Metrica](../getting_started/example_datasets/metrica.md) instrucción (“hits” tabla que contiene 100 millones de filas). diff --git a/docs/es/operations/settings/query_complexity.md b/docs/es/operations/settings/query_complexity.md index da39fd01a7b..4fe64302213 100644 --- a/docs/es/operations/settings/query_complexity.md +++ b/docs/es/operations/settings/query_complexity.md @@ -41,7 +41,7 @@ El consumo de memoria también está restringido por los parámetros `max_memory La cantidad máxima de RAM que se utilizará para ejecutar las consultas de un usuario en un único servidor. -Los valores predeterminados se definen en [Configuración.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Core/Settings.h#L288). De forma predeterminada, el importe no está restringido (`max_memory_usage_for_user = 0`). +Los valores predeterminados se definen en [Configuración.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Core/Settings.h#L288). De forma predeterminada, el importe no está restringido (`max_memory_usage_for_user = 0`). Ver también la descripción de [Método de codificación de datos:](#settings_max_memory_usage). @@ -49,7 +49,7 @@ Ver también la descripción de [Método de codificación de datos:](#settings_m La cantidad máxima de RAM que se utilizará para ejecutar todas las consultas en un único servidor. -Los valores predeterminados se definen en [Configuración.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Core/Settings.h#L289). De forma predeterminada, el importe no está restringido (`max_memory_usage_for_all_queries = 0`). +Los valores predeterminados se definen en [Configuración.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Core/Settings.h#L289). De forma predeterminada, el importe no está restringido (`max_memory_usage_for_all_queries = 0`). Ver también la descripción de [Método de codificación de datos:](#settings_max_memory_usage). diff --git a/docs/es/operations/system_tables.md b/docs/es/operations/system_tables.md index af073bc0fcc..5129abfb1ba 100644 --- a/docs/es/operations/system_tables.md +++ b/docs/es/operations/system_tables.md @@ -256,7 +256,7 @@ Columna: - `value` ([Int64](../data_types/int_uint.md)) — Valor métrico. - `description` ([Cadena](../data_types/string.md)) — Descripción métrica. -La lista de métricas admitidas que puede encontrar en el [dbms/src/Common/CurrentMetrics.cpp](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Common/CurrentMetrics.cpp) archivo fuente de ClickHouse. +La lista de métricas admitidas que puede encontrar en el [dbms/Common/CurrentMetrics.cpp](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Common/CurrentMetrics.cpp) archivo fuente de ClickHouse. **Ejemplo** diff --git a/docs/es/query_language/alter.md b/docs/es/query_language/alter.md index 31342199735..c823381c4ee 100644 --- a/docs/es/query_language/alter.md +++ b/docs/es/query_language/alter.md @@ -446,7 +446,7 @@ Todas las reglas anteriores también son ciertas para el [OPTIMIZAR](misc.md#mis OPTIMIZE TABLE table_not_partitioned PARTITION tuple() FINAL; ``` -Los ejemplos de `ALTER ... PARTITION` las consultas se demuestran en las pruebas [`00502_custom_partitioning_local`](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00502_custom_partitioning_local.sql) y [`00502_custom_partitioning_replicated_zookeeper`](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql). +Los ejemplos de `ALTER ... PARTITION` las consultas se demuestran en las pruebas [`00502_custom_partitioning_local`](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00502_custom_partitioning_local.sql) y [`00502_custom_partitioning_replicated_zookeeper`](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql). ### Manipulaciones con Tabla TTL {#manipulations-with-table-ttl} diff --git a/docs/es/query_language/create.md b/docs/es/query_language/create.md index ba6f5f1849b..d7663b01839 100644 --- a/docs/es/query_language/create.md +++ b/docs/es/query_language/create.md @@ -151,7 +151,7 @@ ENGINE = Si se especifica un códec, el códec predeterminado no se aplica. Los códecs se pueden combinar en una tubería, por ejemplo, `CODEC(Delta, ZSTD)`. Para seleccionar la mejor combinación de códecs para su proyecto, pase puntos de referencia similares a los descritos en Altinity [Nuevas codificaciones para mejorar la eficiencia de ClickHouse](https://www.altinity.com/blog/2019/7/new-encodings-to-improve-clickhouse) artículo. !!! warning "Advertencia" - No puede descomprimir archivos de base de datos ClickHouse con utilidades externas como `lz4`. En su lugar, use el especial [Compresor de clickhouse](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/programs/compressor) utilidad. + No puede descomprimir archivos de base de datos ClickHouse con utilidades externas como `lz4`. En su lugar, use el especial [Compresor de clickhouse](https://github.com/ClickHouse/ClickHouse/tree/master/programs/compressor) utilidad. La compresión es compatible con los siguientes motores de tablas: diff --git a/docs/es/query_language/functions/introspection.md b/docs/es/query_language/functions/introspection.md index 634cf52118c..5169da4e5a2 100644 --- a/docs/es/query_language/functions/introspection.md +++ b/docs/es/query_language/functions/introspection.md @@ -39,7 +39,7 @@ addressToLine(address_of_binary_instruction) - Nombre de archivo del código fuente y el número de línea en este archivo delimitado por dos puntos. - For example, `/build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:199`, where `199` is a line number. + For example, `/build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.cpp:199`, where `199` is a line number. - Nombre de un binario, si la función no pudo encontrar la información de depuración. @@ -84,7 +84,7 @@ SELECT addressToLine(94784076370703) \G ``` text Row 1: ────── -addressToLine(94784076370703): /build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:199 +addressToLine(94784076370703): /build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.cpp:199 ``` Aplicando la función a todo el seguimiento de la pila: @@ -104,8 +104,8 @@ Row 1: ────── trace_source_code_lines: /lib/x86_64-linux-gnu/libpthread-2.27.so /usr/lib/debug/usr/bin/clickhouse -/build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:199 -/build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.h:155 +/build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.cpp:199 +/build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.h:155 /usr/include/c++/9/bits/atomic_base.h:551 /usr/lib/debug/usr/bin/clickhouse /lib/x86_64-linux-gnu/libpthread-2.27.so diff --git a/docs/es/query_language/operators.md b/docs/es/query_language/operators.md index 19d6d058f00..5710064ee1c 100644 --- a/docs/es/query_language/operators.md +++ b/docs/es/query_language/operators.md @@ -133,7 +133,7 @@ FROM test.Orders; └───────────┴────────────┴──────────┴───────────┴─────────────┴─────────────┘ ``` -Puedes ver más ejemplos en [prueba](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00619_extract.sql). +Puedes ver más ejemplos en [prueba](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00619_extract.sql). ### INTERVALO {#operator-interval} diff --git a/docs/fa/getting_started/example_datasets/metrica.md b/docs/fa/getting_started/example_datasets/metrica.md index 1546e4f79d4..1081001e3b8 100644 --- a/docs/fa/getting_started/example_datasets/metrica.md +++ b/docs/fa/getting_started/example_datasets/metrica.md @@ -60,4 +60,4 @@ clickhouse-client --query "SELECT COUNT(*) FROM datasets.visits_v1" [اموزش کلیک](../../getting_started/tutorial.md) است در یاندکس بر اساس.مجموعه داده های متریکا و راه توصیه شده برای شروع این مجموعه داده ها فقط از طریق تدریس خصوصی است. -نمونه های اضافی از نمایش داده شد به این جداول را می توان در میان یافت [تست های نفرت انگیز](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/tests/queries/1_stateful) از کلیک هاوس (به نام `test.hists` و `test.visits` وجود دارد). +نمونه های اضافی از نمایش داده شد به این جداول را می توان در میان یافت [تست های نفرت انگیز](https://github.com/ClickHouse/ClickHouse/tree/master/tests/queries/1_stateful) از کلیک هاوس (به نام `test.hists` و `test.visits` وجود دارد). diff --git a/docs/fa/getting_started/install.md b/docs/fa/getting_started/install.md index 11a59d26395..805d6b7e480 100644 --- a/docs/fa/getting_started/install.md +++ b/docs/fa/getting_started/install.md @@ -84,8 +84,8 @@ sudo yum install clickhouse-server clickhouse-client - Client: dbms/programs/clickhouse-client - Server: dbms/programs/clickhouse-server + Client: programs/clickhouse-client + Server: programs/clickhouse-server
@@ -100,7 +100,7 @@ sudo yum install clickhouse-server clickhouse-client (قابل تنظیم در تنظیمات سرور). ‘chown’ را برای کاربر دلخواه اجرا کنید. -به مسیر لاگ ها در تنظیمات سرور توجه کنید (src/dbms/programs/config.xml). +به مسیر لاگ ها در تنظیمات سرور توجه کنید (src/programs/config.xml). ### روش های دیگر نصب {#from-docker-image} @@ -165,7 +165,7 @@ clickhouse-client --host=example.com
``` bash -milovidov@hostname:~/work/metrica/src/dbms/src/Client$ ./clickhouse-client +milovidov@hostname:~/work/metrica/src/dbms/Client$ ./clickhouse-client ClickHouse client version 0.0.18749. Connecting to localhost:9000. Connected to ClickHouse server version 0.0.18749. diff --git a/docs/fa/interfaces/tcp.md b/docs/fa/interfaces/tcp.md index f7e455de4e1..00a069189db 100644 --- a/docs/fa/interfaces/tcp.md +++ b/docs/fa/interfaces/tcp.md @@ -2,7 +2,7 @@ # رابط بومی (TCP) {#rbt-bwmy-tcp} -پروتکل بومی در \[خط فرمان خط\] (cli.md)، برای برقراری ارتباط بین سرور در طی پردازش پرس و جو توزیع شده، و همچنین در سایر برنامه های C ++ استفاده می شود. متاسفانه، پروتکل ClickHouse بومی هنوز مشخصات رسمی ندارد، اما می توان آن را از کد منبع ClickHouse (شروع [از اینجا](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/src/Client)) و / یا با رهگیری و تجزیه و تحلیل ترافیک TCP. +پروتکل بومی در \[خط فرمان خط\] (cli.md)، برای برقراری ارتباط بین سرور در طی پردازش پرس و جو توزیع شده، و همچنین در سایر برنامه های C ++ استفاده می شود. متاسفانه، پروتکل ClickHouse بومی هنوز مشخصات رسمی ندارد، اما می توان آن را از کد منبع ClickHouse (شروع [از اینجا](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/Client)) و / یا با رهگیری و تجزیه و تحلیل ترافیک TCP. diff --git a/docs/ru/development/browse_code.md b/docs/ru/development/browse_code.md index 55a1628301f..d5f38bf6984 100644 --- a/docs/ru/development/browse_code.md +++ b/docs/ru/development/browse_code.md @@ -1,6 +1,6 @@ # Навигация по коду ClickHouse {#navigatsiia-po-kodu-clickhouse} -Для навигации по коду онлайн доступен **Woboq**, он расположен [здесь](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/src/index.html). В нём реализовано удобное перемещение между исходными файлами, семантическая подсветка, подсказки, индексация и поиск. Слепок кода обновляется ежедневно. +Для навигации по коду онлайн доступен **Woboq**, он расположен [здесь](https://clickhouse-test-reports.s3.yandex.net/codebrowser/html_report///ClickHouse/dbms/index.html). В нём реализовано удобное перемещение между исходными файлами, семантическая подсветка, подсказки, индексация и поиск. Слепок кода обновляется ежедневно. Также вы можете просматривать исходники на [GitHub](https://github.com/ClickHouse/ClickHouse). diff --git a/docs/ru/development/developer_instruction.md b/docs/ru/development/developer_instruction.md index 4613c3ca409..4bc2ada8c1e 100644 --- a/docs/ru/development/developer_instruction.md +++ b/docs/ru/development/developer_instruction.md @@ -195,19 +195,19 @@ Mac OS X: В процессе сборки могут появится сообщения `libprotobuf WARNING` про protobuf файлы в библиотеке libhdfs2. Это не имеет значения. -При успешной сборке, вы получите готовый исполняемый файл `ClickHouse/build/dbms/programs/clickhouse`: +При успешной сборке, вы получите готовый исполняемый файл `ClickHouse/build/programs/clickhouse`: - ls -l dbms/programs/clickhouse + ls -l programs/clickhouse # Запуск собранной версии ClickHouse {#zapusk-sobrannoi-versii-clickhouse} -Для запуска сервера из под текущего пользователя, с выводом логов в терминал и с использованием примеров конфигурационных файлов, расположенных в исходниках, перейдите в директорию `ClickHouse/dbms/programs/server/` (эта директория находится не в директории build) и выполните: +Для запуска сервера из под текущего пользователя, с выводом логов в терминал и с использованием примеров конфигурационных файлов, расположенных в исходниках, перейдите в директорию `ClickHouse/programs/server/` (эта директория находится не в директории build) и выполните: - ../../../build/dbms/programs/clickhouse server + ../../../build/programs/clickhouse server В этом случае, ClickHouse будет использовать конфигурационные файлы, расположенные в текущей директории. Вы можете запустить `clickhouse server` из любой директории, передав ему путь к конфигурационному файлу в аргументе командной строки `--config-file`. -Для подключения к ClickHouse с помощью clickhouse-client, в соседнем терминале, зайдите в директорию `ClickHouse/build/dbms/programs/` и выполните `clickhouse client`. +Для подключения к ClickHouse с помощью clickhouse-client, в соседнем терминале, зайдите в директорию `ClickHouse/build/programs/` и выполните `clickhouse client`. Если вы получили сообщение `Connection refused` на Mac OS X или FreeBSD, то укажите для клиента 127.0.0.1 в качестве имени хоста: @@ -216,7 +216,7 @@ Mac OS X: Вы можете заменить собранным вами ClickHouse продакшен версию, установленную в системе. Для этого, установите ClickHouse на свою машину по инструкции с официального сайта. Затем выполните: sudo service clickhouse-server stop - sudo cp ClickHouse/build/dbms/programs/clickhouse /usr/bin/ + sudo cp ClickHouse/build/programs/clickhouse /usr/bin/ sudo service clickhouse-server start Обратите внимание, что `clickhouse-client`, `clickhouse-server` и другие, являеются симлинками на общий бинарник `clickhouse`. @@ -224,7 +224,7 @@ Mac OS X: Также вы можете запустить собранный вами ClickHouse с конфигурационным файлом системного ClickHouse: sudo service clickhouse-server stop - sudo -u clickhouse ClickHouse/build/dbms/programs/clickhouse server --config-file /etc/clickhouse-server/config.xml + sudo -u clickhouse ClickHouse/build/programs/clickhouse server --config-file /etc/clickhouse-server/config.xml # Среда разработки {#sreda-razrabotki} @@ -244,7 +244,7 @@ Mac OS X: Разработка тестов: https://clickhouse.tech/docs/ru/development/tests/ -Список задач: https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/instructions/easy\_tasks\_sorted\_ru.md +Список задач: https://github.com/ClickHouse/ClickHouse/blob/master/tests/instructions/easy\_tasks\_sorted\_ru.md # Тестовые данные {#testovye-dannye} diff --git a/docs/ru/getting_started/example_datasets/metrica.md b/docs/ru/getting_started/example_datasets/metrica.md index 00404d77c83..ab2fe3d6c64 100644 --- a/docs/ru/getting_started/example_datasets/metrica.md +++ b/docs/ru/getting_started/example_datasets/metrica.md @@ -56,4 +56,4 @@ $ clickhouse-client --query "SELECT COUNT(*) FROM datasets.visits_v1" ## Запросы {#zaprosy} -Примеры запросов к этим таблицам (они называются `test.hits` и `test.visits`) можно найти среди [stateful тестов](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/tests/queries/1_stateful) и в некоторых [performance тестах](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/tests/performance) ClickHouse. +Примеры запросов к этим таблицам (они называются `test.hits` и `test.visits`) можно найти среди [stateful тестов](https://github.com/ClickHouse/ClickHouse/tree/master/tests/queries/1_stateful) и в некоторых [performance тестах](https://github.com/ClickHouse/ClickHouse/tree/master/tests/performance) ClickHouse. diff --git a/docs/ru/getting_started/install.md b/docs/ru/getting_started/install.md index 6f48dd4fa55..7caffb498e9 100644 --- a/docs/ru/getting_started/install.md +++ b/docs/ru/getting_started/install.md @@ -97,10 +97,10 @@ sudo clickhouse-client-$LATEST_VERSION/install/doinst.sh Можно скомпилировать пакеты и установить их, либо использовать программы без установки пакетов. Также при ручой сборке можно отключить необходимость поддержки набора инструкций SSE 4.2 или собрать под процессоры архитектуры AArch64. - Client: dbms/programs/clickhouse-client - Server: dbms/programs/clickhouse-server + Client: programs/clickhouse-client + Server: programs/clickhouse-server -Для работы собранного вручную сервера необходимо создать директории для данных и метаданных, а также сделать их `chown` для желаемого пользователя. Пути к этим директориям могут быть изменены в конфигурационном файле сервера (src/dbms/programs/server/config.xml), по умолчанию используются следующие: +Для работы собранного вручную сервера необходимо создать директории для данных и метаданных, а также сделать их `chown` для желаемого пользователя. Пути к этим директориям могут быть изменены в конфигурационном файле сервера (src/programs/server/config.xml), по умолчанию используются следующие: /opt/clickhouse/data/default/ /opt/clickhouse/metadata/default/ diff --git a/docs/ru/interfaces/tcp.md b/docs/ru/interfaces/tcp.md index 3bb99e2450b..194f54ce6c7 100644 --- a/docs/ru/interfaces/tcp.md +++ b/docs/ru/interfaces/tcp.md @@ -1,5 +1,5 @@ # Родной интерфейс (TCP) {#rodnoi-interfeis-tcp} -Нативный протокол используется в [клиенте командной строки](cli.md), для взаимодействия между серверами во время обработки распределенных запросов, а также в других программах на C++. К сожалению, у родного протокола ClickHouse пока нет формальной спецификации, но в нем можно разобраться с использованием исходного кода ClickHouse (начиная с [примерно этого места](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/src/Client)) и/или путем перехвата и анализа TCP трафика. +Нативный протокол используется в [клиенте командной строки](cli.md), для взаимодействия между серверами во время обработки распределенных запросов, а также в других программах на C++. К сожалению, у родного протокола ClickHouse пока нет формальной спецификации, но в нем можно разобраться с использованием исходного кода ClickHouse (начиная с [примерно этого места](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/Client)) и/или путем перехвата и анализа TCP трафика. [Оригинальная статья](https://clickhouse.tech/docs/ru/interfaces/tcp/) diff --git a/docs/ru/operations/backup.md b/docs/ru/operations/backup.md index dd01ea9057f..4888f2b418e 100644 --- a/docs/ru/operations/backup.md +++ b/docs/ru/operations/backup.md @@ -1,6 +1,6 @@ # Резервное копирование данных {#rezervnoe-kopirovanie-dannykh} -[Репликация](table_engines/replication.md) обеспечивает защиту от аппаратных сбоев, но не защищает от человеческих ошибок: случайного удаления данных, удаления не той таблицы, которую надо было, или таблицы на не том кластере, а также программных ошибок, которые приводят к неправильной обработке данных или их повреждению. Во многих случаях подобные ошибки влияют на все реплики. ClickHouse имеет встроенные средства защиты для предотвращения некоторых типов ошибок — например, по умолчанию [не получится удалить таблицы \*MergeTree, содержащие более 50 Гб данных, одной командой](https://github.com/ClickHouse/ClickHouse/blob/v18.14.18-stable/dbms/programs/server/config.xml#L322-L330). Однако эти средства защиты не охватывают все возможные случаи и могут быть обойдены. +[Репликация](table_engines/replication.md) обеспечивает защиту от аппаратных сбоев, но не защищает от человеческих ошибок: случайного удаления данных, удаления не той таблицы, которую надо было, или таблицы на не том кластере, а также программных ошибок, которые приводят к неправильной обработке данных или их повреждению. Во многих случаях подобные ошибки влияют на все реплики. ClickHouse имеет встроенные средства защиты для предотвращения некоторых типов ошибок — например, по умолчанию [не получится удалить таблицы \*MergeTree, содержащие более 50 Гб данных, одной командой](https://github.com/ClickHouse/ClickHouse/blob/v18.14.18-stable/programs/server/config.xml#L322-L330). Однако эти средства защиты не охватывают все возможные случаи и могут быть обойдены. Для того чтобы эффективно уменьшить возможные человеческие ошибки, следует тщательно подготовить стратегию резервного копирования и восстановления данных **заранее**. diff --git a/docs/ru/operations/settings/query_complexity.md b/docs/ru/operations/settings/query_complexity.md index 991139cbfaa..4dbc2aed1d3 100644 --- a/docs/ru/operations/settings/query_complexity.md +++ b/docs/ru/operations/settings/query_complexity.md @@ -38,7 +38,7 @@ Максимальный возможный объём оперативной памяти для запросов пользователя на одном сервере. -Значения по умолчанию определены в файле [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Core/Settings.h#L288). По умолчанию размер не ограничен (`max_memory_usage_for_user = 0`). +Значения по умолчанию определены в файле [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Core/Settings.h#L288). По умолчанию размер не ограничен (`max_memory_usage_for_user = 0`). Смотрите также описание настройки [max\_memory\_usage](#settings_max_memory_usage). @@ -46,7 +46,7 @@ Максимальный возможный объём оперативной памяти для всех запросов на одном сервере. -Значения по умолчанию определены в файле [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Core/Settings.h#L289). По умолчанию размер не ограничен (`max_memory_usage_for_all_queries = 0`). +Значения по умолчанию определены в файле [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Core/Settings.h#L289). По умолчанию размер не ограничен (`max_memory_usage_for_all_queries = 0`). Смотрите также описание настройки [max\_memory\_usage](#settings_max_memory_usage). diff --git a/docs/ru/operations/system_tables.md b/docs/ru/operations/system_tables.md index d856e64e7b0..3afb5ff740c 100644 --- a/docs/ru/operations/system_tables.md +++ b/docs/ru/operations/system_tables.md @@ -245,7 +245,7 @@ SELECT * FROM system.events LIMIT 5 - `value` ([Int64](../data_types/int_uint.md)) — значение метрики. - `description` ([String](../data_types/string.md)) — описание метрики. -Список поддержанных метрик смотрите в файле [dbms/src/Common/CurrentMetrics.cpp](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Common/CurrentMetrics.cpp). +Список поддержанных метрик смотрите в файле [dbms/Common/CurrentMetrics.cpp](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Common/CurrentMetrics.cpp). **Пример** diff --git a/docs/ru/query_language/alter.md b/docs/ru/query_language/alter.md index 87be1a3fdb8..401d7e3bcbc 100644 --- a/docs/ru/query_language/alter.md +++ b/docs/ru/query_language/alter.md @@ -444,7 +444,7 @@ ALTER TABLE hits MOVE PARTITION '2019-09-01' TO DISK 'fast_ssd' OPTIMIZE TABLE table_not_partitioned PARTITION tuple() FINAL; ``` -Примеры запросов `ALTER ... PARTITION` можно посмотреть в тестах: [`00502_custom_partitioning_local`](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00502_custom_partitioning_local.sql) и [`00502_custom_partitioning_replicated_zookeeper`](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql). +Примеры запросов `ALTER ... PARTITION` можно посмотреть в тестах: [`00502_custom_partitioning_local`](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00502_custom_partitioning_local.sql) и [`00502_custom_partitioning_replicated_zookeeper`](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql). ### Манипуляции с TTL таблицы {#manipuliatsii-s-ttl-tablitsy} diff --git a/docs/ru/query_language/create.md b/docs/ru/query_language/create.md index c50c75e24fc..dfaae11a359 100644 --- a/docs/ru/query_language/create.md +++ b/docs/ru/query_language/create.md @@ -145,7 +145,7 @@ ENGINE = Если задать кодек для столбца, то кодек по умолчанию не применяется. Кодеки можно последовательно комбинировать, например, `CODEC(Delta, ZSTD)`. Чтобы выбрать наиболее подходящую для вашего проекта комбинацию кодеков, необходимо провести сравнительные тесты, подобные тем, что описаны в статье Altinity [New Encodings to Improve ClickHouse Efficiency](https://www.altinity.com/blog/2019/7/new-encodings-to-improve-clickhouse). !!! warning "Предупреждение" - Нельзя распаковать базу данных ClickHouse с помощью сторонних утилит наподобие `lz4`. Необходимо использовать специальную утилиту [clickhouse-compressor](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/programs/compressor). + Нельзя распаковать базу данных ClickHouse с помощью сторонних утилит наподобие `lz4`. Необходимо использовать специальную утилиту [clickhouse-compressor](https://github.com/ClickHouse/ClickHouse/tree/master/programs/compressor). Сжатие поддерживается для следующих движков таблиц: diff --git a/docs/ru/query_language/functions/introspection.md b/docs/ru/query_language/functions/introspection.md index 0907dffcd48..7cd994840e2 100644 --- a/docs/ru/query_language/functions/introspection.md +++ b/docs/ru/query_language/functions/introspection.md @@ -35,7 +35,7 @@ addressToLine(address_of_binary_instruction) - Имя файла исходного кода и номер строки в этом файле разделяются двоеточием. - Например, `/build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:199`, где `199` — номер строки. + Например, `/build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.cpp:199`, где `199` — номер строки. - Имя бинарного файла, если функция не может найти отладочную информацию. @@ -80,7 +80,7 @@ SELECT addressToLine(94784076370703) \G ``` text Row 1: ────── -addressToLine(94784076370703): /build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:199 +addressToLine(94784076370703): /build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.cpp:199 ``` Применение функции ко всему стектрейсу: @@ -100,8 +100,8 @@ Row 1: ────── trace_source_code_lines: /lib/x86_64-linux-gnu/libpthread-2.27.so /usr/lib/debug/usr/bin/clickhouse -/build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.cpp:199 -/build/obj-x86_64-linux-gnu/../dbms/src/Common/ThreadPool.h:155 +/build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.cpp:199 +/build/obj-x86_64-linux-gnu/../dbms/Common/ThreadPool.h:155 /usr/include/c++/9/bits/atomic_base.h:551 /usr/lib/debug/usr/bin/clickhouse /lib/x86_64-linux-gnu/libpthread-2.27.so diff --git a/docs/ru/query_language/operators.md b/docs/ru/query_language/operators.md index 920928077dd..670990b0967 100644 --- a/docs/ru/query_language/operators.md +++ b/docs/ru/query_language/operators.md @@ -129,7 +129,7 @@ FROM test.Orders; └───────────┴────────────┴──────────┴───────────┴─────────────┴─────────────┘ ``` -Больше примеров приведено в [тестах](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00619_extract.sql). +Больше примеров приведено в [тестах](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00619_extract.sql). ### INTERVAL {#operator-interval} diff --git a/docs/zh/development/build.md b/docs/zh/development/build.md index 3a81077fb0b..6a46d6f2cc7 100644 --- a/docs/zh/development/build.md +++ b/docs/zh/development/build.md @@ -79,6 +79,6 @@ cd .. ``` 若要创建一个执行文件, 执行 `ninja clickhouse`。 -这个命令会使得 `dbms/programs/clickhouse` 文件可执行,您可以使用 `client` or `server` 参数运行。 +这个命令会使得 `programs/clickhouse` 文件可执行,您可以使用 `client` or `server` 参数运行。 [来源文章](https://clickhouse.tech/docs/en/development/build/) diff --git a/docs/zh/development/developer_instruction.md b/docs/zh/development/developer_instruction.md index 27f3c1ad8b2..6d865afb2c4 100644 --- a/docs/zh/development/developer_instruction.md +++ b/docs/zh/development/developer_instruction.md @@ -185,19 +185,19 @@ Yandex官方当前使用GCC构建ClickHouse,因为它生成的机器代码性 在libhdfs2库中生成有关protobuf文件的消息时,可能会显示诸如`libprotobuf WARNING`。它们没有影响,可以忽略不计。 -成功构建后,会得到一个可执行文件`ClickHouse//dbms/programs/clickhouse`: +成功构建后,会得到一个可执行文件`ClickHouse//programs/clickhouse`: - ls -l dbms/programs/clickhouse + ls -l programs/clickhouse # 运行ClickHouse可执行文件 {#yun-xing-clickhouseke-zhi-xing-wen-jian} -要以当前的用户身份运行服务,请进入到`ClickHouse/dbms/programs/server/` 目录(在`build`文件夹外)并运行: +要以当前的用户身份运行服务,请进入到`ClickHouse/programs/server/` 目录(在`build`文件夹外)并运行: - ../../../build/dbms/programs/clickhouse server + ../../../build/programs/clickhouse server 在这种情况下,ClickHouse将使用位于当前目录中的配置文件。您可以从任何目录运行`Clickhouse server`,并将配置文件`--config-file`的路径指定为命令行参数。 -在另外一个终端上连接ClickHouse的clickhouse-client客户端,请进入到`ClickHouse/build/dbms/programs/` 并运行`clickhouse client`。 +在另外一个终端上连接ClickHouse的clickhouse-client客户端,请进入到`ClickHouse/build/programs/` 并运行`clickhouse client`。 如果您在Mac OS X 或者 FreeBSD上收到`Connection refused`的消息,请尝试指定主机地址为127.0.0.1: @@ -206,7 +206,7 @@ Yandex官方当前使用GCC构建ClickHouse,因为它生成的机器代码性 您可以使用自定义构建的ClickHouse二进制文件替换系统中安装的ClickHouse二进制文件的生成版本。为此,请参照官方网站上的说明在计算机上安装ClickHouse。 接下来,运行以下命令: sudo service clickhouse-server stop - sudo cp ClickHouse/build/dbms/programs/clickhouse /usr/bin/ + sudo cp ClickHouse/build/programs/clickhouse /usr/bin/ sudo service clickhouse-server start 请注意,`clickhouse-client`,`clickhouse-server`和其他服务通常共享`clickhouse`二进制文件的符号链接。 @@ -214,7 +214,7 @@ Yandex官方当前使用GCC构建ClickHouse,因为它生成的机器代码性 您还可以使用系统上安装的ClickHouse软件包中的配置文件运行自定义构建的ClickHouse二进制文件: sudo service clickhouse-server stop - sudo -u clickhouse ClickHouse/build/dbms/programs/clickhouse server --config-file /etc/clickhouse-server/config.xml + sudo -u clickhouse ClickHouse/build/programs/clickhouse server --config-file /etc/clickhouse-server/config.xml # IDE (集成开发环境) {#ide-ji-cheng-kai-fa-huan-jing} @@ -234,7 +234,7 @@ ClickHouse的架构描述可以在此处查看:https://clickhouse.tech/docs/en 编写测试用例:https://clickhouse.tech/docs/en/development/tests/ -任务列表:https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/instructions/easy\_tasks\_sorted\_en.md +任务列表:https://github.com/ClickHouse/ClickHouse/blob/master/tests/instructions/easy\_tasks\_sorted\_en.md # 测试数据 {#ce-shi-shu-ju} diff --git a/docs/zh/development/tests.md b/docs/zh/development/tests.md index 0416daf307c..bdc7d5d4e79 100644 --- a/docs/zh/development/tests.md +++ b/docs/zh/development/tests.md @@ -6,15 +6,15 @@ 每个功能测试会向正在运行的 ClickHouse服 务器发送一个或多个查询,并将结果与预期结果进行比较。 -测试用例在 `dbms/src/tests/queries` 目录中。这里有两个子目录:`stateless` 和 `stateful`目录。 无状态的测试无需预加载测试数据集 - 通常是在测试运行期间动态创建小量的数据集。有状态测试需要来自 Yandex.Metrica 的预加载测试数据,而不向一般公众提供。 我们倾向于仅使用«无状态»测试并避免添加新的«有状态»测试。 +测试用例在 `tests/queries` 目录中。这里有两个子目录:`stateless` 和 `stateful`目录。 无状态的测试无需预加载测试数据集 - 通常是在测试运行期间动态创建小量的数据集。有状态测试需要来自 Yandex.Metrica 的预加载测试数据,而不向一般公众提供。 我们倾向于仅使用«无状态»测试并避免添加新的«有状态»测试。 每个测试用例可以是两种类型之一:`.sql` 和 `.sh`。`.sql` 测试文件是用于管理`clickhouse-client --multiquery --testmode`的简单SQL脚本。`.sh` 测试文件是一个可以自己运行的脚本。 -要运行所有测试,请使用 `dbms/tests/clickhouse-test` 工具,用 `--help` 可以获取所有的选项列表。您可以简单地运行所有测试或运行测试名称中的子字符串过滤的测试子集:`./clickhouse-test substring`。 +要运行所有测试,请使用 `tests/clickhouse-test` 工具,用 `--help` 可以获取所有的选项列表。您可以简单地运行所有测试或运行测试名称中的子字符串过滤的测试子集:`./clickhouse-test substring`。 调用功能测试最简单的方法是将 `clickhouse-client` 复制到`/usr/bin/`,运行`clickhouse-server`,然后从自己的目录运行`./ clickhouse-test`。 -要添加新测试,请在 `dbms/src/tests/queries/0_stateless` 目录内添加新的 `.sql` 或 `.sh` 文件,手动检查,然后按以下方式生成 `.reference` 文件: `clickhouse-client -n --testmode < 00000_test.sql > 00000_test.reference` or `./00000_test.sh > ./00000_test.reference`。 +要添加新测试,请在 `tests/queries/0_stateless` 目录内添加新的 `.sql` 或 `.sh` 文件,手动检查,然后按以下方式生成 `.reference` 文件: `clickhouse-client -n --testmode < 00000_test.sql > 00000_test.reference` or `./00000_test.sh > ./00000_test.reference`。 测试应该只使用(创建,删除等)`test` 数据库中的表,这些表假定是事先创建的; 测试也可以使用临时表。 @@ -24,13 +24,13 @@ ## 已知的bug {#yi-zhi-de-bug} -如果我们知道一些可以通过功能测试轻松复制的错误,我们将准备好的功能测试放在 `dbms/src/tests/queries/bugs` 目录中。当修复错误时,这些测试将被移动到 `dbms/src/tests/queries/0_stateless` 目录中。 +如果我们知道一些可以通过功能测试轻松复制的错误,我们将准备好的功能测试放在 `tests/queries/bugs` 目录中。当修复错误时,这些测试将被移动到 `tests/queries/0_stateless` 目录中。 ## 集成测试 {#ji-cheng-ce-shi} 集成测试允许在集群配置中测试 ClickHouse,并与其他服务器(如MySQL,Postgres,MongoDB)进行 ClickHouse 交互。它们可用于模拟网络拆分,数据包丢弃等。这些测试在Docker 下运行,并使用各种软件创建多个容器。 -参考 `dbms/tests/integration/README.md` 文档关于如何使用集成测试。 +参考 `tests/integration/README.md` 文档关于如何使用集成测试。 请注意,ClickHouse 与第三方驱动程序的集成未经过测试。此外,我们目前还没有与 JDBC 和ODBC 驱动程序进行集成测试。 @@ -42,7 +42,7 @@ ## 性能测试 {#xing-neng-ce-shi} -性能测试允许测量和比较综合查询中 ClickHouse 的某些独立部分的性能。测试位于`dbms/tests/performance` 目录中。每个测试都由 `.xml` 文件表示,并附有测试用例的描述。使用 `clickhouse performance-test` 工具(嵌入在 `clickhouse` 二进制文件中)运行测试。请参阅 `--help` 以进行调用。 +性能测试允许测量和比较综合查询中 ClickHouse 的某些独立部分的性能。测试位于`tests/performance` 目录中。每个测试都由 `.xml` 文件表示,并附有测试用例的描述。使用 `clickhouse performance-test` 工具(嵌入在 `clickhouse` 二进制文件中)运行测试。请参阅 `--help` 以进行调用。 每个测试在循环中运行一个或多个查询(可能带有参数组合),并具有一些停止条件(如«最大执行速度不会在三秒内更改»)并测量一些有关查询性能的指标(如«最大执行速度»))。某些测试可以包含预加载的测试数据集的前提条件。 @@ -52,13 +52,13 @@ ## 测试工具和脚本 {#ce-shi-gong-ju-he-jiao-ben} -`tests`目录中的一些程序不是准备测试,而是测试工具。例如,对于`Lexer`,有一个工具`dbms/src/Parsers/tests/lexer` 标准输出。您可以使用这些工具作为代码示例以及探索和手动测试。 +`tests`目录中的一些程序不是准备测试,而是测试工具。例如,对于`Lexer`,有一个工具`dbms/Parsers/tests/lexer` 标准输出。您可以使用这些工具作为代码示例以及探索和手动测试。 您还可以将一对文件 `.sh` 和 `.reference` 与工具放在一些预定义的输入上运行它 - 然后可以将脚本结果与 `.reference` 文件进行比较。这些测试不是自动化的。 ## 杂项测试 {#za-xiang-ce-shi} -有一些外部字典的测试位于 `dbms/tests/external_dictionaries`,机器学习模型在`dbms/tests/external_models`目录。这些测试未更新,必须转移到集成测试。 +有一些外部字典的测试位于 `tests/external_dictionaries`,机器学习模型在`tests/external_models`目录。这些测试未更新,必须转移到集成测试。 对于分布式数据的插入,有单独的测试。此测试在单独的服务器上运行 ClickHouse 集群并模拟各种故障情况:网络拆分,数据包丢弃(ClickHouse 节点之间,ClickHouse 和 ZooKeeper之间,ClickHouse 服务器和客户端之间等),进行 `kill -9`,`kill -STOP` 和`kill -CONT` 等操作,类似[Jepsen](https://aphyr.com/tags/Jepsen)。然后,测试检查是否已写入所有已确认的插入,并且所有已拒绝的插入都未写入。 @@ -68,7 +68,7 @@ 当您开发了新的功能,做手动测试也是合理的。可以按照以下步骤来进行: -编译 ClickHouse。在命令行中运行 ClickHouse:进入 `dbms/src/programs/clickhouse-server` 目录并运行 `./clickhouse-server`。它会默认使用当前目录的配置文件 (`config.xml`, `users.xml` 以及在 `config.d` 和 `users.d` 目录的文件)。可以使用 `dbms/src/programs/clickhouse-client/clickhouse-client` 来连接数据库。 +编译 ClickHouse。在命令行中运行 ClickHouse:进入 `programs/clickhouse-server` 目录并运行 `./clickhouse-server`。它会默认使用当前目录的配置文件 (`config.xml`, `users.xml` 以及在 `config.d` 和 `users.d` 目录的文件)。可以使用 `programs/clickhouse-client/clickhouse-client` 来连接数据库。 或者,您可以安装 ClickHouse 软件包:从 Yandex 存储库中获得稳定版本,或者您可以在ClickHouse源根目录中使用 `./release` 构建自己的软件包。然后使用 `sudo service clickhouse-server start` 启动服务器(或停止服务器)。在 `/etc/clickhouse-server/clickhouse-server.log` 中查找日志。 @@ -172,7 +172,7 @@ Clang 有更多有用的警告 - 您可以使用 `-Weverything` 查找它们并 **Debug allocator.** 您可以使用 `DEBUG_TCMALLOC` CMake 选项启用 `tcmalloc` 的调试版本。我们在每次提交的基础上使用调试分配器运行测试。 -更多请参阅 `dbms/tests/instructions/sanitizers.txt`。 +更多请参阅 `tests/instructions/sanitizers.txt`。 ## 模糊测试 {#mo-hu-ce-shi} @@ -186,7 +186,7 @@ Yandex Cloud 部门的人员从安全角度对 ClickHouse 功能进行了一些 ## 静态分析 {#jing-tai-fen-xi} -我们偶尔使用静态分析。我们已经评估过 `clang-tidy`, `Coverity`, `cppcheck`, `PVS-Studio`, `tscancode`。您将在 `dbms/tests/instructions/` 目录中找到使用说明。你也可以阅读[俄文文章](https://habr.com/company/yandex/blog/342018/). +我们偶尔使用静态分析。我们已经评估过 `clang-tidy`, `Coverity`, `cppcheck`, `PVS-Studio`, `tscancode`。您将在 `tests/instructions/` 目录中找到使用说明。你也可以阅读[俄文文章](https://habr.com/company/yandex/blog/342018/). 如果您使用 `CLion` 作为 IDE,您可以开箱即用一些 `clang-tidy` 检查。 diff --git a/docs/zh/getting_started/install.md b/docs/zh/getting_started/install.md index bf0ace6824f..6f26c82608b 100644 --- a/docs/zh/getting_started/install.md +++ b/docs/zh/getting_started/install.md @@ -72,8 +72,8 @@ sudo yum install clickhouse-server clickhouse-client 你也可以直接使用而不进行安装。 ``` text -Client: dbms/programs/clickhouse-client -Server: dbms/programs/clickhouse-server +Client: programs/clickhouse-client +Server: programs/clickhouse-server ``` 在服务器中为数据创建如下目录: @@ -86,7 +86,7 @@ Server: dbms/programs/clickhouse-server (它们可以在server config中配置。) 为需要的用户运行‘chown’ -日志的路径可以在server config (src/dbms/programs/server/config.xml)中配置。 +日志的路径可以在server config (src/programs/server/config.xml)中配置。 ## 启动 {#qi-dong} @@ -127,7 +127,7 @@ clickhouse-client --host=example.com 检查系统是否工作: ``` bash -milovidov@hostname:~/work/metrica/src/dbms/src/Client$ ./clickhouse-client +milovidov@hostname:~/work/metrica/src/dbms/Client$ ./clickhouse-client ClickHouse client version 0.0.18749. Connecting to localhost:9000. Connected to ClickHouse server version 0.0.18749. diff --git a/docs/zh/interfaces/tcp.md b/docs/zh/interfaces/tcp.md index 9fd4e6b108f..08a52ce1185 100644 --- a/docs/zh/interfaces/tcp.md +++ b/docs/zh/interfaces/tcp.md @@ -1,5 +1,5 @@ # 原生客户端接口(TCP) {#yuan-sheng-ke-hu-duan-jie-kou-tcp} -本机协议用于 [命令行客户端](cli.md),用于分布式查询处理期间的服务器间通信,以及其他C ++程序。 不幸的是,本机ClickHouse协议还没有正式的规范,但它可以从ClickHouse源代码进行逆向工程 [从这里开始](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/src/Client))和/或拦截和分析TCP流量。 +本机协议用于 [命令行客户端](cli.md),用于分布式查询处理期间的服务器间通信,以及其他C ++程序。 不幸的是,本机ClickHouse协议还没有正式的规范,但它可以从ClickHouse源代码进行逆向工程 [从这里开始](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/Client))和/或拦截和分析TCP流量。 [来源文章](https://clickhouse.tech/docs/zh/interfaces/tcp/) diff --git a/docs/zh/operations/settings/query_complexity.md b/docs/zh/operations/settings/query_complexity.md index a06c65ec072..64520f55a0b 100644 --- a/docs/zh/operations/settings/query_complexity.md +++ b/docs/zh/operations/settings/query_complexity.md @@ -45,7 +45,7 @@ Memory consumption is also restricted by the parameters `max_memory_usage_for_us The maximum amount of RAM to use for running a user’s queries on a single server. -Default values are defined in [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Interpreters/Settings.h#L244). By default, the amount is not restricted (`max_memory_usage_for_user = 0`). +Default values are defined in [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Interpreters/Settings.h#L244). By default, the amount is not restricted (`max_memory_usage_for_user = 0`). See also the description of [max\_memory\_usage](#settings_max_memory_usage). @@ -53,7 +53,7 @@ See also the description of [max\_memory\_usage](#settings_max_memory_usage). The maximum amount of RAM to use for running all queries on a single server. -Default values are defined in [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Interpreters/Settings.h#L245). By default, the amount is not restricted (`max_memory_usage_for_all_queries = 0`). +Default values are defined in [Settings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Interpreters/Settings.h#L245). By default, the amount is not restricted (`max_memory_usage_for_all_queries = 0`). See also the description of [max\_memory\_usage](#settings_max_memory_usage). diff --git a/docs/zh/operations/table_engines/mergetree.md b/docs/zh/operations/table_engines/mergetree.md index 3ae2e9bc615..cb1a77e11cb 100644 --- a/docs/zh/operations/table_engines/mergetree.md +++ b/docs/zh/operations/table_engines/mergetree.md @@ -69,7 +69,7 @@ Clickhouse 中最强大的表引擎当属 `MergeTree` (合并树)引擎及 - `SETTINGS` — 影响 `MergeTree` 性能的额外参数: - - `index_granularity` — 索引粒度。即索引中相邻『标记』间的数据行数。默认值,8192 。该列表中所有可用的参数可以从这里查看 [MergeTreeSettings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/src/Storages/MergeTree/MergeTreeSettings.h) 。 + - `index_granularity` — 索引粒度。即索引中相邻『标记』间的数据行数。默认值,8192 。该列表中所有可用的参数可以从这里查看 [MergeTreeSettings.h](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/Storages/MergeTree/MergeTreeSettings.h) 。 - `index_granularity_bytes` — 索引粒度,以字节为单位,默认值: 10Mb。如果仅按数据行数限制索引粒度, 请设置为0(不建议)。 - `enable_mixed_granularity_parts` — 启用或禁用通过 `index_granularity_bytes` 控制索引粒度的大小。在19.11版本之前, 只有 `index_granularity` 配置能够用于限制索引粒度的大小。当从大表(数十或数百兆)中查询数据时候,`index_granularity_bytes` 配置能够提升ClickHouse的性能。如果你的表内数据量很大,可以开启这项配置用以提升`SELECT` 查询的性能。 - `use_minimalistic_part_header_in_zookeeper` — 数据片段头在 ZooKeeper 中的存储方式。如果设置了 `use_minimalistic_part_header_in_zookeeper=1` ,ZooKeeper 会存储更少的数据。更多信息参考『服务配置参数』这章中的 [设置描述](../server_settings/settings.md#server-settings-use_minimalistic_part_header_in_zookeeper) 。 diff --git a/docs/zh/query_language/create.md b/docs/zh/query_language/create.md index 24cacdd9477..94c4ea3669c 100644 --- a/docs/zh/query_language/create.md +++ b/docs/zh/query_language/create.md @@ -121,7 +121,7 @@ ENGINE = If a codec is specified, the default codec doesn’t apply. Codecs can be combined in a pipeline, for example, `CODEC(Delta, ZSTD)`. To select the best codec combination for you project, pass benchmarks similar to described in the Altinity [New Encodings to Improve ClickHouse Efficiency](https://www.altinity.com/blog/2019/7/new-encodings-to-improve-clickhouse) article. !!! warning "Warning" - You can’t decompress ClickHouse database files with external utilities like `lz4`. Instead, use the special [clickhouse-compressor](https://github.com/ClickHouse/ClickHouse/tree/master/dbms/programs/compressor) utility. + You can’t decompress ClickHouse database files with external utilities like `lz4`. Instead, use the special [clickhouse-compressor](https://github.com/ClickHouse/ClickHouse/tree/master/programs/compressor) utility. Compression is supported for the following table engines: diff --git a/docs/zh/query_language/operators.md b/docs/zh/query_language/operators.md index df136a5a1fc..2e73f85d5ec 100644 --- a/docs/zh/query_language/operators.md +++ b/docs/zh/query_language/operators.md @@ -146,7 +146,7 @@ FROM test.Orders; └───────────┴────────────┴──────────┴───────────┴─────────────┴─────────────┘ ``` -You can see more examples in [tests](https://github.com/ClickHouse/ClickHouse/blob/master/dbms/tests/queries/0_stateless/00619_extract.sql). +You can see more examples in [tests](https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00619_extract.sql). ### INTERVAL {#operator-interval} diff --git a/dbms/programs/CMakeLists.txt b/programs/CMakeLists.txt similarity index 100% rename from dbms/programs/CMakeLists.txt rename to programs/CMakeLists.txt diff --git a/dbms/programs/benchmark/Benchmark.cpp b/programs/benchmark/Benchmark.cpp similarity index 100% rename from dbms/programs/benchmark/Benchmark.cpp rename to programs/benchmark/Benchmark.cpp diff --git a/dbms/programs/benchmark/CMakeLists.txt b/programs/benchmark/CMakeLists.txt similarity index 100% rename from dbms/programs/benchmark/CMakeLists.txt rename to programs/benchmark/CMakeLists.txt diff --git a/dbms/programs/benchmark/clickhouse-benchmark.cpp b/programs/benchmark/clickhouse-benchmark.cpp similarity index 100% rename from dbms/programs/benchmark/clickhouse-benchmark.cpp rename to programs/benchmark/clickhouse-benchmark.cpp diff --git a/dbms/programs/clickhouse-split-helper b/programs/clickhouse-split-helper similarity index 100% rename from dbms/programs/clickhouse-split-helper rename to programs/clickhouse-split-helper diff --git a/dbms/programs/client/CMakeLists.txt b/programs/client/CMakeLists.txt similarity index 100% rename from dbms/programs/client/CMakeLists.txt rename to programs/client/CMakeLists.txt diff --git a/dbms/programs/client/Client.cpp b/programs/client/Client.cpp similarity index 100% rename from dbms/programs/client/Client.cpp rename to programs/client/Client.cpp diff --git a/dbms/programs/client/ConnectionParameters.cpp b/programs/client/ConnectionParameters.cpp similarity index 100% rename from dbms/programs/client/ConnectionParameters.cpp rename to programs/client/ConnectionParameters.cpp diff --git a/dbms/programs/client/ConnectionParameters.h b/programs/client/ConnectionParameters.h similarity index 100% rename from dbms/programs/client/ConnectionParameters.h rename to programs/client/ConnectionParameters.h diff --git a/dbms/programs/client/Suggest.cpp b/programs/client/Suggest.cpp similarity index 100% rename from dbms/programs/client/Suggest.cpp rename to programs/client/Suggest.cpp diff --git a/dbms/programs/client/Suggest.h b/programs/client/Suggest.h similarity index 100% rename from dbms/programs/client/Suggest.h rename to programs/client/Suggest.h diff --git a/dbms/programs/client/TestHint.h b/programs/client/TestHint.h similarity index 100% rename from dbms/programs/client/TestHint.h rename to programs/client/TestHint.h diff --git a/dbms/programs/client/clickhouse-client.cpp b/programs/client/clickhouse-client.cpp similarity index 100% rename from dbms/programs/client/clickhouse-client.cpp rename to programs/client/clickhouse-client.cpp diff --git a/dbms/programs/client/clickhouse-client.xml b/programs/client/clickhouse-client.xml similarity index 100% rename from dbms/programs/client/clickhouse-client.xml rename to programs/client/clickhouse-client.xml diff --git a/dbms/programs/client/config_client.h.in b/programs/client/config_client.h.in similarity index 100% rename from dbms/programs/client/config_client.h.in rename to programs/client/config_client.h.in diff --git a/dbms/programs/client/readpassphrase/CMakeLists.txt b/programs/client/readpassphrase/CMakeLists.txt similarity index 100% rename from dbms/programs/client/readpassphrase/CMakeLists.txt rename to programs/client/readpassphrase/CMakeLists.txt diff --git a/dbms/programs/client/readpassphrase/includes.h.in b/programs/client/readpassphrase/includes.h.in similarity index 100% rename from dbms/programs/client/readpassphrase/includes.h.in rename to programs/client/readpassphrase/includes.h.in diff --git a/dbms/programs/client/readpassphrase/readpassphrase.c b/programs/client/readpassphrase/readpassphrase.c similarity index 100% rename from dbms/programs/client/readpassphrase/readpassphrase.c rename to programs/client/readpassphrase/readpassphrase.c diff --git a/dbms/programs/client/readpassphrase/readpassphrase.h b/programs/client/readpassphrase/readpassphrase.h similarity index 100% rename from dbms/programs/client/readpassphrase/readpassphrase.h rename to programs/client/readpassphrase/readpassphrase.h diff --git a/dbms/programs/compressor/CMakeLists.txt b/programs/compressor/CMakeLists.txt similarity index 100% rename from dbms/programs/compressor/CMakeLists.txt rename to programs/compressor/CMakeLists.txt diff --git a/dbms/programs/compressor/Compressor.cpp b/programs/compressor/Compressor.cpp similarity index 100% rename from dbms/programs/compressor/Compressor.cpp rename to programs/compressor/Compressor.cpp diff --git a/dbms/programs/compressor/README.md b/programs/compressor/README.md similarity index 100% rename from dbms/programs/compressor/README.md rename to programs/compressor/README.md diff --git a/dbms/programs/compressor/clickhouse-compressor.cpp b/programs/compressor/clickhouse-compressor.cpp similarity index 100% rename from dbms/programs/compressor/clickhouse-compressor.cpp rename to programs/compressor/clickhouse-compressor.cpp diff --git a/dbms/programs/config_tools.h.in b/programs/config_tools.h.in similarity index 100% rename from dbms/programs/config_tools.h.in rename to programs/config_tools.h.in diff --git a/dbms/programs/copier/Aliases.h b/programs/copier/Aliases.h similarity index 100% rename from dbms/programs/copier/Aliases.h rename to programs/copier/Aliases.h diff --git a/dbms/programs/copier/CMakeLists.txt b/programs/copier/CMakeLists.txt similarity index 100% rename from dbms/programs/copier/CMakeLists.txt rename to programs/copier/CMakeLists.txt diff --git a/dbms/programs/copier/ClusterCopier.cpp b/programs/copier/ClusterCopier.cpp similarity index 100% rename from dbms/programs/copier/ClusterCopier.cpp rename to programs/copier/ClusterCopier.cpp diff --git a/dbms/programs/copier/ClusterCopier.h b/programs/copier/ClusterCopier.h similarity index 100% rename from dbms/programs/copier/ClusterCopier.h rename to programs/copier/ClusterCopier.h diff --git a/dbms/programs/copier/ClusterCopierApp.cpp b/programs/copier/ClusterCopierApp.cpp similarity index 100% rename from dbms/programs/copier/ClusterCopierApp.cpp rename to programs/copier/ClusterCopierApp.cpp diff --git a/dbms/programs/copier/ClusterCopierApp.h b/programs/copier/ClusterCopierApp.h similarity index 100% rename from dbms/programs/copier/ClusterCopierApp.h rename to programs/copier/ClusterCopierApp.h diff --git a/dbms/programs/copier/ClusterPartition.h b/programs/copier/ClusterPartition.h similarity index 100% rename from dbms/programs/copier/ClusterPartition.h rename to programs/copier/ClusterPartition.h diff --git a/dbms/programs/copier/Internals.cpp b/programs/copier/Internals.cpp similarity index 100% rename from dbms/programs/copier/Internals.cpp rename to programs/copier/Internals.cpp diff --git a/dbms/programs/copier/Internals.h b/programs/copier/Internals.h similarity index 100% rename from dbms/programs/copier/Internals.h rename to programs/copier/Internals.h diff --git a/dbms/programs/copier/ShardPartition.h b/programs/copier/ShardPartition.h similarity index 100% rename from dbms/programs/copier/ShardPartition.h rename to programs/copier/ShardPartition.h diff --git a/dbms/programs/copier/ShardPartitionPiece.h b/programs/copier/ShardPartitionPiece.h similarity index 100% rename from dbms/programs/copier/ShardPartitionPiece.h rename to programs/copier/ShardPartitionPiece.h diff --git a/dbms/programs/copier/TaskCluster.h b/programs/copier/TaskCluster.h similarity index 100% rename from dbms/programs/copier/TaskCluster.h rename to programs/copier/TaskCluster.h diff --git a/dbms/programs/copier/TaskTableAndShard.h b/programs/copier/TaskTableAndShard.h similarity index 100% rename from dbms/programs/copier/TaskTableAndShard.h rename to programs/copier/TaskTableAndShard.h diff --git a/dbms/programs/copier/ZooKeeperStaff.h b/programs/copier/ZooKeeperStaff.h similarity index 100% rename from dbms/programs/copier/ZooKeeperStaff.h rename to programs/copier/ZooKeeperStaff.h diff --git a/dbms/programs/copier/clickhouse-copier.cpp b/programs/copier/clickhouse-copier.cpp similarity index 100% rename from dbms/programs/copier/clickhouse-copier.cpp rename to programs/copier/clickhouse-copier.cpp diff --git a/dbms/programs/extract-from-config/CMakeLists.txt b/programs/extract-from-config/CMakeLists.txt similarity index 100% rename from dbms/programs/extract-from-config/CMakeLists.txt rename to programs/extract-from-config/CMakeLists.txt diff --git a/dbms/programs/extract-from-config/ExtractFromConfig.cpp b/programs/extract-from-config/ExtractFromConfig.cpp similarity index 100% rename from dbms/programs/extract-from-config/ExtractFromConfig.cpp rename to programs/extract-from-config/ExtractFromConfig.cpp diff --git a/dbms/programs/extract-from-config/clickhouse-extract-from-config.cpp b/programs/extract-from-config/clickhouse-extract-from-config.cpp similarity index 100% rename from dbms/programs/extract-from-config/clickhouse-extract-from-config.cpp rename to programs/extract-from-config/clickhouse-extract-from-config.cpp diff --git a/dbms/programs/format/CMakeLists.txt b/programs/format/CMakeLists.txt similarity index 100% rename from dbms/programs/format/CMakeLists.txt rename to programs/format/CMakeLists.txt diff --git a/dbms/programs/format/Format.cpp b/programs/format/Format.cpp similarity index 100% rename from dbms/programs/format/Format.cpp rename to programs/format/Format.cpp diff --git a/dbms/programs/format/clickhouse-format.cpp b/programs/format/clickhouse-format.cpp similarity index 100% rename from dbms/programs/format/clickhouse-format.cpp rename to programs/format/clickhouse-format.cpp diff --git a/dbms/programs/local/CMakeLists.txt b/programs/local/CMakeLists.txt similarity index 100% rename from dbms/programs/local/CMakeLists.txt rename to programs/local/CMakeLists.txt diff --git a/dbms/programs/local/LocalServer.cpp b/programs/local/LocalServer.cpp similarity index 100% rename from dbms/programs/local/LocalServer.cpp rename to programs/local/LocalServer.cpp diff --git a/dbms/programs/local/LocalServer.h b/programs/local/LocalServer.h similarity index 100% rename from dbms/programs/local/LocalServer.h rename to programs/local/LocalServer.h diff --git a/dbms/programs/local/clickhouse-local.cpp b/programs/local/clickhouse-local.cpp similarity index 100% rename from dbms/programs/local/clickhouse-local.cpp rename to programs/local/clickhouse-local.cpp diff --git a/dbms/programs/main.cpp b/programs/main.cpp similarity index 100% rename from dbms/programs/main.cpp rename to programs/main.cpp diff --git a/dbms/programs/obfuscator/CMakeLists.txt b/programs/obfuscator/CMakeLists.txt similarity index 100% rename from dbms/programs/obfuscator/CMakeLists.txt rename to programs/obfuscator/CMakeLists.txt diff --git a/dbms/programs/obfuscator/Obfuscator.cpp b/programs/obfuscator/Obfuscator.cpp similarity index 100% rename from dbms/programs/obfuscator/Obfuscator.cpp rename to programs/obfuscator/Obfuscator.cpp diff --git a/dbms/programs/obfuscator/clickhouse-obfuscator.cpp b/programs/obfuscator/clickhouse-obfuscator.cpp similarity index 100% rename from dbms/programs/obfuscator/clickhouse-obfuscator.cpp rename to programs/obfuscator/clickhouse-obfuscator.cpp diff --git a/dbms/programs/odbc-bridge/CMakeLists.txt b/programs/odbc-bridge/CMakeLists.txt similarity index 100% rename from dbms/programs/odbc-bridge/CMakeLists.txt rename to programs/odbc-bridge/CMakeLists.txt diff --git a/dbms/programs/odbc-bridge/ColumnInfoHandler.cpp b/programs/odbc-bridge/ColumnInfoHandler.cpp similarity index 100% rename from dbms/programs/odbc-bridge/ColumnInfoHandler.cpp rename to programs/odbc-bridge/ColumnInfoHandler.cpp diff --git a/dbms/programs/odbc-bridge/ColumnInfoHandler.h b/programs/odbc-bridge/ColumnInfoHandler.h similarity index 100% rename from dbms/programs/odbc-bridge/ColumnInfoHandler.h rename to programs/odbc-bridge/ColumnInfoHandler.h diff --git a/dbms/programs/odbc-bridge/HandlerFactory.cpp b/programs/odbc-bridge/HandlerFactory.cpp similarity index 100% rename from dbms/programs/odbc-bridge/HandlerFactory.cpp rename to programs/odbc-bridge/HandlerFactory.cpp diff --git a/dbms/programs/odbc-bridge/HandlerFactory.h b/programs/odbc-bridge/HandlerFactory.h similarity index 100% rename from dbms/programs/odbc-bridge/HandlerFactory.h rename to programs/odbc-bridge/HandlerFactory.h diff --git a/dbms/programs/odbc-bridge/IdentifierQuoteHandler.cpp b/programs/odbc-bridge/IdentifierQuoteHandler.cpp similarity index 100% rename from dbms/programs/odbc-bridge/IdentifierQuoteHandler.cpp rename to programs/odbc-bridge/IdentifierQuoteHandler.cpp diff --git a/dbms/programs/odbc-bridge/IdentifierQuoteHandler.h b/programs/odbc-bridge/IdentifierQuoteHandler.h similarity index 100% rename from dbms/programs/odbc-bridge/IdentifierQuoteHandler.h rename to programs/odbc-bridge/IdentifierQuoteHandler.h diff --git a/dbms/programs/odbc-bridge/MainHandler.cpp b/programs/odbc-bridge/MainHandler.cpp similarity index 100% rename from dbms/programs/odbc-bridge/MainHandler.cpp rename to programs/odbc-bridge/MainHandler.cpp diff --git a/dbms/programs/odbc-bridge/MainHandler.h b/programs/odbc-bridge/MainHandler.h similarity index 100% rename from dbms/programs/odbc-bridge/MainHandler.h rename to programs/odbc-bridge/MainHandler.h diff --git a/dbms/programs/odbc-bridge/ODBCBlockInputStream.cpp b/programs/odbc-bridge/ODBCBlockInputStream.cpp similarity index 100% rename from dbms/programs/odbc-bridge/ODBCBlockInputStream.cpp rename to programs/odbc-bridge/ODBCBlockInputStream.cpp diff --git a/dbms/programs/odbc-bridge/ODBCBlockInputStream.h b/programs/odbc-bridge/ODBCBlockInputStream.h similarity index 100% rename from dbms/programs/odbc-bridge/ODBCBlockInputStream.h rename to programs/odbc-bridge/ODBCBlockInputStream.h diff --git a/dbms/programs/odbc-bridge/ODBCBridge.cpp b/programs/odbc-bridge/ODBCBridge.cpp similarity index 100% rename from dbms/programs/odbc-bridge/ODBCBridge.cpp rename to programs/odbc-bridge/ODBCBridge.cpp diff --git a/dbms/programs/odbc-bridge/ODBCBridge.h b/programs/odbc-bridge/ODBCBridge.h similarity index 100% rename from dbms/programs/odbc-bridge/ODBCBridge.h rename to programs/odbc-bridge/ODBCBridge.h diff --git a/dbms/programs/odbc-bridge/PingHandler.cpp b/programs/odbc-bridge/PingHandler.cpp similarity index 100% rename from dbms/programs/odbc-bridge/PingHandler.cpp rename to programs/odbc-bridge/PingHandler.cpp diff --git a/dbms/programs/odbc-bridge/PingHandler.h b/programs/odbc-bridge/PingHandler.h similarity index 100% rename from dbms/programs/odbc-bridge/PingHandler.h rename to programs/odbc-bridge/PingHandler.h diff --git a/dbms/programs/odbc-bridge/README.md b/programs/odbc-bridge/README.md similarity index 100% rename from dbms/programs/odbc-bridge/README.md rename to programs/odbc-bridge/README.md diff --git a/dbms/programs/odbc-bridge/getIdentifierQuote.cpp b/programs/odbc-bridge/getIdentifierQuote.cpp similarity index 100% rename from dbms/programs/odbc-bridge/getIdentifierQuote.cpp rename to programs/odbc-bridge/getIdentifierQuote.cpp diff --git a/dbms/programs/odbc-bridge/getIdentifierQuote.h b/programs/odbc-bridge/getIdentifierQuote.h similarity index 100% rename from dbms/programs/odbc-bridge/getIdentifierQuote.h rename to programs/odbc-bridge/getIdentifierQuote.h diff --git a/dbms/programs/odbc-bridge/odbc-bridge.cpp b/programs/odbc-bridge/odbc-bridge.cpp similarity index 100% rename from dbms/programs/odbc-bridge/odbc-bridge.cpp rename to programs/odbc-bridge/odbc-bridge.cpp diff --git a/dbms/programs/odbc-bridge/tests/CMakeLists.txt b/programs/odbc-bridge/tests/CMakeLists.txt similarity index 100% rename from dbms/programs/odbc-bridge/tests/CMakeLists.txt rename to programs/odbc-bridge/tests/CMakeLists.txt diff --git a/dbms/programs/odbc-bridge/tests/validate-odbc-connection-string.cpp b/programs/odbc-bridge/tests/validate-odbc-connection-string.cpp similarity index 100% rename from dbms/programs/odbc-bridge/tests/validate-odbc-connection-string.cpp rename to programs/odbc-bridge/tests/validate-odbc-connection-string.cpp diff --git a/dbms/programs/odbc-bridge/tests/validate-odbc-connection-string.reference b/programs/odbc-bridge/tests/validate-odbc-connection-string.reference similarity index 100% rename from dbms/programs/odbc-bridge/tests/validate-odbc-connection-string.reference rename to programs/odbc-bridge/tests/validate-odbc-connection-string.reference diff --git a/dbms/programs/odbc-bridge/tests/validate-odbc-connection-string.sh b/programs/odbc-bridge/tests/validate-odbc-connection-string.sh similarity index 100% rename from dbms/programs/odbc-bridge/tests/validate-odbc-connection-string.sh rename to programs/odbc-bridge/tests/validate-odbc-connection-string.sh diff --git a/dbms/programs/odbc-bridge/validateODBCConnectionString.cpp b/programs/odbc-bridge/validateODBCConnectionString.cpp similarity index 100% rename from dbms/programs/odbc-bridge/validateODBCConnectionString.cpp rename to programs/odbc-bridge/validateODBCConnectionString.cpp diff --git a/dbms/programs/odbc-bridge/validateODBCConnectionString.h b/programs/odbc-bridge/validateODBCConnectionString.h similarity index 100% rename from dbms/programs/odbc-bridge/validateODBCConnectionString.h rename to programs/odbc-bridge/validateODBCConnectionString.h diff --git a/dbms/programs/server/CMakeLists.txt b/programs/server/CMakeLists.txt similarity index 100% rename from dbms/programs/server/CMakeLists.txt rename to programs/server/CMakeLists.txt diff --git a/dbms/programs/server/HTTPHandler.cpp b/programs/server/HTTPHandler.cpp similarity index 100% rename from dbms/programs/server/HTTPHandler.cpp rename to programs/server/HTTPHandler.cpp diff --git a/dbms/programs/server/HTTPHandler.h b/programs/server/HTTPHandler.h similarity index 100% rename from dbms/programs/server/HTTPHandler.h rename to programs/server/HTTPHandler.h diff --git a/dbms/programs/server/HTTPHandlerFactory.cpp b/programs/server/HTTPHandlerFactory.cpp similarity index 100% rename from dbms/programs/server/HTTPHandlerFactory.cpp rename to programs/server/HTTPHandlerFactory.cpp diff --git a/dbms/programs/server/HTTPHandlerFactory.h b/programs/server/HTTPHandlerFactory.h similarity index 100% rename from dbms/programs/server/HTTPHandlerFactory.h rename to programs/server/HTTPHandlerFactory.h diff --git a/dbms/programs/server/IServer.h b/programs/server/IServer.h similarity index 100% rename from dbms/programs/server/IServer.h rename to programs/server/IServer.h diff --git a/dbms/programs/server/InterserverIOHTTPHandler.cpp b/programs/server/InterserverIOHTTPHandler.cpp similarity index 100% rename from dbms/programs/server/InterserverIOHTTPHandler.cpp rename to programs/server/InterserverIOHTTPHandler.cpp diff --git a/dbms/programs/server/InterserverIOHTTPHandler.h b/programs/server/InterserverIOHTTPHandler.h similarity index 100% rename from dbms/programs/server/InterserverIOHTTPHandler.h rename to programs/server/InterserverIOHTTPHandler.h diff --git a/dbms/programs/server/MetricsTransmitter.cpp b/programs/server/MetricsTransmitter.cpp similarity index 100% rename from dbms/programs/server/MetricsTransmitter.cpp rename to programs/server/MetricsTransmitter.cpp diff --git a/dbms/programs/server/MetricsTransmitter.h b/programs/server/MetricsTransmitter.h similarity index 100% rename from dbms/programs/server/MetricsTransmitter.h rename to programs/server/MetricsTransmitter.h diff --git a/dbms/programs/server/MySQLHandler.cpp b/programs/server/MySQLHandler.cpp similarity index 100% rename from dbms/programs/server/MySQLHandler.cpp rename to programs/server/MySQLHandler.cpp diff --git a/dbms/programs/server/MySQLHandler.h b/programs/server/MySQLHandler.h similarity index 100% rename from dbms/programs/server/MySQLHandler.h rename to programs/server/MySQLHandler.h diff --git a/dbms/programs/server/MySQLHandlerFactory.cpp b/programs/server/MySQLHandlerFactory.cpp similarity index 100% rename from dbms/programs/server/MySQLHandlerFactory.cpp rename to programs/server/MySQLHandlerFactory.cpp diff --git a/dbms/programs/server/MySQLHandlerFactory.h b/programs/server/MySQLHandlerFactory.h similarity index 100% rename from dbms/programs/server/MySQLHandlerFactory.h rename to programs/server/MySQLHandlerFactory.h diff --git a/dbms/programs/server/NotFoundHandler.cpp b/programs/server/NotFoundHandler.cpp similarity index 100% rename from dbms/programs/server/NotFoundHandler.cpp rename to programs/server/NotFoundHandler.cpp diff --git a/dbms/programs/server/NotFoundHandler.h b/programs/server/NotFoundHandler.h similarity index 100% rename from dbms/programs/server/NotFoundHandler.h rename to programs/server/NotFoundHandler.h diff --git a/dbms/programs/server/PingRequestHandler.cpp b/programs/server/PingRequestHandler.cpp similarity index 100% rename from dbms/programs/server/PingRequestHandler.cpp rename to programs/server/PingRequestHandler.cpp diff --git a/dbms/programs/server/PingRequestHandler.h b/programs/server/PingRequestHandler.h similarity index 100% rename from dbms/programs/server/PingRequestHandler.h rename to programs/server/PingRequestHandler.h diff --git a/dbms/programs/server/PrometheusMetricsWriter.cpp b/programs/server/PrometheusMetricsWriter.cpp similarity index 100% rename from dbms/programs/server/PrometheusMetricsWriter.cpp rename to programs/server/PrometheusMetricsWriter.cpp diff --git a/dbms/programs/server/PrometheusMetricsWriter.h b/programs/server/PrometheusMetricsWriter.h similarity index 100% rename from dbms/programs/server/PrometheusMetricsWriter.h rename to programs/server/PrometheusMetricsWriter.h diff --git a/dbms/programs/server/PrometheusRequestHandler.cpp b/programs/server/PrometheusRequestHandler.cpp similarity index 100% rename from dbms/programs/server/PrometheusRequestHandler.cpp rename to programs/server/PrometheusRequestHandler.cpp diff --git a/dbms/programs/server/PrometheusRequestHandler.h b/programs/server/PrometheusRequestHandler.h similarity index 100% rename from dbms/programs/server/PrometheusRequestHandler.h rename to programs/server/PrometheusRequestHandler.h diff --git a/dbms/programs/server/ReplicasStatusHandler.cpp b/programs/server/ReplicasStatusHandler.cpp similarity index 100% rename from dbms/programs/server/ReplicasStatusHandler.cpp rename to programs/server/ReplicasStatusHandler.cpp diff --git a/dbms/programs/server/ReplicasStatusHandler.h b/programs/server/ReplicasStatusHandler.h similarity index 100% rename from dbms/programs/server/ReplicasStatusHandler.h rename to programs/server/ReplicasStatusHandler.h diff --git a/dbms/programs/server/RootRequestHandler.cpp b/programs/server/RootRequestHandler.cpp similarity index 100% rename from dbms/programs/server/RootRequestHandler.cpp rename to programs/server/RootRequestHandler.cpp diff --git a/dbms/programs/server/RootRequestHandler.h b/programs/server/RootRequestHandler.h similarity index 100% rename from dbms/programs/server/RootRequestHandler.h rename to programs/server/RootRequestHandler.h diff --git a/dbms/programs/server/Server.cpp b/programs/server/Server.cpp similarity index 100% rename from dbms/programs/server/Server.cpp rename to programs/server/Server.cpp diff --git a/dbms/programs/server/Server.h b/programs/server/Server.h similarity index 100% rename from dbms/programs/server/Server.h rename to programs/server/Server.h diff --git a/dbms/programs/server/TCPHandler.cpp b/programs/server/TCPHandler.cpp similarity index 100% rename from dbms/programs/server/TCPHandler.cpp rename to programs/server/TCPHandler.cpp diff --git a/dbms/programs/server/TCPHandler.h b/programs/server/TCPHandler.h similarity index 100% rename from dbms/programs/server/TCPHandler.h rename to programs/server/TCPHandler.h diff --git a/dbms/programs/server/TCPHandlerFactory.h b/programs/server/TCPHandlerFactory.h similarity index 100% rename from dbms/programs/server/TCPHandlerFactory.h rename to programs/server/TCPHandlerFactory.h diff --git a/dbms/programs/server/clickhouse-server.cpp b/programs/server/clickhouse-server.cpp similarity index 100% rename from dbms/programs/server/clickhouse-server.cpp rename to programs/server/clickhouse-server.cpp diff --git a/dbms/programs/server/config.d/listen.xml.disabled b/programs/server/config.d/listen.xml.disabled similarity index 100% rename from dbms/programs/server/config.d/listen.xml.disabled rename to programs/server/config.d/listen.xml.disabled diff --git a/dbms/programs/server/config.d/log_to_console.xml b/programs/server/config.d/log_to_console.xml similarity index 100% rename from dbms/programs/server/config.d/log_to_console.xml rename to programs/server/config.d/log_to_console.xml diff --git a/dbms/programs/server/config.d/macros.xml b/programs/server/config.d/macros.xml similarity index 100% rename from dbms/programs/server/config.d/macros.xml rename to programs/server/config.d/macros.xml diff --git a/dbms/programs/server/config.d/metric_log.xml b/programs/server/config.d/metric_log.xml similarity index 100% rename from dbms/programs/server/config.d/metric_log.xml rename to programs/server/config.d/metric_log.xml diff --git a/dbms/programs/server/config.d/more_clusters.xml b/programs/server/config.d/more_clusters.xml similarity index 100% rename from dbms/programs/server/config.d/more_clusters.xml rename to programs/server/config.d/more_clusters.xml diff --git a/dbms/programs/server/config.d/part_log.xml b/programs/server/config.d/part_log.xml similarity index 100% rename from dbms/programs/server/config.d/part_log.xml rename to programs/server/config.d/part_log.xml diff --git a/dbms/programs/server/config.d/path.xml b/programs/server/config.d/path.xml similarity index 100% rename from dbms/programs/server/config.d/path.xml rename to programs/server/config.d/path.xml diff --git a/dbms/programs/server/config.d/query_masking_rules.xml b/programs/server/config.d/query_masking_rules.xml similarity index 100% rename from dbms/programs/server/config.d/query_masking_rules.xml rename to programs/server/config.d/query_masking_rules.xml diff --git a/dbms/programs/server/config.d/text_log.xml b/programs/server/config.d/text_log.xml similarity index 100% rename from dbms/programs/server/config.d/text_log.xml rename to programs/server/config.d/text_log.xml diff --git a/dbms/programs/server/config.d/tls.xml.disabled b/programs/server/config.d/tls.xml.disabled similarity index 100% rename from dbms/programs/server/config.d/tls.xml.disabled rename to programs/server/config.d/tls.xml.disabled diff --git a/dbms/programs/server/config.d/zookeeper.xml b/programs/server/config.d/zookeeper.xml similarity index 100% rename from dbms/programs/server/config.d/zookeeper.xml rename to programs/server/config.d/zookeeper.xml diff --git a/dbms/programs/server/config.xml b/programs/server/config.xml similarity index 100% rename from dbms/programs/server/config.xml rename to programs/server/config.xml diff --git a/dbms/programs/server/data/.gitignore b/programs/server/data/.gitignore similarity index 100% rename from dbms/programs/server/data/.gitignore rename to programs/server/data/.gitignore diff --git a/dbms/programs/server/data/default/.gitignore b/programs/server/data/default/.gitignore similarity index 100% rename from dbms/programs/server/data/default/.gitignore rename to programs/server/data/default/.gitignore diff --git a/dbms/programs/server/metadata/default/.gitignore b/programs/server/metadata/default/.gitignore similarity index 100% rename from dbms/programs/server/metadata/default/.gitignore rename to programs/server/metadata/default/.gitignore diff --git a/dbms/programs/server/users.d/allow_only_from_localhost.xml b/programs/server/users.d/allow_only_from_localhost.xml similarity index 100% rename from dbms/programs/server/users.d/allow_only_from_localhost.xml rename to programs/server/users.d/allow_only_from_localhost.xml diff --git a/dbms/programs/server/users.d/log_queries.xml b/programs/server/users.d/log_queries.xml similarity index 100% rename from dbms/programs/server/users.d/log_queries.xml rename to programs/server/users.d/log_queries.xml diff --git a/dbms/programs/server/users.d/readonly.xml b/programs/server/users.d/readonly.xml similarity index 100% rename from dbms/programs/server/users.d/readonly.xml rename to programs/server/users.d/readonly.xml diff --git a/dbms/programs/server/users.xml b/programs/server/users.xml similarity index 100% rename from dbms/programs/server/users.xml rename to programs/server/users.xml diff --git a/dbms/tests/.gitignore b/tests/.gitignore similarity index 100% rename from dbms/tests/.gitignore rename to tests/.gitignore diff --git a/dbms/tests/CMakeLists.txt b/tests/CMakeLists.txt similarity index 100% rename from dbms/tests/CMakeLists.txt rename to tests/CMakeLists.txt diff --git a/dbms/tests/CTestCustom.cmake b/tests/CTestCustom.cmake similarity index 100% rename from dbms/tests/CTestCustom.cmake rename to tests/CTestCustom.cmake diff --git a/dbms/tests/clickhouse-client.xml b/tests/clickhouse-client.xml similarity index 100% rename from dbms/tests/clickhouse-client.xml rename to tests/clickhouse-client.xml diff --git a/dbms/tests/clickhouse-test b/tests/clickhouse-test similarity index 100% rename from dbms/tests/clickhouse-test rename to tests/clickhouse-test diff --git a/dbms/tests/clickhouse-test-server b/tests/clickhouse-test-server similarity index 93% rename from dbms/tests/clickhouse-test-server rename to tests/clickhouse-test-server index 831fd05fd82..7195abbfde8 100755 --- a/dbms/tests/clickhouse-test-server +++ b/tests/clickhouse-test-server @@ -10,11 +10,11 @@ DATA_DIR=${DATA_DIR:=`mktemp -d /tmp/clickhouse.test..XXXXX`} DATA_DIR_PATTERN=${DATA_DIR_PATTERN:=/tmp/clickhouse} # path from config file, will be replaced to temporary LOG_DIR=${LOG_DIR:=$DATA_DIR/log} export CLICKHOUSE_BINARY_NAME=${CLICKHOUSE_BINARY_NAME:="clickhouse"} -( [ -x "$ROOT_DIR/dbms/programs/${CLICKHOUSE_BINARY_NAME}-server" ] || [ -x "$ROOT_DIR/dbms/programs/${CLICKHOUSE_BINARY_NAME}" ] ) && BUILD_DIR=${BUILD_DIR:=$ROOT_DIR} # Build without separate build dir +( [ -x "$ROOT_DIR/programs/${CLICKHOUSE_BINARY_NAME}-server" ] || [ -x "$ROOT_DIR/programs/${CLICKHOUSE_BINARY_NAME}" ] ) && BUILD_DIR=${BUILD_DIR:=$ROOT_DIR} # Build without separate build dir [ -d "$ROOT_DIR/build${BUILD_TYPE}" ] && BUILD_DIR=${BUILD_DIR:=$ROOT_DIR/build${BUILD_TYPE}} BUILD_DIR=${BUILD_DIR:=$ROOT_DIR} [ -x ${CLICKHOUSE_BINARY_NAME}-server" ] && [ -x ${CLICKHOUSE_BINARY_NAME}-client" ] && BIN_DIR= # Allow run in /usr/bin -( [ -x "$BUILD_DIR/dbms/programs/${CLICKHOUSE_BINARY_NAME}" ] || [ -x "$BUILD_DIR/dbms/programs/${CLICKHOUSE_BINARY_NAME}-server" ] ) && BIN_DIR=${BIN_DIR:=$BUILD_DIR/dbms/programs/} +( [ -x "$BUILD_DIR/programs/${CLICKHOUSE_BINARY_NAME}" ] || [ -x "$BUILD_DIR/programs/${CLICKHOUSE_BINARY_NAME}-server" ] ) && BIN_DIR=${BIN_DIR:=$BUILD_DIR/programs/} [ -x "$BIN_DIR/${CLICKHOUSE_BINARY_NAME}-server" ] && CLICKHOUSE_SERVER=${CLICKHOUSE_SERVER:=$BIN_DIR/${CLICKHOUSE_BINARY_NAME}-server} [ -x "$BIN_DIR/${CLICKHOUSE_BINARY_NAME}" ] && CLICKHOUSE_SERVER=${CLICKHOUSE_SERVER:=$BIN_DIR/${CLICKHOUSE_BINARY_NAME} server} [ -x "$BIN_DIR/${CLICKHOUSE_BINARY_NAME}-client" ] && CLICKHOUSE_CLIENT=${CLICKHOUSE_CLIENT:=$BIN_DIR/${CLICKHOUSE_BINARY_NAME}-client} @@ -91,7 +91,7 @@ fi VERSION=`$CLICKHOUSE_CLIENT --version-clean` # If run from compile dir - use in-place compile binary and headers -[ -n "$BIN_DIR" ] && INTERNAL_COMPILER_PARAMS="--compiler_executable_root=${INTERNAL_COMPILER_BIN_ROOT:=$BUILD_DIR/dbms/programs/} --compiler_headers=$BUILD_DIR/dbms/programs/clang/headers/$VERSION/ --compiler_headers_root=$BUILD_DIR/dbms/programs/clang/headers/$VERSION/" +[ -n "$BIN_DIR" ] && INTERNAL_COMPILER_PARAMS="--compiler_executable_root=${INTERNAL_COMPILER_BIN_ROOT:=$BUILD_DIR/programs/} --compiler_headers=$BUILD_DIR/programs/clang/headers/$VERSION/ --compiler_headers_root=$BUILD_DIR/programs/clang/headers/$VERSION/" $GDB $CLICKHOUSE_SERVER --config-file=$CLICKHOUSE_CONFIG --log=$CLICKHOUSE_LOG $TEST_SERVER_PARAMS -- \ --http_port=$CLICKHOUSE_PORT_HTTP \ diff --git a/dbms/tests/client-test.xml b/tests/client-test.xml similarity index 100% rename from dbms/tests/client-test.xml rename to tests/client-test.xml diff --git a/dbms/tests/config/client_config.xml b/tests/config/client_config.xml similarity index 100% rename from dbms/tests/config/client_config.xml rename to tests/config/client_config.xml diff --git a/dbms/tests/config/decimals_dictionary.xml b/tests/config/decimals_dictionary.xml similarity index 100% rename from dbms/tests/config/decimals_dictionary.xml rename to tests/config/decimals_dictionary.xml diff --git a/dbms/tests/config/dhparam.pem b/tests/config/dhparam.pem similarity index 100% rename from dbms/tests/config/dhparam.pem rename to tests/config/dhparam.pem diff --git a/dbms/tests/config/disks.xml b/tests/config/disks.xml similarity index 100% rename from dbms/tests/config/disks.xml rename to tests/config/disks.xml diff --git a/dbms/tests/config/ints_dictionary.xml b/tests/config/ints_dictionary.xml similarity index 100% rename from dbms/tests/config/ints_dictionary.xml rename to tests/config/ints_dictionary.xml diff --git a/dbms/tests/config/listen.xml b/tests/config/listen.xml similarity index 100% rename from dbms/tests/config/listen.xml rename to tests/config/listen.xml diff --git a/dbms/tests/config/log_queries.xml b/tests/config/log_queries.xml similarity index 100% rename from dbms/tests/config/log_queries.xml rename to tests/config/log_queries.xml diff --git a/dbms/tests/config/macros.xml b/tests/config/macros.xml similarity index 100% rename from dbms/tests/config/macros.xml rename to tests/config/macros.xml diff --git a/dbms/tests/config/metric_log.xml b/tests/config/metric_log.xml similarity index 100% rename from dbms/tests/config/metric_log.xml rename to tests/config/metric_log.xml diff --git a/dbms/tests/config/part_log.xml b/tests/config/part_log.xml similarity index 100% rename from dbms/tests/config/part_log.xml rename to tests/config/part_log.xml diff --git a/dbms/tests/config/query_masking_rules.xml b/tests/config/query_masking_rules.xml similarity index 100% rename from dbms/tests/config/query_masking_rules.xml rename to tests/config/query_masking_rules.xml diff --git a/dbms/tests/config/readonly.xml b/tests/config/readonly.xml similarity index 100% rename from dbms/tests/config/readonly.xml rename to tests/config/readonly.xml diff --git a/dbms/tests/config/secure_ports.xml b/tests/config/secure_ports.xml similarity index 100% rename from dbms/tests/config/secure_ports.xml rename to tests/config/secure_ports.xml diff --git a/dbms/tests/config/server.crt b/tests/config/server.crt similarity index 100% rename from dbms/tests/config/server.crt rename to tests/config/server.crt diff --git a/dbms/tests/config/server.key b/tests/config/server.key similarity index 100% rename from dbms/tests/config/server.key rename to tests/config/server.key diff --git a/dbms/tests/config/strings_dictionary.xml b/tests/config/strings_dictionary.xml similarity index 100% rename from dbms/tests/config/strings_dictionary.xml rename to tests/config/strings_dictionary.xml diff --git a/dbms/tests/config/text_log.xml b/tests/config/text_log.xml similarity index 100% rename from dbms/tests/config/text_log.xml rename to tests/config/text_log.xml diff --git a/dbms/tests/config/zookeeper.xml b/tests/config/zookeeper.xml similarity index 100% rename from dbms/tests/config/zookeeper.xml rename to tests/config/zookeeper.xml diff --git a/dbms/tests/decimals_dictionary.xml b/tests/decimals_dictionary.xml similarity index 100% rename from dbms/tests/decimals_dictionary.xml rename to tests/decimals_dictionary.xml diff --git a/dbms/tests/external_models/catboost/data/build_catboost.sh b/tests/external_models/catboost/data/build_catboost.sh similarity index 100% rename from dbms/tests/external_models/catboost/data/build_catboost.sh rename to tests/external_models/catboost/data/build_catboost.sh diff --git a/dbms/tests/external_models/catboost/helpers/__init__.py b/tests/external_models/catboost/helpers/__init__.py similarity index 100% rename from dbms/tests/external_models/catboost/helpers/__init__.py rename to tests/external_models/catboost/helpers/__init__.py diff --git a/dbms/tests/external_models/catboost/helpers/client.py b/tests/external_models/catboost/helpers/client.py similarity index 100% rename from dbms/tests/external_models/catboost/helpers/client.py rename to tests/external_models/catboost/helpers/client.py diff --git a/dbms/tests/external_models/catboost/helpers/generate.py b/tests/external_models/catboost/helpers/generate.py similarity index 100% rename from dbms/tests/external_models/catboost/helpers/generate.py rename to tests/external_models/catboost/helpers/generate.py diff --git a/dbms/tests/external_models/catboost/helpers/server.py b/tests/external_models/catboost/helpers/server.py similarity index 100% rename from dbms/tests/external_models/catboost/helpers/server.py rename to tests/external_models/catboost/helpers/server.py diff --git a/dbms/tests/external_models/catboost/helpers/server_with_models.py b/tests/external_models/catboost/helpers/server_with_models.py similarity index 100% rename from dbms/tests/external_models/catboost/helpers/server_with_models.py rename to tests/external_models/catboost/helpers/server_with_models.py diff --git a/dbms/tests/external_models/catboost/helpers/table.py b/tests/external_models/catboost/helpers/table.py similarity index 100% rename from dbms/tests/external_models/catboost/helpers/table.py rename to tests/external_models/catboost/helpers/table.py diff --git a/dbms/tests/external_models/catboost/helpers/train.py b/tests/external_models/catboost/helpers/train.py similarity index 100% rename from dbms/tests/external_models/catboost/helpers/train.py rename to tests/external_models/catboost/helpers/train.py diff --git a/dbms/tests/external_models/catboost/pytest.ini b/tests/external_models/catboost/pytest.ini similarity index 100% rename from dbms/tests/external_models/catboost/pytest.ini rename to tests/external_models/catboost/pytest.ini diff --git a/dbms/tests/external_models/catboost/test_apply_catboost_model/test.py b/tests/external_models/catboost/test_apply_catboost_model/test.py similarity index 100% rename from dbms/tests/external_models/catboost/test_apply_catboost_model/test.py rename to tests/external_models/catboost/test_apply_catboost_model/test.py diff --git a/dbms/tests/instructions/clang-tidy.txt b/tests/instructions/clang-tidy.txt similarity index 100% rename from dbms/tests/instructions/clang-tidy.txt rename to tests/instructions/clang-tidy.txt diff --git a/dbms/tests/instructions/coverity.txt b/tests/instructions/coverity.txt similarity index 100% rename from dbms/tests/instructions/coverity.txt rename to tests/instructions/coverity.txt diff --git a/dbms/tests/instructions/cppcheck.txt b/tests/instructions/cppcheck.txt similarity index 100% rename from dbms/tests/instructions/cppcheck.txt rename to tests/instructions/cppcheck.txt diff --git a/dbms/tests/instructions/developer_instruction_en.md b/tests/instructions/developer_instruction_en.md similarity index 100% rename from dbms/tests/instructions/developer_instruction_en.md rename to tests/instructions/developer_instruction_en.md diff --git a/dbms/tests/instructions/developer_instruction_ru.md b/tests/instructions/developer_instruction_ru.md similarity index 100% rename from dbms/tests/instructions/developer_instruction_ru.md rename to tests/instructions/developer_instruction_ru.md diff --git a/dbms/tests/instructions/easy_tasks_sorted_ru.md b/tests/instructions/easy_tasks_sorted_ru.md similarity index 99% rename from dbms/tests/instructions/easy_tasks_sorted_ru.md rename to tests/instructions/easy_tasks_sorted_ru.md index cb94fa1885f..2dd60f97db3 100644 --- a/dbms/tests/instructions/easy_tasks_sorted_ru.md +++ b/tests/instructions/easy_tasks_sorted_ru.md @@ -2,7 +2,7 @@ ## Недостатки юзабилити, если пользователь не может прочитать конфиг клиента. -`dbms/programs/client/Client.cpp` +`programs/client/Client.cpp` Делаем `chmod 000 /etc/clickhouse-client/config.xml` и смотрим, что получится. diff --git a/dbms/tests/instructions/heap-profiler.txt b/tests/instructions/heap-profiler.txt similarity index 92% rename from dbms/tests/instructions/heap-profiler.txt rename to tests/instructions/heap-profiler.txt index dd188f751a5..3c35e9cf518 100644 --- a/dbms/tests/instructions/heap-profiler.txt +++ b/tests/instructions/heap-profiler.txt @@ -1,7 +1,7 @@ Build clickhouse without tcmalloc. cmake -D ENABLE_TCMALLOC=0 Copy clickhouse binary to your server. -scp dbms/programs/clickhouse server:~ +scp programs/clickhouse server:~ ssh to your server diff --git a/dbms/tests/instructions/jemalloc_memory_profile.txt b/tests/instructions/jemalloc_memory_profile.txt similarity index 100% rename from dbms/tests/instructions/jemalloc_memory_profile.txt rename to tests/instructions/jemalloc_memory_profile.txt diff --git a/dbms/tests/instructions/kafka.txt b/tests/instructions/kafka.txt similarity index 100% rename from dbms/tests/instructions/kafka.txt rename to tests/instructions/kafka.txt diff --git a/dbms/tests/instructions/ninja_trace.txt b/tests/instructions/ninja_trace.txt similarity index 100% rename from dbms/tests/instructions/ninja_trace.txt rename to tests/instructions/ninja_trace.txt diff --git a/dbms/tests/instructions/pvs-studio.txt b/tests/instructions/pvs-studio.txt similarity index 100% rename from dbms/tests/instructions/pvs-studio.txt rename to tests/instructions/pvs-studio.txt diff --git a/dbms/tests/instructions/sanitizers.md b/tests/instructions/sanitizers.md similarity index 96% rename from dbms/tests/instructions/sanitizers.md rename to tests/instructions/sanitizers.md index 45e1304e2a1..b501f946b46 100644 --- a/dbms/tests/instructions/sanitizers.md +++ b/tests/instructions/sanitizers.md @@ -16,7 +16,7 @@ ninja ## Copy binary to your server ``` -scp ./dbms/programs/clickhouse yourserver:~/clickhouse-asan +scp ./programs/clickhouse yourserver:~/clickhouse-asan ``` ## Start ClickHouse and run tests diff --git a/dbms/tests/instructions/syntax.txt b/tests/instructions/syntax.txt similarity index 100% rename from dbms/tests/instructions/syntax.txt rename to tests/instructions/syntax.txt diff --git a/dbms/tests/instructions/tscancode.txt b/tests/instructions/tscancode.txt similarity index 100% rename from dbms/tests/instructions/tscancode.txt rename to tests/instructions/tscancode.txt diff --git a/dbms/tests/integration/.dockerignore b/tests/integration/.dockerignore similarity index 100% rename from dbms/tests/integration/.dockerignore rename to tests/integration/.dockerignore diff --git a/dbms/tests/integration/.gitignore b/tests/integration/.gitignore similarity index 100% rename from dbms/tests/integration/.gitignore rename to tests/integration/.gitignore diff --git a/dbms/tests/integration/CMakeLists.txt b/tests/integration/CMakeLists.txt similarity index 69% rename from dbms/tests/integration/CMakeLists.txt rename to tests/integration/CMakeLists.txt index 54d5f5e727a..8280464051f 100644 --- a/dbms/tests/integration/CMakeLists.txt +++ b/tests/integration/CMakeLists.txt @@ -1,7 +1,7 @@ if(CLICKHOUSE_SPLIT_BINARY) - set (TEST_USE_BINARIES CLICKHOUSE_TESTS_SERVER_BIN_PATH=${ClickHouse_BINARY_DIR}/dbms/programs/clickhouse-server CLICKHOUSE_TESTS_CLIENT_BIN_PATH=${ClickHouse_BINARY_DIR}/dbms/programs/clickhouse-client) + set (TEST_USE_BINARIES CLICKHOUSE_TESTS_SERVER_BIN_PATH=${ClickHouse_BINARY_DIR}/programs/clickhouse-server CLICKHOUSE_TESTS_CLIENT_BIN_PATH=${ClickHouse_BINARY_DIR}/programs/clickhouse-client) else() - set (TEST_USE_BINARIES CLICKHOUSE_TESTS_SERVER_BIN_PATH=${ClickHouse_BINARY_DIR}/dbms/programs/clickhouse CLICKHOUSE_TESTS_CLIENT_BIN_PATH=${ClickHouse_BINARY_DIR}/dbms/programs/clickhouse) + set (TEST_USE_BINARIES CLICKHOUSE_TESTS_SERVER_BIN_PATH=${ClickHouse_BINARY_DIR}/programs/clickhouse CLICKHOUSE_TESTS_CLIENT_BIN_PATH=${ClickHouse_BINARY_DIR}/programs/clickhouse) endif() find_program(DOCKER_CMD docker) @@ -12,13 +12,13 @@ find_program(SUDO_CMD sudo) # will mount only one binary to docker container - build with .so cant work if(MAKE_STATIC_LIBRARIES AND DOCKER_CMD) if(INTEGRATION_USE_RUNNER AND SUDO_CMD) - add_test(NAME integration-runner WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${SUDO_CMD} ${CMAKE_CURRENT_SOURCE_DIR}/runner --binary ${ClickHouse_BINARY_DIR}/dbms/programs/clickhouse --configs-dir ${ClickHouse_SOURCE_DIR}/dbms/programs/server/) + add_test(NAME integration-runner WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND ${SUDO_CMD} ${CMAKE_CURRENT_SOURCE_DIR}/runner --binary ${ClickHouse_BINARY_DIR}/programs/clickhouse --configs-dir ${ClickHouse_SOURCE_DIR}/programs/server/) message(STATUS "Using tests in docker with runner SUDO=${SUDO_CMD}; DOCKER=${DOCKER_CMD};") endif() if(NOT INTEGRATION_USE_RUNNER AND DOCKER_COMPOSE_CMD AND PYTEST_CMD) # To run one test with debug: # cmake . -DPYTEST_OPT="-ss;test_cluster_copier" - add_test(NAME integration-pytest WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND env ${TEST_USE_BINARIES} "CLICKHOUSE_TESTS_BASE_CONFIG_DIR=${ClickHouse_SOURCE_DIR}/dbms/programs/server/" ${PYTEST_STARTER} ${PYTEST_CMD} ${PYTEST_OPT}) + add_test(NAME integration-pytest WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND env ${TEST_USE_BINARIES} "CLICKHOUSE_TESTS_BASE_CONFIG_DIR=${ClickHouse_SOURCE_DIR}/programs/server/" ${PYTEST_STARTER} ${PYTEST_CMD} ${PYTEST_OPT}) message(STATUS "Using tests in docker DOCKER=${DOCKER_CMD}; DOCKER_COMPOSE=${DOCKER_COMPOSE_CMD}; PYTEST=${PYTEST_STARTER} ${PYTEST_CMD} ${PYTEST_OPT}") endif() endif() diff --git a/dbms/tests/integration/README.md b/tests/integration/README.md similarity index 89% rename from dbms/tests/integration/README.md rename to tests/integration/README.md index 64d8b29e35a..6ac224c449f 100644 --- a/dbms/tests/integration/README.md +++ b/tests/integration/README.md @@ -44,11 +44,11 @@ Notes: You can run tests via `./runner` script and pass pytest arguments as last arg: ``` -$ ./runner --binary $HOME/ClickHouse/dbms/programs/clickhouse --bridge-binary $HOME/ClickHouse/dbms/programs/clickhouse-odbc-bridge --configs-dir $HOME/ClickHouse/dbms/programs/server/ 'test_odbc_interaction -ss' +$ ./runner --binary $HOME/ClickHouse/programs/clickhouse --bridge-binary $HOME/ClickHouse/programs/clickhouse-odbc-bridge --configs-dir $HOME/ClickHouse/programs/server/ 'test_odbc_interaction -ss' Start tests ============================= test session starts ============================== platform linux2 -- Python 2.7.15rc1, pytest-4.0.0, py-1.7.0, pluggy-0.8.0 -rootdir: /ClickHouse/dbms/tests/integration, inifile: pytest.ini +rootdir: /ClickHouse/tests/integration, inifile: pytest.ini collected 6 items test_odbc_interaction/test.py Removing network clickhouse_default @@ -68,15 +68,15 @@ Removing network roottestodbcinteraction_default Path to binary and configs maybe specified via env variables: ``` -$ export CLICKHOUSE_TESTS_BASE_CONFIG_DIR=$HOME/ClickHouse/dbms/programs/server/ -$ export CLICKHOUSE_TESTS_SERVER_BIN_PATH=$HOME/ClickHouse/dbms/programs/clickhouse -$ export CLICKHOUSE_TESTS_ODBC_BRIDGE_BIN_PATH=$HOME/ClickHouse/dbms/programs/clickhouse-odbc-bridge +$ export CLICKHOUSE_TESTS_BASE_CONFIG_DIR=$HOME/ClickHouse/programs/server/ +$ export CLICKHOUSE_TESTS_SERVER_BIN_PATH=$HOME/ClickHouse/programs/clickhouse +$ export CLICKHOUSE_TESTS_ODBC_BRIDGE_BIN_PATH=$HOME/ClickHouse/programs/clickhouse-odbc-bridge $ ./runner 'test_odbc_interaction' $ # or ./runner '-v -ss' Start tests ============================= test session starts ============================== platform linux2 -- Python 2.7.15rc1, pytest-4.0.0, py-1.7.0, pluggy-0.8.0 -rootdir: /ClickHouse/dbms/tests/integration, inifile: pytest.ini +rootdir: /ClickHouse/tests/integration, inifile: pytest.ini collected 6 items test_odbc_interaction/test.py ...... [100%] @@ -94,7 +94,7 @@ cd docker/test/integration docker build -t yandex/clickhouse-integration-test . ``` -The helper container used by the `runner` script is in `dbms/tests/integration/image/Dockerfile`. +The helper container used by the `runner` script is in `tests/integration/image/Dockerfile`. ### Adding new tests diff --git a/dbms/tests/integration/conftest.py b/tests/integration/conftest.py similarity index 100% rename from dbms/tests/integration/conftest.py rename to tests/integration/conftest.py diff --git a/dbms/tests/integration/helpers/0_common_instance_config.xml b/tests/integration/helpers/0_common_instance_config.xml similarity index 100% rename from dbms/tests/integration/helpers/0_common_instance_config.xml rename to tests/integration/helpers/0_common_instance_config.xml diff --git a/dbms/tests/integration/helpers/__init__.py b/tests/integration/helpers/__init__.py similarity index 100% rename from dbms/tests/integration/helpers/__init__.py rename to tests/integration/helpers/__init__.py diff --git a/dbms/tests/integration/helpers/client.py b/tests/integration/helpers/client.py similarity index 100% rename from dbms/tests/integration/helpers/client.py rename to tests/integration/helpers/client.py diff --git a/dbms/tests/integration/helpers/cluster.py b/tests/integration/helpers/cluster.py similarity index 100% rename from dbms/tests/integration/helpers/cluster.py rename to tests/integration/helpers/cluster.py diff --git a/dbms/tests/integration/helpers/docker_compose_hdfs.yml b/tests/integration/helpers/docker_compose_hdfs.yml similarity index 100% rename from dbms/tests/integration/helpers/docker_compose_hdfs.yml rename to tests/integration/helpers/docker_compose_hdfs.yml diff --git a/dbms/tests/integration/helpers/docker_compose_kafka.yml b/tests/integration/helpers/docker_compose_kafka.yml similarity index 100% rename from dbms/tests/integration/helpers/docker_compose_kafka.yml rename to tests/integration/helpers/docker_compose_kafka.yml diff --git a/dbms/tests/integration/helpers/docker_compose_minio.yml b/tests/integration/helpers/docker_compose_minio.yml similarity index 100% rename from dbms/tests/integration/helpers/docker_compose_minio.yml rename to tests/integration/helpers/docker_compose_minio.yml diff --git a/dbms/tests/integration/helpers/docker_compose_mongo.yml b/tests/integration/helpers/docker_compose_mongo.yml similarity index 100% rename from dbms/tests/integration/helpers/docker_compose_mongo.yml rename to tests/integration/helpers/docker_compose_mongo.yml diff --git a/dbms/tests/integration/helpers/docker_compose_mysql.yml b/tests/integration/helpers/docker_compose_mysql.yml similarity index 100% rename from dbms/tests/integration/helpers/docker_compose_mysql.yml rename to tests/integration/helpers/docker_compose_mysql.yml diff --git a/dbms/tests/integration/helpers/docker_compose_net.yml b/tests/integration/helpers/docker_compose_net.yml similarity index 100% rename from dbms/tests/integration/helpers/docker_compose_net.yml rename to tests/integration/helpers/docker_compose_net.yml diff --git a/dbms/tests/integration/helpers/docker_compose_postgres.yml b/tests/integration/helpers/docker_compose_postgres.yml similarity index 100% rename from dbms/tests/integration/helpers/docker_compose_postgres.yml rename to tests/integration/helpers/docker_compose_postgres.yml diff --git a/dbms/tests/integration/helpers/docker_compose_redis.yml b/tests/integration/helpers/docker_compose_redis.yml similarity index 100% rename from dbms/tests/integration/helpers/docker_compose_redis.yml rename to tests/integration/helpers/docker_compose_redis.yml diff --git a/dbms/tests/integration/helpers/docker_compose_zookeeper.yml b/tests/integration/helpers/docker_compose_zookeeper.yml similarity index 100% rename from dbms/tests/integration/helpers/docker_compose_zookeeper.yml rename to tests/integration/helpers/docker_compose_zookeeper.yml diff --git a/dbms/tests/integration/helpers/hdfs_api.py b/tests/integration/helpers/hdfs_api.py similarity index 100% rename from dbms/tests/integration/helpers/hdfs_api.py rename to tests/integration/helpers/hdfs_api.py diff --git a/dbms/tests/integration/helpers/helper_container/Dockerfile b/tests/integration/helpers/helper_container/Dockerfile similarity index 100% rename from dbms/tests/integration/helpers/helper_container/Dockerfile rename to tests/integration/helpers/helper_container/Dockerfile diff --git a/dbms/tests/integration/helpers/network.py b/tests/integration/helpers/network.py similarity index 100% rename from dbms/tests/integration/helpers/network.py rename to tests/integration/helpers/network.py diff --git a/dbms/tests/integration/helpers/test_tools.py b/tests/integration/helpers/test_tools.py similarity index 100% rename from dbms/tests/integration/helpers/test_tools.py rename to tests/integration/helpers/test_tools.py diff --git a/dbms/tests/integration/helpers/zookeeper_config.xml b/tests/integration/helpers/zookeeper_config.xml similarity index 100% rename from dbms/tests/integration/helpers/zookeeper_config.xml rename to tests/integration/helpers/zookeeper_config.xml diff --git a/dbms/tests/integration/image/Dockerfile b/tests/integration/image/Dockerfile similarity index 100% rename from dbms/tests/integration/image/Dockerfile rename to tests/integration/image/Dockerfile diff --git a/dbms/tests/integration/image/dockerd-entrypoint.sh b/tests/integration/image/dockerd-entrypoint.sh similarity index 92% rename from dbms/tests/integration/image/dockerd-entrypoint.sh rename to tests/integration/image/dockerd-entrypoint.sh index 89ccd78823d..8b0682396f8 100755 --- a/dbms/tests/integration/image/dockerd-entrypoint.sh +++ b/tests/integration/image/dockerd-entrypoint.sh @@ -22,5 +22,5 @@ export CLICKHOUSE_TESTS_CLIENT_BIN_PATH=/clickhouse export CLICKHOUSE_TESTS_BASE_CONFIG_DIR=/clickhouse-config export CLICKHOUSE_ODBC_BRIDGE_BINARY_PATH=/clickhouse-odbc-bridge -cd /ClickHouse/dbms/tests/integration -exec "$@" \ No newline at end of file +cd /ClickHouse/tests/integration +exec "$@" diff --git a/dbms/tests/integration/image/modprobe.sh b/tests/integration/image/modprobe.sh similarity index 100% rename from dbms/tests/integration/image/modprobe.sh rename to tests/integration/image/modprobe.sh diff --git a/dbms/tests/integration/pytest.ini b/tests/integration/pytest.ini similarity index 100% rename from dbms/tests/integration/pytest.ini rename to tests/integration/pytest.ini diff --git a/dbms/tests/integration/runner b/tests/integration/runner similarity index 98% rename from dbms/tests/integration/runner rename to tests/integration/runner index cd148d1fe72..8cd37e0386c 100755 --- a/dbms/tests/integration/runner +++ b/tests/integration/runner @@ -57,7 +57,7 @@ if __name__ == "__main__": parser.add_argument( "--configs-dir", - default=os.environ.get("CLICKHOUSE_TESTS_BASE_CONFIG_DIR", os.path.join(DEFAULT_CLICKHOUSE_ROOT, "dbms/programs/server")), + default=os.environ.get("CLICKHOUSE_TESTS_BASE_CONFIG_DIR", os.path.join(DEFAULT_CLICKHOUSE_ROOT, "programs/server")), help="Path to clickhouse configs directory") parser.add_argument( diff --git a/dbms/tests/integration/test_adaptive_granularity/__init__.py b/tests/integration/test_adaptive_granularity/__init__.py similarity index 100% rename from dbms/tests/integration/test_adaptive_granularity/__init__.py rename to tests/integration/test_adaptive_granularity/__init__.py diff --git a/dbms/tests/integration/test_adaptive_granularity/configs/log_conf.xml b/tests/integration/test_adaptive_granularity/configs/log_conf.xml similarity index 100% rename from dbms/tests/integration/test_adaptive_granularity/configs/log_conf.xml rename to tests/integration/test_adaptive_granularity/configs/log_conf.xml diff --git a/dbms/tests/integration/test_adaptive_granularity/configs/merge_tree_settings.xml b/tests/integration/test_adaptive_granularity/configs/merge_tree_settings.xml similarity index 100% rename from dbms/tests/integration/test_adaptive_granularity/configs/merge_tree_settings.xml rename to tests/integration/test_adaptive_granularity/configs/merge_tree_settings.xml diff --git a/dbms/tests/integration/test_adaptive_granularity/configs/remote_servers.xml b/tests/integration/test_adaptive_granularity/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_adaptive_granularity/configs/remote_servers.xml rename to tests/integration/test_adaptive_granularity/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_adaptive_granularity/test.py b/tests/integration/test_adaptive_granularity/test.py similarity index 100% rename from dbms/tests/integration/test_adaptive_granularity/test.py rename to tests/integration/test_adaptive_granularity/test.py diff --git a/dbms/tests/integration/test_adaptive_granularity_replicated/__init__.py b/tests/integration/test_adaptive_granularity_replicated/__init__.py similarity index 100% rename from dbms/tests/integration/test_adaptive_granularity_replicated/__init__.py rename to tests/integration/test_adaptive_granularity_replicated/__init__.py diff --git a/dbms/tests/integration/test_adaptive_granularity_replicated/test.py b/tests/integration/test_adaptive_granularity_replicated/test.py similarity index 100% rename from dbms/tests/integration/test_adaptive_granularity_replicated/test.py rename to tests/integration/test_adaptive_granularity_replicated/test.py diff --git a/dbms/tests/integration/test_aggregation_memory_efficient/__init__.py b/tests/integration/test_aggregation_memory_efficient/__init__.py similarity index 100% rename from dbms/tests/integration/test_aggregation_memory_efficient/__init__.py rename to tests/integration/test_aggregation_memory_efficient/__init__.py diff --git a/dbms/tests/integration/test_aggregation_memory_efficient/test.py b/tests/integration/test_aggregation_memory_efficient/test.py similarity index 100% rename from dbms/tests/integration/test_aggregation_memory_efficient/test.py rename to tests/integration/test_aggregation_memory_efficient/test.py diff --git a/dbms/tests/integration/test_allowed_client_hosts/__init__.py b/tests/integration/test_allowed_client_hosts/__init__.py similarity index 100% rename from dbms/tests/integration/test_allowed_client_hosts/__init__.py rename to tests/integration/test_allowed_client_hosts/__init__.py diff --git a/dbms/tests/integration/test_allowed_client_hosts/configs/users.d/network.xml b/tests/integration/test_allowed_client_hosts/configs/users.d/network.xml similarity index 100% rename from dbms/tests/integration/test_allowed_client_hosts/configs/users.d/network.xml rename to tests/integration/test_allowed_client_hosts/configs/users.d/network.xml diff --git a/dbms/tests/integration/test_allowed_client_hosts/configs/users.xml b/tests/integration/test_allowed_client_hosts/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_allowed_client_hosts/configs/users.xml rename to tests/integration/test_allowed_client_hosts/configs/users.xml diff --git a/dbms/tests/integration/test_allowed_client_hosts/test.py b/tests/integration/test_allowed_client_hosts/test.py similarity index 100% rename from dbms/tests/integration/test_allowed_client_hosts/test.py rename to tests/integration/test_allowed_client_hosts/test.py diff --git a/dbms/tests/integration/test_allowed_url_from_config/__init__.py b/tests/integration/test_allowed_url_from_config/__init__.py similarity index 100% rename from dbms/tests/integration/test_allowed_url_from_config/__init__.py rename to tests/integration/test_allowed_url_from_config/__init__.py diff --git a/dbms/tests/integration/test_allowed_url_from_config/configs/config_for_redirect.xml b/tests/integration/test_allowed_url_from_config/configs/config_for_redirect.xml similarity index 100% rename from dbms/tests/integration/test_allowed_url_from_config/configs/config_for_redirect.xml rename to tests/integration/test_allowed_url_from_config/configs/config_for_redirect.xml diff --git a/dbms/tests/integration/test_allowed_url_from_config/configs/config_for_remote.xml b/tests/integration/test_allowed_url_from_config/configs/config_for_remote.xml similarity index 100% rename from dbms/tests/integration/test_allowed_url_from_config/configs/config_for_remote.xml rename to tests/integration/test_allowed_url_from_config/configs/config_for_remote.xml diff --git a/dbms/tests/integration/test_allowed_url_from_config/configs/config_with_hosts.xml b/tests/integration/test_allowed_url_from_config/configs/config_with_hosts.xml similarity index 100% rename from dbms/tests/integration/test_allowed_url_from_config/configs/config_with_hosts.xml rename to tests/integration/test_allowed_url_from_config/configs/config_with_hosts.xml diff --git a/dbms/tests/integration/test_allowed_url_from_config/configs/config_with_only_primary_hosts.xml b/tests/integration/test_allowed_url_from_config/configs/config_with_only_primary_hosts.xml similarity index 100% rename from dbms/tests/integration/test_allowed_url_from_config/configs/config_with_only_primary_hosts.xml rename to tests/integration/test_allowed_url_from_config/configs/config_with_only_primary_hosts.xml diff --git a/dbms/tests/integration/test_allowed_url_from_config/configs/config_with_only_regexp_hosts.xml b/tests/integration/test_allowed_url_from_config/configs/config_with_only_regexp_hosts.xml similarity index 100% rename from dbms/tests/integration/test_allowed_url_from_config/configs/config_with_only_regexp_hosts.xml rename to tests/integration/test_allowed_url_from_config/configs/config_with_only_regexp_hosts.xml diff --git a/dbms/tests/integration/test_allowed_url_from_config/configs/config_without_allowed_hosts.xml b/tests/integration/test_allowed_url_from_config/configs/config_without_allowed_hosts.xml similarity index 100% rename from dbms/tests/integration/test_allowed_url_from_config/configs/config_without_allowed_hosts.xml rename to tests/integration/test_allowed_url_from_config/configs/config_without_allowed_hosts.xml diff --git a/dbms/tests/integration/test_allowed_url_from_config/test.py b/tests/integration/test_allowed_url_from_config/test.py similarity index 100% rename from dbms/tests/integration/test_allowed_url_from_config/test.py rename to tests/integration/test_allowed_url_from_config/test.py diff --git a/dbms/tests/integration/test_atomic_drop_table/__init__.py b/tests/integration/test_atomic_drop_table/__init__.py similarity index 100% rename from dbms/tests/integration/test_atomic_drop_table/__init__.py rename to tests/integration/test_atomic_drop_table/__init__.py diff --git a/dbms/tests/integration/test_atomic_drop_table/configs/config.d/zookeeper_session_timeout.xml b/tests/integration/test_atomic_drop_table/configs/config.d/zookeeper_session_timeout.xml similarity index 100% rename from dbms/tests/integration/test_atomic_drop_table/configs/config.d/zookeeper_session_timeout.xml rename to tests/integration/test_atomic_drop_table/configs/config.d/zookeeper_session_timeout.xml diff --git a/dbms/tests/integration/test_atomic_drop_table/configs/remote_servers.xml b/tests/integration/test_atomic_drop_table/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_atomic_drop_table/configs/remote_servers.xml rename to tests/integration/test_atomic_drop_table/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_atomic_drop_table/test.py b/tests/integration/test_atomic_drop_table/test.py similarity index 100% rename from dbms/tests/integration/test_atomic_drop_table/test.py rename to tests/integration/test_atomic_drop_table/test.py diff --git a/dbms/tests/integration/test_authentication/__init__.py b/tests/integration/test_authentication/__init__.py similarity index 100% rename from dbms/tests/integration/test_authentication/__init__.py rename to tests/integration/test_authentication/__init__.py diff --git a/dbms/tests/integration/test_authentication/test.py b/tests/integration/test_authentication/test.py similarity index 100% rename from dbms/tests/integration/test_authentication/test.py rename to tests/integration/test_authentication/test.py diff --git a/dbms/tests/integration/test_backup_restore/__init__.py b/tests/integration/test_backup_restore/__init__.py similarity index 100% rename from dbms/tests/integration/test_backup_restore/__init__.py rename to tests/integration/test_backup_restore/__init__.py diff --git a/dbms/tests/integration/test_backup_restore/test.py b/tests/integration/test_backup_restore/test.py similarity index 100% rename from dbms/tests/integration/test_backup_restore/test.py rename to tests/integration/test_backup_restore/test.py diff --git a/dbms/tests/integration/test_backward_compatability/__init__.py b/tests/integration/test_backward_compatability/__init__.py similarity index 100% rename from dbms/tests/integration/test_backward_compatability/__init__.py rename to tests/integration/test_backward_compatability/__init__.py diff --git a/dbms/tests/integration/test_backward_compatability/test.py b/tests/integration/test_backward_compatability/test.py similarity index 100% rename from dbms/tests/integration/test_backward_compatability/test.py rename to tests/integration/test_backward_compatability/test.py diff --git a/dbms/tests/integration/test_block_structure_mismatch/__init__.py b/tests/integration/test_block_structure_mismatch/__init__.py similarity index 100% rename from dbms/tests/integration/test_block_structure_mismatch/__init__.py rename to tests/integration/test_block_structure_mismatch/__init__.py diff --git a/dbms/tests/integration/test_block_structure_mismatch/configs/remote_servers.xml b/tests/integration/test_block_structure_mismatch/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_block_structure_mismatch/configs/remote_servers.xml rename to tests/integration/test_block_structure_mismatch/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_block_structure_mismatch/test.py b/tests/integration/test_block_structure_mismatch/test.py similarity index 100% rename from dbms/tests/integration/test_block_structure_mismatch/test.py rename to tests/integration/test_block_structure_mismatch/test.py diff --git a/dbms/tests/integration/test_check_table/__init__.py b/tests/integration/test_check_table/__init__.py similarity index 100% rename from dbms/tests/integration/test_check_table/__init__.py rename to tests/integration/test_check_table/__init__.py diff --git a/dbms/tests/integration/test_check_table/test.py b/tests/integration/test_check_table/test.py similarity index 100% rename from dbms/tests/integration/test_check_table/test.py rename to tests/integration/test_check_table/test.py diff --git a/dbms/tests/integration/test_cluster_all_replicas/__init__.py b/tests/integration/test_cluster_all_replicas/__init__.py similarity index 100% rename from dbms/tests/integration/test_cluster_all_replicas/__init__.py rename to tests/integration/test_cluster_all_replicas/__init__.py diff --git a/dbms/tests/integration/test_cluster_all_replicas/configs/remote_servers.xml b/tests/integration/test_cluster_all_replicas/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_cluster_all_replicas/configs/remote_servers.xml rename to tests/integration/test_cluster_all_replicas/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_cluster_all_replicas/test.py b/tests/integration/test_cluster_all_replicas/test.py similarity index 100% rename from dbms/tests/integration/test_cluster_all_replicas/test.py rename to tests/integration/test_cluster_all_replicas/test.py diff --git a/dbms/tests/integration/test_cluster_copier/__init__.py b/tests/integration/test_cluster_copier/__init__.py similarity index 100% rename from dbms/tests/integration/test_cluster_copier/__init__.py rename to tests/integration/test_cluster_copier/__init__.py diff --git a/dbms/tests/integration/test_cluster_copier/configs/conf.d/clusters.xml b/tests/integration/test_cluster_copier/configs/conf.d/clusters.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/configs/conf.d/clusters.xml rename to tests/integration/test_cluster_copier/configs/conf.d/clusters.xml diff --git a/dbms/tests/integration/test_cluster_copier/configs/conf.d/ddl.xml b/tests/integration/test_cluster_copier/configs/conf.d/ddl.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/configs/conf.d/ddl.xml rename to tests/integration/test_cluster_copier/configs/conf.d/ddl.xml diff --git a/dbms/tests/integration/test_cluster_copier/configs/conf.d/query_log.xml b/tests/integration/test_cluster_copier/configs/conf.d/query_log.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/configs/conf.d/query_log.xml rename to tests/integration/test_cluster_copier/configs/conf.d/query_log.xml diff --git a/dbms/tests/integration/test_cluster_copier/configs/config-copier.xml b/tests/integration/test_cluster_copier/configs/config-copier.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/configs/config-copier.xml rename to tests/integration/test_cluster_copier/configs/config-copier.xml diff --git a/dbms/tests/integration/test_cluster_copier/configs/users.xml b/tests/integration/test_cluster_copier/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/configs/users.xml rename to tests/integration/test_cluster_copier/configs/users.xml diff --git a/dbms/tests/integration/test_cluster_copier/task0_description.xml b/tests/integration/test_cluster_copier/task0_description.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/task0_description.xml rename to tests/integration/test_cluster_copier/task0_description.xml diff --git a/dbms/tests/integration/test_cluster_copier/task_month_to_week_description.xml b/tests/integration/test_cluster_copier/task_month_to_week_description.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/task_month_to_week_description.xml rename to tests/integration/test_cluster_copier/task_month_to_week_description.xml diff --git a/dbms/tests/integration/test_cluster_copier/task_no_arg.xml b/tests/integration/test_cluster_copier/task_no_arg.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/task_no_arg.xml rename to tests/integration/test_cluster_copier/task_no_arg.xml diff --git a/dbms/tests/integration/test_cluster_copier/task_no_index.xml b/tests/integration/test_cluster_copier/task_no_index.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/task_no_index.xml rename to tests/integration/test_cluster_copier/task_no_index.xml diff --git a/dbms/tests/integration/test_cluster_copier/task_test_block_size.xml b/tests/integration/test_cluster_copier/task_test_block_size.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/task_test_block_size.xml rename to tests/integration/test_cluster_copier/task_test_block_size.xml diff --git a/dbms/tests/integration/test_cluster_copier/task_trivial.xml b/tests/integration/test_cluster_copier/task_trivial.xml similarity index 100% rename from dbms/tests/integration/test_cluster_copier/task_trivial.xml rename to tests/integration/test_cluster_copier/task_trivial.xml diff --git a/dbms/tests/integration/test_cluster_copier/test.py b/tests/integration/test_cluster_copier/test.py similarity index 100% rename from dbms/tests/integration/test_cluster_copier/test.py rename to tests/integration/test_cluster_copier/test.py diff --git a/dbms/tests/integration/test_cluster_copier/trivial_test.py b/tests/integration/test_cluster_copier/trivial_test.py similarity index 100% rename from dbms/tests/integration/test_cluster_copier/trivial_test.py rename to tests/integration/test_cluster_copier/trivial_test.py diff --git a/dbms/tests/integration/test_concurrent_queries_for_user_restriction/__init__.py b/tests/integration/test_concurrent_queries_for_user_restriction/__init__.py similarity index 100% rename from dbms/tests/integration/test_concurrent_queries_for_user_restriction/__init__.py rename to tests/integration/test_concurrent_queries_for_user_restriction/__init__.py diff --git a/dbms/tests/integration/test_concurrent_queries_for_user_restriction/configs/user_restrictions.xml b/tests/integration/test_concurrent_queries_for_user_restriction/configs/user_restrictions.xml similarity index 100% rename from dbms/tests/integration/test_concurrent_queries_for_user_restriction/configs/user_restrictions.xml rename to tests/integration/test_concurrent_queries_for_user_restriction/configs/user_restrictions.xml diff --git a/dbms/tests/integration/test_concurrent_queries_for_user_restriction/test.py b/tests/integration/test_concurrent_queries_for_user_restriction/test.py similarity index 100% rename from dbms/tests/integration/test_concurrent_queries_for_user_restriction/test.py rename to tests/integration/test_concurrent_queries_for_user_restriction/test.py diff --git a/dbms/tests/integration/test_config_corresponding_root/__init__.py b/tests/integration/test_config_corresponding_root/__init__.py similarity index 100% rename from dbms/tests/integration/test_config_corresponding_root/__init__.py rename to tests/integration/test_config_corresponding_root/__init__.py diff --git a/dbms/tests/integration/test_config_corresponding_root/configs/config.d/bad.xml b/tests/integration/test_config_corresponding_root/configs/config.d/bad.xml similarity index 100% rename from dbms/tests/integration/test_config_corresponding_root/configs/config.d/bad.xml rename to tests/integration/test_config_corresponding_root/configs/config.d/bad.xml diff --git a/dbms/tests/integration/test_config_corresponding_root/configs/config.xml b/tests/integration/test_config_corresponding_root/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_config_corresponding_root/configs/config.xml rename to tests/integration/test_config_corresponding_root/configs/config.xml diff --git a/dbms/tests/integration/test_config_corresponding_root/configs/users.xml b/tests/integration/test_config_corresponding_root/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_config_corresponding_root/configs/users.xml rename to tests/integration/test_config_corresponding_root/configs/users.xml diff --git a/dbms/tests/integration/test_config_corresponding_root/test.py b/tests/integration/test_config_corresponding_root/test.py similarity index 100% rename from dbms/tests/integration/test_config_corresponding_root/test.py rename to tests/integration/test_config_corresponding_root/test.py diff --git a/dbms/tests/integration/test_config_substitutions/__init__.py b/tests/integration/test_config_substitutions/__init__.py similarity index 100% rename from dbms/tests/integration/test_config_substitutions/__init__.py rename to tests/integration/test_config_substitutions/__init__.py diff --git a/dbms/tests/integration/test_config_substitutions/configs/config_allow_databases.xml b/tests/integration/test_config_substitutions/configs/config_allow_databases.xml similarity index 100% rename from dbms/tests/integration/test_config_substitutions/configs/config_allow_databases.xml rename to tests/integration/test_config_substitutions/configs/config_allow_databases.xml diff --git a/dbms/tests/integration/test_config_substitutions/configs/config_env.xml b/tests/integration/test_config_substitutions/configs/config_env.xml similarity index 100% rename from dbms/tests/integration/test_config_substitutions/configs/config_env.xml rename to tests/integration/test_config_substitutions/configs/config_env.xml diff --git a/dbms/tests/integration/test_config_substitutions/configs/config_incl.xml b/tests/integration/test_config_substitutions/configs/config_incl.xml similarity index 100% rename from dbms/tests/integration/test_config_substitutions/configs/config_incl.xml rename to tests/integration/test_config_substitutions/configs/config_incl.xml diff --git a/dbms/tests/integration/test_config_substitutions/configs/config_include_from_env.xml b/tests/integration/test_config_substitutions/configs/config_include_from_env.xml similarity index 100% rename from dbms/tests/integration/test_config_substitutions/configs/config_include_from_env.xml rename to tests/integration/test_config_substitutions/configs/config_include_from_env.xml diff --git a/dbms/tests/integration/test_config_substitutions/configs/config_no_substs.xml b/tests/integration/test_config_substitutions/configs/config_no_substs.xml similarity index 100% rename from dbms/tests/integration/test_config_substitutions/configs/config_no_substs.xml rename to tests/integration/test_config_substitutions/configs/config_no_substs.xml diff --git a/dbms/tests/integration/test_config_substitutions/configs/config_zk.xml b/tests/integration/test_config_substitutions/configs/config_zk.xml similarity index 100% rename from dbms/tests/integration/test_config_substitutions/configs/config_zk.xml rename to tests/integration/test_config_substitutions/configs/config_zk.xml diff --git a/dbms/tests/integration/test_config_substitutions/configs/max_query_size.xml b/tests/integration/test_config_substitutions/configs/max_query_size.xml similarity index 100% rename from dbms/tests/integration/test_config_substitutions/configs/max_query_size.xml rename to tests/integration/test_config_substitutions/configs/max_query_size.xml diff --git a/dbms/tests/integration/test_config_substitutions/test.py b/tests/integration/test_config_substitutions/test.py similarity index 100% rename from dbms/tests/integration/test_config_substitutions/test.py rename to tests/integration/test_config_substitutions/test.py diff --git a/dbms/tests/integration/test_consistant_parts_after_move_partition/__init__.py b/tests/integration/test_consistant_parts_after_move_partition/__init__.py similarity index 100% rename from dbms/tests/integration/test_consistant_parts_after_move_partition/__init__.py rename to tests/integration/test_consistant_parts_after_move_partition/__init__.py diff --git a/dbms/tests/integration/test_consistant_parts_after_move_partition/configs/remote_servers.xml b/tests/integration/test_consistant_parts_after_move_partition/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_consistant_parts_after_move_partition/configs/remote_servers.xml rename to tests/integration/test_consistant_parts_after_move_partition/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_consistant_parts_after_move_partition/test.py b/tests/integration/test_consistant_parts_after_move_partition/test.py similarity index 100% rename from dbms/tests/integration/test_consistant_parts_after_move_partition/test.py rename to tests/integration/test_consistant_parts_after_move_partition/test.py diff --git a/dbms/tests/integration/test_consistent_parts_after_clone_replica/__init__.py b/tests/integration/test_consistent_parts_after_clone_replica/__init__.py similarity index 100% rename from dbms/tests/integration/test_consistent_parts_after_clone_replica/__init__.py rename to tests/integration/test_consistent_parts_after_clone_replica/__init__.py diff --git a/dbms/tests/integration/test_consistent_parts_after_clone_replica/configs/remote_servers.xml b/tests/integration/test_consistent_parts_after_clone_replica/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_consistent_parts_after_clone_replica/configs/remote_servers.xml rename to tests/integration/test_consistent_parts_after_clone_replica/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_consistent_parts_after_clone_replica/test.py b/tests/integration/test_consistent_parts_after_clone_replica/test.py similarity index 100% rename from dbms/tests/integration/test_consistent_parts_after_clone_replica/test.py rename to tests/integration/test_consistent_parts_after_clone_replica/test.py diff --git a/dbms/tests/integration/test_cross_replication/__init__.py b/tests/integration/test_cross_replication/__init__.py similarity index 100% rename from dbms/tests/integration/test_cross_replication/__init__.py rename to tests/integration/test_cross_replication/__init__.py diff --git a/dbms/tests/integration/test_cross_replication/configs/remote_servers.xml b/tests/integration/test_cross_replication/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_cross_replication/configs/remote_servers.xml rename to tests/integration/test_cross_replication/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_cross_replication/test.py b/tests/integration/test_cross_replication/test.py similarity index 100% rename from dbms/tests/integration/test_cross_replication/test.py rename to tests/integration/test_cross_replication/test.py diff --git a/dbms/tests/integration/test_delayed_replica_failover/__init__.py b/tests/integration/test_delayed_replica_failover/__init__.py similarity index 100% rename from dbms/tests/integration/test_delayed_replica_failover/__init__.py rename to tests/integration/test_delayed_replica_failover/__init__.py diff --git a/dbms/tests/integration/test_delayed_replica_failover/configs/remote_servers.xml b/tests/integration/test_delayed_replica_failover/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_delayed_replica_failover/configs/remote_servers.xml rename to tests/integration/test_delayed_replica_failover/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_delayed_replica_failover/test.py b/tests/integration/test_delayed_replica_failover/test.py similarity index 100% rename from dbms/tests/integration/test_delayed_replica_failover/test.py rename to tests/integration/test_delayed_replica_failover/test.py diff --git a/dbms/tests/integration/test_dictionaries_all_layouts_and_sources/__init__.py b/tests/integration/test_dictionaries_all_layouts_and_sources/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_all_layouts_and_sources/__init__.py rename to tests/integration/test_dictionaries_all_layouts_and_sources/__init__.py diff --git a/dbms/tests/integration/test_dictionaries_all_layouts_and_sources/configs/config.xml b/tests/integration/test_dictionaries_all_layouts_and_sources/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_all_layouts_and_sources/configs/config.xml rename to tests/integration/test_dictionaries_all_layouts_and_sources/configs/config.xml diff --git a/dbms/tests/integration/test_dictionaries_all_layouts_and_sources/configs/dictionaries/.gitkeep b/tests/integration/test_dictionaries_all_layouts_and_sources/configs/dictionaries/.gitkeep similarity index 100% rename from dbms/tests/integration/test_dictionaries_all_layouts_and_sources/configs/dictionaries/.gitkeep rename to tests/integration/test_dictionaries_all_layouts_and_sources/configs/dictionaries/.gitkeep diff --git a/dbms/tests/integration/test_dictionaries_all_layouts_and_sources/configs/users.xml b/tests/integration/test_dictionaries_all_layouts_and_sources/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_all_layouts_and_sources/configs/users.xml rename to tests/integration/test_dictionaries_all_layouts_and_sources/configs/users.xml diff --git a/dbms/tests/integration/test_dictionaries_all_layouts_and_sources/dictionary.py b/tests/integration/test_dictionaries_all_layouts_and_sources/dictionary.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_all_layouts_and_sources/dictionary.py rename to tests/integration/test_dictionaries_all_layouts_and_sources/dictionary.py diff --git a/dbms/tests/integration/test_dictionaries_all_layouts_and_sources/external_sources.py b/tests/integration/test_dictionaries_all_layouts_and_sources/external_sources.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_all_layouts_and_sources/external_sources.py rename to tests/integration/test_dictionaries_all_layouts_and_sources/external_sources.py diff --git a/dbms/tests/integration/test_dictionaries_all_layouts_and_sources/fake_cert.pem b/tests/integration/test_dictionaries_all_layouts_and_sources/fake_cert.pem similarity index 100% rename from dbms/tests/integration/test_dictionaries_all_layouts_and_sources/fake_cert.pem rename to tests/integration/test_dictionaries_all_layouts_and_sources/fake_cert.pem diff --git a/dbms/tests/integration/test_dictionaries_all_layouts_and_sources/http_server.py b/tests/integration/test_dictionaries_all_layouts_and_sources/http_server.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_all_layouts_and_sources/http_server.py rename to tests/integration/test_dictionaries_all_layouts_and_sources/http_server.py diff --git a/dbms/tests/integration/test_dictionaries_all_layouts_and_sources/test.py b/tests/integration/test_dictionaries_all_layouts_and_sources/test.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_all_layouts_and_sources/test.py rename to tests/integration/test_dictionaries_all_layouts_and_sources/test.py diff --git a/dbms/tests/integration/test_dictionaries_complex_key_cache_string/__init__.py b/tests/integration/test_dictionaries_complex_key_cache_string/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_complex_key_cache_string/__init__.py rename to tests/integration/test_dictionaries_complex_key_cache_string/__init__.py diff --git a/dbms/tests/integration/test_dictionaries_complex_key_cache_string/configs/config.xml b/tests/integration/test_dictionaries_complex_key_cache_string/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_complex_key_cache_string/configs/config.xml rename to tests/integration/test_dictionaries_complex_key_cache_string/configs/config.xml diff --git a/dbms/tests/integration/test_dictionaries_complex_key_cache_string/configs/dictionaries/complex_key_cache_string.xml b/tests/integration/test_dictionaries_complex_key_cache_string/configs/dictionaries/complex_key_cache_string.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_complex_key_cache_string/configs/dictionaries/complex_key_cache_string.xml rename to tests/integration/test_dictionaries_complex_key_cache_string/configs/dictionaries/complex_key_cache_string.xml diff --git a/dbms/tests/integration/test_dictionaries_complex_key_cache_string/configs/users.xml b/tests/integration/test_dictionaries_complex_key_cache_string/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_complex_key_cache_string/configs/users.xml rename to tests/integration/test_dictionaries_complex_key_cache_string/configs/users.xml diff --git a/dbms/tests/integration/test_dictionaries_complex_key_cache_string/test.py b/tests/integration/test_dictionaries_complex_key_cache_string/test.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_complex_key_cache_string/test.py rename to tests/integration/test_dictionaries_complex_key_cache_string/test.py diff --git a/dbms/tests/integration/test_dictionaries_ddl/__init__.py b/tests/integration/test_dictionaries_ddl/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_ddl/__init__.py rename to tests/integration/test_dictionaries_ddl/__init__.py diff --git a/dbms/tests/integration/test_dictionaries_ddl/configs/config.xml b/tests/integration/test_dictionaries_ddl/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_ddl/configs/config.xml rename to tests/integration/test_dictionaries_ddl/configs/config.xml diff --git a/dbms/tests/integration/test_dictionaries_ddl/configs/dictionaries/dictionary_with_conflict_name.xml b/tests/integration/test_dictionaries_ddl/configs/dictionaries/dictionary_with_conflict_name.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_ddl/configs/dictionaries/dictionary_with_conflict_name.xml rename to tests/integration/test_dictionaries_ddl/configs/dictionaries/dictionary_with_conflict_name.xml diff --git a/dbms/tests/integration/test_dictionaries_ddl/configs/dictionaries/lazy_load.xml b/tests/integration/test_dictionaries_ddl/configs/dictionaries/lazy_load.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_ddl/configs/dictionaries/lazy_load.xml rename to tests/integration/test_dictionaries_ddl/configs/dictionaries/lazy_load.xml diff --git a/dbms/tests/integration/test_dictionaries_ddl/configs/dictionaries/simple_dictionary.xml b/tests/integration/test_dictionaries_ddl/configs/dictionaries/simple_dictionary.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_ddl/configs/dictionaries/simple_dictionary.xml rename to tests/integration/test_dictionaries_ddl/configs/dictionaries/simple_dictionary.xml diff --git a/dbms/tests/integration/test_dictionaries_ddl/configs/users.xml b/tests/integration/test_dictionaries_ddl/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_ddl/configs/users.xml rename to tests/integration/test_dictionaries_ddl/configs/users.xml diff --git a/dbms/tests/integration/test_dictionaries_ddl/test.py b/tests/integration/test_dictionaries_ddl/test.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_ddl/test.py rename to tests/integration/test_dictionaries_ddl/test.py diff --git a/dbms/tests/integration/test_dictionaries_depend_on_dictionaries/__init__.py b/tests/integration/test_dictionaries_depend_on_dictionaries/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_depend_on_dictionaries/__init__.py rename to tests/integration/test_dictionaries_depend_on_dictionaries/__init__.py diff --git a/dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/config.xml b/tests/integration/test_dictionaries_depend_on_dictionaries/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/config.xml rename to tests/integration/test_dictionaries_depend_on_dictionaries/configs/config.xml diff --git a/dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_x.xml b/tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_x.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_x.xml rename to tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_x.xml diff --git a/dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_y.xml b/tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_y.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_y.xml rename to tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_y.xml diff --git a/dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_z.xml b/tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_z.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_z.xml rename to tests/integration/test_dictionaries_depend_on_dictionaries/configs/dictionaries/dep_z.xml diff --git a/dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/users.xml b/tests/integration/test_dictionaries_depend_on_dictionaries/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_depend_on_dictionaries/configs/users.xml rename to tests/integration/test_dictionaries_depend_on_dictionaries/configs/users.xml diff --git a/dbms/tests/integration/test_dictionaries_depend_on_dictionaries/test.py b/tests/integration/test_dictionaries_depend_on_dictionaries/test.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_depend_on_dictionaries/test.py rename to tests/integration/test_dictionaries_depend_on_dictionaries/test.py diff --git a/dbms/tests/integration/test_dictionaries_mysql/__init__.py b/tests/integration/test_dictionaries_mysql/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_mysql/__init__.py rename to tests/integration/test_dictionaries_mysql/__init__.py diff --git a/dbms/tests/integration/test_dictionaries_mysql/configs/config.xml b/tests/integration/test_dictionaries_mysql/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_mysql/configs/config.xml rename to tests/integration/test_dictionaries_mysql/configs/config.xml diff --git a/dbms/tests/integration/test_dictionaries_mysql/configs/dictionaries/mysql_dict1.xml b/tests/integration/test_dictionaries_mysql/configs/dictionaries/mysql_dict1.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_mysql/configs/dictionaries/mysql_dict1.xml rename to tests/integration/test_dictionaries_mysql/configs/dictionaries/mysql_dict1.xml diff --git a/dbms/tests/integration/test_dictionaries_mysql/configs/dictionaries/mysql_dict2.xml b/tests/integration/test_dictionaries_mysql/configs/dictionaries/mysql_dict2.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_mysql/configs/dictionaries/mysql_dict2.xml rename to tests/integration/test_dictionaries_mysql/configs/dictionaries/mysql_dict2.xml diff --git a/dbms/tests/integration/test_dictionaries_mysql/configs/remote_servers.xml b/tests/integration/test_dictionaries_mysql/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_mysql/configs/remote_servers.xml rename to tests/integration/test_dictionaries_mysql/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_dictionaries_mysql/configs/users.xml b/tests/integration/test_dictionaries_mysql/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_mysql/configs/users.xml rename to tests/integration/test_dictionaries_mysql/configs/users.xml diff --git a/dbms/tests/integration/test_dictionaries_mysql/test.py b/tests/integration/test_dictionaries_mysql/test.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_mysql/test.py rename to tests/integration/test_dictionaries_mysql/test.py diff --git a/dbms/tests/integration/test_dictionaries_null_value/__init__.py b/tests/integration/test_dictionaries_null_value/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_null_value/__init__.py rename to tests/integration/test_dictionaries_null_value/__init__.py diff --git a/dbms/tests/integration/test_dictionaries_null_value/configs/config.xml b/tests/integration/test_dictionaries_null_value/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_null_value/configs/config.xml rename to tests/integration/test_dictionaries_null_value/configs/config.xml diff --git a/dbms/tests/integration/test_dictionaries_null_value/configs/dictionaries/cache.xml b/tests/integration/test_dictionaries_null_value/configs/dictionaries/cache.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_null_value/configs/dictionaries/cache.xml rename to tests/integration/test_dictionaries_null_value/configs/dictionaries/cache.xml diff --git a/dbms/tests/integration/test_dictionaries_null_value/configs/users.xml b/tests/integration/test_dictionaries_null_value/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_null_value/configs/users.xml rename to tests/integration/test_dictionaries_null_value/configs/users.xml diff --git a/dbms/tests/integration/test_dictionaries_null_value/test.py b/tests/integration/test_dictionaries_null_value/test.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_null_value/test.py rename to tests/integration/test_dictionaries_null_value/test.py diff --git a/dbms/tests/integration/test_dictionaries_select_all/__init__.py b/tests/integration/test_dictionaries_select_all/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_select_all/__init__.py rename to tests/integration/test_dictionaries_select_all/__init__.py diff --git a/dbms/tests/integration/test_dictionaries_select_all/configs/config.xml b/tests/integration/test_dictionaries_select_all/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_select_all/configs/config.xml rename to tests/integration/test_dictionaries_select_all/configs/config.xml diff --git a/dbms/tests/integration/test_dictionaries_select_all/configs/dictionaries/.gitignore b/tests/integration/test_dictionaries_select_all/configs/dictionaries/.gitignore similarity index 100% rename from dbms/tests/integration/test_dictionaries_select_all/configs/dictionaries/.gitignore rename to tests/integration/test_dictionaries_select_all/configs/dictionaries/.gitignore diff --git a/dbms/tests/integration/test_dictionaries_select_all/configs/dictionaries/source.tsv b/tests/integration/test_dictionaries_select_all/configs/dictionaries/source.tsv similarity index 100% rename from dbms/tests/integration/test_dictionaries_select_all/configs/dictionaries/source.tsv rename to tests/integration/test_dictionaries_select_all/configs/dictionaries/source.tsv diff --git a/dbms/tests/integration/test_dictionaries_select_all/configs/users.xml b/tests/integration/test_dictionaries_select_all/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_select_all/configs/users.xml rename to tests/integration/test_dictionaries_select_all/configs/users.xml diff --git a/dbms/tests/integration/test_dictionaries_select_all/generate_dictionaries.py b/tests/integration/test_dictionaries_select_all/generate_dictionaries.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_select_all/generate_dictionaries.py rename to tests/integration/test_dictionaries_select_all/generate_dictionaries.py diff --git a/dbms/tests/integration/test_dictionaries_select_all/test.py b/tests/integration/test_dictionaries_select_all/test.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_select_all/test.py rename to tests/integration/test_dictionaries_select_all/test.py diff --git a/dbms/tests/integration/test_dictionaries_update_and_reload/__init__.py b/tests/integration/test_dictionaries_update_and_reload/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_update_and_reload/__init__.py rename to tests/integration/test_dictionaries_update_and_reload/__init__.py diff --git a/dbms/tests/integration/test_dictionaries_update_and_reload/configs/config.xml b/tests/integration/test_dictionaries_update_and_reload/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_update_and_reload/configs/config.xml rename to tests/integration/test_dictionaries_update_and_reload/configs/config.xml diff --git a/dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/cache_xypairs.xml b/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/cache_xypairs.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/cache_xypairs.xml rename to tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/cache_xypairs.xml diff --git a/dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/executable.xml b/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/executable.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/executable.xml rename to tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/executable.xml diff --git a/dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/file.txt b/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/file.txt similarity index 100% rename from dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/file.txt rename to tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/file.txt diff --git a/dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/file.xml b/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/file.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/file.xml rename to tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/file.xml diff --git a/dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/slow.xml b/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/slow.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/slow.xml rename to tests/integration/test_dictionaries_update_and_reload/configs/dictionaries/slow.xml diff --git a/dbms/tests/integration/test_dictionaries_update_and_reload/configs/users.xml b/tests/integration/test_dictionaries_update_and_reload/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_dictionaries_update_and_reload/configs/users.xml rename to tests/integration/test_dictionaries_update_and_reload/configs/users.xml diff --git a/dbms/tests/integration/test_dictionaries_update_and_reload/test.py b/tests/integration/test_dictionaries_update_and_reload/test.py similarity index 100% rename from dbms/tests/integration/test_dictionaries_update_and_reload/test.py rename to tests/integration/test_dictionaries_update_and_reload/test.py diff --git a/dbms/tests/integration/test_dictionary_allow_read_expired_keys/__init__.py b/tests/integration/test_dictionary_allow_read_expired_keys/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionary_allow_read_expired_keys/__init__.py rename to tests/integration/test_dictionary_allow_read_expired_keys/__init__.py diff --git a/dbms/tests/integration/test_dictionary_allow_read_expired_keys/configs/config.xml b/tests/integration/test_dictionary_allow_read_expired_keys/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_dictionary_allow_read_expired_keys/configs/config.xml rename to tests/integration/test_dictionary_allow_read_expired_keys/configs/config.xml diff --git a/dbms/tests/integration/test_dictionary_allow_read_expired_keys/configs/dictionaries/cache_ints_dictionary.xml b/tests/integration/test_dictionary_allow_read_expired_keys/configs/dictionaries/cache_ints_dictionary.xml similarity index 100% rename from dbms/tests/integration/test_dictionary_allow_read_expired_keys/configs/dictionaries/cache_ints_dictionary.xml rename to tests/integration/test_dictionary_allow_read_expired_keys/configs/dictionaries/cache_ints_dictionary.xml diff --git a/dbms/tests/integration/test_dictionary_allow_read_expired_keys/configs/users.xml b/tests/integration/test_dictionary_allow_read_expired_keys/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_dictionary_allow_read_expired_keys/configs/users.xml rename to tests/integration/test_dictionary_allow_read_expired_keys/configs/users.xml diff --git a/dbms/tests/integration/test_dictionary_allow_read_expired_keys/test_default_reading.py b/tests/integration/test_dictionary_allow_read_expired_keys/test_default_reading.py similarity index 100% rename from dbms/tests/integration/test_dictionary_allow_read_expired_keys/test_default_reading.py rename to tests/integration/test_dictionary_allow_read_expired_keys/test_default_reading.py diff --git a/dbms/tests/integration/test_dictionary_allow_read_expired_keys/test_dict_get.py b/tests/integration/test_dictionary_allow_read_expired_keys/test_dict_get.py similarity index 100% rename from dbms/tests/integration/test_dictionary_allow_read_expired_keys/test_dict_get.py rename to tests/integration/test_dictionary_allow_read_expired_keys/test_dict_get.py diff --git a/dbms/tests/integration/test_dictionary_allow_read_expired_keys/test_dict_get_or_default.py b/tests/integration/test_dictionary_allow_read_expired_keys/test_dict_get_or_default.py similarity index 100% rename from dbms/tests/integration/test_dictionary_allow_read_expired_keys/test_dict_get_or_default.py rename to tests/integration/test_dictionary_allow_read_expired_keys/test_dict_get_or_default.py diff --git a/dbms/tests/integration/test_dictionary_ddl_on_cluster/__init__.py b/tests/integration/test_dictionary_ddl_on_cluster/__init__.py similarity index 100% rename from dbms/tests/integration/test_dictionary_ddl_on_cluster/__init__.py rename to tests/integration/test_dictionary_ddl_on_cluster/__init__.py diff --git a/dbms/tests/integration/test_dictionary_ddl_on_cluster/configs/config.d/clusters.xml b/tests/integration/test_dictionary_ddl_on_cluster/configs/config.d/clusters.xml similarity index 100% rename from dbms/tests/integration/test_dictionary_ddl_on_cluster/configs/config.d/clusters.xml rename to tests/integration/test_dictionary_ddl_on_cluster/configs/config.d/clusters.xml diff --git a/dbms/tests/integration/test_dictionary_ddl_on_cluster/configs/config.d/ddl.xml b/tests/integration/test_dictionary_ddl_on_cluster/configs/config.d/ddl.xml similarity index 100% rename from dbms/tests/integration/test_dictionary_ddl_on_cluster/configs/config.d/ddl.xml rename to tests/integration/test_dictionary_ddl_on_cluster/configs/config.d/ddl.xml diff --git a/dbms/tests/integration/test_dictionary_ddl_on_cluster/test.py b/tests/integration/test_dictionary_ddl_on_cluster/test.py similarity index 100% rename from dbms/tests/integration/test_dictionary_ddl_on_cluster/test.py rename to tests/integration/test_dictionary_ddl_on_cluster/test.py diff --git a/dbms/tests/integration/test_disk_access_storage/__init__.py b/tests/integration/test_disk_access_storage/__init__.py similarity index 100% rename from dbms/tests/integration/test_disk_access_storage/__init__.py rename to tests/integration/test_disk_access_storage/__init__.py diff --git a/dbms/tests/integration/test_disk_access_storage/configs/access_control_path.xml b/tests/integration/test_disk_access_storage/configs/access_control_path.xml similarity index 100% rename from dbms/tests/integration/test_disk_access_storage/configs/access_control_path.xml rename to tests/integration/test_disk_access_storage/configs/access_control_path.xml diff --git a/dbms/tests/integration/test_disk_access_storage/test.py b/tests/integration/test_disk_access_storage/test.py similarity index 100% rename from dbms/tests/integration/test_disk_access_storage/test.py rename to tests/integration/test_disk_access_storage/test.py diff --git a/dbms/tests/integration/test_distributed_ddl/__init__.py b/tests/integration/test_distributed_ddl/__init__.py similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/__init__.py rename to tests/integration/test_distributed_ddl/__init__.py diff --git a/dbms/tests/integration/test_distributed_ddl/cluster.py b/tests/integration/test_distributed_ddl/cluster.py similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/cluster.py rename to tests/integration/test_distributed_ddl/cluster.py diff --git a/dbms/tests/integration/test_distributed_ddl/configs/config.d/clusters.xml b/tests/integration/test_distributed_ddl/configs/config.d/clusters.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs/config.d/clusters.xml rename to tests/integration/test_distributed_ddl/configs/config.d/clusters.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs/config.d/ddl.xml b/tests/integration/test_distributed_ddl/configs/config.d/ddl.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs/config.d/ddl.xml rename to tests/integration/test_distributed_ddl/configs/config.d/ddl.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs/config.d/macro.xml b/tests/integration/test_distributed_ddl/configs/config.d/macro.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs/config.d/macro.xml rename to tests/integration/test_distributed_ddl/configs/config.d/macro.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs/config.d/query_log.xml b/tests/integration/test_distributed_ddl/configs/config.d/query_log.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs/config.d/query_log.xml rename to tests/integration/test_distributed_ddl/configs/config.d/query_log.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs/config.d/zookeeper_session_timeout.xml b/tests/integration/test_distributed_ddl/configs/config.d/zookeeper_session_timeout.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs/config.d/zookeeper_session_timeout.xml rename to tests/integration/test_distributed_ddl/configs/config.d/zookeeper_session_timeout.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs/users.d/query_log.xml b/tests/integration/test_distributed_ddl/configs/users.d/query_log.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs/users.d/query_log.xml rename to tests/integration/test_distributed_ddl/configs/users.d/query_log.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs/users.d/restricted_user.xml b/tests/integration/test_distributed_ddl/configs/users.d/restricted_user.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs/users.d/restricted_user.xml rename to tests/integration/test_distributed_ddl/configs/users.d/restricted_user.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/clusters.xml b/tests/integration/test_distributed_ddl/configs_secure/config.d/clusters.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/clusters.xml rename to tests/integration/test_distributed_ddl/configs_secure/config.d/clusters.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/ddl.xml b/tests/integration/test_distributed_ddl/configs_secure/config.d/ddl.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/ddl.xml rename to tests/integration/test_distributed_ddl/configs_secure/config.d/ddl.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/macro.xml b/tests/integration/test_distributed_ddl/configs_secure/config.d/macro.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/macro.xml rename to tests/integration/test_distributed_ddl/configs_secure/config.d/macro.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/query_log.xml b/tests/integration/test_distributed_ddl/configs_secure/config.d/query_log.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/query_log.xml rename to tests/integration/test_distributed_ddl/configs_secure/config.d/query_log.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/ssl_conf.xml b/tests/integration/test_distributed_ddl/configs_secure/config.d/ssl_conf.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/ssl_conf.xml rename to tests/integration/test_distributed_ddl/configs_secure/config.d/ssl_conf.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/zookeeper_session_timeout.xml b/tests/integration/test_distributed_ddl/configs_secure/config.d/zookeeper_session_timeout.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/config.d/zookeeper_session_timeout.xml rename to tests/integration/test_distributed_ddl/configs_secure/config.d/zookeeper_session_timeout.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/dhparam.pem b/tests/integration/test_distributed_ddl/configs_secure/dhparam.pem similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/dhparam.pem rename to tests/integration/test_distributed_ddl/configs_secure/dhparam.pem diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/server.crt b/tests/integration/test_distributed_ddl/configs_secure/server.crt similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/server.crt rename to tests/integration/test_distributed_ddl/configs_secure/server.crt diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/server.key b/tests/integration/test_distributed_ddl/configs_secure/server.key similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/server.key rename to tests/integration/test_distributed_ddl/configs_secure/server.key diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/users.d/query_log.xml b/tests/integration/test_distributed_ddl/configs_secure/users.d/query_log.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/users.d/query_log.xml rename to tests/integration/test_distributed_ddl/configs_secure/users.d/query_log.xml diff --git a/dbms/tests/integration/test_distributed_ddl/configs_secure/users.d/restricted_user.xml b/tests/integration/test_distributed_ddl/configs_secure/users.d/restricted_user.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/configs_secure/users.d/restricted_user.xml rename to tests/integration/test_distributed_ddl/configs_secure/users.d/restricted_user.xml diff --git a/dbms/tests/integration/test_distributed_ddl/test.py b/tests/integration/test_distributed_ddl/test.py similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/test.py rename to tests/integration/test_distributed_ddl/test.py diff --git a/dbms/tests/integration/test_distributed_ddl/test_replicated_alter.py b/tests/integration/test_distributed_ddl/test_replicated_alter.py similarity index 100% rename from dbms/tests/integration/test_distributed_ddl/test_replicated_alter.py rename to tests/integration/test_distributed_ddl/test_replicated_alter.py diff --git a/dbms/tests/integration/test_distributed_ddl_password/__init__.py b/tests/integration/test_distributed_ddl_password/__init__.py similarity index 100% rename from dbms/tests/integration/test_distributed_ddl_password/__init__.py rename to tests/integration/test_distributed_ddl_password/__init__.py diff --git a/dbms/tests/integration/test_distributed_ddl_password/configs/config.d/clusters.xml b/tests/integration/test_distributed_ddl_password/configs/config.d/clusters.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl_password/configs/config.d/clusters.xml rename to tests/integration/test_distributed_ddl_password/configs/config.d/clusters.xml diff --git a/dbms/tests/integration/test_distributed_ddl_password/configs/users.d/default_with_password.xml b/tests/integration/test_distributed_ddl_password/configs/users.d/default_with_password.xml similarity index 100% rename from dbms/tests/integration/test_distributed_ddl_password/configs/users.d/default_with_password.xml rename to tests/integration/test_distributed_ddl_password/configs/users.d/default_with_password.xml diff --git a/dbms/tests/integration/test_distributed_ddl_password/test.py b/tests/integration/test_distributed_ddl_password/test.py similarity index 100% rename from dbms/tests/integration/test_distributed_ddl_password/test.py rename to tests/integration/test_distributed_ddl_password/test.py diff --git a/dbms/tests/integration/test_distributed_format/__init__.py b/tests/integration/test_distributed_format/__init__.py similarity index 100% rename from dbms/tests/integration/test_distributed_format/__init__.py rename to tests/integration/test_distributed_format/__init__.py diff --git a/dbms/tests/integration/test_distributed_format/configs/remote_servers.xml b/tests/integration/test_distributed_format/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_distributed_format/configs/remote_servers.xml rename to tests/integration/test_distributed_format/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_distributed_format/test.py b/tests/integration/test_distributed_format/test.py similarity index 100% rename from dbms/tests/integration/test_distributed_format/test.py rename to tests/integration/test_distributed_format/test.py diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/__init__.py b/tests/integration/test_distributed_respect_user_timeouts/__init__.py similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/__init__.py rename to tests/integration/test_distributed_respect_user_timeouts/__init__.py diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/configs/config.d/remote_servers.xml b/tests/integration/test_distributed_respect_user_timeouts/configs/config.d/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/configs/config.d/remote_servers.xml rename to tests/integration/test_distributed_respect_user_timeouts/configs/config.d/remote_servers.xml diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/configs/users.d/set_distributed_defaults.xml b/tests/integration/test_distributed_respect_user_timeouts/configs/users.d/set_distributed_defaults.xml similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/configs/users.d/set_distributed_defaults.xml rename to tests/integration/test_distributed_respect_user_timeouts/configs/users.d/set_distributed_defaults.xml diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/config.d/remote_servers.xml b/tests/integration/test_distributed_respect_user_timeouts/configs_secure/config.d/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/config.d/remote_servers.xml rename to tests/integration/test_distributed_respect_user_timeouts/configs_secure/config.d/remote_servers.xml diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/config.d/ssl_conf.xml b/tests/integration/test_distributed_respect_user_timeouts/configs_secure/config.d/ssl_conf.xml similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/config.d/ssl_conf.xml rename to tests/integration/test_distributed_respect_user_timeouts/configs_secure/config.d/ssl_conf.xml diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/dhparam.pem b/tests/integration/test_distributed_respect_user_timeouts/configs_secure/dhparam.pem similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/dhparam.pem rename to tests/integration/test_distributed_respect_user_timeouts/configs_secure/dhparam.pem diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/server.crt b/tests/integration/test_distributed_respect_user_timeouts/configs_secure/server.crt similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/server.crt rename to tests/integration/test_distributed_respect_user_timeouts/configs_secure/server.crt diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/server.key b/tests/integration/test_distributed_respect_user_timeouts/configs_secure/server.key similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/server.key rename to tests/integration/test_distributed_respect_user_timeouts/configs_secure/server.key diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/users.d/set_distributed_defaults.xml b/tests/integration/test_distributed_respect_user_timeouts/configs_secure/users.d/set_distributed_defaults.xml similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/configs_secure/users.d/set_distributed_defaults.xml rename to tests/integration/test_distributed_respect_user_timeouts/configs_secure/users.d/set_distributed_defaults.xml diff --git a/dbms/tests/integration/test_distributed_respect_user_timeouts/test.py b/tests/integration/test_distributed_respect_user_timeouts/test.py similarity index 100% rename from dbms/tests/integration/test_distributed_respect_user_timeouts/test.py rename to tests/integration/test_distributed_respect_user_timeouts/test.py diff --git a/dbms/tests/integration/test_distributed_storage_configuration/__init__.py b/tests/integration/test_distributed_storage_configuration/__init__.py similarity index 100% rename from dbms/tests/integration/test_distributed_storage_configuration/__init__.py rename to tests/integration/test_distributed_storage_configuration/__init__.py diff --git a/dbms/tests/integration/test_distributed_storage_configuration/configs/config.d/storage_configuration.xml b/tests/integration/test_distributed_storage_configuration/configs/config.d/storage_configuration.xml similarity index 100% rename from dbms/tests/integration/test_distributed_storage_configuration/configs/config.d/storage_configuration.xml rename to tests/integration/test_distributed_storage_configuration/configs/config.d/storage_configuration.xml diff --git a/dbms/tests/integration/test_distributed_storage_configuration/test.py b/tests/integration/test_distributed_storage_configuration/test.py similarity index 100% rename from dbms/tests/integration/test_distributed_storage_configuration/test.py rename to tests/integration/test_distributed_storage_configuration/test.py diff --git a/dbms/tests/integration/test_distributed_system_query/__init__.py b/tests/integration/test_distributed_system_query/__init__.py similarity index 100% rename from dbms/tests/integration/test_distributed_system_query/__init__.py rename to tests/integration/test_distributed_system_query/__init__.py diff --git a/dbms/tests/integration/test_distributed_system_query/configs/remote_servers.xml b/tests/integration/test_distributed_system_query/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_distributed_system_query/configs/remote_servers.xml rename to tests/integration/test_distributed_system_query/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_distributed_system_query/test.py b/tests/integration/test_distributed_system_query/test.py similarity index 100% rename from dbms/tests/integration/test_distributed_system_query/test.py rename to tests/integration/test_distributed_system_query/test.py diff --git a/dbms/tests/integration/test_extreme_deduplication/__init__.py b/tests/integration/test_extreme_deduplication/__init__.py similarity index 100% rename from dbms/tests/integration/test_extreme_deduplication/__init__.py rename to tests/integration/test_extreme_deduplication/__init__.py diff --git a/dbms/tests/integration/test_extreme_deduplication/configs/conf.d/merge_tree.xml b/tests/integration/test_extreme_deduplication/configs/conf.d/merge_tree.xml similarity index 100% rename from dbms/tests/integration/test_extreme_deduplication/configs/conf.d/merge_tree.xml rename to tests/integration/test_extreme_deduplication/configs/conf.d/merge_tree.xml diff --git a/dbms/tests/integration/test_extreme_deduplication/configs/conf.d/remote_servers.xml b/tests/integration/test_extreme_deduplication/configs/conf.d/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_extreme_deduplication/configs/conf.d/remote_servers.xml rename to tests/integration/test_extreme_deduplication/configs/conf.d/remote_servers.xml diff --git a/dbms/tests/integration/test_extreme_deduplication/test.py b/tests/integration/test_extreme_deduplication/test.py similarity index 100% rename from dbms/tests/integration/test_extreme_deduplication/test.py rename to tests/integration/test_extreme_deduplication/test.py diff --git a/dbms/tests/integration/test_filesystem_layout/__init__.py b/tests/integration/test_filesystem_layout/__init__.py similarity index 100% rename from dbms/tests/integration/test_filesystem_layout/__init__.py rename to tests/integration/test_filesystem_layout/__init__.py diff --git a/dbms/tests/integration/test_filesystem_layout/test.py b/tests/integration/test_filesystem_layout/test.py similarity index 100% rename from dbms/tests/integration/test_filesystem_layout/test.py rename to tests/integration/test_filesystem_layout/test.py diff --git a/dbms/tests/integration/test_force_deduplication/__init__.py b/tests/integration/test_force_deduplication/__init__.py similarity index 100% rename from dbms/tests/integration/test_force_deduplication/__init__.py rename to tests/integration/test_force_deduplication/__init__.py diff --git a/dbms/tests/integration/test_force_deduplication/test.py b/tests/integration/test_force_deduplication/test.py similarity index 100% rename from dbms/tests/integration/test_force_deduplication/test.py rename to tests/integration/test_force_deduplication/test.py diff --git a/dbms/tests/integration/test_format_avro_confluent/__init__.py b/tests/integration/test_format_avro_confluent/__init__.py similarity index 100% rename from dbms/tests/integration/test_format_avro_confluent/__init__.py rename to tests/integration/test_format_avro_confluent/__init__.py diff --git a/dbms/tests/integration/test_format_avro_confluent/test.py b/tests/integration/test_format_avro_confluent/test.py similarity index 100% rename from dbms/tests/integration/test_format_avro_confluent/test.py rename to tests/integration/test_format_avro_confluent/test.py diff --git a/dbms/tests/integration/test_format_schema_on_server/__init__.py b/tests/integration/test_format_schema_on_server/__init__.py similarity index 100% rename from dbms/tests/integration/test_format_schema_on_server/__init__.py rename to tests/integration/test_format_schema_on_server/__init__.py diff --git a/dbms/tests/integration/test_format_schema_on_server/clickhouse_path/format_schemas/simple.proto b/tests/integration/test_format_schema_on_server/clickhouse_path/format_schemas/simple.proto similarity index 100% rename from dbms/tests/integration/test_format_schema_on_server/clickhouse_path/format_schemas/simple.proto rename to tests/integration/test_format_schema_on_server/clickhouse_path/format_schemas/simple.proto diff --git a/dbms/tests/integration/test_format_schema_on_server/test.py b/tests/integration/test_format_schema_on_server/test.py similarity index 100% rename from dbms/tests/integration/test_format_schema_on_server/test.py rename to tests/integration/test_format_schema_on_server/test.py diff --git a/dbms/tests/integration/test_globs_in_filepath/__init__.py b/tests/integration/test_globs_in_filepath/__init__.py similarity index 100% rename from dbms/tests/integration/test_globs_in_filepath/__init__.py rename to tests/integration/test_globs_in_filepath/__init__.py diff --git a/dbms/tests/integration/test_globs_in_filepath/test.py b/tests/integration/test_globs_in_filepath/test.py similarity index 100% rename from dbms/tests/integration/test_globs_in_filepath/test.py rename to tests/integration/test_globs_in_filepath/test.py diff --git a/dbms/tests/integration/test_grant_and_revoke/__init__.py b/tests/integration/test_grant_and_revoke/__init__.py similarity index 100% rename from dbms/tests/integration/test_grant_and_revoke/__init__.py rename to tests/integration/test_grant_and_revoke/__init__.py diff --git a/dbms/tests/integration/test_grant_and_revoke/configs/users.xml b/tests/integration/test_grant_and_revoke/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_grant_and_revoke/configs/users.xml rename to tests/integration/test_grant_and_revoke/configs/users.xml diff --git a/dbms/tests/integration/test_grant_and_revoke/test.py b/tests/integration/test_grant_and_revoke/test.py similarity index 100% rename from dbms/tests/integration/test_grant_and_revoke/test.py rename to tests/integration/test_grant_and_revoke/test.py diff --git a/dbms/tests/integration/test_graphite_merge_tree/__init__.py b/tests/integration/test_graphite_merge_tree/__init__.py similarity index 100% rename from dbms/tests/integration/test_graphite_merge_tree/__init__.py rename to tests/integration/test_graphite_merge_tree/__init__.py diff --git a/dbms/tests/integration/test_graphite_merge_tree/configs/graphite_rollup.xml b/tests/integration/test_graphite_merge_tree/configs/graphite_rollup.xml similarity index 100% rename from dbms/tests/integration/test_graphite_merge_tree/configs/graphite_rollup.xml rename to tests/integration/test_graphite_merge_tree/configs/graphite_rollup.xml diff --git a/dbms/tests/integration/test_graphite_merge_tree/test.py b/tests/integration/test_graphite_merge_tree/test.py similarity index 100% rename from dbms/tests/integration/test_graphite_merge_tree/test.py rename to tests/integration/test_graphite_merge_tree/test.py diff --git a/dbms/tests/integration/test_graphite_merge_tree/test_multiple_paths_and_versions.reference b/tests/integration/test_graphite_merge_tree/test_multiple_paths_and_versions.reference similarity index 100% rename from dbms/tests/integration/test_graphite_merge_tree/test_multiple_paths_and_versions.reference rename to tests/integration/test_graphite_merge_tree/test_multiple_paths_and_versions.reference diff --git a/dbms/tests/integration/test_host_ip_change/__init__.py b/tests/integration/test_host_ip_change/__init__.py similarity index 100% rename from dbms/tests/integration/test_host_ip_change/__init__.py rename to tests/integration/test_host_ip_change/__init__.py diff --git a/dbms/tests/integration/test_host_ip_change/configs/dns_update_long.xml b/tests/integration/test_host_ip_change/configs/dns_update_long.xml similarity index 100% rename from dbms/tests/integration/test_host_ip_change/configs/dns_update_long.xml rename to tests/integration/test_host_ip_change/configs/dns_update_long.xml diff --git a/dbms/tests/integration/test_host_ip_change/configs/dns_update_short.xml b/tests/integration/test_host_ip_change/configs/dns_update_short.xml similarity index 100% rename from dbms/tests/integration/test_host_ip_change/configs/dns_update_short.xml rename to tests/integration/test_host_ip_change/configs/dns_update_short.xml diff --git a/dbms/tests/integration/test_host_ip_change/configs/listen_host.xml b/tests/integration/test_host_ip_change/configs/listen_host.xml similarity index 100% rename from dbms/tests/integration/test_host_ip_change/configs/listen_host.xml rename to tests/integration/test_host_ip_change/configs/listen_host.xml diff --git a/dbms/tests/integration/test_host_ip_change/configs/remote_servers.xml b/tests/integration/test_host_ip_change/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_host_ip_change/configs/remote_servers.xml rename to tests/integration/test_host_ip_change/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_host_ip_change/test.py b/tests/integration/test_host_ip_change/test.py similarity index 100% rename from dbms/tests/integration/test_host_ip_change/test.py rename to tests/integration/test_host_ip_change/test.py diff --git a/dbms/tests/integration/test_http_and_readonly/__init__.py b/tests/integration/test_http_and_readonly/__init__.py similarity index 100% rename from dbms/tests/integration/test_http_and_readonly/__init__.py rename to tests/integration/test_http_and_readonly/__init__.py diff --git a/dbms/tests/integration/test_http_and_readonly/test.py b/tests/integration/test_http_and_readonly/test.py similarity index 100% rename from dbms/tests/integration/test_http_and_readonly/test.py rename to tests/integration/test_http_and_readonly/test.py diff --git a/dbms/tests/integration/test_https_replication/__init__.py b/tests/integration/test_https_replication/__init__.py similarity index 100% rename from dbms/tests/integration/test_https_replication/__init__.py rename to tests/integration/test_https_replication/__init__.py diff --git a/dbms/tests/integration/test_https_replication/configs/config.xml b/tests/integration/test_https_replication/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_https_replication/configs/config.xml rename to tests/integration/test_https_replication/configs/config.xml diff --git a/dbms/tests/integration/test_https_replication/configs/no_ssl_conf.xml b/tests/integration/test_https_replication/configs/no_ssl_conf.xml similarity index 100% rename from dbms/tests/integration/test_https_replication/configs/no_ssl_conf.xml rename to tests/integration/test_https_replication/configs/no_ssl_conf.xml diff --git a/dbms/tests/integration/test_https_replication/configs/remote_servers.xml b/tests/integration/test_https_replication/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_https_replication/configs/remote_servers.xml rename to tests/integration/test_https_replication/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_https_replication/configs/server.crt b/tests/integration/test_https_replication/configs/server.crt similarity index 100% rename from dbms/tests/integration/test_https_replication/configs/server.crt rename to tests/integration/test_https_replication/configs/server.crt diff --git a/dbms/tests/integration/test_https_replication/configs/server.key b/tests/integration/test_https_replication/configs/server.key similarity index 100% rename from dbms/tests/integration/test_https_replication/configs/server.key rename to tests/integration/test_https_replication/configs/server.key diff --git a/dbms/tests/integration/test_https_replication/configs/ssl_conf.xml b/tests/integration/test_https_replication/configs/ssl_conf.xml similarity index 100% rename from dbms/tests/integration/test_https_replication/configs/ssl_conf.xml rename to tests/integration/test_https_replication/configs/ssl_conf.xml diff --git a/dbms/tests/integration/test_https_replication/test.py b/tests/integration/test_https_replication/test.py similarity index 100% rename from dbms/tests/integration/test_https_replication/test.py rename to tests/integration/test_https_replication/test.py diff --git a/dbms/tests/integration/test_inherit_multiple_profiles/__init__.py b/tests/integration/test_inherit_multiple_profiles/__init__.py similarity index 100% rename from dbms/tests/integration/test_inherit_multiple_profiles/__init__.py rename to tests/integration/test_inherit_multiple_profiles/__init__.py diff --git a/dbms/tests/integration/test_inherit_multiple_profiles/configs/combined_profile.xml b/tests/integration/test_inherit_multiple_profiles/configs/combined_profile.xml similarity index 100% rename from dbms/tests/integration/test_inherit_multiple_profiles/configs/combined_profile.xml rename to tests/integration/test_inherit_multiple_profiles/configs/combined_profile.xml diff --git a/dbms/tests/integration/test_inherit_multiple_profiles/test.py b/tests/integration/test_inherit_multiple_profiles/test.py similarity index 100% rename from dbms/tests/integration/test_inherit_multiple_profiles/test.py rename to tests/integration/test_inherit_multiple_profiles/test.py diff --git a/dbms/tests/integration/test_insert_into_distributed/__init__.py b/tests/integration/test_insert_into_distributed/__init__.py similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed/__init__.py rename to tests/integration/test_insert_into_distributed/__init__.py diff --git a/dbms/tests/integration/test_insert_into_distributed/configs/enable_distributed_inserts_batching.xml b/tests/integration/test_insert_into_distributed/configs/enable_distributed_inserts_batching.xml similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed/configs/enable_distributed_inserts_batching.xml rename to tests/integration/test_insert_into_distributed/configs/enable_distributed_inserts_batching.xml diff --git a/dbms/tests/integration/test_insert_into_distributed/configs/forbid_background_merges.xml b/tests/integration/test_insert_into_distributed/configs/forbid_background_merges.xml similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed/configs/forbid_background_merges.xml rename to tests/integration/test_insert_into_distributed/configs/forbid_background_merges.xml diff --git a/dbms/tests/integration/test_insert_into_distributed/configs/remote_servers.xml b/tests/integration/test_insert_into_distributed/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed/configs/remote_servers.xml rename to tests/integration/test_insert_into_distributed/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_insert_into_distributed/test.py b/tests/integration/test_insert_into_distributed/test.py similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed/test.py rename to tests/integration/test_insert_into_distributed/test.py diff --git a/dbms/tests/integration/test_insert_into_distributed_sync_async/__init__.py b/tests/integration/test_insert_into_distributed_sync_async/__init__.py similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed_sync_async/__init__.py rename to tests/integration/test_insert_into_distributed_sync_async/__init__.py diff --git a/dbms/tests/integration/test_insert_into_distributed_sync_async/configs/remote_servers.xml b/tests/integration/test_insert_into_distributed_sync_async/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed_sync_async/configs/remote_servers.xml rename to tests/integration/test_insert_into_distributed_sync_async/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_insert_into_distributed_sync_async/test.py b/tests/integration/test_insert_into_distributed_sync_async/test.py similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed_sync_async/test.py rename to tests/integration/test_insert_into_distributed_sync_async/test.py diff --git a/dbms/tests/integration/test_insert_into_distributed_through_materialized_view/__init__.py b/tests/integration/test_insert_into_distributed_through_materialized_view/__init__.py similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed_through_materialized_view/__init__.py rename to tests/integration/test_insert_into_distributed_through_materialized_view/__init__.py diff --git a/dbms/tests/integration/test_insert_into_distributed_through_materialized_view/configs/enable_distributed_inserts_batching.xml b/tests/integration/test_insert_into_distributed_through_materialized_view/configs/enable_distributed_inserts_batching.xml similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed_through_materialized_view/configs/enable_distributed_inserts_batching.xml rename to tests/integration/test_insert_into_distributed_through_materialized_view/configs/enable_distributed_inserts_batching.xml diff --git a/dbms/tests/integration/test_insert_into_distributed_through_materialized_view/configs/forbid_background_merges.xml b/tests/integration/test_insert_into_distributed_through_materialized_view/configs/forbid_background_merges.xml similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed_through_materialized_view/configs/forbid_background_merges.xml rename to tests/integration/test_insert_into_distributed_through_materialized_view/configs/forbid_background_merges.xml diff --git a/dbms/tests/integration/test_insert_into_distributed_through_materialized_view/configs/remote_servers.xml b/tests/integration/test_insert_into_distributed_through_materialized_view/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed_through_materialized_view/configs/remote_servers.xml rename to tests/integration/test_insert_into_distributed_through_materialized_view/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_insert_into_distributed_through_materialized_view/test.py b/tests/integration/test_insert_into_distributed_through_materialized_view/test.py similarity index 100% rename from dbms/tests/integration/test_insert_into_distributed_through_materialized_view/test.py rename to tests/integration/test_insert_into_distributed_through_materialized_view/test.py diff --git a/dbms/tests/integration/test_log_family_s3/__init__.py b/tests/integration/test_log_family_s3/__init__.py similarity index 100% rename from dbms/tests/integration/test_log_family_s3/__init__.py rename to tests/integration/test_log_family_s3/__init__.py diff --git a/dbms/tests/integration/test_log_family_s3/configs/config.d/log_conf.xml b/tests/integration/test_log_family_s3/configs/config.d/log_conf.xml similarity index 100% rename from dbms/tests/integration/test_log_family_s3/configs/config.d/log_conf.xml rename to tests/integration/test_log_family_s3/configs/config.d/log_conf.xml diff --git a/dbms/tests/integration/test_log_family_s3/configs/config.xml b/tests/integration/test_log_family_s3/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_log_family_s3/configs/config.xml rename to tests/integration/test_log_family_s3/configs/config.xml diff --git a/dbms/tests/integration/test_log_family_s3/configs/users.xml b/tests/integration/test_log_family_s3/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_log_family_s3/configs/users.xml rename to tests/integration/test_log_family_s3/configs/users.xml diff --git a/dbms/tests/integration/test_log_family_s3/test.py b/tests/integration/test_log_family_s3/test.py similarity index 100% rename from dbms/tests/integration/test_log_family_s3/test.py rename to tests/integration/test_log_family_s3/test.py diff --git a/dbms/tests/integration/test_logs_level/__init__.py b/tests/integration/test_logs_level/__init__.py similarity index 100% rename from dbms/tests/integration/test_logs_level/__init__.py rename to tests/integration/test_logs_level/__init__.py diff --git a/dbms/tests/integration/test_logs_level/configs/config_information.xml b/tests/integration/test_logs_level/configs/config_information.xml similarity index 100% rename from dbms/tests/integration/test_logs_level/configs/config_information.xml rename to tests/integration/test_logs_level/configs/config_information.xml diff --git a/dbms/tests/integration/test_logs_level/test.py b/tests/integration/test_logs_level/test.py similarity index 100% rename from dbms/tests/integration/test_logs_level/test.py rename to tests/integration/test_logs_level/test.py diff --git a/dbms/tests/integration/test_match_process_uid_against_data_owner/__init__.py b/tests/integration/test_match_process_uid_against_data_owner/__init__.py similarity index 100% rename from dbms/tests/integration/test_match_process_uid_against_data_owner/__init__.py rename to tests/integration/test_match_process_uid_against_data_owner/__init__.py diff --git a/dbms/tests/integration/test_match_process_uid_against_data_owner/configs/config.xml b/tests/integration/test_match_process_uid_against_data_owner/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_match_process_uid_against_data_owner/configs/config.xml rename to tests/integration/test_match_process_uid_against_data_owner/configs/config.xml diff --git a/dbms/tests/integration/test_match_process_uid_against_data_owner/configs/users.xml b/tests/integration/test_match_process_uid_against_data_owner/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_match_process_uid_against_data_owner/configs/users.xml rename to tests/integration/test_match_process_uid_against_data_owner/configs/users.xml diff --git a/dbms/tests/integration/test_match_process_uid_against_data_owner/test.py b/tests/integration/test_match_process_uid_against_data_owner/test.py similarity index 100% rename from dbms/tests/integration/test_match_process_uid_against_data_owner/test.py rename to tests/integration/test_match_process_uid_against_data_owner/test.py diff --git a/dbms/tests/integration/test_max_http_connections_for_replication/__init__.py b/tests/integration/test_max_http_connections_for_replication/__init__.py similarity index 100% rename from dbms/tests/integration/test_max_http_connections_for_replication/__init__.py rename to tests/integration/test_max_http_connections_for_replication/__init__.py diff --git a/dbms/tests/integration/test_max_http_connections_for_replication/configs/log_conf.xml b/tests/integration/test_max_http_connections_for_replication/configs/log_conf.xml similarity index 100% rename from dbms/tests/integration/test_max_http_connections_for_replication/configs/log_conf.xml rename to tests/integration/test_max_http_connections_for_replication/configs/log_conf.xml diff --git a/dbms/tests/integration/test_max_http_connections_for_replication/configs/remote_servers.xml b/tests/integration/test_max_http_connections_for_replication/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_max_http_connections_for_replication/configs/remote_servers.xml rename to tests/integration/test_max_http_connections_for_replication/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_max_http_connections_for_replication/test.py b/tests/integration/test_max_http_connections_for_replication/test.py similarity index 100% rename from dbms/tests/integration/test_max_http_connections_for_replication/test.py rename to tests/integration/test_max_http_connections_for_replication/test.py diff --git a/dbms/tests/integration/test_merge_table_over_distributed/__init__.py b/tests/integration/test_merge_table_over_distributed/__init__.py similarity index 100% rename from dbms/tests/integration/test_merge_table_over_distributed/__init__.py rename to tests/integration/test_merge_table_over_distributed/__init__.py diff --git a/dbms/tests/integration/test_merge_table_over_distributed/configs/remote_servers.xml b/tests/integration/test_merge_table_over_distributed/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_merge_table_over_distributed/configs/remote_servers.xml rename to tests/integration/test_merge_table_over_distributed/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_merge_table_over_distributed/test.py b/tests/integration/test_merge_table_over_distributed/test.py similarity index 100% rename from dbms/tests/integration/test_merge_table_over_distributed/test.py rename to tests/integration/test_merge_table_over_distributed/test.py diff --git a/dbms/tests/integration/test_merge_tree_s3/__init__.py b/tests/integration/test_merge_tree_s3/__init__.py similarity index 100% rename from dbms/tests/integration/test_merge_tree_s3/__init__.py rename to tests/integration/test_merge_tree_s3/__init__.py diff --git a/dbms/tests/integration/test_merge_tree_s3/configs/config.d/bg_processing_pool_conf.xml b/tests/integration/test_merge_tree_s3/configs/config.d/bg_processing_pool_conf.xml similarity index 100% rename from dbms/tests/integration/test_merge_tree_s3/configs/config.d/bg_processing_pool_conf.xml rename to tests/integration/test_merge_tree_s3/configs/config.d/bg_processing_pool_conf.xml diff --git a/dbms/tests/integration/test_merge_tree_s3/configs/config.d/log_conf.xml b/tests/integration/test_merge_tree_s3/configs/config.d/log_conf.xml similarity index 100% rename from dbms/tests/integration/test_merge_tree_s3/configs/config.d/log_conf.xml rename to tests/integration/test_merge_tree_s3/configs/config.d/log_conf.xml diff --git a/dbms/tests/integration/test_merge_tree_s3/configs/config.d/storage_conf.xml b/tests/integration/test_merge_tree_s3/configs/config.d/storage_conf.xml similarity index 100% rename from dbms/tests/integration/test_merge_tree_s3/configs/config.d/storage_conf.xml rename to tests/integration/test_merge_tree_s3/configs/config.d/storage_conf.xml diff --git a/dbms/tests/integration/test_merge_tree_s3/configs/config.d/users.xml b/tests/integration/test_merge_tree_s3/configs/config.d/users.xml similarity index 100% rename from dbms/tests/integration/test_merge_tree_s3/configs/config.d/users.xml rename to tests/integration/test_merge_tree_s3/configs/config.d/users.xml diff --git a/dbms/tests/integration/test_merge_tree_s3/configs/config.xml b/tests/integration/test_merge_tree_s3/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_merge_tree_s3/configs/config.xml rename to tests/integration/test_merge_tree_s3/configs/config.xml diff --git a/dbms/tests/integration/test_merge_tree_s3/test.py b/tests/integration/test_merge_tree_s3/test.py similarity index 100% rename from dbms/tests/integration/test_merge_tree_s3/test.py rename to tests/integration/test_merge_tree_s3/test.py diff --git a/dbms/tests/integration/test_multiple_disks/__init__.py b/tests/integration/test_multiple_disks/__init__.py similarity index 100% rename from dbms/tests/integration/test_multiple_disks/__init__.py rename to tests/integration/test_multiple_disks/__init__.py diff --git a/dbms/tests/integration/test_multiple_disks/configs/config.d/cluster.xml b/tests/integration/test_multiple_disks/configs/config.d/cluster.xml similarity index 100% rename from dbms/tests/integration/test_multiple_disks/configs/config.d/cluster.xml rename to tests/integration/test_multiple_disks/configs/config.d/cluster.xml diff --git a/dbms/tests/integration/test_multiple_disks/configs/config.d/storage_configuration.xml b/tests/integration/test_multiple_disks/configs/config.d/storage_configuration.xml similarity index 100% rename from dbms/tests/integration/test_multiple_disks/configs/config.d/storage_configuration.xml rename to tests/integration/test_multiple_disks/configs/config.d/storage_configuration.xml diff --git a/dbms/tests/integration/test_multiple_disks/configs/logs_config.xml b/tests/integration/test_multiple_disks/configs/logs_config.xml similarity index 100% rename from dbms/tests/integration/test_multiple_disks/configs/logs_config.xml rename to tests/integration/test_multiple_disks/configs/logs_config.xml diff --git a/dbms/tests/integration/test_multiple_disks/test.py b/tests/integration/test_multiple_disks/test.py similarity index 100% rename from dbms/tests/integration/test_multiple_disks/test.py rename to tests/integration/test_multiple_disks/test.py diff --git a/dbms/tests/integration/test_mutations_with_merge_tree/__init__.py b/tests/integration/test_mutations_with_merge_tree/__init__.py similarity index 100% rename from dbms/tests/integration/test_mutations_with_merge_tree/__init__.py rename to tests/integration/test_mutations_with_merge_tree/__init__.py diff --git a/dbms/tests/integration/test_mutations_with_merge_tree/configs/config.xml b/tests/integration/test_mutations_with_merge_tree/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_mutations_with_merge_tree/configs/config.xml rename to tests/integration/test_mutations_with_merge_tree/configs/config.xml diff --git a/dbms/tests/integration/test_mutations_with_merge_tree/configs/users.xml b/tests/integration/test_mutations_with_merge_tree/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_mutations_with_merge_tree/configs/users.xml rename to tests/integration/test_mutations_with_merge_tree/configs/users.xml diff --git a/dbms/tests/integration/test_mutations_with_merge_tree/test.py b/tests/integration/test_mutations_with_merge_tree/test.py similarity index 100% rename from dbms/tests/integration/test_mutations_with_merge_tree/test.py rename to tests/integration/test_mutations_with_merge_tree/test.py diff --git a/dbms/tests/integration/test_mysql_database_engine/__init__.py b/tests/integration/test_mysql_database_engine/__init__.py similarity index 100% rename from dbms/tests/integration/test_mysql_database_engine/__init__.py rename to tests/integration/test_mysql_database_engine/__init__.py diff --git a/dbms/tests/integration/test_mysql_database_engine/configs/remote_servers.xml b/tests/integration/test_mysql_database_engine/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_mysql_database_engine/configs/remote_servers.xml rename to tests/integration/test_mysql_database_engine/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_mysql_database_engine/test.py b/tests/integration/test_mysql_database_engine/test.py similarity index 100% rename from dbms/tests/integration/test_mysql_database_engine/test.py rename to tests/integration/test_mysql_database_engine/test.py diff --git a/dbms/tests/integration/test_mysql_protocol/__init__.py b/tests/integration/test_mysql_protocol/__init__.py similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/__init__.py rename to tests/integration/test_mysql_protocol/__init__.py diff --git a/dbms/tests/integration/test_mysql_protocol/clients/golang/0.reference b/tests/integration/test_mysql_protocol/clients/golang/0.reference similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/golang/0.reference rename to tests/integration/test_mysql_protocol/clients/golang/0.reference diff --git a/dbms/tests/integration/test_mysql_protocol/clients/golang/Dockerfile b/tests/integration/test_mysql_protocol/clients/golang/Dockerfile similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/golang/Dockerfile rename to tests/integration/test_mysql_protocol/clients/golang/Dockerfile diff --git a/dbms/tests/integration/test_mysql_protocol/clients/golang/docker_compose.yml b/tests/integration/test_mysql_protocol/clients/golang/docker_compose.yml similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/golang/docker_compose.yml rename to tests/integration/test_mysql_protocol/clients/golang/docker_compose.yml diff --git a/dbms/tests/integration/test_mysql_protocol/clients/golang/main.go b/tests/integration/test_mysql_protocol/clients/golang/main.go similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/golang/main.go rename to tests/integration/test_mysql_protocol/clients/golang/main.go diff --git a/dbms/tests/integration/test_mysql_protocol/clients/mysql/docker_compose.yml b/tests/integration/test_mysql_protocol/clients/mysql/docker_compose.yml similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/mysql/docker_compose.yml rename to tests/integration/test_mysql_protocol/clients/mysql/docker_compose.yml diff --git a/dbms/tests/integration/test_mysql_protocol/clients/mysqljs/Dockerfile b/tests/integration/test_mysql_protocol/clients/mysqljs/Dockerfile similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/mysqljs/Dockerfile rename to tests/integration/test_mysql_protocol/clients/mysqljs/Dockerfile diff --git a/dbms/tests/integration/test_mysql_protocol/clients/mysqljs/docker_compose.yml b/tests/integration/test_mysql_protocol/clients/mysqljs/docker_compose.yml similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/mysqljs/docker_compose.yml rename to tests/integration/test_mysql_protocol/clients/mysqljs/docker_compose.yml diff --git a/dbms/tests/integration/test_mysql_protocol/clients/mysqljs/test.js b/tests/integration/test_mysql_protocol/clients/mysqljs/test.js similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/mysqljs/test.js rename to tests/integration/test_mysql_protocol/clients/mysqljs/test.js diff --git a/dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/Dockerfile b/tests/integration/test_mysql_protocol/clients/php-mysqlnd/Dockerfile similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/Dockerfile rename to tests/integration/test_mysql_protocol/clients/php-mysqlnd/Dockerfile diff --git a/dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/client.crt b/tests/integration/test_mysql_protocol/clients/php-mysqlnd/client.crt similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/client.crt rename to tests/integration/test_mysql_protocol/clients/php-mysqlnd/client.crt diff --git a/dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/client.key b/tests/integration/test_mysql_protocol/clients/php-mysqlnd/client.key similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/client.key rename to tests/integration/test_mysql_protocol/clients/php-mysqlnd/client.key diff --git a/dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/docker_compose.yml b/tests/integration/test_mysql_protocol/clients/php-mysqlnd/docker_compose.yml similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/docker_compose.yml rename to tests/integration/test_mysql_protocol/clients/php-mysqlnd/docker_compose.yml diff --git a/dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/test.php b/tests/integration/test_mysql_protocol/clients/php-mysqlnd/test.php similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/test.php rename to tests/integration/test_mysql_protocol/clients/php-mysqlnd/test.php diff --git a/dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/test_ssl.php b/tests/integration/test_mysql_protocol/clients/php-mysqlnd/test_ssl.php similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/clients/php-mysqlnd/test_ssl.php rename to tests/integration/test_mysql_protocol/clients/php-mysqlnd/test_ssl.php diff --git a/dbms/tests/integration/test_mysql_protocol/configs/config.xml b/tests/integration/test_mysql_protocol/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/configs/config.xml rename to tests/integration/test_mysql_protocol/configs/config.xml diff --git a/dbms/tests/integration/test_mysql_protocol/configs/dhparam.pem b/tests/integration/test_mysql_protocol/configs/dhparam.pem similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/configs/dhparam.pem rename to tests/integration/test_mysql_protocol/configs/dhparam.pem diff --git a/dbms/tests/integration/test_mysql_protocol/configs/server.crt b/tests/integration/test_mysql_protocol/configs/server.crt similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/configs/server.crt rename to tests/integration/test_mysql_protocol/configs/server.crt diff --git a/dbms/tests/integration/test_mysql_protocol/configs/server.key b/tests/integration/test_mysql_protocol/configs/server.key similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/configs/server.key rename to tests/integration/test_mysql_protocol/configs/server.key diff --git a/dbms/tests/integration/test_mysql_protocol/configs/users.xml b/tests/integration/test_mysql_protocol/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/configs/users.xml rename to tests/integration/test_mysql_protocol/configs/users.xml diff --git a/dbms/tests/integration/test_mysql_protocol/test.py b/tests/integration/test_mysql_protocol/test.py similarity index 100% rename from dbms/tests/integration/test_mysql_protocol/test.py rename to tests/integration/test_mysql_protocol/test.py diff --git a/dbms/tests/integration/test_non_default_compression/__init__.py b/tests/integration/test_non_default_compression/__init__.py similarity index 100% rename from dbms/tests/integration/test_non_default_compression/__init__.py rename to tests/integration/test_non_default_compression/__init__.py diff --git a/dbms/tests/integration/test_non_default_compression/configs/custom_compression_by_default.xml b/tests/integration/test_non_default_compression/configs/custom_compression_by_default.xml similarity index 100% rename from dbms/tests/integration/test_non_default_compression/configs/custom_compression_by_default.xml rename to tests/integration/test_non_default_compression/configs/custom_compression_by_default.xml diff --git a/dbms/tests/integration/test_non_default_compression/configs/enable_uncompressed_cache.xml b/tests/integration/test_non_default_compression/configs/enable_uncompressed_cache.xml similarity index 100% rename from dbms/tests/integration/test_non_default_compression/configs/enable_uncompressed_cache.xml rename to tests/integration/test_non_default_compression/configs/enable_uncompressed_cache.xml diff --git a/dbms/tests/integration/test_non_default_compression/configs/lz4hc_compression_by_default.xml b/tests/integration/test_non_default_compression/configs/lz4hc_compression_by_default.xml similarity index 100% rename from dbms/tests/integration/test_non_default_compression/configs/lz4hc_compression_by_default.xml rename to tests/integration/test_non_default_compression/configs/lz4hc_compression_by_default.xml diff --git a/dbms/tests/integration/test_non_default_compression/configs/zstd_compression_by_default.xml b/tests/integration/test_non_default_compression/configs/zstd_compression_by_default.xml similarity index 100% rename from dbms/tests/integration/test_non_default_compression/configs/zstd_compression_by_default.xml rename to tests/integration/test_non_default_compression/configs/zstd_compression_by_default.xml diff --git a/dbms/tests/integration/test_non_default_compression/test.py b/tests/integration/test_non_default_compression/test.py similarity index 100% rename from dbms/tests/integration/test_non_default_compression/test.py rename to tests/integration/test_non_default_compression/test.py diff --git a/dbms/tests/integration/test_odbc_interaction/__init__.py b/tests/integration/test_odbc_interaction/__init__.py similarity index 100% rename from dbms/tests/integration/test_odbc_interaction/__init__.py rename to tests/integration/test_odbc_interaction/__init__.py diff --git a/dbms/tests/integration/test_odbc_interaction/configs/config.xml b/tests/integration/test_odbc_interaction/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_odbc_interaction/configs/config.xml rename to tests/integration/test_odbc_interaction/configs/config.xml diff --git a/dbms/tests/integration/test_odbc_interaction/configs/dictionaries/postgres_odbc_hashed_dictionary.xml b/tests/integration/test_odbc_interaction/configs/dictionaries/postgres_odbc_hashed_dictionary.xml similarity index 100% rename from dbms/tests/integration/test_odbc_interaction/configs/dictionaries/postgres_odbc_hashed_dictionary.xml rename to tests/integration/test_odbc_interaction/configs/dictionaries/postgres_odbc_hashed_dictionary.xml diff --git a/dbms/tests/integration/test_odbc_interaction/configs/dictionaries/sqlite3_odbc_cached_dictionary.xml b/tests/integration/test_odbc_interaction/configs/dictionaries/sqlite3_odbc_cached_dictionary.xml similarity index 100% rename from dbms/tests/integration/test_odbc_interaction/configs/dictionaries/sqlite3_odbc_cached_dictionary.xml rename to tests/integration/test_odbc_interaction/configs/dictionaries/sqlite3_odbc_cached_dictionary.xml diff --git a/dbms/tests/integration/test_odbc_interaction/configs/dictionaries/sqlite3_odbc_hashed_dictionary.xml b/tests/integration/test_odbc_interaction/configs/dictionaries/sqlite3_odbc_hashed_dictionary.xml similarity index 100% rename from dbms/tests/integration/test_odbc_interaction/configs/dictionaries/sqlite3_odbc_hashed_dictionary.xml rename to tests/integration/test_odbc_interaction/configs/dictionaries/sqlite3_odbc_hashed_dictionary.xml diff --git a/dbms/tests/integration/test_odbc_interaction/configs/users.xml b/tests/integration/test_odbc_interaction/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_odbc_interaction/configs/users.xml rename to tests/integration/test_odbc_interaction/configs/users.xml diff --git a/dbms/tests/integration/test_odbc_interaction/test.py b/tests/integration/test_odbc_interaction/test.py similarity index 100% rename from dbms/tests/integration/test_odbc_interaction/test.py rename to tests/integration/test_odbc_interaction/test.py diff --git a/dbms/tests/integration/test_old_versions/__init__.py b/tests/integration/test_old_versions/__init__.py similarity index 100% rename from dbms/tests/integration/test_old_versions/__init__.py rename to tests/integration/test_old_versions/__init__.py diff --git a/dbms/tests/integration/test_old_versions/configs/config.d/test_cluster.xml b/tests/integration/test_old_versions/configs/config.d/test_cluster.xml similarity index 100% rename from dbms/tests/integration/test_old_versions/configs/config.d/test_cluster.xml rename to tests/integration/test_old_versions/configs/config.d/test_cluster.xml diff --git a/dbms/tests/integration/test_old_versions/test.py b/tests/integration/test_old_versions/test.py similarity index 100% rename from dbms/tests/integration/test_old_versions/test.py rename to tests/integration/test_old_versions/test.py diff --git a/dbms/tests/integration/test_part_log_table/__init__.py b/tests/integration/test_part_log_table/__init__.py similarity index 100% rename from dbms/tests/integration/test_part_log_table/__init__.py rename to tests/integration/test_part_log_table/__init__.py diff --git a/dbms/tests/integration/test_part_log_table/configs/config_with_non_standard_part_log.xml b/tests/integration/test_part_log_table/configs/config_with_non_standard_part_log.xml similarity index 100% rename from dbms/tests/integration/test_part_log_table/configs/config_with_non_standard_part_log.xml rename to tests/integration/test_part_log_table/configs/config_with_non_standard_part_log.xml diff --git a/dbms/tests/integration/test_part_log_table/configs/config_with_standard_part_log.xml b/tests/integration/test_part_log_table/configs/config_with_standard_part_log.xml similarity index 100% rename from dbms/tests/integration/test_part_log_table/configs/config_with_standard_part_log.xml rename to tests/integration/test_part_log_table/configs/config_with_standard_part_log.xml diff --git a/dbms/tests/integration/test_part_log_table/test.py b/tests/integration/test_part_log_table/test.py similarity index 100% rename from dbms/tests/integration/test_part_log_table/test.py rename to tests/integration/test_part_log_table/test.py diff --git a/dbms/tests/integration/test_partition/__init__.py b/tests/integration/test_partition/__init__.py similarity index 100% rename from dbms/tests/integration/test_partition/__init__.py rename to tests/integration/test_partition/__init__.py diff --git a/dbms/tests/integration/test_partition/test.py b/tests/integration/test_partition/test.py similarity index 100% rename from dbms/tests/integration/test_partition/test.py rename to tests/integration/test_partition/test.py diff --git a/dbms/tests/integration/test_parts_delete_zookeeper/__init__.py b/tests/integration/test_parts_delete_zookeeper/__init__.py similarity index 100% rename from dbms/tests/integration/test_parts_delete_zookeeper/__init__.py rename to tests/integration/test_parts_delete_zookeeper/__init__.py diff --git a/dbms/tests/integration/test_parts_delete_zookeeper/configs/remote_servers.xml b/tests/integration/test_parts_delete_zookeeper/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_parts_delete_zookeeper/configs/remote_servers.xml rename to tests/integration/test_parts_delete_zookeeper/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_parts_delete_zookeeper/test.py b/tests/integration/test_parts_delete_zookeeper/test.py similarity index 100% rename from dbms/tests/integration/test_parts_delete_zookeeper/test.py rename to tests/integration/test_parts_delete_zookeeper/test.py diff --git a/dbms/tests/integration/test_polymorphic_parts/__init__.py b/tests/integration/test_polymorphic_parts/__init__.py similarity index 100% rename from dbms/tests/integration/test_polymorphic_parts/__init__.py rename to tests/integration/test_polymorphic_parts/__init__.py diff --git a/dbms/tests/integration/test_polymorphic_parts/configs/compact_parts.xml b/tests/integration/test_polymorphic_parts/configs/compact_parts.xml similarity index 100% rename from dbms/tests/integration/test_polymorphic_parts/configs/compact_parts.xml rename to tests/integration/test_polymorphic_parts/configs/compact_parts.xml diff --git a/dbms/tests/integration/test_polymorphic_parts/configs/no_leader.xml b/tests/integration/test_polymorphic_parts/configs/no_leader.xml similarity index 100% rename from dbms/tests/integration/test_polymorphic_parts/configs/no_leader.xml rename to tests/integration/test_polymorphic_parts/configs/no_leader.xml diff --git a/dbms/tests/integration/test_polymorphic_parts/configs/users.d/not_optimize_count.xml b/tests/integration/test_polymorphic_parts/configs/users.d/not_optimize_count.xml similarity index 100% rename from dbms/tests/integration/test_polymorphic_parts/configs/users.d/not_optimize_count.xml rename to tests/integration/test_polymorphic_parts/configs/users.d/not_optimize_count.xml diff --git a/dbms/tests/integration/test_polymorphic_parts/test.py b/tests/integration/test_polymorphic_parts/test.py similarity index 100% rename from dbms/tests/integration/test_polymorphic_parts/test.py rename to tests/integration/test_polymorphic_parts/test.py diff --git a/dbms/tests/integration/test_prometheus_endpoint/__init__.py b/tests/integration/test_prometheus_endpoint/__init__.py similarity index 100% rename from dbms/tests/integration/test_prometheus_endpoint/__init__.py rename to tests/integration/test_prometheus_endpoint/__init__.py diff --git a/dbms/tests/integration/test_prometheus_endpoint/configs/prom_conf.xml b/tests/integration/test_prometheus_endpoint/configs/prom_conf.xml similarity index 100% rename from dbms/tests/integration/test_prometheus_endpoint/configs/prom_conf.xml rename to tests/integration/test_prometheus_endpoint/configs/prom_conf.xml diff --git a/dbms/tests/integration/test_prometheus_endpoint/test.py b/tests/integration/test_prometheus_endpoint/test.py similarity index 100% rename from dbms/tests/integration/test_prometheus_endpoint/test.py rename to tests/integration/test_prometheus_endpoint/test.py diff --git a/dbms/tests/integration/test_quota/__init__.py b/tests/integration/test_quota/__init__.py similarity index 100% rename from dbms/tests/integration/test_quota/__init__.py rename to tests/integration/test_quota/__init__.py diff --git a/dbms/tests/integration/test_quota/configs/users.d/quota.xml b/tests/integration/test_quota/configs/users.d/quota.xml similarity index 100% rename from dbms/tests/integration/test_quota/configs/users.d/quota.xml rename to tests/integration/test_quota/configs/users.d/quota.xml diff --git a/dbms/tests/integration/test_quota/configs/users.xml b/tests/integration/test_quota/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_quota/configs/users.xml rename to tests/integration/test_quota/configs/users.xml diff --git a/dbms/tests/integration/test_quota/no_quotas.xml b/tests/integration/test_quota/no_quotas.xml similarity index 100% rename from dbms/tests/integration/test_quota/no_quotas.xml rename to tests/integration/test_quota/no_quotas.xml diff --git a/dbms/tests/integration/test_quota/normal_limits.xml b/tests/integration/test_quota/normal_limits.xml similarity index 100% rename from dbms/tests/integration/test_quota/normal_limits.xml rename to tests/integration/test_quota/normal_limits.xml diff --git a/dbms/tests/integration/test_quota/simpliest.xml b/tests/integration/test_quota/simpliest.xml similarity index 100% rename from dbms/tests/integration/test_quota/simpliest.xml rename to tests/integration/test_quota/simpliest.xml diff --git a/dbms/tests/integration/test_quota/test.py b/tests/integration/test_quota/test.py similarity index 100% rename from dbms/tests/integration/test_quota/test.py rename to tests/integration/test_quota/test.py diff --git a/dbms/tests/integration/test_quota/tiny_limits.xml b/tests/integration/test_quota/tiny_limits.xml similarity index 100% rename from dbms/tests/integration/test_quota/tiny_limits.xml rename to tests/integration/test_quota/tiny_limits.xml diff --git a/dbms/tests/integration/test_quota/tracking.xml b/tests/integration/test_quota/tracking.xml similarity index 100% rename from dbms/tests/integration/test_quota/tracking.xml rename to tests/integration/test_quota/tracking.xml diff --git a/dbms/tests/integration/test_quota/two_intervals.xml b/tests/integration/test_quota/two_intervals.xml similarity index 100% rename from dbms/tests/integration/test_quota/two_intervals.xml rename to tests/integration/test_quota/two_intervals.xml diff --git a/dbms/tests/integration/test_quota/two_quotas.xml b/tests/integration/test_quota/two_quotas.xml similarity index 100% rename from dbms/tests/integration/test_quota/two_quotas.xml rename to tests/integration/test_quota/two_quotas.xml diff --git a/dbms/tests/integration/test_random_inserts/configs/conf.d/merge_tree.xml b/tests/integration/test_random_inserts/configs/conf.d/merge_tree.xml similarity index 100% rename from dbms/tests/integration/test_random_inserts/configs/conf.d/merge_tree.xml rename to tests/integration/test_random_inserts/configs/conf.d/merge_tree.xml diff --git a/dbms/tests/integration/test_random_inserts/configs/conf.d/remote_servers.xml b/tests/integration/test_random_inserts/configs/conf.d/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_random_inserts/configs/conf.d/remote_servers.xml rename to tests/integration/test_random_inserts/configs/conf.d/remote_servers.xml diff --git a/dbms/tests/integration/test_random_inserts/test.py b/tests/integration/test_random_inserts/test.py similarity index 100% rename from dbms/tests/integration/test_random_inserts/test.py rename to tests/integration/test_random_inserts/test.py diff --git a/dbms/tests/integration/test_random_inserts/test.sh b/tests/integration/test_random_inserts/test.sh similarity index 100% rename from dbms/tests/integration/test_random_inserts/test.sh rename to tests/integration/test_random_inserts/test.sh diff --git a/dbms/tests/integration/test_read_temporary_tables_on_failure/__init__.py b/tests/integration/test_read_temporary_tables_on_failure/__init__.py similarity index 100% rename from dbms/tests/integration/test_read_temporary_tables_on_failure/__init__.py rename to tests/integration/test_read_temporary_tables_on_failure/__init__.py diff --git a/dbms/tests/integration/test_read_temporary_tables_on_failure/test.py b/tests/integration/test_read_temporary_tables_on_failure/test.py similarity index 100% rename from dbms/tests/integration/test_read_temporary_tables_on_failure/test.py rename to tests/integration/test_read_temporary_tables_on_failure/test.py diff --git a/dbms/tests/integration/test_recovery_replica/__init__.py b/tests/integration/test_recovery_replica/__init__.py similarity index 100% rename from dbms/tests/integration/test_recovery_replica/__init__.py rename to tests/integration/test_recovery_replica/__init__.py diff --git a/dbms/tests/integration/test_recovery_replica/configs/remote_servers.xml b/tests/integration/test_recovery_replica/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_recovery_replica/configs/remote_servers.xml rename to tests/integration/test_recovery_replica/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_recovery_replica/test.py b/tests/integration/test_recovery_replica/test.py similarity index 100% rename from dbms/tests/integration/test_recovery_replica/test.py rename to tests/integration/test_recovery_replica/test.py diff --git a/dbms/tests/integration/test_redirect_url_storage/__init__.py b/tests/integration/test_redirect_url_storage/__init__.py similarity index 100% rename from dbms/tests/integration/test_redirect_url_storage/__init__.py rename to tests/integration/test_redirect_url_storage/__init__.py diff --git a/dbms/tests/integration/test_redirect_url_storage/test.py b/tests/integration/test_redirect_url_storage/test.py similarity index 100% rename from dbms/tests/integration/test_redirect_url_storage/test.py rename to tests/integration/test_redirect_url_storage/test.py diff --git a/dbms/tests/integration/test_relative_filepath/__init__.py b/tests/integration/test_relative_filepath/__init__.py similarity index 100% rename from dbms/tests/integration/test_relative_filepath/__init__.py rename to tests/integration/test_relative_filepath/__init__.py diff --git a/dbms/tests/integration/test_relative_filepath/configs/config.xml b/tests/integration/test_relative_filepath/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_relative_filepath/configs/config.xml rename to tests/integration/test_relative_filepath/configs/config.xml diff --git a/dbms/tests/integration/test_relative_filepath/test.py b/tests/integration/test_relative_filepath/test.py similarity index 100% rename from dbms/tests/integration/test_relative_filepath/test.py rename to tests/integration/test_relative_filepath/test.py diff --git a/dbms/tests/integration/test_reload_max_table_size_to_drop/__init__.py b/tests/integration/test_reload_max_table_size_to_drop/__init__.py similarity index 100% rename from dbms/tests/integration/test_reload_max_table_size_to_drop/__init__.py rename to tests/integration/test_reload_max_table_size_to_drop/__init__.py diff --git a/dbms/tests/integration/test_reload_max_table_size_to_drop/configs/config.xml b/tests/integration/test_reload_max_table_size_to_drop/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_reload_max_table_size_to_drop/configs/config.xml rename to tests/integration/test_reload_max_table_size_to_drop/configs/config.xml diff --git a/dbms/tests/integration/test_reload_max_table_size_to_drop/configs/users.xml b/tests/integration/test_reload_max_table_size_to_drop/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_reload_max_table_size_to_drop/configs/users.xml rename to tests/integration/test_reload_max_table_size_to_drop/configs/users.xml diff --git a/dbms/tests/integration/test_reload_max_table_size_to_drop/test.py b/tests/integration/test_reload_max_table_size_to_drop/test.py similarity index 100% rename from dbms/tests/integration/test_reload_max_table_size_to_drop/test.py rename to tests/integration/test_reload_max_table_size_to_drop/test.py diff --git a/dbms/tests/integration/test_reloading_storage_configuration/__init__.py b/tests/integration/test_reloading_storage_configuration/__init__.py similarity index 100% rename from dbms/tests/integration/test_reloading_storage_configuration/__init__.py rename to tests/integration/test_reloading_storage_configuration/__init__.py diff --git a/dbms/tests/integration/test_reloading_storage_configuration/configs/config.d/cluster.xml b/tests/integration/test_reloading_storage_configuration/configs/config.d/cluster.xml similarity index 100% rename from dbms/tests/integration/test_reloading_storage_configuration/configs/config.d/cluster.xml rename to tests/integration/test_reloading_storage_configuration/configs/config.d/cluster.xml diff --git a/dbms/tests/integration/test_reloading_storage_configuration/configs/config.d/storage_configuration.xml b/tests/integration/test_reloading_storage_configuration/configs/config.d/storage_configuration.xml similarity index 100% rename from dbms/tests/integration/test_reloading_storage_configuration/configs/config.d/storage_configuration.xml rename to tests/integration/test_reloading_storage_configuration/configs/config.d/storage_configuration.xml diff --git a/dbms/tests/integration/test_reloading_storage_configuration/configs/logs_config.xml b/tests/integration/test_reloading_storage_configuration/configs/logs_config.xml similarity index 100% rename from dbms/tests/integration/test_reloading_storage_configuration/configs/logs_config.xml rename to tests/integration/test_reloading_storage_configuration/configs/logs_config.xml diff --git a/dbms/tests/integration/test_reloading_storage_configuration/test.py b/tests/integration/test_reloading_storage_configuration/test.py similarity index 100% rename from dbms/tests/integration/test_reloading_storage_configuration/test.py rename to tests/integration/test_reloading_storage_configuration/test.py diff --git a/dbms/tests/integration/test_remote_prewhere/__init__.py b/tests/integration/test_remote_prewhere/__init__.py similarity index 100% rename from dbms/tests/integration/test_remote_prewhere/__init__.py rename to tests/integration/test_remote_prewhere/__init__.py diff --git a/dbms/tests/integration/test_remote_prewhere/configs/log_conf.xml b/tests/integration/test_remote_prewhere/configs/log_conf.xml similarity index 100% rename from dbms/tests/integration/test_remote_prewhere/configs/log_conf.xml rename to tests/integration/test_remote_prewhere/configs/log_conf.xml diff --git a/dbms/tests/integration/test_remote_prewhere/test.py b/tests/integration/test_remote_prewhere/test.py similarity index 100% rename from dbms/tests/integration/test_remote_prewhere/test.py rename to tests/integration/test_remote_prewhere/test.py diff --git a/dbms/tests/integration/test_replace_partition/__init__.py b/tests/integration/test_replace_partition/__init__.py similarity index 100% rename from dbms/tests/integration/test_replace_partition/__init__.py rename to tests/integration/test_replace_partition/__init__.py diff --git a/dbms/tests/integration/test_replace_partition/configs/remote_servers.xml b/tests/integration/test_replace_partition/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_replace_partition/configs/remote_servers.xml rename to tests/integration/test_replace_partition/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_replace_partition/test.py b/tests/integration/test_replace_partition/test.py similarity index 100% rename from dbms/tests/integration/test_replace_partition/test.py rename to tests/integration/test_replace_partition/test.py diff --git a/dbms/tests/integration/test_replica_can_become_leader/__init__.py b/tests/integration/test_replica_can_become_leader/__init__.py similarity index 100% rename from dbms/tests/integration/test_replica_can_become_leader/__init__.py rename to tests/integration/test_replica_can_become_leader/__init__.py diff --git a/dbms/tests/integration/test_replica_can_become_leader/configs/notleader.xml b/tests/integration/test_replica_can_become_leader/configs/notleader.xml similarity index 100% rename from dbms/tests/integration/test_replica_can_become_leader/configs/notleader.xml rename to tests/integration/test_replica_can_become_leader/configs/notleader.xml diff --git a/dbms/tests/integration/test_replica_can_become_leader/configs/notleaderignorecase.xml b/tests/integration/test_replica_can_become_leader/configs/notleaderignorecase.xml similarity index 100% rename from dbms/tests/integration/test_replica_can_become_leader/configs/notleaderignorecase.xml rename to tests/integration/test_replica_can_become_leader/configs/notleaderignorecase.xml diff --git a/dbms/tests/integration/test_replica_can_become_leader/test.py b/tests/integration/test_replica_can_become_leader/test.py similarity index 100% rename from dbms/tests/integration/test_replica_can_become_leader/test.py rename to tests/integration/test_replica_can_become_leader/test.py diff --git a/dbms/tests/integration/test_replicated_mutations/__init__.py b/tests/integration/test_replicated_mutations/__init__.py similarity index 100% rename from dbms/tests/integration/test_replicated_mutations/__init__.py rename to tests/integration/test_replicated_mutations/__init__.py diff --git a/dbms/tests/integration/test_replicated_mutations/configs/merge_tree.xml b/tests/integration/test_replicated_mutations/configs/merge_tree.xml similarity index 100% rename from dbms/tests/integration/test_replicated_mutations/configs/merge_tree.xml rename to tests/integration/test_replicated_mutations/configs/merge_tree.xml diff --git a/dbms/tests/integration/test_replicated_mutations/configs/merge_tree_max_parts.xml b/tests/integration/test_replicated_mutations/configs/merge_tree_max_parts.xml similarity index 100% rename from dbms/tests/integration/test_replicated_mutations/configs/merge_tree_max_parts.xml rename to tests/integration/test_replicated_mutations/configs/merge_tree_max_parts.xml diff --git a/dbms/tests/integration/test_replicated_mutations/test.py b/tests/integration/test_replicated_mutations/test.py similarity index 100% rename from dbms/tests/integration/test_replicated_mutations/test.py rename to tests/integration/test_replicated_mutations/test.py diff --git a/dbms/tests/integration/test_replicating_constants/__init__.py b/tests/integration/test_replicating_constants/__init__.py similarity index 100% rename from dbms/tests/integration/test_replicating_constants/__init__.py rename to tests/integration/test_replicating_constants/__init__.py diff --git a/dbms/tests/integration/test_replicating_constants/test.py b/tests/integration/test_replicating_constants/test.py similarity index 100% rename from dbms/tests/integration/test_replicating_constants/test.py rename to tests/integration/test_replicating_constants/test.py diff --git a/dbms/tests/integration/test_replication_credentials/__init__.py b/tests/integration/test_replication_credentials/__init__.py similarity index 100% rename from dbms/tests/integration/test_replication_credentials/__init__.py rename to tests/integration/test_replication_credentials/__init__.py diff --git a/dbms/tests/integration/test_replication_credentials/configs/credentials1.xml b/tests/integration/test_replication_credentials/configs/credentials1.xml similarity index 100% rename from dbms/tests/integration/test_replication_credentials/configs/credentials1.xml rename to tests/integration/test_replication_credentials/configs/credentials1.xml diff --git a/dbms/tests/integration/test_replication_credentials/configs/credentials2.xml b/tests/integration/test_replication_credentials/configs/credentials2.xml similarity index 100% rename from dbms/tests/integration/test_replication_credentials/configs/credentials2.xml rename to tests/integration/test_replication_credentials/configs/credentials2.xml diff --git a/dbms/tests/integration/test_replication_credentials/configs/no_credentials.xml b/tests/integration/test_replication_credentials/configs/no_credentials.xml similarity index 100% rename from dbms/tests/integration/test_replication_credentials/configs/no_credentials.xml rename to tests/integration/test_replication_credentials/configs/no_credentials.xml diff --git a/dbms/tests/integration/test_replication_credentials/configs/remote_servers.xml b/tests/integration/test_replication_credentials/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_replication_credentials/configs/remote_servers.xml rename to tests/integration/test_replication_credentials/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_replication_credentials/test.py b/tests/integration/test_replication_credentials/test.py similarity index 100% rename from dbms/tests/integration/test_replication_credentials/test.py rename to tests/integration/test_replication_credentials/test.py diff --git a/dbms/tests/integration/test_replication_without_zookeeper/__init__.py b/tests/integration/test_replication_without_zookeeper/__init__.py similarity index 100% rename from dbms/tests/integration/test_replication_without_zookeeper/__init__.py rename to tests/integration/test_replication_without_zookeeper/__init__.py diff --git a/dbms/tests/integration/test_replication_without_zookeeper/configs/remote_servers.xml b/tests/integration/test_replication_without_zookeeper/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_replication_without_zookeeper/configs/remote_servers.xml rename to tests/integration/test_replication_without_zookeeper/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_replication_without_zookeeper/test.py b/tests/integration/test_replication_without_zookeeper/test.py similarity index 100% rename from dbms/tests/integration/test_replication_without_zookeeper/test.py rename to tests/integration/test_replication_without_zookeeper/test.py diff --git a/dbms/tests/integration/test_row_policy/__init__.py b/tests/integration/test_row_policy/__init__.py similarity index 100% rename from dbms/tests/integration/test_row_policy/__init__.py rename to tests/integration/test_row_policy/__init__.py diff --git a/dbms/tests/integration/test_row_policy/all_rows.xml b/tests/integration/test_row_policy/all_rows.xml similarity index 100% rename from dbms/tests/integration/test_row_policy/all_rows.xml rename to tests/integration/test_row_policy/all_rows.xml diff --git a/dbms/tests/integration/test_row_policy/configs/config.d/remote_servers.xml b/tests/integration/test_row_policy/configs/config.d/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_row_policy/configs/config.d/remote_servers.xml rename to tests/integration/test_row_policy/configs/config.d/remote_servers.xml diff --git a/dbms/tests/integration/test_row_policy/configs/users.d/row_policy.xml b/tests/integration/test_row_policy/configs/users.d/row_policy.xml similarity index 100% rename from dbms/tests/integration/test_row_policy/configs/users.d/row_policy.xml rename to tests/integration/test_row_policy/configs/users.d/row_policy.xml diff --git a/dbms/tests/integration/test_row_policy/configs/users.xml b/tests/integration/test_row_policy/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_row_policy/configs/users.xml rename to tests/integration/test_row_policy/configs/users.xml diff --git a/dbms/tests/integration/test_row_policy/multiple_tags_with_table_names.xml b/tests/integration/test_row_policy/multiple_tags_with_table_names.xml similarity index 100% rename from dbms/tests/integration/test_row_policy/multiple_tags_with_table_names.xml rename to tests/integration/test_row_policy/multiple_tags_with_table_names.xml diff --git a/dbms/tests/integration/test_row_policy/no_filters.xml b/tests/integration/test_row_policy/no_filters.xml similarity index 100% rename from dbms/tests/integration/test_row_policy/no_filters.xml rename to tests/integration/test_row_policy/no_filters.xml diff --git a/dbms/tests/integration/test_row_policy/no_rows.xml b/tests/integration/test_row_policy/no_rows.xml similarity index 100% rename from dbms/tests/integration/test_row_policy/no_rows.xml rename to tests/integration/test_row_policy/no_rows.xml diff --git a/dbms/tests/integration/test_row_policy/normal_filters.xml b/tests/integration/test_row_policy/normal_filters.xml similarity index 100% rename from dbms/tests/integration/test_row_policy/normal_filters.xml rename to tests/integration/test_row_policy/normal_filters.xml diff --git a/dbms/tests/integration/test_row_policy/tag_with_table_name.xml b/tests/integration/test_row_policy/tag_with_table_name.xml similarity index 100% rename from dbms/tests/integration/test_row_policy/tag_with_table_name.xml rename to tests/integration/test_row_policy/tag_with_table_name.xml diff --git a/dbms/tests/integration/test_row_policy/test.py b/tests/integration/test_row_policy/test.py similarity index 100% rename from dbms/tests/integration/test_row_policy/test.py rename to tests/integration/test_row_policy/test.py diff --git a/dbms/tests/integration/test_send_request_to_leader_replica/__init__.py b/tests/integration/test_send_request_to_leader_replica/__init__.py similarity index 100% rename from dbms/tests/integration/test_send_request_to_leader_replica/__init__.py rename to tests/integration/test_send_request_to_leader_replica/__init__.py diff --git a/dbms/tests/integration/test_send_request_to_leader_replica/configs/remote_servers.xml b/tests/integration/test_send_request_to_leader_replica/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_send_request_to_leader_replica/configs/remote_servers.xml rename to tests/integration/test_send_request_to_leader_replica/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_send_request_to_leader_replica/configs/user_good_allowed.xml b/tests/integration/test_send_request_to_leader_replica/configs/user_good_allowed.xml similarity index 100% rename from dbms/tests/integration/test_send_request_to_leader_replica/configs/user_good_allowed.xml rename to tests/integration/test_send_request_to_leader_replica/configs/user_good_allowed.xml diff --git a/dbms/tests/integration/test_send_request_to_leader_replica/configs/user_good_restricted.xml b/tests/integration/test_send_request_to_leader_replica/configs/user_good_restricted.xml similarity index 100% rename from dbms/tests/integration/test_send_request_to_leader_replica/configs/user_good_restricted.xml rename to tests/integration/test_send_request_to_leader_replica/configs/user_good_restricted.xml diff --git a/dbms/tests/integration/test_send_request_to_leader_replica/test.py b/tests/integration/test_send_request_to_leader_replica/test.py similarity index 100% rename from dbms/tests/integration/test_send_request_to_leader_replica/test.py rename to tests/integration/test_send_request_to_leader_replica/test.py diff --git a/dbms/tests/integration/test_server_initialization/__init__.py b/tests/integration/test_server_initialization/__init__.py similarity index 100% rename from dbms/tests/integration/test_server_initialization/__init__.py rename to tests/integration/test_server_initialization/__init__.py diff --git a/dbms/tests/integration/test_server_initialization/clickhouse_path/data/default/should_be_restored/data.CSV b/tests/integration/test_server_initialization/clickhouse_path/data/default/should_be_restored/data.CSV similarity index 100% rename from dbms/tests/integration/test_server_initialization/clickhouse_path/data/default/should_be_restored/data.CSV rename to tests/integration/test_server_initialization/clickhouse_path/data/default/should_be_restored/data.CSV diff --git a/dbms/tests/integration/test_server_initialization/clickhouse_path/metadata/default/should_be_dropped.sql.tmp_drop b/tests/integration/test_server_initialization/clickhouse_path/metadata/default/should_be_dropped.sql.tmp_drop similarity index 100% rename from dbms/tests/integration/test_server_initialization/clickhouse_path/metadata/default/should_be_dropped.sql.tmp_drop rename to tests/integration/test_server_initialization/clickhouse_path/metadata/default/should_be_dropped.sql.tmp_drop diff --git a/dbms/tests/integration/test_server_initialization/clickhouse_path/metadata/default/should_be_restored.sql.tmp_drop b/tests/integration/test_server_initialization/clickhouse_path/metadata/default/should_be_restored.sql.tmp_drop similarity index 100% rename from dbms/tests/integration/test_server_initialization/clickhouse_path/metadata/default/should_be_restored.sql.tmp_drop rename to tests/integration/test_server_initialization/clickhouse_path/metadata/default/should_be_restored.sql.tmp_drop diff --git a/dbms/tests/integration/test_server_initialization/clickhouse_path/metadata/default/sophisticated_default.sql b/tests/integration/test_server_initialization/clickhouse_path/metadata/default/sophisticated_default.sql similarity index 100% rename from dbms/tests/integration/test_server_initialization/clickhouse_path/metadata/default/sophisticated_default.sql rename to tests/integration/test_server_initialization/clickhouse_path/metadata/default/sophisticated_default.sql diff --git a/dbms/tests/integration/test_server_initialization/clickhouse_path_fail/metadata/default.sql b/tests/integration/test_server_initialization/clickhouse_path_fail/metadata/default.sql similarity index 100% rename from dbms/tests/integration/test_server_initialization/clickhouse_path_fail/metadata/default.sql rename to tests/integration/test_server_initialization/clickhouse_path_fail/metadata/default.sql diff --git a/dbms/tests/integration/test_server_initialization/test.py b/tests/integration/test_server_initialization/test.py similarity index 100% rename from dbms/tests/integration/test_server_initialization/test.py rename to tests/integration/test_server_initialization/test.py diff --git a/dbms/tests/integration/test_settings_constraints/__init__.py b/tests/integration/test_settings_constraints/__init__.py similarity index 100% rename from dbms/tests/integration/test_settings_constraints/__init__.py rename to tests/integration/test_settings_constraints/__init__.py diff --git a/dbms/tests/integration/test_settings_constraints/configs/users.xml b/tests/integration/test_settings_constraints/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_settings_constraints/configs/users.xml rename to tests/integration/test_settings_constraints/configs/users.xml diff --git a/dbms/tests/integration/test_settings_constraints/test.py b/tests/integration/test_settings_constraints/test.py similarity index 100% rename from dbms/tests/integration/test_settings_constraints/test.py rename to tests/integration/test_settings_constraints/test.py diff --git a/dbms/tests/integration/test_settings_constraints_distributed/__init__.py b/tests/integration/test_settings_constraints_distributed/__init__.py similarity index 100% rename from dbms/tests/integration/test_settings_constraints_distributed/__init__.py rename to tests/integration/test_settings_constraints_distributed/__init__.py diff --git a/dbms/tests/integration/test_settings_constraints_distributed/configs/remote_servers.xml b/tests/integration/test_settings_constraints_distributed/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_settings_constraints_distributed/configs/remote_servers.xml rename to tests/integration/test_settings_constraints_distributed/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_settings_constraints_distributed/test.py b/tests/integration/test_settings_constraints_distributed/test.py similarity index 100% rename from dbms/tests/integration/test_settings_constraints_distributed/test.py rename to tests/integration/test_settings_constraints_distributed/test.py diff --git a/dbms/tests/integration/test_settings_profile/__init__.py b/tests/integration/test_settings_profile/__init__.py similarity index 100% rename from dbms/tests/integration/test_settings_profile/__init__.py rename to tests/integration/test_settings_profile/__init__.py diff --git a/dbms/tests/integration/test_settings_profile/test.py b/tests/integration/test_settings_profile/test.py similarity index 100% rename from dbms/tests/integration/test_settings_profile/test.py rename to tests/integration/test_settings_profile/test.py diff --git a/dbms/tests/integration/test_storage_hdfs/__init__.py b/tests/integration/test_storage_hdfs/__init__.py similarity index 100% rename from dbms/tests/integration/test_storage_hdfs/__init__.py rename to tests/integration/test_storage_hdfs/__init__.py diff --git a/dbms/tests/integration/test_storage_hdfs/configs/log_conf.xml b/tests/integration/test_storage_hdfs/configs/log_conf.xml similarity index 100% rename from dbms/tests/integration/test_storage_hdfs/configs/log_conf.xml rename to tests/integration/test_storage_hdfs/configs/log_conf.xml diff --git a/dbms/tests/integration/test_storage_hdfs/test.py b/tests/integration/test_storage_hdfs/test.py similarity index 100% rename from dbms/tests/integration/test_storage_hdfs/test.py rename to tests/integration/test_storage_hdfs/test.py diff --git a/dbms/tests/integration/test_storage_kafka/__init__.py b/tests/integration/test_storage_kafka/__init__.py similarity index 100% rename from dbms/tests/integration/test_storage_kafka/__init__.py rename to tests/integration/test_storage_kafka/__init__.py diff --git a/dbms/tests/integration/test_storage_kafka/clickhouse_path/format_schemas/kafka.proto b/tests/integration/test_storage_kafka/clickhouse_path/format_schemas/kafka.proto similarity index 100% rename from dbms/tests/integration/test_storage_kafka/clickhouse_path/format_schemas/kafka.proto rename to tests/integration/test_storage_kafka/clickhouse_path/format_schemas/kafka.proto diff --git a/dbms/tests/integration/test_storage_kafka/configs/kafka.xml b/tests/integration/test_storage_kafka/configs/kafka.xml similarity index 100% rename from dbms/tests/integration/test_storage_kafka/configs/kafka.xml rename to tests/integration/test_storage_kafka/configs/kafka.xml diff --git a/dbms/tests/integration/test_storage_kafka/configs/log_conf.xml b/tests/integration/test_storage_kafka/configs/log_conf.xml similarity index 100% rename from dbms/tests/integration/test_storage_kafka/configs/log_conf.xml rename to tests/integration/test_storage_kafka/configs/log_conf.xml diff --git a/dbms/tests/integration/test_storage_kafka/configs/users.xml b/tests/integration/test_storage_kafka/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_storage_kafka/configs/users.xml rename to tests/integration/test_storage_kafka/configs/users.xml diff --git a/dbms/tests/integration/test_storage_kafka/kafka_pb2.py b/tests/integration/test_storage_kafka/kafka_pb2.py similarity index 100% rename from dbms/tests/integration/test_storage_kafka/kafka_pb2.py rename to tests/integration/test_storage_kafka/kafka_pb2.py diff --git a/dbms/tests/integration/test_storage_kafka/test.py b/tests/integration/test_storage_kafka/test.py similarity index 100% rename from dbms/tests/integration/test_storage_kafka/test.py rename to tests/integration/test_storage_kafka/test.py diff --git a/dbms/tests/integration/test_storage_kafka/test_kafka_json.reference b/tests/integration/test_storage_kafka/test_kafka_json.reference similarity index 100% rename from dbms/tests/integration/test_storage_kafka/test_kafka_json.reference rename to tests/integration/test_storage_kafka/test_kafka_json.reference diff --git a/dbms/tests/integration/test_storage_kafka/test_kafka_virtual1.reference b/tests/integration/test_storage_kafka/test_kafka_virtual1.reference similarity index 100% rename from dbms/tests/integration/test_storage_kafka/test_kafka_virtual1.reference rename to tests/integration/test_storage_kafka/test_kafka_virtual1.reference diff --git a/dbms/tests/integration/test_storage_kafka/test_kafka_virtual2.reference b/tests/integration/test_storage_kafka/test_kafka_virtual2.reference similarity index 100% rename from dbms/tests/integration/test_storage_kafka/test_kafka_virtual2.reference rename to tests/integration/test_storage_kafka/test_kafka_virtual2.reference diff --git a/dbms/tests/integration/test_storage_mysql/__init__.py b/tests/integration/test_storage_mysql/__init__.py similarity index 100% rename from dbms/tests/integration/test_storage_mysql/__init__.py rename to tests/integration/test_storage_mysql/__init__.py diff --git a/dbms/tests/integration/test_storage_mysql/configs/remote_servers.xml b/tests/integration/test_storage_mysql/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_storage_mysql/configs/remote_servers.xml rename to tests/integration/test_storage_mysql/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_storage_mysql/test.py b/tests/integration/test_storage_mysql/test.py similarity index 100% rename from dbms/tests/integration/test_storage_mysql/test.py rename to tests/integration/test_storage_mysql/test.py diff --git a/dbms/tests/integration/test_storage_s3/__init__.py b/tests/integration/test_storage_s3/__init__.py similarity index 100% rename from dbms/tests/integration/test_storage_s3/__init__.py rename to tests/integration/test_storage_s3/__init__.py diff --git a/dbms/tests/integration/test_storage_s3/configs/config_for_test_remote_host_filter.xml b/tests/integration/test_storage_s3/configs/config_for_test_remote_host_filter.xml similarity index 100% rename from dbms/tests/integration/test_storage_s3/configs/config_for_test_remote_host_filter.xml rename to tests/integration/test_storage_s3/configs/config_for_test_remote_host_filter.xml diff --git a/dbms/tests/integration/test_storage_s3/test.py b/tests/integration/test_storage_s3/test.py similarity index 100% rename from dbms/tests/integration/test_storage_s3/test.py rename to tests/integration/test_storage_s3/test.py diff --git a/dbms/tests/integration/test_system_merges/__init__.py b/tests/integration/test_system_merges/__init__.py similarity index 100% rename from dbms/tests/integration/test_system_merges/__init__.py rename to tests/integration/test_system_merges/__init__.py diff --git a/dbms/tests/integration/test_system_merges/configs/config.d/cluster.xml b/tests/integration/test_system_merges/configs/config.d/cluster.xml similarity index 100% rename from dbms/tests/integration/test_system_merges/configs/config.d/cluster.xml rename to tests/integration/test_system_merges/configs/config.d/cluster.xml diff --git a/dbms/tests/integration/test_system_merges/configs/logs_config.xml b/tests/integration/test_system_merges/configs/logs_config.xml similarity index 100% rename from dbms/tests/integration/test_system_merges/configs/logs_config.xml rename to tests/integration/test_system_merges/configs/logs_config.xml diff --git a/dbms/tests/integration/test_system_merges/test.py b/tests/integration/test_system_merges/test.py similarity index 100% rename from dbms/tests/integration/test_system_merges/test.py rename to tests/integration/test_system_merges/test.py diff --git a/dbms/tests/integration/test_system_queries/__init__.py b/tests/integration/test_system_queries/__init__.py similarity index 100% rename from dbms/tests/integration/test_system_queries/__init__.py rename to tests/integration/test_system_queries/__init__.py diff --git a/dbms/tests/integration/test_system_queries/configs/config.d/clusters_config.xml b/tests/integration/test_system_queries/configs/config.d/clusters_config.xml similarity index 100% rename from dbms/tests/integration/test_system_queries/configs/config.d/clusters_config.xml rename to tests/integration/test_system_queries/configs/config.d/clusters_config.xml diff --git a/dbms/tests/integration/test_system_queries/configs/config.d/dictionaries_config.xml b/tests/integration/test_system_queries/configs/config.d/dictionaries_config.xml similarity index 100% rename from dbms/tests/integration/test_system_queries/configs/config.d/dictionaries_config.xml rename to tests/integration/test_system_queries/configs/config.d/dictionaries_config.xml diff --git a/dbms/tests/integration/test_system_queries/configs/config.d/query_log.xml b/tests/integration/test_system_queries/configs/config.d/query_log.xml similarity index 100% rename from dbms/tests/integration/test_system_queries/configs/config.d/query_log.xml rename to tests/integration/test_system_queries/configs/config.d/query_log.xml diff --git a/dbms/tests/integration/test_system_queries/configs/dictionaries/dictionary_clickhouse_cache.xml b/tests/integration/test_system_queries/configs/dictionaries/dictionary_clickhouse_cache.xml similarity index 100% rename from dbms/tests/integration/test_system_queries/configs/dictionaries/dictionary_clickhouse_cache.xml rename to tests/integration/test_system_queries/configs/dictionaries/dictionary_clickhouse_cache.xml diff --git a/dbms/tests/integration/test_system_queries/configs/dictionaries/dictionary_clickhouse_flat.xml b/tests/integration/test_system_queries/configs/dictionaries/dictionary_clickhouse_flat.xml similarity index 100% rename from dbms/tests/integration/test_system_queries/configs/dictionaries/dictionary_clickhouse_flat.xml rename to tests/integration/test_system_queries/configs/dictionaries/dictionary_clickhouse_flat.xml diff --git a/dbms/tests/integration/test_system_queries/configs/users.xml b/tests/integration/test_system_queries/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_system_queries/configs/users.xml rename to tests/integration/test_system_queries/configs/users.xml diff --git a/dbms/tests/integration/test_system_queries/test.py b/tests/integration/test_system_queries/test.py similarity index 100% rename from dbms/tests/integration/test_system_queries/test.py rename to tests/integration/test_system_queries/test.py diff --git a/dbms/tests/integration/test_text_log_level/__init__.py b/tests/integration/test_text_log_level/__init__.py similarity index 100% rename from dbms/tests/integration/test_text_log_level/__init__.py rename to tests/integration/test_text_log_level/__init__.py diff --git a/dbms/tests/integration/test_text_log_level/configs/config.d/text_log.xml b/tests/integration/test_text_log_level/configs/config.d/text_log.xml similarity index 100% rename from dbms/tests/integration/test_text_log_level/configs/config.d/text_log.xml rename to tests/integration/test_text_log_level/configs/config.d/text_log.xml diff --git a/dbms/tests/integration/test_text_log_level/test.py b/tests/integration/test_text_log_level/test.py similarity index 100% rename from dbms/tests/integration/test_text_log_level/test.py rename to tests/integration/test_text_log_level/test.py diff --git a/dbms/tests/integration/test_timezone_config/__init__.py b/tests/integration/test_timezone_config/__init__.py similarity index 100% rename from dbms/tests/integration/test_timezone_config/__init__.py rename to tests/integration/test_timezone_config/__init__.py diff --git a/dbms/tests/integration/test_timezone_config/configs/config.xml b/tests/integration/test_timezone_config/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_timezone_config/configs/config.xml rename to tests/integration/test_timezone_config/configs/config.xml diff --git a/dbms/tests/integration/test_timezone_config/test.py b/tests/integration/test_timezone_config/test.py similarity index 100% rename from dbms/tests/integration/test_timezone_config/test.py rename to tests/integration/test_timezone_config/test.py diff --git a/dbms/tests/integration/test_tmp_policy/__init__.py b/tests/integration/test_tmp_policy/__init__.py similarity index 100% rename from dbms/tests/integration/test_tmp_policy/__init__.py rename to tests/integration/test_tmp_policy/__init__.py diff --git a/dbms/tests/integration/test_tmp_policy/configs/config.d/storage_configuration.xml b/tests/integration/test_tmp_policy/configs/config.d/storage_configuration.xml similarity index 100% rename from dbms/tests/integration/test_tmp_policy/configs/config.d/storage_configuration.xml rename to tests/integration/test_tmp_policy/configs/config.d/storage_configuration.xml diff --git a/dbms/tests/integration/test_tmp_policy/test.py b/tests/integration/test_tmp_policy/test.py similarity index 100% rename from dbms/tests/integration/test_tmp_policy/test.py rename to tests/integration/test_tmp_policy/test.py diff --git a/dbms/tests/integration/test_ttl_move/__init__.py b/tests/integration/test_ttl_move/__init__.py similarity index 100% rename from dbms/tests/integration/test_ttl_move/__init__.py rename to tests/integration/test_ttl_move/__init__.py diff --git a/dbms/tests/integration/test_ttl_move/configs/config.d/cluster.xml b/tests/integration/test_ttl_move/configs/config.d/cluster.xml similarity index 100% rename from dbms/tests/integration/test_ttl_move/configs/config.d/cluster.xml rename to tests/integration/test_ttl_move/configs/config.d/cluster.xml diff --git a/dbms/tests/integration/test_ttl_move/configs/config.d/instant_moves.xml b/tests/integration/test_ttl_move/configs/config.d/instant_moves.xml similarity index 100% rename from dbms/tests/integration/test_ttl_move/configs/config.d/instant_moves.xml rename to tests/integration/test_ttl_move/configs/config.d/instant_moves.xml diff --git a/dbms/tests/integration/test_ttl_move/configs/config.d/storage_configuration.xml b/tests/integration/test_ttl_move/configs/config.d/storage_configuration.xml similarity index 100% rename from dbms/tests/integration/test_ttl_move/configs/config.d/storage_configuration.xml rename to tests/integration/test_ttl_move/configs/config.d/storage_configuration.xml diff --git a/dbms/tests/integration/test_ttl_move/configs/logs_config.xml b/tests/integration/test_ttl_move/configs/logs_config.xml similarity index 100% rename from dbms/tests/integration/test_ttl_move/configs/logs_config.xml rename to tests/integration/test_ttl_move/configs/logs_config.xml diff --git a/dbms/tests/integration/test_ttl_move/test.py b/tests/integration/test_ttl_move/test.py similarity index 100% rename from dbms/tests/integration/test_ttl_move/test.py rename to tests/integration/test_ttl_move/test.py diff --git a/dbms/tests/integration/test_ttl_replicated/__init__.py b/tests/integration/test_ttl_replicated/__init__.py similarity index 100% rename from dbms/tests/integration/test_ttl_replicated/__init__.py rename to tests/integration/test_ttl_replicated/__init__.py diff --git a/dbms/tests/integration/test_ttl_replicated/test.py b/tests/integration/test_ttl_replicated/test.py similarity index 100% rename from dbms/tests/integration/test_ttl_replicated/test.py rename to tests/integration/test_ttl_replicated/test.py diff --git a/dbms/tests/integration/test_union_header/__init__.py b/tests/integration/test_union_header/__init__.py similarity index 100% rename from dbms/tests/integration/test_union_header/__init__.py rename to tests/integration/test_union_header/__init__.py diff --git a/dbms/tests/integration/test_union_header/configs/remote_servers.xml b/tests/integration/test_union_header/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_union_header/configs/remote_servers.xml rename to tests/integration/test_union_header/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_union_header/test.py b/tests/integration/test_union_header/test.py similarity index 100% rename from dbms/tests/integration/test_union_header/test.py rename to tests/integration/test_union_header/test.py diff --git a/dbms/tests/integration/test_user_ip_restrictions/__init__.py b/tests/integration/test_user_ip_restrictions/__init__.py similarity index 100% rename from dbms/tests/integration/test_user_ip_restrictions/__init__.py rename to tests/integration/test_user_ip_restrictions/__init__.py diff --git a/dbms/tests/integration/test_user_ip_restrictions/configs/config_ipv6.xml b/tests/integration/test_user_ip_restrictions/configs/config_ipv6.xml similarity index 100% rename from dbms/tests/integration/test_user_ip_restrictions/configs/config_ipv6.xml rename to tests/integration/test_user_ip_restrictions/configs/config_ipv6.xml diff --git a/dbms/tests/integration/test_user_ip_restrictions/configs/users_ipv4.xml b/tests/integration/test_user_ip_restrictions/configs/users_ipv4.xml similarity index 100% rename from dbms/tests/integration/test_user_ip_restrictions/configs/users_ipv4.xml rename to tests/integration/test_user_ip_restrictions/configs/users_ipv4.xml diff --git a/dbms/tests/integration/test_user_ip_restrictions/configs/users_ipv6.xml b/tests/integration/test_user_ip_restrictions/configs/users_ipv6.xml similarity index 100% rename from dbms/tests/integration/test_user_ip_restrictions/configs/users_ipv6.xml rename to tests/integration/test_user_ip_restrictions/configs/users_ipv6.xml diff --git a/dbms/tests/integration/test_user_ip_restrictions/test.py b/tests/integration/test_user_ip_restrictions/test.py similarity index 100% rename from dbms/tests/integration/test_user_ip_restrictions/test.py rename to tests/integration/test_user_ip_restrictions/test.py diff --git a/dbms/tests/integration/test_user_zero_database_access/__init__.py b/tests/integration/test_user_zero_database_access/__init__.py similarity index 100% rename from dbms/tests/integration/test_user_zero_database_access/__init__.py rename to tests/integration/test_user_zero_database_access/__init__.py diff --git a/dbms/tests/integration/test_user_zero_database_access/configs/config.xml b/tests/integration/test_user_zero_database_access/configs/config.xml similarity index 100% rename from dbms/tests/integration/test_user_zero_database_access/configs/config.xml rename to tests/integration/test_user_zero_database_access/configs/config.xml diff --git a/dbms/tests/integration/test_user_zero_database_access/configs/users.xml b/tests/integration/test_user_zero_database_access/configs/users.xml similarity index 100% rename from dbms/tests/integration/test_user_zero_database_access/configs/users.xml rename to tests/integration/test_user_zero_database_access/configs/users.xml diff --git a/dbms/tests/integration/test_user_zero_database_access/test_user_zero_database_access.py b/tests/integration/test_user_zero_database_access/test_user_zero_database_access.py similarity index 100% rename from dbms/tests/integration/test_user_zero_database_access/test_user_zero_database_access.py rename to tests/integration/test_user_zero_database_access/test_user_zero_database_access.py diff --git a/dbms/tests/integration/test_version_update_after_mutation/__init__.py b/tests/integration/test_version_update_after_mutation/__init__.py similarity index 100% rename from dbms/tests/integration/test_version_update_after_mutation/__init__.py rename to tests/integration/test_version_update_after_mutation/__init__.py diff --git a/dbms/tests/integration/test_version_update_after_mutation/test.py b/tests/integration/test_version_update_after_mutation/test.py similarity index 100% rename from dbms/tests/integration/test_version_update_after_mutation/test.py rename to tests/integration/test_version_update_after_mutation/test.py diff --git a/dbms/tests/integration/test_zookeeper_config/__init__.py b/tests/integration/test_zookeeper_config/__init__.py similarity index 100% rename from dbms/tests/integration/test_zookeeper_config/__init__.py rename to tests/integration/test_zookeeper_config/__init__.py diff --git a/dbms/tests/integration/test_zookeeper_config/configs/remote_servers.xml b/tests/integration/test_zookeeper_config/configs/remote_servers.xml similarity index 100% rename from dbms/tests/integration/test_zookeeper_config/configs/remote_servers.xml rename to tests/integration/test_zookeeper_config/configs/remote_servers.xml diff --git a/dbms/tests/integration/test_zookeeper_config/configs/zookeeper_config_root_a.xml b/tests/integration/test_zookeeper_config/configs/zookeeper_config_root_a.xml similarity index 100% rename from dbms/tests/integration/test_zookeeper_config/configs/zookeeper_config_root_a.xml rename to tests/integration/test_zookeeper_config/configs/zookeeper_config_root_a.xml diff --git a/dbms/tests/integration/test_zookeeper_config/configs/zookeeper_config_root_b.xml b/tests/integration/test_zookeeper_config/configs/zookeeper_config_root_b.xml similarity index 100% rename from dbms/tests/integration/test_zookeeper_config/configs/zookeeper_config_root_b.xml rename to tests/integration/test_zookeeper_config/configs/zookeeper_config_root_b.xml diff --git a/dbms/tests/integration/test_zookeeper_config/configs/zookeeper_config_with_password.xml b/tests/integration/test_zookeeper_config/configs/zookeeper_config_with_password.xml similarity index 100% rename from dbms/tests/integration/test_zookeeper_config/configs/zookeeper_config_with_password.xml rename to tests/integration/test_zookeeper_config/configs/zookeeper_config_with_password.xml diff --git a/dbms/tests/integration/test_zookeeper_config/test.py b/tests/integration/test_zookeeper_config/test.py similarity index 100% rename from dbms/tests/integration/test_zookeeper_config/test.py rename to tests/integration/test_zookeeper_config/test.py diff --git a/dbms/tests/ints_dictionary.xml b/tests/ints_dictionary.xml similarity index 100% rename from dbms/tests/ints_dictionary.xml rename to tests/ints_dictionary.xml diff --git a/dbms/tests/msan_suppressions.txt b/tests/msan_suppressions.txt similarity index 100% rename from dbms/tests/msan_suppressions.txt rename to tests/msan_suppressions.txt diff --git a/dbms/tests/perf_drafts/accurate_comparisons/accurate_comparisons.sh b/tests/perf_drafts/accurate_comparisons/accurate_comparisons.sh similarity index 100% rename from dbms/tests/perf_drafts/accurate_comparisons/accurate_comparisons.sh rename to tests/perf_drafts/accurate_comparisons/accurate_comparisons.sh diff --git a/dbms/tests/perf_drafts/vert_merge/add_id_to_csv b/tests/perf_drafts/vert_merge/add_id_to_csv similarity index 100% rename from dbms/tests/perf_drafts/vert_merge/add_id_to_csv rename to tests/perf_drafts/vert_merge/add_id_to_csv diff --git a/dbms/tests/perf_drafts/vert_merge/ontime.struct b/tests/perf_drafts/vert_merge/ontime.struct similarity index 100% rename from dbms/tests/perf_drafts/vert_merge/ontime.struct rename to tests/perf_drafts/vert_merge/ontime.struct diff --git a/dbms/tests/perf_drafts/vert_merge/test_merges b/tests/perf_drafts/vert_merge/test_merges similarity index 100% rename from dbms/tests/perf_drafts/vert_merge/test_merges rename to tests/perf_drafts/vert_merge/test_merges diff --git a/dbms/tests/perf_drafts/vert_merge/wait_clickhouse_server b/tests/perf_drafts/vert_merge/wait_clickhouse_server similarity index 100% rename from dbms/tests/perf_drafts/vert_merge/wait_clickhouse_server rename to tests/perf_drafts/vert_merge/wait_clickhouse_server diff --git a/dbms/tests/performance/IPv4.xml b/tests/performance/IPv4.xml similarity index 100% rename from dbms/tests/performance/IPv4.xml rename to tests/performance/IPv4.xml diff --git a/dbms/tests/performance/IPv6.xml b/tests/performance/IPv6.xml similarity index 100% rename from dbms/tests/performance/IPv6.xml rename to tests/performance/IPv6.xml diff --git a/dbms/tests/performance/README.md b/tests/performance/README.md similarity index 100% rename from dbms/tests/performance/README.md rename to tests/performance/README.md diff --git a/dbms/tests/performance/agg_functions_min_max_any.xml b/tests/performance/agg_functions_min_max_any.xml similarity index 100% rename from dbms/tests/performance/agg_functions_min_max_any.xml rename to tests/performance/agg_functions_min_max_any.xml diff --git a/dbms/tests/performance/analyze_array_tuples.xml b/tests/performance/analyze_array_tuples.xml similarity index 100% rename from dbms/tests/performance/analyze_array_tuples.xml rename to tests/performance/analyze_array_tuples.xml diff --git a/dbms/tests/performance/and_function.xml b/tests/performance/and_function.xml similarity index 100% rename from dbms/tests/performance/and_function.xml rename to tests/performance/and_function.xml diff --git a/dbms/tests/performance/arithmetic.xml b/tests/performance/arithmetic.xml similarity index 100% rename from dbms/tests/performance/arithmetic.xml rename to tests/performance/arithmetic.xml diff --git a/dbms/tests/performance/array_auc.xml b/tests/performance/array_auc.xml similarity index 100% rename from dbms/tests/performance/array_auc.xml rename to tests/performance/array_auc.xml diff --git a/dbms/tests/performance/array_element.xml b/tests/performance/array_element.xml similarity index 100% rename from dbms/tests/performance/array_element.xml rename to tests/performance/array_element.xml diff --git a/dbms/tests/performance/array_fill.xml b/tests/performance/array_fill.xml similarity index 100% rename from dbms/tests/performance/array_fill.xml rename to tests/performance/array_fill.xml diff --git a/dbms/tests/performance/array_join.xml b/tests/performance/array_join.xml similarity index 100% rename from dbms/tests/performance/array_join.xml rename to tests/performance/array_join.xml diff --git a/dbms/tests/performance/array_reduce.xml b/tests/performance/array_reduce.xml similarity index 100% rename from dbms/tests/performance/array_reduce.xml rename to tests/performance/array_reduce.xml diff --git a/dbms/tests/performance/base64.xml b/tests/performance/base64.xml similarity index 100% rename from dbms/tests/performance/base64.xml rename to tests/performance/base64.xml diff --git a/dbms/tests/performance/base64_hits.xml b/tests/performance/base64_hits.xml similarity index 100% rename from dbms/tests/performance/base64_hits.xml rename to tests/performance/base64_hits.xml diff --git a/dbms/tests/performance/basename.xml b/tests/performance/basename.xml similarity index 100% rename from dbms/tests/performance/basename.xml rename to tests/performance/basename.xml diff --git a/dbms/tests/performance/bitCount.xml b/tests/performance/bitCount.xml similarity index 100% rename from dbms/tests/performance/bitCount.xml rename to tests/performance/bitCount.xml diff --git a/dbms/tests/performance/bit_operations_fixed_string.xml b/tests/performance/bit_operations_fixed_string.xml similarity index 100% rename from dbms/tests/performance/bit_operations_fixed_string.xml rename to tests/performance/bit_operations_fixed_string.xml diff --git a/dbms/tests/performance/bit_operations_fixed_string_numbers.xml b/tests/performance/bit_operations_fixed_string_numbers.xml similarity index 100% rename from dbms/tests/performance/bit_operations_fixed_string_numbers.xml rename to tests/performance/bit_operations_fixed_string_numbers.xml diff --git a/dbms/tests/performance/bloom_filter.xml b/tests/performance/bloom_filter.xml similarity index 100% rename from dbms/tests/performance/bloom_filter.xml rename to tests/performance/bloom_filter.xml diff --git a/dbms/tests/performance/bounding_ratio.xml b/tests/performance/bounding_ratio.xml similarity index 100% rename from dbms/tests/performance/bounding_ratio.xml rename to tests/performance/bounding_ratio.xml diff --git a/dbms/tests/performance/cidr.xml b/tests/performance/cidr.xml similarity index 100% rename from dbms/tests/performance/cidr.xml rename to tests/performance/cidr.xml diff --git a/dbms/tests/performance/codecs_float_insert.xml b/tests/performance/codecs_float_insert.xml similarity index 100% rename from dbms/tests/performance/codecs_float_insert.xml rename to tests/performance/codecs_float_insert.xml diff --git a/dbms/tests/performance/codecs_float_select.xml b/tests/performance/codecs_float_select.xml similarity index 100% rename from dbms/tests/performance/codecs_float_select.xml rename to tests/performance/codecs_float_select.xml diff --git a/dbms/tests/performance/codecs_int_insert.xml b/tests/performance/codecs_int_insert.xml similarity index 100% rename from dbms/tests/performance/codecs_int_insert.xml rename to tests/performance/codecs_int_insert.xml diff --git a/dbms/tests/performance/codecs_int_select.xml b/tests/performance/codecs_int_select.xml similarity index 100% rename from dbms/tests/performance/codecs_int_select.xml rename to tests/performance/codecs_int_select.xml diff --git a/dbms/tests/performance/collations.xml b/tests/performance/collations.xml similarity index 100% rename from dbms/tests/performance/collations.xml rename to tests/performance/collations.xml diff --git a/dbms/tests/performance/column_column_comparison.xml b/tests/performance/column_column_comparison.xml similarity index 100% rename from dbms/tests/performance/column_column_comparison.xml rename to tests/performance/column_column_comparison.xml diff --git a/dbms/tests/performance/columns_hashing.xml b/tests/performance/columns_hashing.xml similarity index 100% rename from dbms/tests/performance/columns_hashing.xml rename to tests/performance/columns_hashing.xml diff --git a/dbms/tests/performance/complex_array_creation.xml b/tests/performance/complex_array_creation.xml similarity index 100% rename from dbms/tests/performance/complex_array_creation.xml rename to tests/performance/complex_array_creation.xml diff --git a/dbms/tests/performance/concat_hits.xml b/tests/performance/concat_hits.xml similarity index 100% rename from dbms/tests/performance/concat_hits.xml rename to tests/performance/concat_hits.xml diff --git a/dbms/tests/performance/conditional.xml b/tests/performance/conditional.xml similarity index 100% rename from dbms/tests/performance/conditional.xml rename to tests/performance/conditional.xml diff --git a/dbms/tests/performance/consistent_hashes.xml b/tests/performance/consistent_hashes.xml similarity index 100% rename from dbms/tests/performance/consistent_hashes.xml rename to tests/performance/consistent_hashes.xml diff --git a/dbms/tests/performance/constant_column_comparison.xml b/tests/performance/constant_column_comparison.xml similarity index 100% rename from dbms/tests/performance/constant_column_comparison.xml rename to tests/performance/constant_column_comparison.xml diff --git a/dbms/tests/performance/constant_column_search.xml b/tests/performance/constant_column_search.xml similarity index 100% rename from dbms/tests/performance/constant_column_search.xml rename to tests/performance/constant_column_search.xml diff --git a/dbms/tests/performance/count.xml b/tests/performance/count.xml similarity index 100% rename from dbms/tests/performance/count.xml rename to tests/performance/count.xml diff --git a/dbms/tests/performance/cpu_synthetic.xml b/tests/performance/cpu_synthetic.xml similarity index 100% rename from dbms/tests/performance/cpu_synthetic.xml rename to tests/performance/cpu_synthetic.xml diff --git a/dbms/tests/performance/create_benchmark_page.py b/tests/performance/create_benchmark_page.py similarity index 100% rename from dbms/tests/performance/create_benchmark_page.py rename to tests/performance/create_benchmark_page.py diff --git a/dbms/tests/performance/cryptographic_hashes.xml b/tests/performance/cryptographic_hashes.xml similarity index 100% rename from dbms/tests/performance/cryptographic_hashes.xml rename to tests/performance/cryptographic_hashes.xml diff --git a/dbms/tests/performance/date_parsing.xml b/tests/performance/date_parsing.xml similarity index 100% rename from dbms/tests/performance/date_parsing.xml rename to tests/performance/date_parsing.xml diff --git a/dbms/tests/performance/date_time.xml b/tests/performance/date_time.xml similarity index 100% rename from dbms/tests/performance/date_time.xml rename to tests/performance/date_time.xml diff --git a/dbms/tests/performance/date_time_64.xml b/tests/performance/date_time_64.xml similarity index 100% rename from dbms/tests/performance/date_time_64.xml rename to tests/performance/date_time_64.xml diff --git a/dbms/tests/performance/decimal_aggregates.xml b/tests/performance/decimal_aggregates.xml similarity index 100% rename from dbms/tests/performance/decimal_aggregates.xml rename to tests/performance/decimal_aggregates.xml diff --git a/dbms/tests/performance/early_constant_folding.xml b/tests/performance/early_constant_folding.xml similarity index 100% rename from dbms/tests/performance/early_constant_folding.xml rename to tests/performance/early_constant_folding.xml diff --git a/dbms/tests/performance/empty_string_deserialization.xml b/tests/performance/empty_string_deserialization.xml similarity index 100% rename from dbms/tests/performance/empty_string_deserialization.xml rename to tests/performance/empty_string_deserialization.xml diff --git a/dbms/tests/performance/empty_string_serialization.xml b/tests/performance/empty_string_serialization.xml similarity index 100% rename from dbms/tests/performance/empty_string_serialization.xml rename to tests/performance/empty_string_serialization.xml diff --git a/dbms/tests/performance/entropy.xml b/tests/performance/entropy.xml similarity index 100% rename from dbms/tests/performance/entropy.xml rename to tests/performance/entropy.xml diff --git a/dbms/tests/performance/first_significant_subdomain.xml b/tests/performance/first_significant_subdomain.xml similarity index 100% rename from dbms/tests/performance/first_significant_subdomain.xml rename to tests/performance/first_significant_subdomain.xml diff --git a/dbms/tests/performance/fixed_string16.xml b/tests/performance/fixed_string16.xml similarity index 100% rename from dbms/tests/performance/fixed_string16.xml rename to tests/performance/fixed_string16.xml diff --git a/dbms/tests/performance/float_formatting.xml b/tests/performance/float_formatting.xml similarity index 100% rename from dbms/tests/performance/float_formatting.xml rename to tests/performance/float_formatting.xml diff --git a/dbms/tests/performance/float_parsing.xml b/tests/performance/float_parsing.xml similarity index 100% rename from dbms/tests/performance/float_parsing.xml rename to tests/performance/float_parsing.xml diff --git a/dbms/tests/performance/format_date_time.xml b/tests/performance/format_date_time.xml similarity index 100% rename from dbms/tests/performance/format_date_time.xml rename to tests/performance/format_date_time.xml diff --git a/dbms/tests/performance/functions_coding.xml b/tests/performance/functions_coding.xml similarity index 100% rename from dbms/tests/performance/functions_coding.xml rename to tests/performance/functions_coding.xml diff --git a/dbms/tests/performance/functions_geo.xml b/tests/performance/functions_geo.xml similarity index 100% rename from dbms/tests/performance/functions_geo.xml rename to tests/performance/functions_geo.xml diff --git a/dbms/tests/performance/general_purpose_hashes.xml b/tests/performance/general_purpose_hashes.xml similarity index 100% rename from dbms/tests/performance/general_purpose_hashes.xml rename to tests/performance/general_purpose_hashes.xml diff --git a/dbms/tests/performance/general_purpose_hashes_on_UUID.xml b/tests/performance/general_purpose_hashes_on_UUID.xml similarity index 100% rename from dbms/tests/performance/general_purpose_hashes_on_UUID.xml rename to tests/performance/general_purpose_hashes_on_UUID.xml diff --git a/dbms/tests/performance/generate_table_function.xml b/tests/performance/generate_table_function.xml similarity index 100% rename from dbms/tests/performance/generate_table_function.xml rename to tests/performance/generate_table_function.xml diff --git a/dbms/tests/performance/great_circle_dist.xml b/tests/performance/great_circle_dist.xml similarity index 100% rename from dbms/tests/performance/great_circle_dist.xml rename to tests/performance/great_circle_dist.xml diff --git a/dbms/tests/performance/group_array_moving_sum.xml b/tests/performance/group_array_moving_sum.xml similarity index 100% rename from dbms/tests/performance/group_array_moving_sum.xml rename to tests/performance/group_array_moving_sum.xml diff --git a/dbms/tests/performance/h3.xml b/tests/performance/h3.xml similarity index 100% rename from dbms/tests/performance/h3.xml rename to tests/performance/h3.xml diff --git a/dbms/tests/performance/if_array_num.xml b/tests/performance/if_array_num.xml similarity index 100% rename from dbms/tests/performance/if_array_num.xml rename to tests/performance/if_array_num.xml diff --git a/dbms/tests/performance/if_array_string.xml b/tests/performance/if_array_string.xml similarity index 100% rename from dbms/tests/performance/if_array_string.xml rename to tests/performance/if_array_string.xml diff --git a/dbms/tests/performance/if_string_const.xml b/tests/performance/if_string_const.xml similarity index 100% rename from dbms/tests/performance/if_string_const.xml rename to tests/performance/if_string_const.xml diff --git a/dbms/tests/performance/if_string_hits.xml b/tests/performance/if_string_hits.xml similarity index 100% rename from dbms/tests/performance/if_string_hits.xml rename to tests/performance/if_string_hits.xml diff --git a/dbms/tests/performance/if_to_multiif.xml b/tests/performance/if_to_multiif.xml similarity index 100% rename from dbms/tests/performance/if_to_multiif.xml rename to tests/performance/if_to_multiif.xml diff --git a/dbms/tests/performance/information_value.xml b/tests/performance/information_value.xml similarity index 100% rename from dbms/tests/performance/information_value.xml rename to tests/performance/information_value.xml diff --git a/dbms/tests/performance/insert_values_with_expressions.xml b/tests/performance/insert_values_with_expressions.xml similarity index 100% rename from dbms/tests/performance/insert_values_with_expressions.xml rename to tests/performance/insert_values_with_expressions.xml diff --git a/dbms/tests/performance/inserts_arrays_lowcardinality.xml b/tests/performance/inserts_arrays_lowcardinality.xml similarity index 100% rename from dbms/tests/performance/inserts_arrays_lowcardinality.xml rename to tests/performance/inserts_arrays_lowcardinality.xml diff --git a/dbms/tests/performance/int_parsing.xml b/tests/performance/int_parsing.xml similarity index 100% rename from dbms/tests/performance/int_parsing.xml rename to tests/performance/int_parsing.xml diff --git a/dbms/tests/performance/jit_large_requests.xml b/tests/performance/jit_large_requests.xml similarity index 100% rename from dbms/tests/performance/jit_large_requests.xml rename to tests/performance/jit_large_requests.xml diff --git a/dbms/tests/performance/jit_small_requests.xml b/tests/performance/jit_small_requests.xml similarity index 100% rename from dbms/tests/performance/jit_small_requests.xml rename to tests/performance/jit_small_requests.xml diff --git a/dbms/tests/performance/joins_in_memory.xml b/tests/performance/joins_in_memory.xml similarity index 100% rename from dbms/tests/performance/joins_in_memory.xml rename to tests/performance/joins_in_memory.xml diff --git a/dbms/tests/performance/joins_in_memory_pmj.xml b/tests/performance/joins_in_memory_pmj.xml similarity index 100% rename from dbms/tests/performance/joins_in_memory_pmj.xml rename to tests/performance/joins_in_memory_pmj.xml diff --git a/dbms/tests/performance/json_extract_rapidjson.xml b/tests/performance/json_extract_rapidjson.xml similarity index 100% rename from dbms/tests/performance/json_extract_rapidjson.xml rename to tests/performance/json_extract_rapidjson.xml diff --git a/dbms/tests/performance/json_extract_simdjson.xml b/tests/performance/json_extract_simdjson.xml similarity index 100% rename from dbms/tests/performance/json_extract_simdjson.xml rename to tests/performance/json_extract_simdjson.xml diff --git a/dbms/tests/performance/leftpad.xml b/tests/performance/leftpad.xml similarity index 100% rename from dbms/tests/performance/leftpad.xml rename to tests/performance/leftpad.xml diff --git a/dbms/tests/performance/linear_regression.xml b/tests/performance/linear_regression.xml similarity index 100% rename from dbms/tests/performance/linear_regression.xml rename to tests/performance/linear_regression.xml diff --git a/dbms/tests/performance/logical_functions_large.xml b/tests/performance/logical_functions_large.xml similarity index 100% rename from dbms/tests/performance/logical_functions_large.xml rename to tests/performance/logical_functions_large.xml diff --git a/dbms/tests/performance/logical_functions_medium.xml b/tests/performance/logical_functions_medium.xml similarity index 100% rename from dbms/tests/performance/logical_functions_medium.xml rename to tests/performance/logical_functions_medium.xml diff --git a/dbms/tests/performance/logical_functions_small.xml b/tests/performance/logical_functions_small.xml similarity index 100% rename from dbms/tests/performance/logical_functions_small.xml rename to tests/performance/logical_functions_small.xml diff --git a/dbms/tests/performance/math.xml b/tests/performance/math.xml similarity index 100% rename from dbms/tests/performance/math.xml rename to tests/performance/math.xml diff --git a/dbms/tests/performance/merge_table_streams.xml b/tests/performance/merge_table_streams.xml similarity index 100% rename from dbms/tests/performance/merge_table_streams.xml rename to tests/performance/merge_table_streams.xml diff --git a/dbms/tests/performance/merge_tree_huge_pk.xml b/tests/performance/merge_tree_huge_pk.xml similarity index 100% rename from dbms/tests/performance/merge_tree_huge_pk.xml rename to tests/performance/merge_tree_huge_pk.xml diff --git a/dbms/tests/performance/merge_tree_many_partitions.xml b/tests/performance/merge_tree_many_partitions.xml similarity index 100% rename from dbms/tests/performance/merge_tree_many_partitions.xml rename to tests/performance/merge_tree_many_partitions.xml diff --git a/dbms/tests/performance/merge_tree_many_partitions_2.xml b/tests/performance/merge_tree_many_partitions_2.xml similarity index 100% rename from dbms/tests/performance/merge_tree_many_partitions_2.xml rename to tests/performance/merge_tree_many_partitions_2.xml diff --git a/dbms/tests/performance/merge_tree_simple_select.xml b/tests/performance/merge_tree_simple_select.xml similarity index 100% rename from dbms/tests/performance/merge_tree_simple_select.xml rename to tests/performance/merge_tree_simple_select.xml diff --git a/dbms/tests/performance/mingroupby-orderbylimit1.xml b/tests/performance/mingroupby-orderbylimit1.xml similarity index 100% rename from dbms/tests/performance/mingroupby-orderbylimit1.xml rename to tests/performance/mingroupby-orderbylimit1.xml diff --git a/dbms/tests/performance/modulo.xml b/tests/performance/modulo.xml similarity index 100% rename from dbms/tests/performance/modulo.xml rename to tests/performance/modulo.xml diff --git a/dbms/tests/performance/ngram_distance.xml b/tests/performance/ngram_distance.xml similarity index 100% rename from dbms/tests/performance/ngram_distance.xml rename to tests/performance/ngram_distance.xml diff --git a/dbms/tests/performance/number_formatting_formats.xml b/tests/performance/number_formatting_formats.xml similarity index 100% rename from dbms/tests/performance/number_formatting_formats.xml rename to tests/performance/number_formatting_formats.xml diff --git a/dbms/tests/performance/nyc_taxi.xml b/tests/performance/nyc_taxi.xml similarity index 100% rename from dbms/tests/performance/nyc_taxi.xml rename to tests/performance/nyc_taxi.xml diff --git a/dbms/tests/performance/order_by_decimals.xml b/tests/performance/order_by_decimals.xml similarity index 100% rename from dbms/tests/performance/order_by_decimals.xml rename to tests/performance/order_by_decimals.xml diff --git a/dbms/tests/performance/order_by_read_in_order.xml b/tests/performance/order_by_read_in_order.xml similarity index 100% rename from dbms/tests/performance/order_by_read_in_order.xml rename to tests/performance/order_by_read_in_order.xml diff --git a/dbms/tests/performance/order_by_single_column.xml b/tests/performance/order_by_single_column.xml similarity index 100% rename from dbms/tests/performance/order_by_single_column.xml rename to tests/performance/order_by_single_column.xml diff --git a/dbms/tests/performance/parallel_insert.xml b/tests/performance/parallel_insert.xml similarity index 100% rename from dbms/tests/performance/parallel_insert.xml rename to tests/performance/parallel_insert.xml diff --git a/dbms/tests/performance/parse_engine_file.xml b/tests/performance/parse_engine_file.xml similarity index 100% rename from dbms/tests/performance/parse_engine_file.xml rename to tests/performance/parse_engine_file.xml diff --git a/dbms/tests/performance/pre_limit_no_sorting.xml b/tests/performance/pre_limit_no_sorting.xml similarity index 100% rename from dbms/tests/performance/pre_limit_no_sorting.xml rename to tests/performance/pre_limit_no_sorting.xml diff --git a/dbms/tests/performance/prewhere.xml b/tests/performance/prewhere.xml similarity index 100% rename from dbms/tests/performance/prewhere.xml rename to tests/performance/prewhere.xml diff --git a/dbms/tests/performance/random_printable_ascii.xml b/tests/performance/random_printable_ascii.xml similarity index 100% rename from dbms/tests/performance/random_printable_ascii.xml rename to tests/performance/random_printable_ascii.xml diff --git a/dbms/tests/performance/range.xml b/tests/performance/range.xml similarity index 100% rename from dbms/tests/performance/range.xml rename to tests/performance/range.xml diff --git a/dbms/tests/performance/read_hits_with_aio.xml b/tests/performance/read_hits_with_aio.xml similarity index 100% rename from dbms/tests/performance/read_hits_with_aio.xml rename to tests/performance/read_hits_with_aio.xml diff --git a/dbms/tests/performance/right.xml b/tests/performance/right.xml similarity index 100% rename from dbms/tests/performance/right.xml rename to tests/performance/right.xml diff --git a/dbms/tests/performance/round_down.xml b/tests/performance/round_down.xml similarity index 100% rename from dbms/tests/performance/round_down.xml rename to tests/performance/round_down.xml diff --git a/dbms/tests/performance/round_methods.xml b/tests/performance/round_methods.xml similarity index 100% rename from dbms/tests/performance/round_methods.xml rename to tests/performance/round_methods.xml diff --git a/dbms/tests/performance/scalar.xml b/tests/performance/scalar.xml similarity index 100% rename from dbms/tests/performance/scalar.xml rename to tests/performance/scalar.xml diff --git a/dbms/tests/performance/select_format.xml b/tests/performance/select_format.xml similarity index 100% rename from dbms/tests/performance/select_format.xml rename to tests/performance/select_format.xml diff --git a/dbms/tests/performance/set.xml b/tests/performance/set.xml similarity index 100% rename from dbms/tests/performance/set.xml rename to tests/performance/set.xml diff --git a/dbms/tests/performance/set_hits.xml b/tests/performance/set_hits.xml similarity index 100% rename from dbms/tests/performance/set_hits.xml rename to tests/performance/set_hits.xml diff --git a/dbms/tests/performance/set_index.xml b/tests/performance/set_index.xml similarity index 100% rename from dbms/tests/performance/set_index.xml rename to tests/performance/set_index.xml diff --git a/dbms/tests/performance/simple_join_query.xml b/tests/performance/simple_join_query.xml similarity index 100% rename from dbms/tests/performance/simple_join_query.xml rename to tests/performance/simple_join_query.xml diff --git a/dbms/tests/performance/slices_hits.xml b/tests/performance/slices_hits.xml similarity index 100% rename from dbms/tests/performance/slices_hits.xml rename to tests/performance/slices_hits.xml diff --git a/dbms/tests/performance/sort.xml b/tests/performance/sort.xml similarity index 100% rename from dbms/tests/performance/sort.xml rename to tests/performance/sort.xml diff --git a/dbms/tests/performance/string_join.xml b/tests/performance/string_join.xml similarity index 100% rename from dbms/tests/performance/string_join.xml rename to tests/performance/string_join.xml diff --git a/dbms/tests/performance/string_set.xml b/tests/performance/string_set.xml similarity index 100% rename from dbms/tests/performance/string_set.xml rename to tests/performance/string_set.xml diff --git a/dbms/tests/performance/string_sort.xml b/tests/performance/string_sort.xml similarity index 100% rename from dbms/tests/performance/string_sort.xml rename to tests/performance/string_sort.xml diff --git a/dbms/tests/performance/sum_map.xml b/tests/performance/sum_map.xml similarity index 100% rename from dbms/tests/performance/sum_map.xml rename to tests/performance/sum_map.xml diff --git a/dbms/tests/performance/synthetic_hardware_benchmark.xml b/tests/performance/synthetic_hardware_benchmark.xml similarity index 100% rename from dbms/tests/performance/synthetic_hardware_benchmark.xml rename to tests/performance/synthetic_hardware_benchmark.xml diff --git a/dbms/tests/performance/trim_numbers.xml b/tests/performance/trim_numbers.xml similarity index 100% rename from dbms/tests/performance/trim_numbers.xml rename to tests/performance/trim_numbers.xml diff --git a/dbms/tests/performance/trim_urls.xml b/tests/performance/trim_urls.xml similarity index 100% rename from dbms/tests/performance/trim_urls.xml rename to tests/performance/trim_urls.xml diff --git a/dbms/tests/performance/trim_whitespace.xml b/tests/performance/trim_whitespace.xml similarity index 100% rename from dbms/tests/performance/trim_whitespace.xml rename to tests/performance/trim_whitespace.xml diff --git a/dbms/tests/performance/uniq.xml b/tests/performance/uniq.xml similarity index 100% rename from dbms/tests/performance/uniq.xml rename to tests/performance/uniq.xml diff --git a/dbms/tests/performance/url_hits.xml b/tests/performance/url_hits.xml similarity index 100% rename from dbms/tests/performance/url_hits.xml rename to tests/performance/url_hits.xml diff --git a/dbms/tests/performance/vectorize_aggregation_combinators.xml b/tests/performance/vectorize_aggregation_combinators.xml similarity index 100% rename from dbms/tests/performance/vectorize_aggregation_combinators.xml rename to tests/performance/vectorize_aggregation_combinators.xml diff --git a/dbms/tests/performance/visit_param_extract_raw.xml b/tests/performance/visit_param_extract_raw.xml similarity index 100% rename from dbms/tests/performance/visit_param_extract_raw.xml rename to tests/performance/visit_param_extract_raw.xml diff --git a/dbms/tests/performance/website.xml b/tests/performance/website.xml similarity index 100% rename from dbms/tests/performance/website.xml rename to tests/performance/website.xml diff --git a/dbms/tests/queries/.gitignore b/tests/queries/.gitignore similarity index 100% rename from dbms/tests/queries/.gitignore rename to tests/queries/.gitignore diff --git a/dbms/tests/queries/0_stateless/00001_select_1.reference b/tests/queries/0_stateless/00001_select_1.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00001_select_1.reference rename to tests/queries/0_stateless/00001_select_1.reference diff --git a/dbms/tests/queries/0_stateless/00001_select_1.sql b/tests/queries/0_stateless/00001_select_1.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00001_select_1.sql rename to tests/queries/0_stateless/00001_select_1.sql diff --git a/dbms/tests/queries/0_stateless/00002_system_numbers.reference b/tests/queries/0_stateless/00002_system_numbers.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00002_system_numbers.reference rename to tests/queries/0_stateless/00002_system_numbers.reference diff --git a/dbms/tests/queries/0_stateless/00002_system_numbers.sql b/tests/queries/0_stateless/00002_system_numbers.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00002_system_numbers.sql rename to tests/queries/0_stateless/00002_system_numbers.sql diff --git a/dbms/tests/queries/0_stateless/00003_reinterpret_as_string.reference b/tests/queries/0_stateless/00003_reinterpret_as_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00003_reinterpret_as_string.reference rename to tests/queries/0_stateless/00003_reinterpret_as_string.reference diff --git a/dbms/tests/queries/0_stateless/00003_reinterpret_as_string.sql b/tests/queries/0_stateless/00003_reinterpret_as_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00003_reinterpret_as_string.sql rename to tests/queries/0_stateless/00003_reinterpret_as_string.sql diff --git a/dbms/tests/queries/0_stateless/00004_shard_format_ast_and_remote_table.reference b/tests/queries/0_stateless/00004_shard_format_ast_and_remote_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00004_shard_format_ast_and_remote_table.reference rename to tests/queries/0_stateless/00004_shard_format_ast_and_remote_table.reference diff --git a/dbms/tests/queries/0_stateless/00004_shard_format_ast_and_remote_table.sql b/tests/queries/0_stateless/00004_shard_format_ast_and_remote_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00004_shard_format_ast_and_remote_table.sql rename to tests/queries/0_stateless/00004_shard_format_ast_and_remote_table.sql diff --git a/dbms/tests/queries/0_stateless/00005_shard_format_ast_and_remote_table_lambda.reference b/tests/queries/0_stateless/00005_shard_format_ast_and_remote_table_lambda.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00005_shard_format_ast_and_remote_table_lambda.reference rename to tests/queries/0_stateless/00005_shard_format_ast_and_remote_table_lambda.reference diff --git a/dbms/tests/queries/0_stateless/00005_shard_format_ast_and_remote_table_lambda.sql b/tests/queries/0_stateless/00005_shard_format_ast_and_remote_table_lambda.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00005_shard_format_ast_and_remote_table_lambda.sql rename to tests/queries/0_stateless/00005_shard_format_ast_and_remote_table_lambda.sql diff --git a/dbms/tests/queries/0_stateless/00006_extremes_and_subquery_from.reference b/tests/queries/0_stateless/00006_extremes_and_subquery_from.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00006_extremes_and_subquery_from.reference rename to tests/queries/0_stateless/00006_extremes_and_subquery_from.reference diff --git a/dbms/tests/queries/0_stateless/00006_extremes_and_subquery_from.sql b/tests/queries/0_stateless/00006_extremes_and_subquery_from.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00006_extremes_and_subquery_from.sql rename to tests/queries/0_stateless/00006_extremes_and_subquery_from.sql diff --git a/dbms/tests/queries/0_stateless/00007_array.reference b/tests/queries/0_stateless/00007_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00007_array.reference rename to tests/queries/0_stateless/00007_array.reference diff --git a/dbms/tests/queries/0_stateless/00007_array.sql b/tests/queries/0_stateless/00007_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00007_array.sql rename to tests/queries/0_stateless/00007_array.sql diff --git a/dbms/tests/queries/0_stateless/00008_array_join.reference b/tests/queries/0_stateless/00008_array_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00008_array_join.reference rename to tests/queries/0_stateless/00008_array_join.reference diff --git a/dbms/tests/queries/0_stateless/00008_array_join.sql b/tests/queries/0_stateless/00008_array_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00008_array_join.sql rename to tests/queries/0_stateless/00008_array_join.sql diff --git a/dbms/tests/queries/0_stateless/00009_array_join_subquery.reference b/tests/queries/0_stateless/00009_array_join_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00009_array_join_subquery.reference rename to tests/queries/0_stateless/00009_array_join_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00009_array_join_subquery.sql b/tests/queries/0_stateless/00009_array_join_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00009_array_join_subquery.sql rename to tests/queries/0_stateless/00009_array_join_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00010_big_array_join.reference b/tests/queries/0_stateless/00010_big_array_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00010_big_array_join.reference rename to tests/queries/0_stateless/00010_big_array_join.reference diff --git a/dbms/tests/queries/0_stateless/00010_big_array_join.sql b/tests/queries/0_stateless/00010_big_array_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00010_big_array_join.sql rename to tests/queries/0_stateless/00010_big_array_join.sql diff --git a/dbms/tests/queries/0_stateless/00011_array_join_alias.reference b/tests/queries/0_stateless/00011_array_join_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00011_array_join_alias.reference rename to tests/queries/0_stateless/00011_array_join_alias.reference diff --git a/dbms/tests/queries/0_stateless/00011_array_join_alias.sql b/tests/queries/0_stateless/00011_array_join_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00011_array_join_alias.sql rename to tests/queries/0_stateless/00011_array_join_alias.sql diff --git a/dbms/tests/queries/0_stateless/00012_array_join_alias_2.reference b/tests/queries/0_stateless/00012_array_join_alias_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00012_array_join_alias_2.reference rename to tests/queries/0_stateless/00012_array_join_alias_2.reference diff --git a/dbms/tests/queries/0_stateless/00012_array_join_alias_2.sql b/tests/queries/0_stateless/00012_array_join_alias_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00012_array_join_alias_2.sql rename to tests/queries/0_stateless/00012_array_join_alias_2.sql diff --git a/dbms/tests/queries/0_stateless/00013_create_table_with_arrays.reference b/tests/queries/0_stateless/00013_create_table_with_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00013_create_table_with_arrays.reference rename to tests/queries/0_stateless/00013_create_table_with_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00013_create_table_with_arrays.sql b/tests/queries/0_stateless/00013_create_table_with_arrays.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00013_create_table_with_arrays.sql rename to tests/queries/0_stateless/00013_create_table_with_arrays.sql diff --git a/dbms/tests/queries/0_stateless/00014_select_from_table_with_nested.reference b/tests/queries/0_stateless/00014_select_from_table_with_nested.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00014_select_from_table_with_nested.reference rename to tests/queries/0_stateless/00014_select_from_table_with_nested.reference diff --git a/dbms/tests/queries/0_stateless/00014_select_from_table_with_nested.sql b/tests/queries/0_stateless/00014_select_from_table_with_nested.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00014_select_from_table_with_nested.sql rename to tests/queries/0_stateless/00014_select_from_table_with_nested.sql diff --git a/dbms/tests/queries/0_stateless/00015_totals_having_constants.reference b/tests/queries/0_stateless/00015_totals_having_constants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00015_totals_having_constants.reference rename to tests/queries/0_stateless/00015_totals_having_constants.reference diff --git a/dbms/tests/queries/0_stateless/00015_totals_having_constants.sql b/tests/queries/0_stateless/00015_totals_having_constants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00015_totals_having_constants.sql rename to tests/queries/0_stateless/00015_totals_having_constants.sql diff --git a/dbms/tests/queries/0_stateless/00016_totals_having_constants.reference b/tests/queries/0_stateless/00016_totals_having_constants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00016_totals_having_constants.reference rename to tests/queries/0_stateless/00016_totals_having_constants.reference diff --git a/dbms/tests/queries/0_stateless/00016_totals_having_constants.sql b/tests/queries/0_stateless/00016_totals_having_constants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00016_totals_having_constants.sql rename to tests/queries/0_stateless/00016_totals_having_constants.sql diff --git a/dbms/tests/queries/0_stateless/00017_in_subquery_with_empty_result.reference b/tests/queries/0_stateless/00017_in_subquery_with_empty_result.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00017_in_subquery_with_empty_result.reference rename to tests/queries/0_stateless/00017_in_subquery_with_empty_result.reference diff --git a/dbms/tests/queries/0_stateless/00017_in_subquery_with_empty_result.sql b/tests/queries/0_stateless/00017_in_subquery_with_empty_result.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00017_in_subquery_with_empty_result.sql rename to tests/queries/0_stateless/00017_in_subquery_with_empty_result.sql diff --git a/dbms/tests/queries/0_stateless/00018_distinct_in_subquery.reference b/tests/queries/0_stateless/00018_distinct_in_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00018_distinct_in_subquery.reference rename to tests/queries/0_stateless/00018_distinct_in_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00018_distinct_in_subquery.sql b/tests/queries/0_stateless/00018_distinct_in_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00018_distinct_in_subquery.sql rename to tests/queries/0_stateless/00018_distinct_in_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00019_shard_quantiles_totals_distributed.reference b/tests/queries/0_stateless/00019_shard_quantiles_totals_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00019_shard_quantiles_totals_distributed.reference rename to tests/queries/0_stateless/00019_shard_quantiles_totals_distributed.reference diff --git a/dbms/tests/queries/0_stateless/00019_shard_quantiles_totals_distributed.sql b/tests/queries/0_stateless/00019_shard_quantiles_totals_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00019_shard_quantiles_totals_distributed.sql rename to tests/queries/0_stateless/00019_shard_quantiles_totals_distributed.sql diff --git a/dbms/tests/queries/0_stateless/00020_sorting_arrays.reference b/tests/queries/0_stateless/00020_sorting_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00020_sorting_arrays.reference rename to tests/queries/0_stateless/00020_sorting_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00020_sorting_arrays.sql b/tests/queries/0_stateless/00020_sorting_arrays.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00020_sorting_arrays.sql rename to tests/queries/0_stateless/00020_sorting_arrays.sql diff --git a/dbms/tests/queries/0_stateless/00021_sorting_arrays.reference b/tests/queries/0_stateless/00021_sorting_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00021_sorting_arrays.reference rename to tests/queries/0_stateless/00021_sorting_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00021_sorting_arrays.sql b/tests/queries/0_stateless/00021_sorting_arrays.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00021_sorting_arrays.sql rename to tests/queries/0_stateless/00021_sorting_arrays.sql diff --git a/dbms/tests/queries/0_stateless/00022_func_higher_order_and_constants.reference b/tests/queries/0_stateless/00022_func_higher_order_and_constants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00022_func_higher_order_and_constants.reference rename to tests/queries/0_stateless/00022_func_higher_order_and_constants.reference diff --git a/dbms/tests/queries/0_stateless/00022_func_higher_order_and_constants.sql b/tests/queries/0_stateless/00022_func_higher_order_and_constants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00022_func_higher_order_and_constants.sql rename to tests/queries/0_stateless/00022_func_higher_order_and_constants.sql diff --git a/dbms/tests/queries/0_stateless/00023_agg_select_agg_subquery.reference b/tests/queries/0_stateless/00023_agg_select_agg_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00023_agg_select_agg_subquery.reference rename to tests/queries/0_stateless/00023_agg_select_agg_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00023_agg_select_agg_subquery.sql b/tests/queries/0_stateless/00023_agg_select_agg_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00023_agg_select_agg_subquery.sql rename to tests/queries/0_stateless/00023_agg_select_agg_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00024_unused_array_join_in_subquery.reference b/tests/queries/0_stateless/00024_unused_array_join_in_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00024_unused_array_join_in_subquery.reference rename to tests/queries/0_stateless/00024_unused_array_join_in_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00024_unused_array_join_in_subquery.sql b/tests/queries/0_stateless/00024_unused_array_join_in_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00024_unused_array_join_in_subquery.sql rename to tests/queries/0_stateless/00024_unused_array_join_in_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00025_implicitly_used_subquery_column.reference b/tests/queries/0_stateless/00025_implicitly_used_subquery_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00025_implicitly_used_subquery_column.reference rename to tests/queries/0_stateless/00025_implicitly_used_subquery_column.reference diff --git a/dbms/tests/queries/0_stateless/00025_implicitly_used_subquery_column.sql b/tests/queries/0_stateless/00025_implicitly_used_subquery_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00025_implicitly_used_subquery_column.sql rename to tests/queries/0_stateless/00025_implicitly_used_subquery_column.sql diff --git a/dbms/tests/queries/0_stateless/00026_shard_something_distributed.reference b/tests/queries/0_stateless/00026_shard_something_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00026_shard_something_distributed.reference rename to tests/queries/0_stateless/00026_shard_something_distributed.reference diff --git a/dbms/tests/queries/0_stateless/00026_shard_something_distributed.sql b/tests/queries/0_stateless/00026_shard_something_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00026_shard_something_distributed.sql rename to tests/queries/0_stateless/00026_shard_something_distributed.sql diff --git a/dbms/tests/queries/0_stateless/00027_distinct_and_order_by.reference b/tests/queries/0_stateless/00027_distinct_and_order_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00027_distinct_and_order_by.reference rename to tests/queries/0_stateless/00027_distinct_and_order_by.reference diff --git a/dbms/tests/queries/0_stateless/00027_distinct_and_order_by.sql b/tests/queries/0_stateless/00027_distinct_and_order_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00027_distinct_and_order_by.sql rename to tests/queries/0_stateless/00027_distinct_and_order_by.sql diff --git a/dbms/tests/queries/0_stateless/00027_simple_argMinArray.reference b/tests/queries/0_stateless/00027_simple_argMinArray.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00027_simple_argMinArray.reference rename to tests/queries/0_stateless/00027_simple_argMinArray.reference diff --git a/dbms/tests/queries/0_stateless/00027_simple_argMinArray.sql b/tests/queries/0_stateless/00027_simple_argMinArray.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00027_simple_argMinArray.sql rename to tests/queries/0_stateless/00027_simple_argMinArray.sql diff --git a/dbms/tests/queries/0_stateless/00028_shard_big_agg_aj_distributed.reference b/tests/queries/0_stateless/00028_shard_big_agg_aj_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00028_shard_big_agg_aj_distributed.reference rename to tests/queries/0_stateless/00028_shard_big_agg_aj_distributed.reference diff --git a/dbms/tests/queries/0_stateless/00028_shard_big_agg_aj_distributed.sql b/tests/queries/0_stateless/00028_shard_big_agg_aj_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00028_shard_big_agg_aj_distributed.sql rename to tests/queries/0_stateless/00028_shard_big_agg_aj_distributed.sql diff --git a/dbms/tests/queries/0_stateless/00029_test_zookeeper_optimize_exception.reference b/tests/queries/0_stateless/00029_test_zookeeper_optimize_exception.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00029_test_zookeeper_optimize_exception.reference rename to tests/queries/0_stateless/00029_test_zookeeper_optimize_exception.reference diff --git a/dbms/tests/queries/0_stateless/00029_test_zookeeper_optimize_exception.sh b/tests/queries/0_stateless/00029_test_zookeeper_optimize_exception.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00029_test_zookeeper_optimize_exception.sh rename to tests/queries/0_stateless/00029_test_zookeeper_optimize_exception.sh diff --git a/dbms/tests/queries/0_stateless/00030_alter_table.reference b/tests/queries/0_stateless/00030_alter_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00030_alter_table.reference rename to tests/queries/0_stateless/00030_alter_table.reference diff --git a/dbms/tests/queries/0_stateless/00030_alter_table.sql b/tests/queries/0_stateless/00030_alter_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00030_alter_table.sql rename to tests/queries/0_stateless/00030_alter_table.sql diff --git a/dbms/tests/queries/0_stateless/00031_parser_number.reference b/tests/queries/0_stateless/00031_parser_number.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00031_parser_number.reference rename to tests/queries/0_stateless/00031_parser_number.reference diff --git a/dbms/tests/queries/0_stateless/00031_parser_number.sql b/tests/queries/0_stateless/00031_parser_number.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00031_parser_number.sql rename to tests/queries/0_stateless/00031_parser_number.sql diff --git a/dbms/tests/queries/0_stateless/00032_fixed_string_to_string.reference b/tests/queries/0_stateless/00032_fixed_string_to_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00032_fixed_string_to_string.reference rename to tests/queries/0_stateless/00032_fixed_string_to_string.reference diff --git a/dbms/tests/queries/0_stateless/00032_fixed_string_to_string.sql b/tests/queries/0_stateless/00032_fixed_string_to_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00032_fixed_string_to_string.sql rename to tests/queries/0_stateless/00032_fixed_string_to_string.sql diff --git a/dbms/tests/queries/0_stateless/00033_fixed_string_to_string.reference b/tests/queries/0_stateless/00033_fixed_string_to_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00033_fixed_string_to_string.reference rename to tests/queries/0_stateless/00033_fixed_string_to_string.reference diff --git a/dbms/tests/queries/0_stateless/00033_fixed_string_to_string.sql b/tests/queries/0_stateless/00033_fixed_string_to_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00033_fixed_string_to_string.sql rename to tests/queries/0_stateless/00033_fixed_string_to_string.sql diff --git a/dbms/tests/queries/0_stateless/00034_fixed_string_to_number.reference b/tests/queries/0_stateless/00034_fixed_string_to_number.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00034_fixed_string_to_number.reference rename to tests/queries/0_stateless/00034_fixed_string_to_number.reference diff --git a/dbms/tests/queries/0_stateless/00034_fixed_string_to_number.sql b/tests/queries/0_stateless/00034_fixed_string_to_number.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00034_fixed_string_to_number.sql rename to tests/queries/0_stateless/00034_fixed_string_to_number.sql diff --git a/dbms/tests/queries/0_stateless/00035_function_array_return_type.reference b/tests/queries/0_stateless/00035_function_array_return_type.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00035_function_array_return_type.reference rename to tests/queries/0_stateless/00035_function_array_return_type.reference diff --git a/dbms/tests/queries/0_stateless/00035_function_array_return_type.sql b/tests/queries/0_stateless/00035_function_array_return_type.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00035_function_array_return_type.sql rename to tests/queries/0_stateless/00035_function_array_return_type.sql diff --git a/dbms/tests/queries/0_stateless/00036_array_element.reference b/tests/queries/0_stateless/00036_array_element.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00036_array_element.reference rename to tests/queries/0_stateless/00036_array_element.reference diff --git a/dbms/tests/queries/0_stateless/00036_array_element.sql b/tests/queries/0_stateless/00036_array_element.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00036_array_element.sql rename to tests/queries/0_stateless/00036_array_element.sql diff --git a/dbms/tests/queries/0_stateless/00037_totals_limit.reference b/tests/queries/0_stateless/00037_totals_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00037_totals_limit.reference rename to tests/queries/0_stateless/00037_totals_limit.reference diff --git a/dbms/tests/queries/0_stateless/00037_totals_limit.sql b/tests/queries/0_stateless/00037_totals_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00037_totals_limit.sql rename to tests/queries/0_stateless/00037_totals_limit.sql diff --git a/dbms/tests/queries/0_stateless/00038_totals_limit.reference b/tests/queries/0_stateless/00038_totals_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00038_totals_limit.reference rename to tests/queries/0_stateless/00038_totals_limit.reference diff --git a/dbms/tests/queries/0_stateless/00038_totals_limit.sql b/tests/queries/0_stateless/00038_totals_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00038_totals_limit.sql rename to tests/queries/0_stateless/00038_totals_limit.sql diff --git a/dbms/tests/queries/0_stateless/00039_inserts_through_http.reference b/tests/queries/0_stateless/00039_inserts_through_http.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00039_inserts_through_http.reference rename to tests/queries/0_stateless/00039_inserts_through_http.reference diff --git a/dbms/tests/queries/0_stateless/00039_inserts_through_http.sh b/tests/queries/0_stateless/00039_inserts_through_http.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00039_inserts_through_http.sh rename to tests/queries/0_stateless/00039_inserts_through_http.sh diff --git a/dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.reference b/tests/queries/0_stateless/00040_array_enumerate_uniq.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.reference rename to tests/queries/0_stateless/00040_array_enumerate_uniq.reference diff --git a/dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.sql b/tests/queries/0_stateless/00040_array_enumerate_uniq.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00040_array_enumerate_uniq.sql rename to tests/queries/0_stateless/00040_array_enumerate_uniq.sql diff --git a/dbms/tests/queries/0_stateless/00041_aggregation_remap.reference b/tests/queries/0_stateless/00041_aggregation_remap.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00041_aggregation_remap.reference rename to tests/queries/0_stateless/00041_aggregation_remap.reference diff --git a/dbms/tests/queries/0_stateless/00041_aggregation_remap.sql b/tests/queries/0_stateless/00041_aggregation_remap.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00041_aggregation_remap.sql rename to tests/queries/0_stateless/00041_aggregation_remap.sql diff --git a/dbms/tests/queries/0_stateless/00041_big_array_join.reference b/tests/queries/0_stateless/00041_big_array_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00041_big_array_join.reference rename to tests/queries/0_stateless/00041_big_array_join.reference diff --git a/dbms/tests/queries/0_stateless/00041_big_array_join.sql b/tests/queries/0_stateless/00041_big_array_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00041_big_array_join.sql rename to tests/queries/0_stateless/00041_big_array_join.sql diff --git a/dbms/tests/queries/0_stateless/00042_set.reference b/tests/queries/0_stateless/00042_set.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00042_set.reference rename to tests/queries/0_stateless/00042_set.reference diff --git a/dbms/tests/queries/0_stateless/00042_set.sql b/tests/queries/0_stateless/00042_set.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00042_set.sql rename to tests/queries/0_stateless/00042_set.sql diff --git a/dbms/tests/queries/0_stateless/00043_summing_empty_part.reference b/tests/queries/0_stateless/00043_summing_empty_part.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00043_summing_empty_part.reference rename to tests/queries/0_stateless/00043_summing_empty_part.reference diff --git a/dbms/tests/queries/0_stateless/00043_summing_empty_part.sql b/tests/queries/0_stateless/00043_summing_empty_part.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00043_summing_empty_part.sql rename to tests/queries/0_stateless/00043_summing_empty_part.sql diff --git a/dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.reference b/tests/queries/0_stateless/00044_sorting_by_string_descending.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.reference rename to tests/queries/0_stateless/00044_sorting_by_string_descending.reference diff --git a/dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.sql b/tests/queries/0_stateless/00044_sorting_by_string_descending.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00044_sorting_by_string_descending.sql rename to tests/queries/0_stateless/00044_sorting_by_string_descending.sql diff --git a/dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.reference b/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.reference rename to tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.reference diff --git a/dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.sql b/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.sql rename to tests/queries/0_stateless/00045_sorting_by_fixed_string_descending.sql diff --git a/dbms/tests/queries/0_stateless/00046_stored_aggregates_simple.reference b/tests/queries/0_stateless/00046_stored_aggregates_simple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00046_stored_aggregates_simple.reference rename to tests/queries/0_stateless/00046_stored_aggregates_simple.reference diff --git a/dbms/tests/queries/0_stateless/00046_stored_aggregates_simple.sql b/tests/queries/0_stateless/00046_stored_aggregates_simple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00046_stored_aggregates_simple.sql rename to tests/queries/0_stateless/00046_stored_aggregates_simple.sql diff --git a/dbms/tests/queries/0_stateless/00047_stored_aggregates_complex.reference b/tests/queries/0_stateless/00047_stored_aggregates_complex.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00047_stored_aggregates_complex.reference rename to tests/queries/0_stateless/00047_stored_aggregates_complex.reference diff --git a/dbms/tests/queries/0_stateless/00047_stored_aggregates_complex.sql b/tests/queries/0_stateless/00047_stored_aggregates_complex.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00047_stored_aggregates_complex.sql rename to tests/queries/0_stateless/00047_stored_aggregates_complex.sql diff --git a/dbms/tests/queries/0_stateless/00048_a_stored_aggregates_merge.reference b/tests/queries/0_stateless/00048_a_stored_aggregates_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00048_a_stored_aggregates_merge.reference rename to tests/queries/0_stateless/00048_a_stored_aggregates_merge.reference diff --git a/dbms/tests/queries/0_stateless/00048_a_stored_aggregates_merge.sql b/tests/queries/0_stateless/00048_a_stored_aggregates_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00048_a_stored_aggregates_merge.sql rename to tests/queries/0_stateless/00048_a_stored_aggregates_merge.sql diff --git a/dbms/tests/queries/0_stateless/00048_b_stored_aggregates_merge.reference b/tests/queries/0_stateless/00048_b_stored_aggregates_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00048_b_stored_aggregates_merge.reference rename to tests/queries/0_stateless/00048_b_stored_aggregates_merge.reference diff --git a/dbms/tests/queries/0_stateless/00048_b_stored_aggregates_merge.sql b/tests/queries/0_stateless/00048_b_stored_aggregates_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00048_b_stored_aggregates_merge.sql rename to tests/queries/0_stateless/00048_b_stored_aggregates_merge.sql diff --git a/dbms/tests/queries/0_stateless/00049_any_left_join.reference b/tests/queries/0_stateless/00049_any_left_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00049_any_left_join.reference rename to tests/queries/0_stateless/00049_any_left_join.reference diff --git a/dbms/tests/queries/0_stateless/00049_any_left_join.sql b/tests/queries/0_stateless/00049_any_left_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00049_any_left_join.sql rename to tests/queries/0_stateless/00049_any_left_join.sql diff --git a/dbms/tests/queries/0_stateless/00050_any_left_join.reference b/tests/queries/0_stateless/00050_any_left_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00050_any_left_join.reference rename to tests/queries/0_stateless/00050_any_left_join.reference diff --git a/dbms/tests/queries/0_stateless/00050_any_left_join.sql b/tests/queries/0_stateless/00050_any_left_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00050_any_left_join.sql rename to tests/queries/0_stateless/00050_any_left_join.sql diff --git a/dbms/tests/queries/0_stateless/00051_any_inner_join.reference b/tests/queries/0_stateless/00051_any_inner_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00051_any_inner_join.reference rename to tests/queries/0_stateless/00051_any_inner_join.reference diff --git a/dbms/tests/queries/0_stateless/00051_any_inner_join.sql b/tests/queries/0_stateless/00051_any_inner_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00051_any_inner_join.sql rename to tests/queries/0_stateless/00051_any_inner_join.sql diff --git a/dbms/tests/queries/0_stateless/00052_all_left_join.reference b/tests/queries/0_stateless/00052_all_left_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00052_all_left_join.reference rename to tests/queries/0_stateless/00052_all_left_join.reference diff --git a/dbms/tests/queries/0_stateless/00052_all_left_join.sql b/tests/queries/0_stateless/00052_all_left_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00052_all_left_join.sql rename to tests/queries/0_stateless/00052_all_left_join.sql diff --git a/dbms/tests/queries/0_stateless/00053_all_inner_join.reference b/tests/queries/0_stateless/00053_all_inner_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00053_all_inner_join.reference rename to tests/queries/0_stateless/00053_all_inner_join.reference diff --git a/dbms/tests/queries/0_stateless/00053_all_inner_join.sql b/tests/queries/0_stateless/00053_all_inner_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00053_all_inner_join.sql rename to tests/queries/0_stateless/00053_all_inner_join.sql diff --git a/dbms/tests/queries/0_stateless/00054_join_string.reference b/tests/queries/0_stateless/00054_join_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00054_join_string.reference rename to tests/queries/0_stateless/00054_join_string.reference diff --git a/dbms/tests/queries/0_stateless/00054_join_string.sql b/tests/queries/0_stateless/00054_join_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00054_join_string.sql rename to tests/queries/0_stateless/00054_join_string.sql diff --git a/dbms/tests/queries/0_stateless/00055_join_two_numbers.reference b/tests/queries/0_stateless/00055_join_two_numbers.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00055_join_two_numbers.reference rename to tests/queries/0_stateless/00055_join_two_numbers.reference diff --git a/dbms/tests/queries/0_stateless/00055_join_two_numbers.sql b/tests/queries/0_stateless/00055_join_two_numbers.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00055_join_two_numbers.sql rename to tests/queries/0_stateless/00055_join_two_numbers.sql diff --git a/dbms/tests/queries/0_stateless/00056_join_number_string.reference b/tests/queries/0_stateless/00056_join_number_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00056_join_number_string.reference rename to tests/queries/0_stateless/00056_join_number_string.reference diff --git a/dbms/tests/queries/0_stateless/00056_join_number_string.sql b/tests/queries/0_stateless/00056_join_number_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00056_join_number_string.sql rename to tests/queries/0_stateless/00056_join_number_string.sql diff --git a/dbms/tests/queries/0_stateless/00057_join_aliases.reference b/tests/queries/0_stateless/00057_join_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00057_join_aliases.reference rename to tests/queries/0_stateless/00057_join_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00057_join_aliases.sql b/tests/queries/0_stateless/00057_join_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00057_join_aliases.sql rename to tests/queries/0_stateless/00057_join_aliases.sql diff --git a/dbms/tests/queries/0_stateless/00059_shard_global_in.reference b/tests/queries/0_stateless/00059_shard_global_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00059_shard_global_in.reference rename to tests/queries/0_stateless/00059_shard_global_in.reference diff --git a/dbms/tests/queries/0_stateless/00059_shard_global_in.sql b/tests/queries/0_stateless/00059_shard_global_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00059_shard_global_in.sql rename to tests/queries/0_stateless/00059_shard_global_in.sql diff --git a/dbms/tests/queries/0_stateless/00060_date_lut.reference b/tests/queries/0_stateless/00060_date_lut.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00060_date_lut.reference rename to tests/queries/0_stateless/00060_date_lut.reference diff --git a/dbms/tests/queries/0_stateless/00060_date_lut.sql b/tests/queries/0_stateless/00060_date_lut.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00060_date_lut.sql rename to tests/queries/0_stateless/00060_date_lut.sql diff --git a/dbms/tests/queries/0_stateless/00061_merge_tree_alter.reference b/tests/queries/0_stateless/00061_merge_tree_alter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00061_merge_tree_alter.reference rename to tests/queries/0_stateless/00061_merge_tree_alter.reference diff --git a/dbms/tests/queries/0_stateless/00061_merge_tree_alter.sql b/tests/queries/0_stateless/00061_merge_tree_alter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00061_merge_tree_alter.sql rename to tests/queries/0_stateless/00061_merge_tree_alter.sql diff --git a/dbms/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.reference b/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.reference rename to tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.sql b/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.sql rename to tests/queries/0_stateless/00062_replicated_merge_tree_alter_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00063_check_query.reference b/tests/queries/0_stateless/00063_check_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00063_check_query.reference rename to tests/queries/0_stateless/00063_check_query.reference diff --git a/dbms/tests/queries/0_stateless/00063_check_query.sql b/tests/queries/0_stateless/00063_check_query.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00063_check_query.sql rename to tests/queries/0_stateless/00063_check_query.sql diff --git a/dbms/tests/queries/0_stateless/00064_negate_bug.reference b/tests/queries/0_stateless/00064_negate_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00064_negate_bug.reference rename to tests/queries/0_stateless/00064_negate_bug.reference diff --git a/dbms/tests/queries/0_stateless/00064_negate_bug.sql b/tests/queries/0_stateless/00064_negate_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00064_negate_bug.sql rename to tests/queries/0_stateless/00064_negate_bug.sql diff --git a/dbms/tests/queries/0_stateless/00065_shard_float_literals_formatting.reference b/tests/queries/0_stateless/00065_shard_float_literals_formatting.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00065_shard_float_literals_formatting.reference rename to tests/queries/0_stateless/00065_shard_float_literals_formatting.reference diff --git a/dbms/tests/queries/0_stateless/00065_shard_float_literals_formatting.sql b/tests/queries/0_stateless/00065_shard_float_literals_formatting.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00065_shard_float_literals_formatting.sql rename to tests/queries/0_stateless/00065_shard_float_literals_formatting.sql diff --git a/dbms/tests/queries/0_stateless/00066_group_by_in.reference b/tests/queries/0_stateless/00066_group_by_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00066_group_by_in.reference rename to tests/queries/0_stateless/00066_group_by_in.reference diff --git a/dbms/tests/queries/0_stateless/00066_group_by_in.sql b/tests/queries/0_stateless/00066_group_by_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00066_group_by_in.sql rename to tests/queries/0_stateless/00066_group_by_in.sql diff --git a/dbms/tests/queries/0_stateless/00067_replicate_segfault.reference b/tests/queries/0_stateless/00067_replicate_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00067_replicate_segfault.reference rename to tests/queries/0_stateless/00067_replicate_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00067_replicate_segfault.sql b/tests/queries/0_stateless/00067_replicate_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00067_replicate_segfault.sql rename to tests/queries/0_stateless/00067_replicate_segfault.sql diff --git a/dbms/tests/queries/0_stateless/00068_empty_tiny_log.reference b/tests/queries/0_stateless/00068_empty_tiny_log.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00068_empty_tiny_log.reference rename to tests/queries/0_stateless/00068_empty_tiny_log.reference diff --git a/dbms/tests/queries/0_stateless/00068_empty_tiny_log.sql b/tests/queries/0_stateless/00068_empty_tiny_log.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00068_empty_tiny_log.sql rename to tests/queries/0_stateless/00068_empty_tiny_log.sql diff --git a/dbms/tests/queries/0_stateless/00069_date_arithmetic.reference b/tests/queries/0_stateless/00069_date_arithmetic.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00069_date_arithmetic.reference rename to tests/queries/0_stateless/00069_date_arithmetic.reference diff --git a/dbms/tests/queries/0_stateless/00069_date_arithmetic.sql b/tests/queries/0_stateless/00069_date_arithmetic.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00069_date_arithmetic.sql rename to tests/queries/0_stateless/00069_date_arithmetic.sql diff --git a/dbms/tests/queries/0_stateless/00070_insert_fewer_columns_http.reference b/tests/queries/0_stateless/00070_insert_fewer_columns_http.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00070_insert_fewer_columns_http.reference rename to tests/queries/0_stateless/00070_insert_fewer_columns_http.reference diff --git a/dbms/tests/queries/0_stateless/00070_insert_fewer_columns_http.sh b/tests/queries/0_stateless/00070_insert_fewer_columns_http.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00070_insert_fewer_columns_http.sh rename to tests/queries/0_stateless/00070_insert_fewer_columns_http.sh diff --git a/dbms/tests/queries/0_stateless/00071_insert_fewer_columns.reference b/tests/queries/0_stateless/00071_insert_fewer_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00071_insert_fewer_columns.reference rename to tests/queries/0_stateless/00071_insert_fewer_columns.reference diff --git a/dbms/tests/queries/0_stateless/00071_insert_fewer_columns.sql b/tests/queries/0_stateless/00071_insert_fewer_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00071_insert_fewer_columns.sql rename to tests/queries/0_stateless/00071_insert_fewer_columns.sql diff --git a/dbms/tests/queries/0_stateless/00072_in_types.reference b/tests/queries/0_stateless/00072_in_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00072_in_types.reference rename to tests/queries/0_stateless/00072_in_types.reference diff --git a/dbms/tests/queries/0_stateless/00072_in_types.sql b/tests/queries/0_stateless/00072_in_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00072_in_types.sql rename to tests/queries/0_stateless/00072_in_types.sql diff --git a/dbms/tests/queries/0_stateless/00073_merge_sorting_empty_array_joined.reference b/tests/queries/0_stateless/00073_merge_sorting_empty_array_joined.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00073_merge_sorting_empty_array_joined.reference rename to tests/queries/0_stateless/00073_merge_sorting_empty_array_joined.reference diff --git a/dbms/tests/queries/0_stateless/00073_merge_sorting_empty_array_joined.sql b/tests/queries/0_stateless/00073_merge_sorting_empty_array_joined.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00073_merge_sorting_empty_array_joined.sql rename to tests/queries/0_stateless/00073_merge_sorting_empty_array_joined.sql diff --git a/dbms/tests/queries/0_stateless/00075_shard_formatting_negate_of_negative_literal.reference b/tests/queries/0_stateless/00075_shard_formatting_negate_of_negative_literal.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00075_shard_formatting_negate_of_negative_literal.reference rename to tests/queries/0_stateless/00075_shard_formatting_negate_of_negative_literal.reference diff --git a/dbms/tests/queries/0_stateless/00075_shard_formatting_negate_of_negative_literal.sql b/tests/queries/0_stateless/00075_shard_formatting_negate_of_negative_literal.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00075_shard_formatting_negate_of_negative_literal.sql rename to tests/queries/0_stateless/00075_shard_formatting_negate_of_negative_literal.sql diff --git a/dbms/tests/queries/0_stateless/00076_ip_coding_functions.reference b/tests/queries/0_stateless/00076_ip_coding_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00076_ip_coding_functions.reference rename to tests/queries/0_stateless/00076_ip_coding_functions.reference diff --git a/dbms/tests/queries/0_stateless/00076_ip_coding_functions.sql b/tests/queries/0_stateless/00076_ip_coding_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00076_ip_coding_functions.sql rename to tests/queries/0_stateless/00076_ip_coding_functions.sql diff --git a/dbms/tests/queries/0_stateless/00077_set_keys_fit_128_bits_many_blocks.reference b/tests/queries/0_stateless/00077_set_keys_fit_128_bits_many_blocks.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00077_set_keys_fit_128_bits_many_blocks.reference rename to tests/queries/0_stateless/00077_set_keys_fit_128_bits_many_blocks.reference diff --git a/dbms/tests/queries/0_stateless/00077_set_keys_fit_128_bits_many_blocks.sql b/tests/queries/0_stateless/00077_set_keys_fit_128_bits_many_blocks.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00077_set_keys_fit_128_bits_many_blocks.sql rename to tests/queries/0_stateless/00077_set_keys_fit_128_bits_many_blocks.sql diff --git a/dbms/tests/queries/0_stateless/00078_string_concat.reference b/tests/queries/0_stateless/00078_string_concat.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00078_string_concat.reference rename to tests/queries/0_stateless/00078_string_concat.reference diff --git a/dbms/tests/queries/0_stateless/00078_string_concat.sql b/tests/queries/0_stateless/00078_string_concat.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00078_string_concat.sql rename to tests/queries/0_stateless/00078_string_concat.sql diff --git a/dbms/tests/queries/0_stateless/00079_defaulted_columns.reference b/tests/queries/0_stateless/00079_defaulted_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00079_defaulted_columns.reference rename to tests/queries/0_stateless/00079_defaulted_columns.reference diff --git a/dbms/tests/queries/0_stateless/00079_defaulted_columns.sql b/tests/queries/0_stateless/00079_defaulted_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00079_defaulted_columns.sql rename to tests/queries/0_stateless/00079_defaulted_columns.sql diff --git a/dbms/tests/queries/0_stateless/00080_show_tables_and_system_tables.reference b/tests/queries/0_stateless/00080_show_tables_and_system_tables.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00080_show_tables_and_system_tables.reference rename to tests/queries/0_stateless/00080_show_tables_and_system_tables.reference diff --git a/dbms/tests/queries/0_stateless/00080_show_tables_and_system_tables.sql b/tests/queries/0_stateless/00080_show_tables_and_system_tables.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00080_show_tables_and_system_tables.sql rename to tests/queries/0_stateless/00080_show_tables_and_system_tables.sql diff --git a/dbms/tests/queries/0_stateless/00081_int_div_or_zero.reference b/tests/queries/0_stateless/00081_int_div_or_zero.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00081_int_div_or_zero.reference rename to tests/queries/0_stateless/00081_int_div_or_zero.reference diff --git a/dbms/tests/queries/0_stateless/00081_int_div_or_zero.sql b/tests/queries/0_stateless/00081_int_div_or_zero.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00081_int_div_or_zero.sql rename to tests/queries/0_stateless/00081_int_div_or_zero.sql diff --git a/dbms/tests/queries/0_stateless/00082_append_trailing_char_if_absent.reference b/tests/queries/0_stateless/00082_append_trailing_char_if_absent.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00082_append_trailing_char_if_absent.reference rename to tests/queries/0_stateless/00082_append_trailing_char_if_absent.reference diff --git a/dbms/tests/queries/0_stateless/00082_append_trailing_char_if_absent.sql b/tests/queries/0_stateless/00082_append_trailing_char_if_absent.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00082_append_trailing_char_if_absent.sql rename to tests/queries/0_stateless/00082_append_trailing_char_if_absent.sql diff --git a/dbms/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.reference b/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.reference rename to tests/queries/0_stateless/00083_create_merge_tree_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.sql b/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00083_create_merge_tree_zookeeper.sql rename to tests/queries/0_stateless/00083_create_merge_tree_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00084_summing_merge_tree.reference b/tests/queries/0_stateless/00084_summing_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00084_summing_merge_tree.reference rename to tests/queries/0_stateless/00084_summing_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00084_summing_merge_tree.sql b/tests/queries/0_stateless/00084_summing_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00084_summing_merge_tree.sql rename to tests/queries/0_stateless/00084_summing_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00085_visible_width_of_tuple_of_dates.reference b/tests/queries/0_stateless/00085_visible_width_of_tuple_of_dates.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00085_visible_width_of_tuple_of_dates.reference rename to tests/queries/0_stateless/00085_visible_width_of_tuple_of_dates.reference diff --git a/dbms/tests/queries/0_stateless/00085_visible_width_of_tuple_of_dates.sql b/tests/queries/0_stateless/00085_visible_width_of_tuple_of_dates.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00085_visible_width_of_tuple_of_dates.sql rename to tests/queries/0_stateless/00085_visible_width_of_tuple_of_dates.sql diff --git a/dbms/tests/queries/0_stateless/00086_concat_nary_const_with_nonconst_segfault.reference b/tests/queries/0_stateless/00086_concat_nary_const_with_nonconst_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00086_concat_nary_const_with_nonconst_segfault.reference rename to tests/queries/0_stateless/00086_concat_nary_const_with_nonconst_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00086_concat_nary_const_with_nonconst_segfault.sql b/tests/queries/0_stateless/00086_concat_nary_const_with_nonconst_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00086_concat_nary_const_with_nonconst_segfault.sql rename to tests/queries/0_stateless/00086_concat_nary_const_with_nonconst_segfault.sql diff --git a/dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.reference b/tests/queries/0_stateless/00087_distinct_of_empty_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.reference rename to tests/queries/0_stateless/00087_distinct_of_empty_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.sql b/tests/queries/0_stateless/00087_distinct_of_empty_arrays.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00087_distinct_of_empty_arrays.sql rename to tests/queries/0_stateless/00087_distinct_of_empty_arrays.sql diff --git a/dbms/tests/queries/0_stateless/00087_math_functions.reference b/tests/queries/0_stateless/00087_math_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00087_math_functions.reference rename to tests/queries/0_stateless/00087_math_functions.reference diff --git a/dbms/tests/queries/0_stateless/00087_math_functions.sql b/tests/queries/0_stateless/00087_math_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00087_math_functions.sql rename to tests/queries/0_stateless/00087_math_functions.sql diff --git a/dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.reference b/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.reference rename to tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.reference diff --git a/dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.sql b/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.sql rename to tests/queries/0_stateless/00088_distinct_of_arrays_of_strings.sql diff --git a/dbms/tests/queries/0_stateless/00089_group_by_arrays_of_fixed.reference b/tests/queries/0_stateless/00089_group_by_arrays_of_fixed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00089_group_by_arrays_of_fixed.reference rename to tests/queries/0_stateless/00089_group_by_arrays_of_fixed.reference diff --git a/dbms/tests/queries/0_stateless/00089_group_by_arrays_of_fixed.sql b/tests/queries/0_stateless/00089_group_by_arrays_of_fixed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00089_group_by_arrays_of_fixed.sql rename to tests/queries/0_stateless/00089_group_by_arrays_of_fixed.sql diff --git a/dbms/tests/queries/0_stateless/00090_union_race_conditions_1.reference b/tests/queries/0_stateless/00090_union_race_conditions_1.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00090_union_race_conditions_1.reference rename to tests/queries/0_stateless/00090_union_race_conditions_1.reference diff --git a/dbms/tests/queries/0_stateless/00090_union_race_conditions_1.sh b/tests/queries/0_stateless/00090_union_race_conditions_1.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00090_union_race_conditions_1.sh rename to tests/queries/0_stateless/00090_union_race_conditions_1.sh diff --git a/dbms/tests/queries/0_stateless/00091_union_race_conditions_2.reference b/tests/queries/0_stateless/00091_union_race_conditions_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00091_union_race_conditions_2.reference rename to tests/queries/0_stateless/00091_union_race_conditions_2.reference diff --git a/dbms/tests/queries/0_stateless/00091_union_race_conditions_2.sh b/tests/queries/0_stateless/00091_union_race_conditions_2.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00091_union_race_conditions_2.sh rename to tests/queries/0_stateless/00091_union_race_conditions_2.sh diff --git a/dbms/tests/queries/0_stateless/00092_union_race_conditions_3.reference b/tests/queries/0_stateless/00092_union_race_conditions_3.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00092_union_race_conditions_3.reference rename to tests/queries/0_stateless/00092_union_race_conditions_3.reference diff --git a/dbms/tests/queries/0_stateless/00092_union_race_conditions_3.sh b/tests/queries/0_stateless/00092_union_race_conditions_3.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00092_union_race_conditions_3.sh rename to tests/queries/0_stateless/00092_union_race_conditions_3.sh diff --git a/dbms/tests/queries/0_stateless/00093_union_race_conditions_4.reference b/tests/queries/0_stateless/00093_union_race_conditions_4.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00093_union_race_conditions_4.reference rename to tests/queries/0_stateless/00093_union_race_conditions_4.reference diff --git a/dbms/tests/queries/0_stateless/00093_union_race_conditions_4.sh b/tests/queries/0_stateless/00093_union_race_conditions_4.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00093_union_race_conditions_4.sh rename to tests/queries/0_stateless/00093_union_race_conditions_4.sh diff --git a/dbms/tests/queries/0_stateless/00094_union_race_conditions_5.reference b/tests/queries/0_stateless/00094_union_race_conditions_5.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00094_union_race_conditions_5.reference rename to tests/queries/0_stateless/00094_union_race_conditions_5.reference diff --git a/dbms/tests/queries/0_stateless/00094_union_race_conditions_5.sh b/tests/queries/0_stateless/00094_union_race_conditions_5.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00094_union_race_conditions_5.sh rename to tests/queries/0_stateless/00094_union_race_conditions_5.sh diff --git a/dbms/tests/queries/0_stateless/00096_aggregation_min_if.reference b/tests/queries/0_stateless/00096_aggregation_min_if.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00096_aggregation_min_if.reference rename to tests/queries/0_stateless/00096_aggregation_min_if.reference diff --git a/dbms/tests/queries/0_stateless/00096_aggregation_min_if.sql b/tests/queries/0_stateless/00096_aggregation_min_if.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00096_aggregation_min_if.sql rename to tests/queries/0_stateless/00096_aggregation_min_if.sql diff --git a/dbms/tests/queries/0_stateless/00097_long_storage_buffer_race_condition.reference b/tests/queries/0_stateless/00097_long_storage_buffer_race_condition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00097_long_storage_buffer_race_condition.reference rename to tests/queries/0_stateless/00097_long_storage_buffer_race_condition.reference diff --git a/dbms/tests/queries/0_stateless/00097_long_storage_buffer_race_condition.sh b/tests/queries/0_stateless/00097_long_storage_buffer_race_condition.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00097_long_storage_buffer_race_condition.sh rename to tests/queries/0_stateless/00097_long_storage_buffer_race_condition.sh diff --git a/dbms/tests/queries/0_stateless/00097_long_storage_buffer_race_condition_mt.reference b/tests/queries/0_stateless/00097_long_storage_buffer_race_condition_mt.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00097_long_storage_buffer_race_condition_mt.reference rename to tests/queries/0_stateless/00097_long_storage_buffer_race_condition_mt.reference diff --git a/dbms/tests/queries/0_stateless/00097_long_storage_buffer_race_condition_mt.sh b/tests/queries/0_stateless/00097_long_storage_buffer_race_condition_mt.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00097_long_storage_buffer_race_condition_mt.sh rename to tests/queries/0_stateless/00097_long_storage_buffer_race_condition_mt.sh diff --git a/dbms/tests/queries/0_stateless/00098_1_union_all.reference b/tests/queries/0_stateless/00098_1_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_1_union_all.reference rename to tests/queries/0_stateless/00098_1_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_1_union_all.sql b/tests/queries/0_stateless/00098_1_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_1_union_all.sql rename to tests/queries/0_stateless/00098_1_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_2_union_all.reference b/tests/queries/0_stateless/00098_2_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_2_union_all.reference rename to tests/queries/0_stateless/00098_2_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_2_union_all.sql b/tests/queries/0_stateless/00098_2_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_2_union_all.sql rename to tests/queries/0_stateless/00098_2_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_3_union_all.reference b/tests/queries/0_stateless/00098_3_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_3_union_all.reference rename to tests/queries/0_stateless/00098_3_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_3_union_all.sql b/tests/queries/0_stateless/00098_3_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_3_union_all.sql rename to tests/queries/0_stateless/00098_3_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_4_union_all.reference b/tests/queries/0_stateless/00098_4_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_4_union_all.reference rename to tests/queries/0_stateless/00098_4_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_4_union_all.sql b/tests/queries/0_stateless/00098_4_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_4_union_all.sql rename to tests/queries/0_stateless/00098_4_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_5_union_all.reference b/tests/queries/0_stateless/00098_5_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_5_union_all.reference rename to tests/queries/0_stateless/00098_5_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_5_union_all.sql b/tests/queries/0_stateless/00098_5_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_5_union_all.sql rename to tests/queries/0_stateless/00098_5_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_6_union_all.reference b/tests/queries/0_stateless/00098_6_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_6_union_all.reference rename to tests/queries/0_stateless/00098_6_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_6_union_all.sql b/tests/queries/0_stateless/00098_6_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_6_union_all.sql rename to tests/queries/0_stateless/00098_6_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_7_union_all.reference b/tests/queries/0_stateless/00098_7_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_7_union_all.reference rename to tests/queries/0_stateless/00098_7_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_7_union_all.sql b/tests/queries/0_stateless/00098_7_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_7_union_all.sql rename to tests/queries/0_stateless/00098_7_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_8_union_all.reference b/tests/queries/0_stateless/00098_8_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_8_union_all.reference rename to tests/queries/0_stateless/00098_8_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_8_union_all.sql b/tests/queries/0_stateless/00098_8_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_8_union_all.sql rename to tests/queries/0_stateless/00098_8_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_9_union_all.reference b/tests/queries/0_stateless/00098_9_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_9_union_all.reference rename to tests/queries/0_stateless/00098_9_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_9_union_all.sql b/tests/queries/0_stateless/00098_9_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_9_union_all.sql rename to tests/queries/0_stateless/00098_9_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_a_union_all.reference b/tests/queries/0_stateless/00098_a_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_a_union_all.reference rename to tests/queries/0_stateless/00098_a_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_a_union_all.sql b/tests/queries/0_stateless/00098_a_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_a_union_all.sql rename to tests/queries/0_stateless/00098_a_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_b_union_all.reference b/tests/queries/0_stateless/00098_b_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_b_union_all.reference rename to tests/queries/0_stateless/00098_b_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_b_union_all.sql b/tests/queries/0_stateless/00098_b_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_b_union_all.sql rename to tests/queries/0_stateless/00098_b_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_c_union_all.reference b/tests/queries/0_stateless/00098_c_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_c_union_all.reference rename to tests/queries/0_stateless/00098_c_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_c_union_all.sql b/tests/queries/0_stateless/00098_c_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_c_union_all.sql rename to tests/queries/0_stateless/00098_c_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_d_union_all.reference b/tests/queries/0_stateless/00098_d_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_d_union_all.reference rename to tests/queries/0_stateless/00098_d_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_d_union_all.sql b/tests/queries/0_stateless/00098_d_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_d_union_all.sql rename to tests/queries/0_stateless/00098_d_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_e_union_all.reference b/tests/queries/0_stateless/00098_e_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_e_union_all.reference rename to tests/queries/0_stateless/00098_e_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_e_union_all.sql b/tests/queries/0_stateless/00098_e_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_e_union_all.sql rename to tests/queries/0_stateless/00098_e_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_f_union_all.reference b/tests/queries/0_stateless/00098_f_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_f_union_all.reference rename to tests/queries/0_stateless/00098_f_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_f_union_all.sql b/tests/queries/0_stateless/00098_f_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_f_union_all.sql rename to tests/queries/0_stateless/00098_f_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_g_union_all.reference b/tests/queries/0_stateless/00098_g_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_g_union_all.reference rename to tests/queries/0_stateless/00098_g_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_g_union_all.sql b/tests/queries/0_stateless/00098_g_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_g_union_all.sql rename to tests/queries/0_stateless/00098_g_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_h_union_all.reference b/tests/queries/0_stateless/00098_h_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_h_union_all.reference rename to tests/queries/0_stateless/00098_h_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_h_union_all.sql b/tests/queries/0_stateless/00098_h_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_h_union_all.sql rename to tests/queries/0_stateless/00098_h_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_j_union_all.reference b/tests/queries/0_stateless/00098_j_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_j_union_all.reference rename to tests/queries/0_stateless/00098_j_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_j_union_all.sql b/tests/queries/0_stateless/00098_j_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_j_union_all.sql rename to tests/queries/0_stateless/00098_j_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_k_union_all.reference b/tests/queries/0_stateless/00098_k_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_k_union_all.reference rename to tests/queries/0_stateless/00098_k_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_k_union_all.sql b/tests/queries/0_stateless/00098_k_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_k_union_all.sql rename to tests/queries/0_stateless/00098_k_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_l_union_all.reference b/tests/queries/0_stateless/00098_l_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_l_union_all.reference rename to tests/queries/0_stateless/00098_l_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_l_union_all.sql b/tests/queries/0_stateless/00098_l_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_l_union_all.sql rename to tests/queries/0_stateless/00098_l_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00098_shard_i_union_all.reference b/tests/queries/0_stateless/00098_shard_i_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00098_shard_i_union_all.reference rename to tests/queries/0_stateless/00098_shard_i_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00098_shard_i_union_all.sql b/tests/queries/0_stateless/00098_shard_i_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00098_shard_i_union_all.sql rename to tests/queries/0_stateless/00098_shard_i_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00099_join_many_blocks_segfault.reference b/tests/queries/0_stateless/00099_join_many_blocks_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00099_join_many_blocks_segfault.reference rename to tests/queries/0_stateless/00099_join_many_blocks_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00099_join_many_blocks_segfault.sql b/tests/queries/0_stateless/00099_join_many_blocks_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00099_join_many_blocks_segfault.sql rename to tests/queries/0_stateless/00099_join_many_blocks_segfault.sql diff --git a/dbms/tests/queries/0_stateless/00100_subquery_table_identifier.reference b/tests/queries/0_stateless/00100_subquery_table_identifier.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00100_subquery_table_identifier.reference rename to tests/queries/0_stateless/00100_subquery_table_identifier.reference diff --git a/dbms/tests/queries/0_stateless/00100_subquery_table_identifier.sh b/tests/queries/0_stateless/00100_subquery_table_identifier.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00100_subquery_table_identifier.sh rename to tests/queries/0_stateless/00100_subquery_table_identifier.sh diff --git a/dbms/tests/queries/0_stateless/00101_materialized_views_and_insert_without_explicit_database.reference b/tests/queries/0_stateless/00101_materialized_views_and_insert_without_explicit_database.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00101_materialized_views_and_insert_without_explicit_database.reference rename to tests/queries/0_stateless/00101_materialized_views_and_insert_without_explicit_database.reference diff --git a/dbms/tests/queries/0_stateless/00101_materialized_views_and_insert_without_explicit_database.sql b/tests/queries/0_stateless/00101_materialized_views_and_insert_without_explicit_database.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00101_materialized_views_and_insert_without_explicit_database.sql rename to tests/queries/0_stateless/00101_materialized_views_and_insert_without_explicit_database.sql diff --git a/dbms/tests/queries/0_stateless/00102_insert_into_temporary_table.reference b/tests/queries/0_stateless/00102_insert_into_temporary_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00102_insert_into_temporary_table.reference rename to tests/queries/0_stateless/00102_insert_into_temporary_table.reference diff --git a/dbms/tests/queries/0_stateless/00102_insert_into_temporary_table.sql b/tests/queries/0_stateless/00102_insert_into_temporary_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00102_insert_into_temporary_table.sql rename to tests/queries/0_stateless/00102_insert_into_temporary_table.sql diff --git a/dbms/tests/queries/0_stateless/00103_ipv4_num_to_string_class_c.reference b/tests/queries/0_stateless/00103_ipv4_num_to_string_class_c.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00103_ipv4_num_to_string_class_c.reference rename to tests/queries/0_stateless/00103_ipv4_num_to_string_class_c.reference diff --git a/dbms/tests/queries/0_stateless/00103_ipv4_num_to_string_class_c.sql b/tests/queries/0_stateless/00103_ipv4_num_to_string_class_c.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00103_ipv4_num_to_string_class_c.sql rename to tests/queries/0_stateless/00103_ipv4_num_to_string_class_c.sql diff --git a/dbms/tests/queries/0_stateless/00104_totals_having_mode.reference b/tests/queries/0_stateless/00104_totals_having_mode.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00104_totals_having_mode.reference rename to tests/queries/0_stateless/00104_totals_having_mode.reference diff --git a/dbms/tests/queries/0_stateless/00104_totals_having_mode.sql b/tests/queries/0_stateless/00104_totals_having_mode.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00104_totals_having_mode.sql rename to tests/queries/0_stateless/00104_totals_having_mode.sql diff --git a/dbms/tests/queries/0_stateless/00105_shard_collations.reference b/tests/queries/0_stateless/00105_shard_collations.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00105_shard_collations.reference rename to tests/queries/0_stateless/00105_shard_collations.reference diff --git a/dbms/tests/queries/0_stateless/00105_shard_collations.sql b/tests/queries/0_stateless/00105_shard_collations.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00105_shard_collations.sql rename to tests/queries/0_stateless/00105_shard_collations.sql diff --git a/dbms/tests/queries/0_stateless/00106_totals_after_having.reference b/tests/queries/0_stateless/00106_totals_after_having.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00106_totals_after_having.reference rename to tests/queries/0_stateless/00106_totals_after_having.reference diff --git a/dbms/tests/queries/0_stateless/00106_totals_after_having.sql b/tests/queries/0_stateless/00106_totals_after_having.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00106_totals_after_having.sql rename to tests/queries/0_stateless/00106_totals_after_having.sql diff --git a/dbms/tests/queries/0_stateless/00107_totals_after_having.reference b/tests/queries/0_stateless/00107_totals_after_having.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00107_totals_after_having.reference rename to tests/queries/0_stateless/00107_totals_after_having.reference diff --git a/dbms/tests/queries/0_stateless/00107_totals_after_having.sql b/tests/queries/0_stateless/00107_totals_after_having.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00107_totals_after_having.sql rename to tests/queries/0_stateless/00107_totals_after_having.sql diff --git a/dbms/tests/queries/0_stateless/00108_shard_totals_after_having.reference b/tests/queries/0_stateless/00108_shard_totals_after_having.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00108_shard_totals_after_having.reference rename to tests/queries/0_stateless/00108_shard_totals_after_having.reference diff --git a/dbms/tests/queries/0_stateless/00108_shard_totals_after_having.sql b/tests/queries/0_stateless/00108_shard_totals_after_having.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00108_shard_totals_after_having.sql rename to tests/queries/0_stateless/00108_shard_totals_after_having.sql diff --git a/dbms/tests/queries/0_stateless/00109_shard_totals_after_having.reference b/tests/queries/0_stateless/00109_shard_totals_after_having.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00109_shard_totals_after_having.reference rename to tests/queries/0_stateless/00109_shard_totals_after_having.reference diff --git a/dbms/tests/queries/0_stateless/00109_shard_totals_after_having.sql b/tests/queries/0_stateless/00109_shard_totals_after_having.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00109_shard_totals_after_having.sql rename to tests/queries/0_stateless/00109_shard_totals_after_having.sql diff --git a/dbms/tests/queries/0_stateless/00110_external_sort.reference b/tests/queries/0_stateless/00110_external_sort.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00110_external_sort.reference rename to tests/queries/0_stateless/00110_external_sort.reference diff --git a/dbms/tests/queries/0_stateless/00110_external_sort.sql b/tests/queries/0_stateless/00110_external_sort.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00110_external_sort.sql rename to tests/queries/0_stateless/00110_external_sort.sql diff --git a/dbms/tests/queries/0_stateless/00111_shard_external_sort_distributed.reference b/tests/queries/0_stateless/00111_shard_external_sort_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00111_shard_external_sort_distributed.reference rename to tests/queries/0_stateless/00111_shard_external_sort_distributed.reference diff --git a/dbms/tests/queries/0_stateless/00111_shard_external_sort_distributed.sql b/tests/queries/0_stateless/00111_shard_external_sort_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00111_shard_external_sort_distributed.sql rename to tests/queries/0_stateless/00111_shard_external_sort_distributed.sql diff --git a/dbms/tests/queries/0_stateless/00112_shard_totals_after_having.reference b/tests/queries/0_stateless/00112_shard_totals_after_having.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00112_shard_totals_after_having.reference rename to tests/queries/0_stateless/00112_shard_totals_after_having.reference diff --git a/dbms/tests/queries/0_stateless/00112_shard_totals_after_having.sql b/tests/queries/0_stateless/00112_shard_totals_after_having.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00112_shard_totals_after_having.sql rename to tests/queries/0_stateless/00112_shard_totals_after_having.sql diff --git a/dbms/tests/queries/0_stateless/00113_shard_group_array.reference b/tests/queries/0_stateless/00113_shard_group_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00113_shard_group_array.reference rename to tests/queries/0_stateless/00113_shard_group_array.reference diff --git a/dbms/tests/queries/0_stateless/00113_shard_group_array.sql b/tests/queries/0_stateless/00113_shard_group_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00113_shard_group_array.sql rename to tests/queries/0_stateless/00113_shard_group_array.sql diff --git a/dbms/tests/queries/0_stateless/00114_float_type_result_of_division.reference b/tests/queries/0_stateless/00114_float_type_result_of_division.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00114_float_type_result_of_division.reference rename to tests/queries/0_stateless/00114_float_type_result_of_division.reference diff --git a/dbms/tests/queries/0_stateless/00114_float_type_result_of_division.sql b/tests/queries/0_stateless/00114_float_type_result_of_division.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00114_float_type_result_of_division.sql rename to tests/queries/0_stateless/00114_float_type_result_of_division.sql diff --git a/dbms/tests/queries/0_stateless/00115_shard_in_incomplete_result.reference b/tests/queries/0_stateless/00115_shard_in_incomplete_result.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00115_shard_in_incomplete_result.reference rename to tests/queries/0_stateless/00115_shard_in_incomplete_result.reference diff --git a/dbms/tests/queries/0_stateless/00115_shard_in_incomplete_result.sh b/tests/queries/0_stateless/00115_shard_in_incomplete_result.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00115_shard_in_incomplete_result.sh rename to tests/queries/0_stateless/00115_shard_in_incomplete_result.sh diff --git a/dbms/tests/queries/0_stateless/00116_storage_set.reference b/tests/queries/0_stateless/00116_storage_set.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00116_storage_set.reference rename to tests/queries/0_stateless/00116_storage_set.reference diff --git a/dbms/tests/queries/0_stateless/00116_storage_set.sql b/tests/queries/0_stateless/00116_storage_set.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00116_storage_set.sql rename to tests/queries/0_stateless/00116_storage_set.sql diff --git a/dbms/tests/queries/0_stateless/00117_parsing_arrays.reference b/tests/queries/0_stateless/00117_parsing_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00117_parsing_arrays.reference rename to tests/queries/0_stateless/00117_parsing_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00117_parsing_arrays.sql b/tests/queries/0_stateless/00117_parsing_arrays.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00117_parsing_arrays.sql rename to tests/queries/0_stateless/00117_parsing_arrays.sql diff --git a/dbms/tests/queries/0_stateless/00118_storage_join.reference b/tests/queries/0_stateless/00118_storage_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00118_storage_join.reference rename to tests/queries/0_stateless/00118_storage_join.reference diff --git a/dbms/tests/queries/0_stateless/00118_storage_join.sql b/tests/queries/0_stateless/00118_storage_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00118_storage_join.sql rename to tests/queries/0_stateless/00118_storage_join.sql diff --git a/dbms/tests/queries/0_stateless/00119_storage_join.reference b/tests/queries/0_stateless/00119_storage_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00119_storage_join.reference rename to tests/queries/0_stateless/00119_storage_join.reference diff --git a/dbms/tests/queries/0_stateless/00119_storage_join.sql b/tests/queries/0_stateless/00119_storage_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00119_storage_join.sql rename to tests/queries/0_stateless/00119_storage_join.sql diff --git a/dbms/tests/queries/0_stateless/00120_join_and_group_by.reference b/tests/queries/0_stateless/00120_join_and_group_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00120_join_and_group_by.reference rename to tests/queries/0_stateless/00120_join_and_group_by.reference diff --git a/dbms/tests/queries/0_stateless/00120_join_and_group_by.sql b/tests/queries/0_stateless/00120_join_and_group_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00120_join_and_group_by.sql rename to tests/queries/0_stateless/00120_join_and_group_by.sql diff --git a/dbms/tests/queries/0_stateless/00121_drop_column_zookeeper.reference b/tests/queries/0_stateless/00121_drop_column_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00121_drop_column_zookeeper.reference rename to tests/queries/0_stateless/00121_drop_column_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00121_drop_column_zookeeper.sql b/tests/queries/0_stateless/00121_drop_column_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00121_drop_column_zookeeper.sql rename to tests/queries/0_stateless/00121_drop_column_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00122_join_with_subquery_with_subquery.reference b/tests/queries/0_stateless/00122_join_with_subquery_with_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00122_join_with_subquery_with_subquery.reference rename to tests/queries/0_stateless/00122_join_with_subquery_with_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00122_join_with_subquery_with_subquery.sql b/tests/queries/0_stateless/00122_join_with_subquery_with_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00122_join_with_subquery_with_subquery.sql rename to tests/queries/0_stateless/00122_join_with_subquery_with_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00123_shard_unmerged_result_when_max_distributed_connections_is_one.reference b/tests/queries/0_stateless/00123_shard_unmerged_result_when_max_distributed_connections_is_one.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00123_shard_unmerged_result_when_max_distributed_connections_is_one.reference rename to tests/queries/0_stateless/00123_shard_unmerged_result_when_max_distributed_connections_is_one.reference diff --git a/dbms/tests/queries/0_stateless/00123_shard_unmerged_result_when_max_distributed_connections_is_one.sql b/tests/queries/0_stateless/00123_shard_unmerged_result_when_max_distributed_connections_is_one.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00123_shard_unmerged_result_when_max_distributed_connections_is_one.sql rename to tests/queries/0_stateless/00123_shard_unmerged_result_when_max_distributed_connections_is_one.sql diff --git a/dbms/tests/queries/0_stateless/00124_shard_distributed_with_many_replicas.reference b/tests/queries/0_stateless/00124_shard_distributed_with_many_replicas.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00124_shard_distributed_with_many_replicas.reference rename to tests/queries/0_stateless/00124_shard_distributed_with_many_replicas.reference diff --git a/dbms/tests/queries/0_stateless/00124_shard_distributed_with_many_replicas.sql b/tests/queries/0_stateless/00124_shard_distributed_with_many_replicas.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00124_shard_distributed_with_many_replicas.sql rename to tests/queries/0_stateless/00124_shard_distributed_with_many_replicas.sql diff --git a/dbms/tests/queries/0_stateless/00125_array_element_of_array_of_tuple.reference b/tests/queries/0_stateless/00125_array_element_of_array_of_tuple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00125_array_element_of_array_of_tuple.reference rename to tests/queries/0_stateless/00125_array_element_of_array_of_tuple.reference diff --git a/dbms/tests/queries/0_stateless/00125_array_element_of_array_of_tuple.sql b/tests/queries/0_stateless/00125_array_element_of_array_of_tuple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00125_array_element_of_array_of_tuple.sql rename to tests/queries/0_stateless/00125_array_element_of_array_of_tuple.sql diff --git a/dbms/tests/queries/0_stateless/00126_buffer.reference b/tests/queries/0_stateless/00126_buffer.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00126_buffer.reference rename to tests/queries/0_stateless/00126_buffer.reference diff --git a/dbms/tests/queries/0_stateless/00126_buffer.sql b/tests/queries/0_stateless/00126_buffer.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00126_buffer.sql rename to tests/queries/0_stateless/00126_buffer.sql diff --git a/dbms/tests/queries/0_stateless/00127_group_by_concat.reference b/tests/queries/0_stateless/00127_group_by_concat.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00127_group_by_concat.reference rename to tests/queries/0_stateless/00127_group_by_concat.reference diff --git a/dbms/tests/queries/0_stateless/00127_group_by_concat.sql b/tests/queries/0_stateless/00127_group_by_concat.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00127_group_by_concat.sql rename to tests/queries/0_stateless/00127_group_by_concat.sql diff --git a/dbms/tests/queries/0_stateless/00128_group_by_number_and_fixed_string.reference b/tests/queries/0_stateless/00128_group_by_number_and_fixed_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00128_group_by_number_and_fixed_string.reference rename to tests/queries/0_stateless/00128_group_by_number_and_fixed_string.reference diff --git a/dbms/tests/queries/0_stateless/00128_group_by_number_and_fixed_string.sql b/tests/queries/0_stateless/00128_group_by_number_and_fixed_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00128_group_by_number_and_fixed_string.sql rename to tests/queries/0_stateless/00128_group_by_number_and_fixed_string.sql diff --git a/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.reference b/tests/queries/0_stateless/00129_quantile_timing_weighted.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.reference rename to tests/queries/0_stateless/00129_quantile_timing_weighted.reference diff --git a/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.sql b/tests/queries/0_stateless/00129_quantile_timing_weighted.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.sql rename to tests/queries/0_stateless/00129_quantile_timing_weighted.sql diff --git a/dbms/tests/queries/0_stateless/00131_set_hashed.reference b/tests/queries/0_stateless/00131_set_hashed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00131_set_hashed.reference rename to tests/queries/0_stateless/00131_set_hashed.reference diff --git a/dbms/tests/queries/0_stateless/00131_set_hashed.sql b/tests/queries/0_stateless/00131_set_hashed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00131_set_hashed.sql rename to tests/queries/0_stateless/00131_set_hashed.sql diff --git a/dbms/tests/queries/0_stateless/00132_sets.reference b/tests/queries/0_stateless/00132_sets.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00132_sets.reference rename to tests/queries/0_stateless/00132_sets.reference diff --git a/dbms/tests/queries/0_stateless/00132_sets.sql b/tests/queries/0_stateless/00132_sets.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00132_sets.sql rename to tests/queries/0_stateless/00132_sets.sql diff --git a/dbms/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.reference b/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.reference rename to tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.reference diff --git a/dbms/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.sh b/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.sh rename to tests/queries/0_stateless/00133_long_shard_memory_tracker_and_exception_safety.sh diff --git a/dbms/tests/queries/0_stateless/00134_aggregation_by_fixed_string_of_size_1_2_4_8.reference b/tests/queries/0_stateless/00134_aggregation_by_fixed_string_of_size_1_2_4_8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00134_aggregation_by_fixed_string_of_size_1_2_4_8.reference rename to tests/queries/0_stateless/00134_aggregation_by_fixed_string_of_size_1_2_4_8.reference diff --git a/dbms/tests/queries/0_stateless/00134_aggregation_by_fixed_string_of_size_1_2_4_8.sql b/tests/queries/0_stateless/00134_aggregation_by_fixed_string_of_size_1_2_4_8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00134_aggregation_by_fixed_string_of_size_1_2_4_8.sql rename to tests/queries/0_stateless/00134_aggregation_by_fixed_string_of_size_1_2_4_8.sql diff --git a/dbms/tests/queries/0_stateless/00135_duplicate_group_by_keys_segfault.reference b/tests/queries/0_stateless/00135_duplicate_group_by_keys_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00135_duplicate_group_by_keys_segfault.reference rename to tests/queries/0_stateless/00135_duplicate_group_by_keys_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00135_duplicate_group_by_keys_segfault.sql b/tests/queries/0_stateless/00135_duplicate_group_by_keys_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00135_duplicate_group_by_keys_segfault.sql rename to tests/queries/0_stateless/00135_duplicate_group_by_keys_segfault.sql diff --git a/dbms/tests/queries/0_stateless/00136_duplicate_order_by_elems.reference b/tests/queries/0_stateless/00136_duplicate_order_by_elems.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00136_duplicate_order_by_elems.reference rename to tests/queries/0_stateless/00136_duplicate_order_by_elems.reference diff --git a/dbms/tests/queries/0_stateless/00136_duplicate_order_by_elems.sql b/tests/queries/0_stateless/00136_duplicate_order_by_elems.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00136_duplicate_order_by_elems.sql rename to tests/queries/0_stateless/00136_duplicate_order_by_elems.sql diff --git a/dbms/tests/queries/0_stateless/00137_in_constants.reference b/tests/queries/0_stateless/00137_in_constants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00137_in_constants.reference rename to tests/queries/0_stateless/00137_in_constants.reference diff --git a/dbms/tests/queries/0_stateless/00137_in_constants.sql b/tests/queries/0_stateless/00137_in_constants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00137_in_constants.sql rename to tests/queries/0_stateless/00137_in_constants.sql diff --git a/dbms/tests/queries/0_stateless/00138_table_aliases.reference b/tests/queries/0_stateless/00138_table_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00138_table_aliases.reference rename to tests/queries/0_stateless/00138_table_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00138_table_aliases.sql b/tests/queries/0_stateless/00138_table_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00138_table_aliases.sql rename to tests/queries/0_stateless/00138_table_aliases.sql diff --git a/dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.reference b/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.reference rename to tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.reference diff --git a/dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.sql b/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.sql rename to tests/queries/0_stateless/00140_parse_unix_timestamp_as_datetime.sql diff --git a/dbms/tests/queries/0_stateless/00140_prewhere_column_order.reference b/tests/queries/0_stateless/00140_prewhere_column_order.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00140_prewhere_column_order.reference rename to tests/queries/0_stateless/00140_prewhere_column_order.reference diff --git a/dbms/tests/queries/0_stateless/00140_prewhere_column_order.sql b/tests/queries/0_stateless/00140_prewhere_column_order.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00140_prewhere_column_order.sql rename to tests/queries/0_stateless/00140_prewhere_column_order.sql diff --git a/dbms/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.reference b/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.reference rename to tests/queries/0_stateless/00141_parse_timestamp_as_datetime.reference diff --git a/dbms/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.sql b/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00141_parse_timestamp_as_datetime.sql rename to tests/queries/0_stateless/00141_parse_timestamp_as_datetime.sql diff --git a/dbms/tests/queries/0_stateless/00142_parse_timestamp_as_datetime.reference b/tests/queries/0_stateless/00142_parse_timestamp_as_datetime.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00142_parse_timestamp_as_datetime.reference rename to tests/queries/0_stateless/00142_parse_timestamp_as_datetime.reference diff --git a/dbms/tests/queries/0_stateless/00142_parse_timestamp_as_datetime.sql b/tests/queries/0_stateless/00142_parse_timestamp_as_datetime.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00142_parse_timestamp_as_datetime.sql rename to tests/queries/0_stateless/00142_parse_timestamp_as_datetime.sql diff --git a/dbms/tests/queries/0_stateless/00143_number_classification_functions.reference b/tests/queries/0_stateless/00143_number_classification_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00143_number_classification_functions.reference rename to tests/queries/0_stateless/00143_number_classification_functions.reference diff --git a/dbms/tests/queries/0_stateless/00143_number_classification_functions.sql b/tests/queries/0_stateless/00143_number_classification_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00143_number_classification_functions.sql rename to tests/queries/0_stateless/00143_number_classification_functions.sql diff --git a/dbms/tests/queries/0_stateless/00144_empty_regexp.reference b/tests/queries/0_stateless/00144_empty_regexp.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00144_empty_regexp.reference rename to tests/queries/0_stateless/00144_empty_regexp.reference diff --git a/dbms/tests/queries/0_stateless/00144_empty_regexp.sql b/tests/queries/0_stateless/00144_empty_regexp.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00144_empty_regexp.sql rename to tests/queries/0_stateless/00144_empty_regexp.sql diff --git a/dbms/tests/queries/0_stateless/00145_empty_likes.reference b/tests/queries/0_stateless/00145_empty_likes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00145_empty_likes.reference rename to tests/queries/0_stateless/00145_empty_likes.reference diff --git a/dbms/tests/queries/0_stateless/00145_empty_likes.sql b/tests/queries/0_stateless/00145_empty_likes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00145_empty_likes.sql rename to tests/queries/0_stateless/00145_empty_likes.sql diff --git a/dbms/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.reference b/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.reference rename to tests/queries/0_stateless/00146_summing_merge_tree_nested_map.reference diff --git a/dbms/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.sql b/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00146_summing_merge_tree_nested_map.sql rename to tests/queries/0_stateless/00146_summing_merge_tree_nested_map.sql diff --git a/dbms/tests/queries/0_stateless/00147_alter_nested_default.reference b/tests/queries/0_stateless/00147_alter_nested_default.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00147_alter_nested_default.reference rename to tests/queries/0_stateless/00147_alter_nested_default.reference diff --git a/dbms/tests/queries/0_stateless/00147_alter_nested_default.sql b/tests/queries/0_stateless/00147_alter_nested_default.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00147_alter_nested_default.sql rename to tests/queries/0_stateless/00147_alter_nested_default.sql diff --git a/dbms/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.reference b/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.reference rename to tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.reference diff --git a/dbms/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.sql b/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.sql rename to tests/queries/0_stateless/00148_summing_merge_tree_aggregate_function.sql diff --git a/dbms/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.reference b/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.reference rename to tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.reference diff --git a/dbms/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.sql b/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.sql rename to tests/queries/0_stateless/00148_summing_merge_tree_nested_map_multiple_values.sql diff --git a/dbms/tests/queries/0_stateless/00149_function_url_hash.reference b/tests/queries/0_stateless/00149_function_url_hash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00149_function_url_hash.reference rename to tests/queries/0_stateless/00149_function_url_hash.reference diff --git a/dbms/tests/queries/0_stateless/00149_function_url_hash.sql b/tests/queries/0_stateless/00149_function_url_hash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00149_function_url_hash.sql rename to tests/queries/0_stateless/00149_function_url_hash.sql diff --git a/dbms/tests/queries/0_stateless/00150_with_totals_and_join.reference b/tests/queries/0_stateless/00150_with_totals_and_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00150_with_totals_and_join.reference rename to tests/queries/0_stateless/00150_with_totals_and_join.reference diff --git a/dbms/tests/queries/0_stateless/00150_with_totals_and_join.sql b/tests/queries/0_stateless/00150_with_totals_and_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00150_with_totals_and_join.sql rename to tests/queries/0_stateless/00150_with_totals_and_join.sql diff --git a/dbms/tests/queries/0_stateless/00151_tuple_with_array.reference b/tests/queries/0_stateless/00151_tuple_with_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00151_tuple_with_array.reference rename to tests/queries/0_stateless/00151_tuple_with_array.reference diff --git a/dbms/tests/queries/0_stateless/00151_tuple_with_array.sql b/tests/queries/0_stateless/00151_tuple_with_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00151_tuple_with_array.sql rename to tests/queries/0_stateless/00151_tuple_with_array.sql diff --git a/dbms/tests/queries/0_stateless/00152_totals_in_subquery.reference b/tests/queries/0_stateless/00152_totals_in_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00152_totals_in_subquery.reference rename to tests/queries/0_stateless/00152_totals_in_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00152_totals_in_subquery.sql b/tests/queries/0_stateless/00152_totals_in_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00152_totals_in_subquery.sql rename to tests/queries/0_stateless/00152_totals_in_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00153_transform.reference b/tests/queries/0_stateless/00153_transform.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00153_transform.reference rename to tests/queries/0_stateless/00153_transform.reference diff --git a/dbms/tests/queries/0_stateless/00153_transform.sql b/tests/queries/0_stateless/00153_transform.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00153_transform.sql rename to tests/queries/0_stateless/00153_transform.sql diff --git a/dbms/tests/queries/0_stateless/00154_shard_distributed_with_distinct.reference b/tests/queries/0_stateless/00154_shard_distributed_with_distinct.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00154_shard_distributed_with_distinct.reference rename to tests/queries/0_stateless/00154_shard_distributed_with_distinct.reference diff --git a/dbms/tests/queries/0_stateless/00154_shard_distributed_with_distinct.sql b/tests/queries/0_stateless/00154_shard_distributed_with_distinct.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00154_shard_distributed_with_distinct.sql rename to tests/queries/0_stateless/00154_shard_distributed_with_distinct.sql diff --git a/dbms/tests/queries/0_stateless/00155_long_merges.reference b/tests/queries/0_stateless/00155_long_merges.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00155_long_merges.reference rename to tests/queries/0_stateless/00155_long_merges.reference diff --git a/dbms/tests/queries/0_stateless/00155_long_merges.sh b/tests/queries/0_stateless/00155_long_merges.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00155_long_merges.sh rename to tests/queries/0_stateless/00155_long_merges.sh diff --git a/dbms/tests/queries/0_stateless/00156_array_map_to_constant.reference b/tests/queries/0_stateless/00156_array_map_to_constant.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00156_array_map_to_constant.reference rename to tests/queries/0_stateless/00156_array_map_to_constant.reference diff --git a/dbms/tests/queries/0_stateless/00156_array_map_to_constant.sql b/tests/queries/0_stateless/00156_array_map_to_constant.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00156_array_map_to_constant.sql rename to tests/queries/0_stateless/00156_array_map_to_constant.sql diff --git a/dbms/tests/queries/0_stateless/00157_aliases_and_lambda_formal_parameters.reference b/tests/queries/0_stateless/00157_aliases_and_lambda_formal_parameters.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00157_aliases_and_lambda_formal_parameters.reference rename to tests/queries/0_stateless/00157_aliases_and_lambda_formal_parameters.reference diff --git a/dbms/tests/queries/0_stateless/00157_aliases_and_lambda_formal_parameters.sql b/tests/queries/0_stateless/00157_aliases_and_lambda_formal_parameters.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00157_aliases_and_lambda_formal_parameters.sql rename to tests/queries/0_stateless/00157_aliases_and_lambda_formal_parameters.sql diff --git a/dbms/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.reference b/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.reference rename to tests/queries/0_stateless/00158_buffer_and_nonexistent_table.reference diff --git a/dbms/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.sql b/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00158_buffer_and_nonexistent_table.sql rename to tests/queries/0_stateless/00158_buffer_and_nonexistent_table.sql diff --git a/dbms/tests/queries/0_stateless/00159_whitespace_in_columns_list.reference b/tests/queries/0_stateless/00159_whitespace_in_columns_list.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00159_whitespace_in_columns_list.reference rename to tests/queries/0_stateless/00159_whitespace_in_columns_list.reference diff --git a/dbms/tests/queries/0_stateless/00159_whitespace_in_columns_list.sql b/tests/queries/0_stateless/00159_whitespace_in_columns_list.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00159_whitespace_in_columns_list.sql rename to tests/queries/0_stateless/00159_whitespace_in_columns_list.sql diff --git a/dbms/tests/queries/0_stateless/00160_merge_and_index_in_in.reference b/tests/queries/0_stateless/00160_merge_and_index_in_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00160_merge_and_index_in_in.reference rename to tests/queries/0_stateless/00160_merge_and_index_in_in.reference diff --git a/dbms/tests/queries/0_stateless/00160_merge_and_index_in_in.sql b/tests/queries/0_stateless/00160_merge_and_index_in_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00160_merge_and_index_in_in.sql rename to tests/queries/0_stateless/00160_merge_and_index_in_in.sql diff --git a/dbms/tests/queries/0_stateless/00161_rounding_functions.reference b/tests/queries/0_stateless/00161_rounding_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00161_rounding_functions.reference rename to tests/queries/0_stateless/00161_rounding_functions.reference diff --git a/dbms/tests/queries/0_stateless/00161_rounding_functions.sql b/tests/queries/0_stateless/00161_rounding_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00161_rounding_functions.sql rename to tests/queries/0_stateless/00161_rounding_functions.sql diff --git a/dbms/tests/queries/0_stateless/00162_shard_global_join.reference b/tests/queries/0_stateless/00162_shard_global_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00162_shard_global_join.reference rename to tests/queries/0_stateless/00162_shard_global_join.reference diff --git a/dbms/tests/queries/0_stateless/00162_shard_global_join.sql b/tests/queries/0_stateless/00162_shard_global_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00162_shard_global_join.sql rename to tests/queries/0_stateless/00162_shard_global_join.sql diff --git a/dbms/tests/queries/0_stateless/00163_shard_join_with_empty_table.reference b/tests/queries/0_stateless/00163_shard_join_with_empty_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00163_shard_join_with_empty_table.reference rename to tests/queries/0_stateless/00163_shard_join_with_empty_table.reference diff --git a/dbms/tests/queries/0_stateless/00163_shard_join_with_empty_table.sql b/tests/queries/0_stateless/00163_shard_join_with_empty_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00163_shard_join_with_empty_table.sql rename to tests/queries/0_stateless/00163_shard_join_with_empty_table.sql diff --git a/dbms/tests/queries/0_stateless/00164_not_chain.reference b/tests/queries/0_stateless/00164_not_chain.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00164_not_chain.reference rename to tests/queries/0_stateless/00164_not_chain.reference diff --git a/dbms/tests/queries/0_stateless/00164_not_chain.sql b/tests/queries/0_stateless/00164_not_chain.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00164_not_chain.sql rename to tests/queries/0_stateless/00164_not_chain.sql diff --git a/dbms/tests/queries/0_stateless/00165_transform_non_const_default.reference b/tests/queries/0_stateless/00165_transform_non_const_default.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00165_transform_non_const_default.reference rename to tests/queries/0_stateless/00165_transform_non_const_default.reference diff --git a/dbms/tests/queries/0_stateless/00165_transform_non_const_default.sql b/tests/queries/0_stateless/00165_transform_non_const_default.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00165_transform_non_const_default.sql rename to tests/queries/0_stateless/00165_transform_non_const_default.sql diff --git a/dbms/tests/queries/0_stateless/00166_functions_of_aggregation_states.reference b/tests/queries/0_stateless/00166_functions_of_aggregation_states.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00166_functions_of_aggregation_states.reference rename to tests/queries/0_stateless/00166_functions_of_aggregation_states.reference diff --git a/dbms/tests/queries/0_stateless/00166_functions_of_aggregation_states.sql b/tests/queries/0_stateless/00166_functions_of_aggregation_states.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00166_functions_of_aggregation_states.sql rename to tests/queries/0_stateless/00166_functions_of_aggregation_states.sql diff --git a/dbms/tests/queries/0_stateless/00167_settings_inside_query.reference b/tests/queries/0_stateless/00167_settings_inside_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00167_settings_inside_query.reference rename to tests/queries/0_stateless/00167_settings_inside_query.reference diff --git a/dbms/tests/queries/0_stateless/00167_settings_inside_query.sql b/tests/queries/0_stateless/00167_settings_inside_query.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00167_settings_inside_query.sql rename to tests/queries/0_stateless/00167_settings_inside_query.sql diff --git a/dbms/tests/queries/0_stateless/00168_buffer_defaults.reference b/tests/queries/0_stateless/00168_buffer_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00168_buffer_defaults.reference rename to tests/queries/0_stateless/00168_buffer_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00168_buffer_defaults.sql b/tests/queries/0_stateless/00168_buffer_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00168_buffer_defaults.sql rename to tests/queries/0_stateless/00168_buffer_defaults.sql diff --git a/dbms/tests/queries/0_stateless/00169_join_constant_keys.reference b/tests/queries/0_stateless/00169_join_constant_keys.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00169_join_constant_keys.reference rename to tests/queries/0_stateless/00169_join_constant_keys.reference diff --git a/dbms/tests/queries/0_stateless/00169_join_constant_keys.sql b/tests/queries/0_stateless/00169_join_constant_keys.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00169_join_constant_keys.sql rename to tests/queries/0_stateless/00169_join_constant_keys.sql diff --git a/dbms/tests/queries/0_stateless/00170_lower_upper_utf8.reference b/tests/queries/0_stateless/00170_lower_upper_utf8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00170_lower_upper_utf8.reference rename to tests/queries/0_stateless/00170_lower_upper_utf8.reference diff --git a/dbms/tests/queries/0_stateless/00170_lower_upper_utf8.sql b/tests/queries/0_stateless/00170_lower_upper_utf8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00170_lower_upper_utf8.sql rename to tests/queries/0_stateless/00170_lower_upper_utf8.sql diff --git a/dbms/tests/queries/0_stateless/00171_shard_array_of_tuple_remote.reference b/tests/queries/0_stateless/00171_shard_array_of_tuple_remote.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00171_shard_array_of_tuple_remote.reference rename to tests/queries/0_stateless/00171_shard_array_of_tuple_remote.reference diff --git a/dbms/tests/queries/0_stateless/00171_shard_array_of_tuple_remote.sql b/tests/queries/0_stateless/00171_shard_array_of_tuple_remote.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00171_shard_array_of_tuple_remote.sql rename to tests/queries/0_stateless/00171_shard_array_of_tuple_remote.sql diff --git a/dbms/tests/queries/0_stateless/00172_constexprs_in_set.reference b/tests/queries/0_stateless/00172_constexprs_in_set.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00172_constexprs_in_set.reference rename to tests/queries/0_stateless/00172_constexprs_in_set.reference diff --git a/dbms/tests/queries/0_stateless/00172_constexprs_in_set.sql b/tests/queries/0_stateless/00172_constexprs_in_set.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00172_constexprs_in_set.sql rename to tests/queries/0_stateless/00172_constexprs_in_set.sql diff --git a/dbms/tests/queries/0_stateless/00173_compare_date_time_with_constant_string.reference b/tests/queries/0_stateless/00173_compare_date_time_with_constant_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00173_compare_date_time_with_constant_string.reference rename to tests/queries/0_stateless/00173_compare_date_time_with_constant_string.reference diff --git a/dbms/tests/queries/0_stateless/00173_compare_date_time_with_constant_string.sql b/tests/queries/0_stateless/00173_compare_date_time_with_constant_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00173_compare_date_time_with_constant_string.sql rename to tests/queries/0_stateless/00173_compare_date_time_with_constant_string.sql diff --git a/dbms/tests/queries/0_stateless/00174_compare_date_time_with_constant_string_in_in.reference b/tests/queries/0_stateless/00174_compare_date_time_with_constant_string_in_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00174_compare_date_time_with_constant_string_in_in.reference rename to tests/queries/0_stateless/00174_compare_date_time_with_constant_string_in_in.reference diff --git a/dbms/tests/queries/0_stateless/00174_compare_date_time_with_constant_string_in_in.sql b/tests/queries/0_stateless/00174_compare_date_time_with_constant_string_in_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00174_compare_date_time_with_constant_string_in_in.sql rename to tests/queries/0_stateless/00174_compare_date_time_with_constant_string_in_in.sql diff --git a/dbms/tests/queries/0_stateless/00175_if_num_arrays.reference b/tests/queries/0_stateless/00175_if_num_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00175_if_num_arrays.reference rename to tests/queries/0_stateless/00175_if_num_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00175_if_num_arrays.sql b/tests/queries/0_stateless/00175_if_num_arrays.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00175_if_num_arrays.sql rename to tests/queries/0_stateless/00175_if_num_arrays.sql diff --git a/dbms/tests/queries/0_stateless/00176_if_string_arrays.reference b/tests/queries/0_stateless/00176_if_string_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00176_if_string_arrays.reference rename to tests/queries/0_stateless/00176_if_string_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00176_if_string_arrays.sql b/tests/queries/0_stateless/00176_if_string_arrays.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00176_if_string_arrays.sql rename to tests/queries/0_stateless/00176_if_string_arrays.sql diff --git a/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.reference b/tests/queries/0_stateless/00177_inserts_through_http_parts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.reference rename to tests/queries/0_stateless/00177_inserts_through_http_parts.reference diff --git a/dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh b/tests/queries/0_stateless/00177_inserts_through_http_parts.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00177_inserts_through_http_parts.sh rename to tests/queries/0_stateless/00177_inserts_through_http_parts.sh diff --git a/dbms/tests/queries/0_stateless/00178_function_replicate.reference b/tests/queries/0_stateless/00178_function_replicate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00178_function_replicate.reference rename to tests/queries/0_stateless/00178_function_replicate.reference diff --git a/dbms/tests/queries/0_stateless/00178_function_replicate.sql b/tests/queries/0_stateless/00178_function_replicate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00178_function_replicate.sql rename to tests/queries/0_stateless/00178_function_replicate.sql diff --git a/dbms/tests/queries/0_stateless/00179_lambdas_with_common_expressions_and_filter.reference b/tests/queries/0_stateless/00179_lambdas_with_common_expressions_and_filter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00179_lambdas_with_common_expressions_and_filter.reference rename to tests/queries/0_stateless/00179_lambdas_with_common_expressions_and_filter.reference diff --git a/dbms/tests/queries/0_stateless/00179_lambdas_with_common_expressions_and_filter.sql b/tests/queries/0_stateless/00179_lambdas_with_common_expressions_and_filter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00179_lambdas_with_common_expressions_and_filter.sql rename to tests/queries/0_stateless/00179_lambdas_with_common_expressions_and_filter.sql diff --git a/dbms/tests/queries/0_stateless/00180_attach_materialized_view.reference b/tests/queries/0_stateless/00180_attach_materialized_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00180_attach_materialized_view.reference rename to tests/queries/0_stateless/00180_attach_materialized_view.reference diff --git a/dbms/tests/queries/0_stateless/00180_attach_materialized_view.sql b/tests/queries/0_stateless/00180_attach_materialized_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00180_attach_materialized_view.sql rename to tests/queries/0_stateless/00180_attach_materialized_view.sql diff --git a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.reference b/tests/queries/0_stateless/00181_aggregate_functions_statistics.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.reference rename to tests/queries/0_stateless/00181_aggregate_functions_statistics.reference diff --git a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.sql b/tests/queries/0_stateless/00181_aggregate_functions_statistics.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.sql rename to tests/queries/0_stateless/00181_aggregate_functions_statistics.sql diff --git a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.reference b/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.reference rename to tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.reference diff --git a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.sql b/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.sql rename to tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.sql diff --git a/dbms/tests/queries/0_stateless/00182_functions_higher_order_and_consts.reference b/tests/queries/0_stateless/00182_functions_higher_order_and_consts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00182_functions_higher_order_and_consts.reference rename to tests/queries/0_stateless/00182_functions_higher_order_and_consts.reference diff --git a/dbms/tests/queries/0_stateless/00182_functions_higher_order_and_consts.sql b/tests/queries/0_stateless/00182_functions_higher_order_and_consts.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00182_functions_higher_order_and_consts.sql rename to tests/queries/0_stateless/00182_functions_higher_order_and_consts.sql diff --git a/dbms/tests/queries/0_stateless/00183_skip_unavailable_shards.reference b/tests/queries/0_stateless/00183_skip_unavailable_shards.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00183_skip_unavailable_shards.reference rename to tests/queries/0_stateless/00183_skip_unavailable_shards.reference diff --git a/dbms/tests/queries/0_stateless/00183_skip_unavailable_shards.sql b/tests/queries/0_stateless/00183_skip_unavailable_shards.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00183_skip_unavailable_shards.sql rename to tests/queries/0_stateless/00183_skip_unavailable_shards.sql diff --git a/dbms/tests/queries/0_stateless/00184_shard_distributed_group_by_no_merge.reference b/tests/queries/0_stateless/00184_shard_distributed_group_by_no_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00184_shard_distributed_group_by_no_merge.reference rename to tests/queries/0_stateless/00184_shard_distributed_group_by_no_merge.reference diff --git a/dbms/tests/queries/0_stateless/00184_shard_distributed_group_by_no_merge.sql b/tests/queries/0_stateless/00184_shard_distributed_group_by_no_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00184_shard_distributed_group_by_no_merge.sql rename to tests/queries/0_stateless/00184_shard_distributed_group_by_no_merge.sql diff --git a/dbms/tests/queries/0_stateless/00185_array_literals.reference b/tests/queries/0_stateless/00185_array_literals.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00185_array_literals.reference rename to tests/queries/0_stateless/00185_array_literals.reference diff --git a/dbms/tests/queries/0_stateless/00185_array_literals.sql b/tests/queries/0_stateless/00185_array_literals.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00185_array_literals.sql rename to tests/queries/0_stateless/00185_array_literals.sql diff --git a/dbms/tests/queries/0_stateless/00186_very_long_arrays.reference b/tests/queries/0_stateless/00186_very_long_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00186_very_long_arrays.reference rename to tests/queries/0_stateless/00186_very_long_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00186_very_long_arrays.sh b/tests/queries/0_stateless/00186_very_long_arrays.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00186_very_long_arrays.sh rename to tests/queries/0_stateless/00186_very_long_arrays.sh diff --git a/dbms/tests/queries/0_stateless/00187_like_regexp_prefix.reference b/tests/queries/0_stateless/00187_like_regexp_prefix.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00187_like_regexp_prefix.reference rename to tests/queries/0_stateless/00187_like_regexp_prefix.reference diff --git a/dbms/tests/queries/0_stateless/00187_like_regexp_prefix.sql b/tests/queries/0_stateless/00187_like_regexp_prefix.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00187_like_regexp_prefix.sql rename to tests/queries/0_stateless/00187_like_regexp_prefix.sql diff --git a/dbms/tests/queries/0_stateless/00188_constants_as_arguments_of_aggregate_functions.reference b/tests/queries/0_stateless/00188_constants_as_arguments_of_aggregate_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00188_constants_as_arguments_of_aggregate_functions.reference rename to tests/queries/0_stateless/00188_constants_as_arguments_of_aggregate_functions.reference diff --git a/dbms/tests/queries/0_stateless/00188_constants_as_arguments_of_aggregate_functions.sql b/tests/queries/0_stateless/00188_constants_as_arguments_of_aggregate_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00188_constants_as_arguments_of_aggregate_functions.sql rename to tests/queries/0_stateless/00188_constants_as_arguments_of_aggregate_functions.sql diff --git a/dbms/tests/queries/0_stateless/00189_time_zones.reference b/tests/queries/0_stateless/00189_time_zones.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00189_time_zones.reference rename to tests/queries/0_stateless/00189_time_zones.reference diff --git a/dbms/tests/queries/0_stateless/00189_time_zones.sql b/tests/queries/0_stateless/00189_time_zones.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00189_time_zones.sql rename to tests/queries/0_stateless/00189_time_zones.sql diff --git a/dbms/tests/queries/0_stateless/00190_non_constant_array_of_constant_data.reference b/tests/queries/0_stateless/00190_non_constant_array_of_constant_data.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00190_non_constant_array_of_constant_data.reference rename to tests/queries/0_stateless/00190_non_constant_array_of_constant_data.reference diff --git a/dbms/tests/queries/0_stateless/00190_non_constant_array_of_constant_data.sql b/tests/queries/0_stateless/00190_non_constant_array_of_constant_data.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00190_non_constant_array_of_constant_data.sql rename to tests/queries/0_stateless/00190_non_constant_array_of_constant_data.sql diff --git a/dbms/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.reference b/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.reference rename to tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.reference diff --git a/dbms/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.sql b/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.sql rename to tests/queries/0_stateless/00191_aggregating_merge_tree_and_final.sql diff --git a/dbms/tests/queries/0_stateless/00192_least_greatest.reference b/tests/queries/0_stateless/00192_least_greatest.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00192_least_greatest.reference rename to tests/queries/0_stateless/00192_least_greatest.reference diff --git a/dbms/tests/queries/0_stateless/00192_least_greatest.sql b/tests/queries/0_stateless/00192_least_greatest.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00192_least_greatest.sql rename to tests/queries/0_stateless/00192_least_greatest.sql diff --git a/dbms/tests/queries/0_stateless/00193_parallel_replicas.reference b/tests/queries/0_stateless/00193_parallel_replicas.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00193_parallel_replicas.reference rename to tests/queries/0_stateless/00193_parallel_replicas.reference diff --git a/dbms/tests/queries/0_stateless/00193_parallel_replicas.sql b/tests/queries/0_stateless/00193_parallel_replicas.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00193_parallel_replicas.sql rename to tests/queries/0_stateless/00193_parallel_replicas.sql diff --git a/dbms/tests/queries/0_stateless/00194_identity.reference b/tests/queries/0_stateless/00194_identity.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00194_identity.reference rename to tests/queries/0_stateless/00194_identity.reference diff --git a/dbms/tests/queries/0_stateless/00194_identity.sql b/tests/queries/0_stateless/00194_identity.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00194_identity.sql rename to tests/queries/0_stateless/00194_identity.sql diff --git a/dbms/tests/queries/0_stateless/00195_shard_union_all_and_global_in.reference b/tests/queries/0_stateless/00195_shard_union_all_and_global_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00195_shard_union_all_and_global_in.reference rename to tests/queries/0_stateless/00195_shard_union_all_and_global_in.reference diff --git a/dbms/tests/queries/0_stateless/00195_shard_union_all_and_global_in.sql b/tests/queries/0_stateless/00195_shard_union_all_and_global_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00195_shard_union_all_and_global_in.sql rename to tests/queries/0_stateless/00195_shard_union_all_and_global_in.sql diff --git a/dbms/tests/queries/0_stateless/00196_float32_formatting.reference b/tests/queries/0_stateless/00196_float32_formatting.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00196_float32_formatting.reference rename to tests/queries/0_stateless/00196_float32_formatting.reference diff --git a/dbms/tests/queries/0_stateless/00196_float32_formatting.sql b/tests/queries/0_stateless/00196_float32_formatting.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00196_float32_formatting.sql rename to tests/queries/0_stateless/00196_float32_formatting.sql diff --git a/dbms/tests/queries/0_stateless/00197_if_fixed_string.reference b/tests/queries/0_stateless/00197_if_fixed_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00197_if_fixed_string.reference rename to tests/queries/0_stateless/00197_if_fixed_string.reference diff --git a/dbms/tests/queries/0_stateless/00197_if_fixed_string.sql b/tests/queries/0_stateless/00197_if_fixed_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00197_if_fixed_string.sql rename to tests/queries/0_stateless/00197_if_fixed_string.sql diff --git a/dbms/tests/queries/0_stateless/00198_group_by_empty_arrays.reference b/tests/queries/0_stateless/00198_group_by_empty_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00198_group_by_empty_arrays.reference rename to tests/queries/0_stateless/00198_group_by_empty_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00198_group_by_empty_arrays.sql b/tests/queries/0_stateless/00198_group_by_empty_arrays.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00198_group_by_empty_arrays.sql rename to tests/queries/0_stateless/00198_group_by_empty_arrays.sql diff --git a/dbms/tests/queries/0_stateless/00199_ternary_operator_type_check.reference b/tests/queries/0_stateless/00199_ternary_operator_type_check.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00199_ternary_operator_type_check.reference rename to tests/queries/0_stateless/00199_ternary_operator_type_check.reference diff --git a/dbms/tests/queries/0_stateless/00199_ternary_operator_type_check.sql b/tests/queries/0_stateless/00199_ternary_operator_type_check.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00199_ternary_operator_type_check.sql rename to tests/queries/0_stateless/00199_ternary_operator_type_check.sql diff --git a/dbms/tests/queries/0_stateless/00200_shard_distinct_order_by_limit_distributed.reference b/tests/queries/0_stateless/00200_shard_distinct_order_by_limit_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00200_shard_distinct_order_by_limit_distributed.reference rename to tests/queries/0_stateless/00200_shard_distinct_order_by_limit_distributed.reference diff --git a/dbms/tests/queries/0_stateless/00200_shard_distinct_order_by_limit_distributed.sql b/tests/queries/0_stateless/00200_shard_distinct_order_by_limit_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00200_shard_distinct_order_by_limit_distributed.sql rename to tests/queries/0_stateless/00200_shard_distinct_order_by_limit_distributed.sql diff --git a/dbms/tests/queries/0_stateless/00201_array_uniq.reference b/tests/queries/0_stateless/00201_array_uniq.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00201_array_uniq.reference rename to tests/queries/0_stateless/00201_array_uniq.reference diff --git a/dbms/tests/queries/0_stateless/00201_array_uniq.sql b/tests/queries/0_stateless/00201_array_uniq.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00201_array_uniq.sql rename to tests/queries/0_stateless/00201_array_uniq.sql diff --git a/dbms/tests/queries/0_stateless/00202_cross_join.reference b/tests/queries/0_stateless/00202_cross_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00202_cross_join.reference rename to tests/queries/0_stateless/00202_cross_join.reference diff --git a/dbms/tests/queries/0_stateless/00202_cross_join.sql b/tests/queries/0_stateless/00202_cross_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00202_cross_join.sql rename to tests/queries/0_stateless/00202_cross_join.sql diff --git a/dbms/tests/queries/0_stateless/00203_full_join.reference b/tests/queries/0_stateless/00203_full_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00203_full_join.reference rename to tests/queries/0_stateless/00203_full_join.reference diff --git a/dbms/tests/queries/0_stateless/00203_full_join.sql b/tests/queries/0_stateless/00203_full_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00203_full_join.sql rename to tests/queries/0_stateless/00203_full_join.sql diff --git a/dbms/tests/queries/0_stateless/00204_extract_url_parameter.reference b/tests/queries/0_stateless/00204_extract_url_parameter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00204_extract_url_parameter.reference rename to tests/queries/0_stateless/00204_extract_url_parameter.reference diff --git a/dbms/tests/queries/0_stateless/00204_extract_url_parameter.sql b/tests/queries/0_stateless/00204_extract_url_parameter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00204_extract_url_parameter.sql rename to tests/queries/0_stateless/00204_extract_url_parameter.sql diff --git a/dbms/tests/queries/0_stateless/00205_scalar_subqueries.reference b/tests/queries/0_stateless/00205_scalar_subqueries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00205_scalar_subqueries.reference rename to tests/queries/0_stateless/00205_scalar_subqueries.reference diff --git a/dbms/tests/queries/0_stateless/00205_scalar_subqueries.sql b/tests/queries/0_stateless/00205_scalar_subqueries.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00205_scalar_subqueries.sql rename to tests/queries/0_stateless/00205_scalar_subqueries.sql diff --git a/dbms/tests/queries/0_stateless/00206_empty_array_to_single.reference b/tests/queries/0_stateless/00206_empty_array_to_single.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00206_empty_array_to_single.reference rename to tests/queries/0_stateless/00206_empty_array_to_single.reference diff --git a/dbms/tests/queries/0_stateless/00206_empty_array_to_single.sql b/tests/queries/0_stateless/00206_empty_array_to_single.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00206_empty_array_to_single.sql rename to tests/queries/0_stateless/00206_empty_array_to_single.sql diff --git a/dbms/tests/queries/0_stateless/00207_left_array_join.reference b/tests/queries/0_stateless/00207_left_array_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00207_left_array_join.reference rename to tests/queries/0_stateless/00207_left_array_join.reference diff --git a/dbms/tests/queries/0_stateless/00207_left_array_join.sql b/tests/queries/0_stateless/00207_left_array_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00207_left_array_join.sql rename to tests/queries/0_stateless/00207_left_array_join.sql diff --git a/dbms/tests/queries/0_stateless/00208_agg_state_merge.reference b/tests/queries/0_stateless/00208_agg_state_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00208_agg_state_merge.reference rename to tests/queries/0_stateless/00208_agg_state_merge.reference diff --git a/dbms/tests/queries/0_stateless/00208_agg_state_merge.sql b/tests/queries/0_stateless/00208_agg_state_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00208_agg_state_merge.sql rename to tests/queries/0_stateless/00208_agg_state_merge.sql diff --git a/dbms/tests/queries/0_stateless/00209_insert_select_extremes.reference b/tests/queries/0_stateless/00209_insert_select_extremes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00209_insert_select_extremes.reference rename to tests/queries/0_stateless/00209_insert_select_extremes.reference diff --git a/dbms/tests/queries/0_stateless/00209_insert_select_extremes.sql b/tests/queries/0_stateless/00209_insert_select_extremes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00209_insert_select_extremes.sql rename to tests/queries/0_stateless/00209_insert_select_extremes.sql diff --git a/dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.reference b/tests/queries/0_stateless/00210_insert_select_extremes_http.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.reference rename to tests/queries/0_stateless/00210_insert_select_extremes_http.reference diff --git a/dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.sh b/tests/queries/0_stateless/00210_insert_select_extremes_http.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00210_insert_select_extremes_http.sh rename to tests/queries/0_stateless/00210_insert_select_extremes_http.sh diff --git a/dbms/tests/queries/0_stateless/00211_shard_query_formatting_aliases.reference b/tests/queries/0_stateless/00211_shard_query_formatting_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00211_shard_query_formatting_aliases.reference rename to tests/queries/0_stateless/00211_shard_query_formatting_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00211_shard_query_formatting_aliases.sql b/tests/queries/0_stateless/00211_shard_query_formatting_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00211_shard_query_formatting_aliases.sql rename to tests/queries/0_stateless/00211_shard_query_formatting_aliases.sql diff --git a/dbms/tests/queries/0_stateless/00212_shard_aggregate_function_uniq.reference b/tests/queries/0_stateless/00212_shard_aggregate_function_uniq.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00212_shard_aggregate_function_uniq.reference rename to tests/queries/0_stateless/00212_shard_aggregate_function_uniq.reference diff --git a/dbms/tests/queries/0_stateless/00212_shard_aggregate_function_uniq.sql b/tests/queries/0_stateless/00212_shard_aggregate_function_uniq.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00212_shard_aggregate_function_uniq.sql rename to tests/queries/0_stateless/00212_shard_aggregate_function_uniq.sql diff --git a/dbms/tests/queries/0_stateless/00213_multiple_global_in.reference b/tests/queries/0_stateless/00213_multiple_global_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00213_multiple_global_in.reference rename to tests/queries/0_stateless/00213_multiple_global_in.reference diff --git a/dbms/tests/queries/0_stateless/00213_multiple_global_in.sql b/tests/queries/0_stateless/00213_multiple_global_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00213_multiple_global_in.sql rename to tests/queries/0_stateless/00213_multiple_global_in.sql diff --git a/dbms/tests/queries/0_stateless/00214_primary_key_order.reference b/tests/queries/0_stateless/00214_primary_key_order.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00214_primary_key_order.reference rename to tests/queries/0_stateless/00214_primary_key_order.reference diff --git a/dbms/tests/queries/0_stateless/00214_primary_key_order.sql b/tests/queries/0_stateless/00214_primary_key_order.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00214_primary_key_order.sql rename to tests/queries/0_stateless/00214_primary_key_order.sql diff --git a/dbms/tests/queries/0_stateless/00215_primary_key_order_zookeeper.reference b/tests/queries/0_stateless/00215_primary_key_order_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00215_primary_key_order_zookeeper.reference rename to tests/queries/0_stateless/00215_primary_key_order_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00215_primary_key_order_zookeeper.sql b/tests/queries/0_stateless/00215_primary_key_order_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00215_primary_key_order_zookeeper.sql rename to tests/queries/0_stateless/00215_primary_key_order_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00216_bit_test_function_family.reference b/tests/queries/0_stateless/00216_bit_test_function_family.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00216_bit_test_function_family.reference rename to tests/queries/0_stateless/00216_bit_test_function_family.reference diff --git a/dbms/tests/queries/0_stateless/00216_bit_test_function_family.sql b/tests/queries/0_stateless/00216_bit_test_function_family.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00216_bit_test_function_family.sql rename to tests/queries/0_stateless/00216_bit_test_function_family.sql diff --git a/dbms/tests/queries/0_stateless/00217_shard_global_subquery_columns_with_same_name.reference b/tests/queries/0_stateless/00217_shard_global_subquery_columns_with_same_name.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00217_shard_global_subquery_columns_with_same_name.reference rename to tests/queries/0_stateless/00217_shard_global_subquery_columns_with_same_name.reference diff --git a/dbms/tests/queries/0_stateless/00217_shard_global_subquery_columns_with_same_name.sql b/tests/queries/0_stateless/00217_shard_global_subquery_columns_with_same_name.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00217_shard_global_subquery_columns_with_same_name.sql rename to tests/queries/0_stateless/00217_shard_global_subquery_columns_with_same_name.sql diff --git a/dbms/tests/queries/0_stateless/00218_like_regexp_newline.reference b/tests/queries/0_stateless/00218_like_regexp_newline.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00218_like_regexp_newline.reference rename to tests/queries/0_stateless/00218_like_regexp_newline.reference diff --git a/dbms/tests/queries/0_stateless/00218_like_regexp_newline.sql b/tests/queries/0_stateless/00218_like_regexp_newline.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00218_like_regexp_newline.sql rename to tests/queries/0_stateless/00218_like_regexp_newline.sql diff --git a/dbms/tests/queries/0_stateless/00219_full_right_join_column_order.reference b/tests/queries/0_stateless/00219_full_right_join_column_order.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00219_full_right_join_column_order.reference rename to tests/queries/0_stateless/00219_full_right_join_column_order.reference diff --git a/dbms/tests/queries/0_stateless/00219_full_right_join_column_order.sql b/tests/queries/0_stateless/00219_full_right_join_column_order.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00219_full_right_join_column_order.sql rename to tests/queries/0_stateless/00219_full_right_join_column_order.sql diff --git a/dbms/tests/queries/0_stateless/00220_shard_with_totals_in_subquery_remote_and_limit.reference b/tests/queries/0_stateless/00220_shard_with_totals_in_subquery_remote_and_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00220_shard_with_totals_in_subquery_remote_and_limit.reference rename to tests/queries/0_stateless/00220_shard_with_totals_in_subquery_remote_and_limit.reference diff --git a/dbms/tests/queries/0_stateless/00220_shard_with_totals_in_subquery_remote_and_limit.sql b/tests/queries/0_stateless/00220_shard_with_totals_in_subquery_remote_and_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00220_shard_with_totals_in_subquery_remote_and_limit.sql rename to tests/queries/0_stateless/00220_shard_with_totals_in_subquery_remote_and_limit.sql diff --git a/dbms/tests/queries/0_stateless/00222_sequence_aggregate_function_family.reference b/tests/queries/0_stateless/00222_sequence_aggregate_function_family.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00222_sequence_aggregate_function_family.reference rename to tests/queries/0_stateless/00222_sequence_aggregate_function_family.reference diff --git a/dbms/tests/queries/0_stateless/00222_sequence_aggregate_function_family.sql b/tests/queries/0_stateless/00222_sequence_aggregate_function_family.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00222_sequence_aggregate_function_family.sql rename to tests/queries/0_stateless/00222_sequence_aggregate_function_family.sql diff --git a/dbms/tests/queries/0_stateless/00223_shard_distributed_aggregation_memory_efficient.reference b/tests/queries/0_stateless/00223_shard_distributed_aggregation_memory_efficient.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00223_shard_distributed_aggregation_memory_efficient.reference rename to tests/queries/0_stateless/00223_shard_distributed_aggregation_memory_efficient.reference diff --git a/dbms/tests/queries/0_stateless/00223_shard_distributed_aggregation_memory_efficient.sql b/tests/queries/0_stateless/00223_shard_distributed_aggregation_memory_efficient.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00223_shard_distributed_aggregation_memory_efficient.sql rename to tests/queries/0_stateless/00223_shard_distributed_aggregation_memory_efficient.sql diff --git a/dbms/tests/queries/0_stateless/00224_shard_distributed_aggregation_memory_efficient_and_overflows.reference b/tests/queries/0_stateless/00224_shard_distributed_aggregation_memory_efficient_and_overflows.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00224_shard_distributed_aggregation_memory_efficient_and_overflows.reference rename to tests/queries/0_stateless/00224_shard_distributed_aggregation_memory_efficient_and_overflows.reference diff --git a/dbms/tests/queries/0_stateless/00224_shard_distributed_aggregation_memory_efficient_and_overflows.sql b/tests/queries/0_stateless/00224_shard_distributed_aggregation_memory_efficient_and_overflows.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00224_shard_distributed_aggregation_memory_efficient_and_overflows.sql rename to tests/queries/0_stateless/00224_shard_distributed_aggregation_memory_efficient_and_overflows.sql diff --git a/dbms/tests/queries/0_stateless/00225_join_duplicate_columns.reference b/tests/queries/0_stateless/00225_join_duplicate_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00225_join_duplicate_columns.reference rename to tests/queries/0_stateless/00225_join_duplicate_columns.reference diff --git a/dbms/tests/queries/0_stateless/00225_join_duplicate_columns.sql b/tests/queries/0_stateless/00225_join_duplicate_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00225_join_duplicate_columns.sql rename to tests/queries/0_stateless/00225_join_duplicate_columns.sql diff --git a/dbms/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.reference b/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.reference rename to tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.reference diff --git a/dbms/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.sql b/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.sql rename to tests/queries/0_stateless/00226_zookeeper_deduplication_and_unexpected_parts.sql diff --git a/dbms/tests/queries/0_stateless/00227_quantiles_timing_arbitrary_order.reference b/tests/queries/0_stateless/00227_quantiles_timing_arbitrary_order.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00227_quantiles_timing_arbitrary_order.reference rename to tests/queries/0_stateless/00227_quantiles_timing_arbitrary_order.reference diff --git a/dbms/tests/queries/0_stateless/00227_quantiles_timing_arbitrary_order.sql b/tests/queries/0_stateless/00227_quantiles_timing_arbitrary_order.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00227_quantiles_timing_arbitrary_order.sql rename to tests/queries/0_stateless/00227_quantiles_timing_arbitrary_order.sql diff --git a/dbms/tests/queries/0_stateless/00228_shard_quantiles_deterministic_merge_overflow.reference b/tests/queries/0_stateless/00228_shard_quantiles_deterministic_merge_overflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00228_shard_quantiles_deterministic_merge_overflow.reference rename to tests/queries/0_stateless/00228_shard_quantiles_deterministic_merge_overflow.reference diff --git a/dbms/tests/queries/0_stateless/00228_shard_quantiles_deterministic_merge_overflow.sql b/tests/queries/0_stateless/00228_shard_quantiles_deterministic_merge_overflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00228_shard_quantiles_deterministic_merge_overflow.sql rename to tests/queries/0_stateless/00228_shard_quantiles_deterministic_merge_overflow.sql diff --git a/dbms/tests/queries/0_stateless/00229_prewhere_column_missing.reference b/tests/queries/0_stateless/00229_prewhere_column_missing.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00229_prewhere_column_missing.reference rename to tests/queries/0_stateless/00229_prewhere_column_missing.reference diff --git a/dbms/tests/queries/0_stateless/00229_prewhere_column_missing.sql b/tests/queries/0_stateless/00229_prewhere_column_missing.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00229_prewhere_column_missing.sql rename to tests/queries/0_stateless/00229_prewhere_column_missing.sql diff --git a/dbms/tests/queries/0_stateless/00230_array_functions_has_count_equal_index_of_non_const_second_arg.reference b/tests/queries/0_stateless/00230_array_functions_has_count_equal_index_of_non_const_second_arg.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00230_array_functions_has_count_equal_index_of_non_const_second_arg.reference rename to tests/queries/0_stateless/00230_array_functions_has_count_equal_index_of_non_const_second_arg.reference diff --git a/dbms/tests/queries/0_stateless/00230_array_functions_has_count_equal_index_of_non_const_second_arg.sql b/tests/queries/0_stateless/00230_array_functions_has_count_equal_index_of_non_const_second_arg.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00230_array_functions_has_count_equal_index_of_non_const_second_arg.sql rename to tests/queries/0_stateless/00230_array_functions_has_count_equal_index_of_non_const_second_arg.sql diff --git a/dbms/tests/queries/0_stateless/00231_format_vertical_raw.reference b/tests/queries/0_stateless/00231_format_vertical_raw.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00231_format_vertical_raw.reference rename to tests/queries/0_stateless/00231_format_vertical_raw.reference diff --git a/dbms/tests/queries/0_stateless/00231_format_vertical_raw.sql b/tests/queries/0_stateless/00231_format_vertical_raw.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00231_format_vertical_raw.sql rename to tests/queries/0_stateless/00231_format_vertical_raw.sql diff --git a/dbms/tests/queries/0_stateless/00232_format_readable_size.reference b/tests/queries/0_stateless/00232_format_readable_size.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00232_format_readable_size.reference rename to tests/queries/0_stateless/00232_format_readable_size.reference diff --git a/dbms/tests/queries/0_stateless/00232_format_readable_size.sql b/tests/queries/0_stateless/00232_format_readable_size.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00232_format_readable_size.sql rename to tests/queries/0_stateless/00232_format_readable_size.sql diff --git a/dbms/tests/queries/0_stateless/00233_position_function_family.reference b/tests/queries/0_stateless/00233_position_function_family.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00233_position_function_family.reference rename to tests/queries/0_stateless/00233_position_function_family.reference diff --git a/dbms/tests/queries/0_stateless/00233_position_function_family.sql b/tests/queries/0_stateless/00233_position_function_family.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00233_position_function_family.sql rename to tests/queries/0_stateless/00233_position_function_family.sql diff --git a/dbms/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.reference b/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.reference rename to tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.reference diff --git a/dbms/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.sql b/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.sql rename to tests/queries/0_stateless/00234_disjunctive_equality_chains_optimization.sql diff --git a/dbms/tests/queries/0_stateless/00235_create_temporary_table_as.reference b/tests/queries/0_stateless/00235_create_temporary_table_as.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00235_create_temporary_table_as.reference rename to tests/queries/0_stateless/00235_create_temporary_table_as.reference diff --git a/dbms/tests/queries/0_stateless/00235_create_temporary_table_as.sql b/tests/queries/0_stateless/00235_create_temporary_table_as.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00235_create_temporary_table_as.sql rename to tests/queries/0_stateless/00235_create_temporary_table_as.sql diff --git a/dbms/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.reference b/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.reference rename to tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.sql b/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.sql rename to tests/queries/0_stateless/00236_replicated_drop_on_non_leader_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00237_group_by_arrays.reference b/tests/queries/0_stateless/00237_group_by_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00237_group_by_arrays.reference rename to tests/queries/0_stateless/00237_group_by_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00237_group_by_arrays.sql b/tests/queries/0_stateless/00237_group_by_arrays.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00237_group_by_arrays.sql rename to tests/queries/0_stateless/00237_group_by_arrays.sql diff --git a/dbms/tests/queries/0_stateless/00238_removal_of_temporary_columns.reference b/tests/queries/0_stateless/00238_removal_of_temporary_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00238_removal_of_temporary_columns.reference rename to tests/queries/0_stateless/00238_removal_of_temporary_columns.reference diff --git a/dbms/tests/queries/0_stateless/00238_removal_of_temporary_columns.sql b/tests/queries/0_stateless/00238_removal_of_temporary_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00238_removal_of_temporary_columns.sql rename to tests/queries/0_stateless/00238_removal_of_temporary_columns.sql diff --git a/dbms/tests/queries/0_stateless/00239_type_conversion_in_in.reference b/tests/queries/0_stateless/00239_type_conversion_in_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00239_type_conversion_in_in.reference rename to tests/queries/0_stateless/00239_type_conversion_in_in.reference diff --git a/dbms/tests/queries/0_stateless/00239_type_conversion_in_in.sql b/tests/queries/0_stateless/00239_type_conversion_in_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00239_type_conversion_in_in.sql rename to tests/queries/0_stateless/00239_type_conversion_in_in.sql diff --git a/dbms/tests/queries/0_stateless/00240_replace_substring_loop.reference b/tests/queries/0_stateless/00240_replace_substring_loop.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00240_replace_substring_loop.reference rename to tests/queries/0_stateless/00240_replace_substring_loop.reference diff --git a/dbms/tests/queries/0_stateless/00240_replace_substring_loop.sql b/tests/queries/0_stateless/00240_replace_substring_loop.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00240_replace_substring_loop.sql rename to tests/queries/0_stateless/00240_replace_substring_loop.sql diff --git a/dbms/tests/queries/0_stateless/00250_tuple_comparison.reference b/tests/queries/0_stateless/00250_tuple_comparison.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00250_tuple_comparison.reference rename to tests/queries/0_stateless/00250_tuple_comparison.reference diff --git a/dbms/tests/queries/0_stateless/00250_tuple_comparison.sql b/tests/queries/0_stateless/00250_tuple_comparison.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00250_tuple_comparison.sql rename to tests/queries/0_stateless/00250_tuple_comparison.sql diff --git a/dbms/tests/queries/0_stateless/00251_has_types.reference b/tests/queries/0_stateless/00251_has_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00251_has_types.reference rename to tests/queries/0_stateless/00251_has_types.reference diff --git a/dbms/tests/queries/0_stateless/00251_has_types.sql b/tests/queries/0_stateless/00251_has_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00251_has_types.sql rename to tests/queries/0_stateless/00251_has_types.sql diff --git a/dbms/tests/queries/0_stateless/00252_shard_global_in_aggregate_function.reference b/tests/queries/0_stateless/00252_shard_global_in_aggregate_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00252_shard_global_in_aggregate_function.reference rename to tests/queries/0_stateless/00252_shard_global_in_aggregate_function.reference diff --git a/dbms/tests/queries/0_stateless/00252_shard_global_in_aggregate_function.sql b/tests/queries/0_stateless/00252_shard_global_in_aggregate_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00252_shard_global_in_aggregate_function.sql rename to tests/queries/0_stateless/00252_shard_global_in_aggregate_function.sql diff --git a/dbms/tests/queries/0_stateless/00253_insert_recursive_defaults.reference b/tests/queries/0_stateless/00253_insert_recursive_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00253_insert_recursive_defaults.reference rename to tests/queries/0_stateless/00253_insert_recursive_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00253_insert_recursive_defaults.sql b/tests/queries/0_stateless/00253_insert_recursive_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00253_insert_recursive_defaults.sql rename to tests/queries/0_stateless/00253_insert_recursive_defaults.sql diff --git a/dbms/tests/queries/0_stateless/00254_tuple_extremes.reference b/tests/queries/0_stateless/00254_tuple_extremes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00254_tuple_extremes.reference rename to tests/queries/0_stateless/00254_tuple_extremes.reference diff --git a/dbms/tests/queries/0_stateless/00254_tuple_extremes.sql b/tests/queries/0_stateless/00254_tuple_extremes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00254_tuple_extremes.sql rename to tests/queries/0_stateless/00254_tuple_extremes.sql diff --git a/dbms/tests/queries/0_stateless/00255_array_concat_string.reference b/tests/queries/0_stateless/00255_array_concat_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00255_array_concat_string.reference rename to tests/queries/0_stateless/00255_array_concat_string.reference diff --git a/dbms/tests/queries/0_stateless/00255_array_concat_string.sql b/tests/queries/0_stateless/00255_array_concat_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00255_array_concat_string.sql rename to tests/queries/0_stateless/00255_array_concat_string.sql diff --git a/dbms/tests/queries/0_stateless/00256_reverse.reference b/tests/queries/0_stateless/00256_reverse.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00256_reverse.reference rename to tests/queries/0_stateless/00256_reverse.reference diff --git a/dbms/tests/queries/0_stateless/00256_reverse.sql b/tests/queries/0_stateless/00256_reverse.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00256_reverse.sql rename to tests/queries/0_stateless/00256_reverse.sql diff --git a/dbms/tests/queries/0_stateless/00257_shard_no_aggregates_and_constant_keys.reference b/tests/queries/0_stateless/00257_shard_no_aggregates_and_constant_keys.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00257_shard_no_aggregates_and_constant_keys.reference rename to tests/queries/0_stateless/00257_shard_no_aggregates_and_constant_keys.reference diff --git a/dbms/tests/queries/0_stateless/00257_shard_no_aggregates_and_constant_keys.sql b/tests/queries/0_stateless/00257_shard_no_aggregates_and_constant_keys.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00257_shard_no_aggregates_and_constant_keys.sql rename to tests/queries/0_stateless/00257_shard_no_aggregates_and_constant_keys.sql diff --git a/dbms/tests/queries/0_stateless/00258_materializing_tuples.reference b/tests/queries/0_stateless/00258_materializing_tuples.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00258_materializing_tuples.reference rename to tests/queries/0_stateless/00258_materializing_tuples.reference diff --git a/dbms/tests/queries/0_stateless/00258_materializing_tuples.sql b/tests/queries/0_stateless/00258_materializing_tuples.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00258_materializing_tuples.sql rename to tests/queries/0_stateless/00258_materializing_tuples.sql diff --git a/dbms/tests/queries/0_stateless/00259_hashing_tuples.reference b/tests/queries/0_stateless/00259_hashing_tuples.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00259_hashing_tuples.reference rename to tests/queries/0_stateless/00259_hashing_tuples.reference diff --git a/dbms/tests/queries/0_stateless/00259_hashing_tuples.sql b/tests/queries/0_stateless/00259_hashing_tuples.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00259_hashing_tuples.sql rename to tests/queries/0_stateless/00259_hashing_tuples.sql diff --git a/dbms/tests/queries/0_stateless/00260_like_and_curly_braces.reference b/tests/queries/0_stateless/00260_like_and_curly_braces.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00260_like_and_curly_braces.reference rename to tests/queries/0_stateless/00260_like_and_curly_braces.reference diff --git a/dbms/tests/queries/0_stateless/00260_like_and_curly_braces.sql b/tests/queries/0_stateless/00260_like_and_curly_braces.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00260_like_and_curly_braces.sql rename to tests/queries/0_stateless/00260_like_and_curly_braces.sql diff --git a/dbms/tests/queries/0_stateless/00261_storage_aliases_and_array_join.reference b/tests/queries/0_stateless/00261_storage_aliases_and_array_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00261_storage_aliases_and_array_join.reference rename to tests/queries/0_stateless/00261_storage_aliases_and_array_join.reference diff --git a/dbms/tests/queries/0_stateless/00261_storage_aliases_and_array_join.sql b/tests/queries/0_stateless/00261_storage_aliases_and_array_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00261_storage_aliases_and_array_join.sql rename to tests/queries/0_stateless/00261_storage_aliases_and_array_join.sql diff --git a/dbms/tests/queries/0_stateless/00262_alter_alias.reference b/tests/queries/0_stateless/00262_alter_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00262_alter_alias.reference rename to tests/queries/0_stateless/00262_alter_alias.reference diff --git a/dbms/tests/queries/0_stateless/00262_alter_alias.sql b/tests/queries/0_stateless/00262_alter_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00262_alter_alias.sql rename to tests/queries/0_stateless/00262_alter_alias.sql diff --git a/dbms/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.reference b/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.reference rename to tests/queries/0_stateless/00263_merge_aggregates_and_overflow.reference diff --git a/dbms/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.sql b/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00263_merge_aggregates_and_overflow.sql rename to tests/queries/0_stateless/00263_merge_aggregates_and_overflow.sql diff --git a/dbms/tests/queries/0_stateless/00264_uniq_many_args.reference b/tests/queries/0_stateless/00264_uniq_many_args.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00264_uniq_many_args.reference rename to tests/queries/0_stateless/00264_uniq_many_args.reference diff --git a/dbms/tests/queries/0_stateless/00264_uniq_many_args.sql b/tests/queries/0_stateless/00264_uniq_many_args.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00264_uniq_many_args.sql rename to tests/queries/0_stateless/00264_uniq_many_args.sql diff --git a/dbms/tests/queries/0_stateless/00265_http_content_type_format_timezone.reference b/tests/queries/0_stateless/00265_http_content_type_format_timezone.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00265_http_content_type_format_timezone.reference rename to tests/queries/0_stateless/00265_http_content_type_format_timezone.reference diff --git a/dbms/tests/queries/0_stateless/00265_http_content_type_format_timezone.sh b/tests/queries/0_stateless/00265_http_content_type_format_timezone.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00265_http_content_type_format_timezone.sh rename to tests/queries/0_stateless/00265_http_content_type_format_timezone.sh diff --git a/dbms/tests/queries/0_stateless/00266_read_overflow_mode.reference b/tests/queries/0_stateless/00266_read_overflow_mode.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00266_read_overflow_mode.reference rename to tests/queries/0_stateless/00266_read_overflow_mode.reference diff --git a/dbms/tests/queries/0_stateless/00266_read_overflow_mode.sql b/tests/queries/0_stateless/00266_read_overflow_mode.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00266_read_overflow_mode.sql rename to tests/queries/0_stateless/00266_read_overflow_mode.sql diff --git a/dbms/tests/queries/0_stateless/00266_shard_global_subquery_and_aliases.reference b/tests/queries/0_stateless/00266_shard_global_subquery_and_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00266_shard_global_subquery_and_aliases.reference rename to tests/queries/0_stateless/00266_shard_global_subquery_and_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00266_shard_global_subquery_and_aliases.sql b/tests/queries/0_stateless/00266_shard_global_subquery_and_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00266_shard_global_subquery_and_aliases.sql rename to tests/queries/0_stateless/00266_shard_global_subquery_and_aliases.sql diff --git a/dbms/tests/queries/0_stateless/00267_tuple_array_access_operators_priority.reference b/tests/queries/0_stateless/00267_tuple_array_access_operators_priority.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00267_tuple_array_access_operators_priority.reference rename to tests/queries/0_stateless/00267_tuple_array_access_operators_priority.reference diff --git a/dbms/tests/queries/0_stateless/00267_tuple_array_access_operators_priority.sql b/tests/queries/0_stateless/00267_tuple_array_access_operators_priority.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00267_tuple_array_access_operators_priority.sql rename to tests/queries/0_stateless/00267_tuple_array_access_operators_priority.sql diff --git a/dbms/tests/queries/0_stateless/00268_aliases_without_as_keyword.reference b/tests/queries/0_stateless/00268_aliases_without_as_keyword.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00268_aliases_without_as_keyword.reference rename to tests/queries/0_stateless/00268_aliases_without_as_keyword.reference diff --git a/dbms/tests/queries/0_stateless/00268_aliases_without_as_keyword.sql b/tests/queries/0_stateless/00268_aliases_without_as_keyword.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00268_aliases_without_as_keyword.sql rename to tests/queries/0_stateless/00268_aliases_without_as_keyword.sql diff --git a/dbms/tests/queries/0_stateless/00269_database_table_whitespace.reference b/tests/queries/0_stateless/00269_database_table_whitespace.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00269_database_table_whitespace.reference rename to tests/queries/0_stateless/00269_database_table_whitespace.reference diff --git a/dbms/tests/queries/0_stateless/00269_database_table_whitespace.sql b/tests/queries/0_stateless/00269_database_table_whitespace.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00269_database_table_whitespace.sql rename to tests/queries/0_stateless/00269_database_table_whitespace.sql diff --git a/dbms/tests/queries/0_stateless/00270_views_query_processing_stage.reference b/tests/queries/0_stateless/00270_views_query_processing_stage.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00270_views_query_processing_stage.reference rename to tests/queries/0_stateless/00270_views_query_processing_stage.reference diff --git a/dbms/tests/queries/0_stateless/00270_views_query_processing_stage.sql b/tests/queries/0_stateless/00270_views_query_processing_stage.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00270_views_query_processing_stage.sql rename to tests/queries/0_stateless/00270_views_query_processing_stage.sql diff --git a/dbms/tests/queries/0_stateless/00271_agg_state_and_totals.reference b/tests/queries/0_stateless/00271_agg_state_and_totals.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00271_agg_state_and_totals.reference rename to tests/queries/0_stateless/00271_agg_state_and_totals.reference diff --git a/dbms/tests/queries/0_stateless/00271_agg_state_and_totals.sql b/tests/queries/0_stateless/00271_agg_state_and_totals.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00271_agg_state_and_totals.sql rename to tests/queries/0_stateless/00271_agg_state_and_totals.sql diff --git a/dbms/tests/queries/0_stateless/00272_union_all_and_in_subquery.reference b/tests/queries/0_stateless/00272_union_all_and_in_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00272_union_all_and_in_subquery.reference rename to tests/queries/0_stateless/00272_union_all_and_in_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00272_union_all_and_in_subquery.sql b/tests/queries/0_stateless/00272_union_all_and_in_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00272_union_all_and_in_subquery.sql rename to tests/queries/0_stateless/00272_union_all_and_in_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00273_quantiles.reference b/tests/queries/0_stateless/00273_quantiles.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00273_quantiles.reference rename to tests/queries/0_stateless/00273_quantiles.reference diff --git a/dbms/tests/queries/0_stateless/00273_quantiles.sql b/tests/queries/0_stateless/00273_quantiles.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00273_quantiles.sql rename to tests/queries/0_stateless/00273_quantiles.sql diff --git a/dbms/tests/queries/0_stateless/00274_shard_group_array.reference b/tests/queries/0_stateless/00274_shard_group_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00274_shard_group_array.reference rename to tests/queries/0_stateless/00274_shard_group_array.reference diff --git a/dbms/tests/queries/0_stateless/00274_shard_group_array.sql b/tests/queries/0_stateless/00274_shard_group_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00274_shard_group_array.sql rename to tests/queries/0_stateless/00274_shard_group_array.sql diff --git a/dbms/tests/queries/0_stateless/00275_shard_quantiles_weighted.reference b/tests/queries/0_stateless/00275_shard_quantiles_weighted.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00275_shard_quantiles_weighted.reference rename to tests/queries/0_stateless/00275_shard_quantiles_weighted.reference diff --git a/dbms/tests/queries/0_stateless/00275_shard_quantiles_weighted.sql b/tests/queries/0_stateless/00275_shard_quantiles_weighted.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00275_shard_quantiles_weighted.sql rename to tests/queries/0_stateless/00275_shard_quantiles_weighted.sql diff --git a/dbms/tests/queries/0_stateless/00276_sample.reference b/tests/queries/0_stateless/00276_sample.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00276_sample.reference rename to tests/queries/0_stateless/00276_sample.reference diff --git a/dbms/tests/queries/0_stateless/00276_sample.sql b/tests/queries/0_stateless/00276_sample.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00276_sample.sql rename to tests/queries/0_stateless/00276_sample.sql diff --git a/dbms/tests/queries/0_stateless/00277_array_filter.reference b/tests/queries/0_stateless/00277_array_filter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00277_array_filter.reference rename to tests/queries/0_stateless/00277_array_filter.reference diff --git a/dbms/tests/queries/0_stateless/00277_array_filter.sql b/tests/queries/0_stateless/00277_array_filter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00277_array_filter.sql rename to tests/queries/0_stateless/00277_array_filter.sql diff --git a/dbms/tests/queries/0_stateless/00278_insert_already_sorted.reference b/tests/queries/0_stateless/00278_insert_already_sorted.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00278_insert_already_sorted.reference rename to tests/queries/0_stateless/00278_insert_already_sorted.reference diff --git a/dbms/tests/queries/0_stateless/00278_insert_already_sorted.sql b/tests/queries/0_stateless/00278_insert_already_sorted.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00278_insert_already_sorted.sql rename to tests/queries/0_stateless/00278_insert_already_sorted.sql diff --git a/dbms/tests/queries/0_stateless/00279_quantiles_permuted_args.reference b/tests/queries/0_stateless/00279_quantiles_permuted_args.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00279_quantiles_permuted_args.reference rename to tests/queries/0_stateless/00279_quantiles_permuted_args.reference diff --git a/dbms/tests/queries/0_stateless/00279_quantiles_permuted_args.sql b/tests/queries/0_stateless/00279_quantiles_permuted_args.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00279_quantiles_permuted_args.sql rename to tests/queries/0_stateless/00279_quantiles_permuted_args.sql diff --git a/dbms/tests/queries/0_stateless/00280_hex_escape_sequence.reference b/tests/queries/0_stateless/00280_hex_escape_sequence.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00280_hex_escape_sequence.reference rename to tests/queries/0_stateless/00280_hex_escape_sequence.reference diff --git a/dbms/tests/queries/0_stateless/00280_hex_escape_sequence.sql b/tests/queries/0_stateless/00280_hex_escape_sequence.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00280_hex_escape_sequence.sql rename to tests/queries/0_stateless/00280_hex_escape_sequence.sql diff --git a/dbms/tests/queries/0_stateless/00281_compile_sizeof_packed.re b/tests/queries/0_stateless/00281_compile_sizeof_packed.re similarity index 100% rename from dbms/tests/queries/0_stateless/00281_compile_sizeof_packed.re rename to tests/queries/0_stateless/00281_compile_sizeof_packed.re diff --git a/dbms/tests/queries/0_stateless/00282_merging.reference b/tests/queries/0_stateless/00282_merging.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00282_merging.reference rename to tests/queries/0_stateless/00282_merging.reference diff --git a/dbms/tests/queries/0_stateless/00282_merging.sql b/tests/queries/0_stateless/00282_merging.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00282_merging.sql rename to tests/queries/0_stateless/00282_merging.sql diff --git a/dbms/tests/queries/0_stateless/00283_column_cut.reference b/tests/queries/0_stateless/00283_column_cut.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00283_column_cut.reference rename to tests/queries/0_stateless/00283_column_cut.reference diff --git a/dbms/tests/queries/0_stateless/00283_column_cut.sql b/tests/queries/0_stateless/00283_column_cut.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00283_column_cut.sql rename to tests/queries/0_stateless/00283_column_cut.sql diff --git a/dbms/tests/queries/0_stateless/00284_external_aggregation.reference b/tests/queries/0_stateless/00284_external_aggregation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00284_external_aggregation.reference rename to tests/queries/0_stateless/00284_external_aggregation.reference diff --git a/dbms/tests/queries/0_stateless/00284_external_aggregation.sql b/tests/queries/0_stateless/00284_external_aggregation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00284_external_aggregation.sql rename to tests/queries/0_stateless/00284_external_aggregation.sql diff --git a/dbms/tests/queries/0_stateless/00285_not_all_data_in_totals.reference b/tests/queries/0_stateless/00285_not_all_data_in_totals.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00285_not_all_data_in_totals.reference rename to tests/queries/0_stateless/00285_not_all_data_in_totals.reference diff --git a/dbms/tests/queries/0_stateless/00285_not_all_data_in_totals.sql b/tests/queries/0_stateless/00285_not_all_data_in_totals.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00285_not_all_data_in_totals.sql rename to tests/queries/0_stateless/00285_not_all_data_in_totals.sql diff --git a/dbms/tests/queries/0_stateless/00286_format_long_negative_float.reference b/tests/queries/0_stateless/00286_format_long_negative_float.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00286_format_long_negative_float.reference rename to tests/queries/0_stateless/00286_format_long_negative_float.reference diff --git a/dbms/tests/queries/0_stateless/00286_format_long_negative_float.sql b/tests/queries/0_stateless/00286_format_long_negative_float.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00286_format_long_negative_float.sql rename to tests/queries/0_stateless/00286_format_long_negative_float.sql diff --git a/dbms/tests/queries/0_stateless/00287_column_const_with_nan.reference b/tests/queries/0_stateless/00287_column_const_with_nan.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00287_column_const_with_nan.reference rename to tests/queries/0_stateless/00287_column_const_with_nan.reference diff --git a/dbms/tests/queries/0_stateless/00287_column_const_with_nan.sql b/tests/queries/0_stateless/00287_column_const_with_nan.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00287_column_const_with_nan.sql rename to tests/queries/0_stateless/00287_column_const_with_nan.sql diff --git a/dbms/tests/queries/0_stateless/00288_empty_stripelog.reference b/tests/queries/0_stateless/00288_empty_stripelog.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00288_empty_stripelog.reference rename to tests/queries/0_stateless/00288_empty_stripelog.reference diff --git a/dbms/tests/queries/0_stateless/00288_empty_stripelog.sql b/tests/queries/0_stateless/00288_empty_stripelog.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00288_empty_stripelog.sql rename to tests/queries/0_stateless/00288_empty_stripelog.sql diff --git a/dbms/tests/queries/0_stateless/00290_shard_aggregation_memory_efficient.reference b/tests/queries/0_stateless/00290_shard_aggregation_memory_efficient.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00290_shard_aggregation_memory_efficient.reference rename to tests/queries/0_stateless/00290_shard_aggregation_memory_efficient.reference diff --git a/dbms/tests/queries/0_stateless/00290_shard_aggregation_memory_efficient.sql b/tests/queries/0_stateless/00290_shard_aggregation_memory_efficient.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00290_shard_aggregation_memory_efficient.sql rename to tests/queries/0_stateless/00290_shard_aggregation_memory_efficient.sql diff --git a/dbms/tests/queries/0_stateless/00291_array_reduce.reference b/tests/queries/0_stateless/00291_array_reduce.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00291_array_reduce.reference rename to tests/queries/0_stateless/00291_array_reduce.reference diff --git a/dbms/tests/queries/0_stateless/00291_array_reduce.sql b/tests/queries/0_stateless/00291_array_reduce.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00291_array_reduce.sql rename to tests/queries/0_stateless/00291_array_reduce.sql diff --git a/dbms/tests/queries/0_stateless/00292_parser_tuple_element.reference b/tests/queries/0_stateless/00292_parser_tuple_element.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00292_parser_tuple_element.reference rename to tests/queries/0_stateless/00292_parser_tuple_element.reference diff --git a/dbms/tests/queries/0_stateless/00292_parser_tuple_element.sql b/tests/queries/0_stateless/00292_parser_tuple_element.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00292_parser_tuple_element.sql rename to tests/queries/0_stateless/00292_parser_tuple_element.sql diff --git a/dbms/tests/queries/0_stateless/00293_shard_max_subquery_depth.reference b/tests/queries/0_stateless/00293_shard_max_subquery_depth.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00293_shard_max_subquery_depth.reference rename to tests/queries/0_stateless/00293_shard_max_subquery_depth.reference diff --git a/dbms/tests/queries/0_stateless/00293_shard_max_subquery_depth.sql b/tests/queries/0_stateless/00293_shard_max_subquery_depth.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00293_shard_max_subquery_depth.sql rename to tests/queries/0_stateless/00293_shard_max_subquery_depth.sql diff --git a/dbms/tests/queries/0_stateless/00294_shard_enums.reference b/tests/queries/0_stateless/00294_shard_enums.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00294_shard_enums.reference rename to tests/queries/0_stateless/00294_shard_enums.reference diff --git a/dbms/tests/queries/0_stateless/00294_shard_enums.sql b/tests/queries/0_stateless/00294_shard_enums.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00294_shard_enums.sql rename to tests/queries/0_stateless/00294_shard_enums.sql diff --git a/dbms/tests/queries/0_stateless/00295_global_in_one_shard_rows_before_limit.reference b/tests/queries/0_stateless/00295_global_in_one_shard_rows_before_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00295_global_in_one_shard_rows_before_limit.reference rename to tests/queries/0_stateless/00295_global_in_one_shard_rows_before_limit.reference diff --git a/dbms/tests/queries/0_stateless/00295_global_in_one_shard_rows_before_limit.sql b/tests/queries/0_stateless/00295_global_in_one_shard_rows_before_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00295_global_in_one_shard_rows_before_limit.sql rename to tests/queries/0_stateless/00295_global_in_one_shard_rows_before_limit.sql diff --git a/dbms/tests/queries/0_stateless/00296_url_parameters.reference b/tests/queries/0_stateless/00296_url_parameters.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00296_url_parameters.reference rename to tests/queries/0_stateless/00296_url_parameters.reference diff --git a/dbms/tests/queries/0_stateless/00296_url_parameters.sql b/tests/queries/0_stateless/00296_url_parameters.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00296_url_parameters.sql rename to tests/queries/0_stateless/00296_url_parameters.sql diff --git a/dbms/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.reference b/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.reference rename to tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.sql.disabled b/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.sql.disabled similarity index 100% rename from dbms/tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.sql.disabled rename to tests/queries/0_stateless/00297_attach_negative_numbers_zookeeper.sql.disabled diff --git a/dbms/tests/queries/0_stateless/00298_enum_width_and_cast.reference b/tests/queries/0_stateless/00298_enum_width_and_cast.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00298_enum_width_and_cast.reference rename to tests/queries/0_stateless/00298_enum_width_and_cast.reference diff --git a/dbms/tests/queries/0_stateless/00298_enum_width_and_cast.sql b/tests/queries/0_stateless/00298_enum_width_and_cast.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00298_enum_width_and_cast.sql rename to tests/queries/0_stateless/00298_enum_width_and_cast.sql diff --git a/dbms/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.reference b/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.reference rename to tests/queries/0_stateless/00299_stripe_log_multiple_inserts.reference diff --git a/dbms/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.sql b/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00299_stripe_log_multiple_inserts.sql rename to tests/queries/0_stateless/00299_stripe_log_multiple_inserts.sql diff --git a/dbms/tests/queries/0_stateless/00300_csv.reference b/tests/queries/0_stateless/00300_csv.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00300_csv.reference rename to tests/queries/0_stateless/00300_csv.reference diff --git a/dbms/tests/queries/0_stateless/00300_csv.sql b/tests/queries/0_stateless/00300_csv.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00300_csv.sql rename to tests/queries/0_stateless/00300_csv.sql diff --git a/dbms/tests/queries/0_stateless/00301_csv.reference b/tests/queries/0_stateless/00301_csv.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00301_csv.reference rename to tests/queries/0_stateless/00301_csv.reference diff --git a/dbms/tests/queries/0_stateless/00301_csv.sh b/tests/queries/0_stateless/00301_csv.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00301_csv.sh rename to tests/queries/0_stateless/00301_csv.sh diff --git a/dbms/tests/queries/0_stateless/00302_http_compression.reference b/tests/queries/0_stateless/00302_http_compression.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00302_http_compression.reference rename to tests/queries/0_stateless/00302_http_compression.reference diff --git a/dbms/tests/queries/0_stateless/00302_http_compression.sh b/tests/queries/0_stateless/00302_http_compression.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00302_http_compression.sh rename to tests/queries/0_stateless/00302_http_compression.sh diff --git a/dbms/tests/queries/0_stateless/00304_http_external_data.reference b/tests/queries/0_stateless/00304_http_external_data.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00304_http_external_data.reference rename to tests/queries/0_stateless/00304_http_external_data.reference diff --git a/dbms/tests/queries/0_stateless/00304_http_external_data.sh b/tests/queries/0_stateless/00304_http_external_data.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00304_http_external_data.sh rename to tests/queries/0_stateless/00304_http_external_data.sh diff --git a/dbms/tests/queries/0_stateless/00305_http_and_readonly.reference b/tests/queries/0_stateless/00305_http_and_readonly.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00305_http_and_readonly.reference rename to tests/queries/0_stateless/00305_http_and_readonly.reference diff --git a/dbms/tests/queries/0_stateless/00305_http_and_readonly.sh b/tests/queries/0_stateless/00305_http_and_readonly.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00305_http_and_readonly.sh rename to tests/queries/0_stateless/00305_http_and_readonly.sh diff --git a/dbms/tests/queries/0_stateless/00306_insert_values_and_expressions.reference b/tests/queries/0_stateless/00306_insert_values_and_expressions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00306_insert_values_and_expressions.reference rename to tests/queries/0_stateless/00306_insert_values_and_expressions.reference diff --git a/dbms/tests/queries/0_stateless/00306_insert_values_and_expressions.sql b/tests/queries/0_stateless/00306_insert_values_and_expressions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00306_insert_values_and_expressions.sql rename to tests/queries/0_stateless/00306_insert_values_and_expressions.sql diff --git a/dbms/tests/queries/0_stateless/00307_format_xml.reference b/tests/queries/0_stateless/00307_format_xml.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00307_format_xml.reference rename to tests/queries/0_stateless/00307_format_xml.reference diff --git a/dbms/tests/queries/0_stateless/00307_format_xml.sql b/tests/queries/0_stateless/00307_format_xml.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00307_format_xml.sql rename to tests/queries/0_stateless/00307_format_xml.sql diff --git a/dbms/tests/queries/0_stateless/00308_write_buffer_valid_utf8.reference b/tests/queries/0_stateless/00308_write_buffer_valid_utf8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00308_write_buffer_valid_utf8.reference rename to tests/queries/0_stateless/00308_write_buffer_valid_utf8.reference diff --git a/dbms/tests/queries/0_stateless/00308_write_buffer_valid_utf8.sql b/tests/queries/0_stateless/00308_write_buffer_valid_utf8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00308_write_buffer_valid_utf8.sql rename to tests/queries/0_stateless/00308_write_buffer_valid_utf8.sql diff --git a/dbms/tests/queries/0_stateless/00309_formats.reference b/tests/queries/0_stateless/00309_formats.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00309_formats.reference rename to tests/queries/0_stateless/00309_formats.reference diff --git a/dbms/tests/queries/0_stateless/00309_formats.sql b/tests/queries/0_stateless/00309_formats.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00309_formats.sql rename to tests/queries/0_stateless/00309_formats.sql diff --git a/dbms/tests/queries/0_stateless/00310_tskv.reference b/tests/queries/0_stateless/00310_tskv.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00310_tskv.reference rename to tests/queries/0_stateless/00310_tskv.reference diff --git a/dbms/tests/queries/0_stateless/00310_tskv.sh b/tests/queries/0_stateless/00310_tskv.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00310_tskv.sh rename to tests/queries/0_stateless/00310_tskv.sh diff --git a/dbms/tests/queries/0_stateless/00311_array_primary_key.reference b/tests/queries/0_stateless/00311_array_primary_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00311_array_primary_key.reference rename to tests/queries/0_stateless/00311_array_primary_key.reference diff --git a/dbms/tests/queries/0_stateless/00311_array_primary_key.sql b/tests/queries/0_stateless/00311_array_primary_key.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00311_array_primary_key.sql rename to tests/queries/0_stateless/00311_array_primary_key.sql diff --git a/dbms/tests/queries/0_stateless/00312_position_case_insensitive_utf8.reference b/tests/queries/0_stateless/00312_position_case_insensitive_utf8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00312_position_case_insensitive_utf8.reference rename to tests/queries/0_stateless/00312_position_case_insensitive_utf8.reference diff --git a/dbms/tests/queries/0_stateless/00312_position_case_insensitive_utf8.sql b/tests/queries/0_stateless/00312_position_case_insensitive_utf8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00312_position_case_insensitive_utf8.sql rename to tests/queries/0_stateless/00312_position_case_insensitive_utf8.sql diff --git a/dbms/tests/queries/0_stateless/00313_const_totals_extremes.reference b/tests/queries/0_stateless/00313_const_totals_extremes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00313_const_totals_extremes.reference rename to tests/queries/0_stateless/00313_const_totals_extremes.reference diff --git a/dbms/tests/queries/0_stateless/00313_const_totals_extremes.sh b/tests/queries/0_stateless/00313_const_totals_extremes.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00313_const_totals_extremes.sh rename to tests/queries/0_stateless/00313_const_totals_extremes.sh diff --git a/dbms/tests/queries/0_stateless/00314_sample_factor_virtual_column.reference b/tests/queries/0_stateless/00314_sample_factor_virtual_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00314_sample_factor_virtual_column.reference rename to tests/queries/0_stateless/00314_sample_factor_virtual_column.reference diff --git a/dbms/tests/queries/0_stateless/00314_sample_factor_virtual_column.sql b/tests/queries/0_stateless/00314_sample_factor_virtual_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00314_sample_factor_virtual_column.sql rename to tests/queries/0_stateless/00314_sample_factor_virtual_column.sql diff --git a/dbms/tests/queries/0_stateless/00315_quantile_off_by_one.reference b/tests/queries/0_stateless/00315_quantile_off_by_one.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00315_quantile_off_by_one.reference rename to tests/queries/0_stateless/00315_quantile_off_by_one.reference diff --git a/dbms/tests/queries/0_stateless/00315_quantile_off_by_one.sql b/tests/queries/0_stateless/00315_quantile_off_by_one.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00315_quantile_off_by_one.sql rename to tests/queries/0_stateless/00315_quantile_off_by_one.sql diff --git a/dbms/tests/queries/0_stateless/00316_rounding_functions_and_empty_block.reference b/tests/queries/0_stateless/00316_rounding_functions_and_empty_block.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00316_rounding_functions_and_empty_block.reference rename to tests/queries/0_stateless/00316_rounding_functions_and_empty_block.reference diff --git a/dbms/tests/queries/0_stateless/00316_rounding_functions_and_empty_block.sql b/tests/queries/0_stateless/00316_rounding_functions_and_empty_block.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00316_rounding_functions_and_empty_block.sql rename to tests/queries/0_stateless/00316_rounding_functions_and_empty_block.sql diff --git a/dbms/tests/queries/0_stateless/00317_in_tuples_and_out_of_range_values.reference b/tests/queries/0_stateless/00317_in_tuples_and_out_of_range_values.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00317_in_tuples_and_out_of_range_values.reference rename to tests/queries/0_stateless/00317_in_tuples_and_out_of_range_values.reference diff --git a/dbms/tests/queries/0_stateless/00317_in_tuples_and_out_of_range_values.sql b/tests/queries/0_stateless/00317_in_tuples_and_out_of_range_values.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00317_in_tuples_and_out_of_range_values.sql rename to tests/queries/0_stateless/00317_in_tuples_and_out_of_range_values.sql diff --git a/dbms/tests/queries/0_stateless/00318_pk_tuple_order.reference b/tests/queries/0_stateless/00318_pk_tuple_order.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00318_pk_tuple_order.reference rename to tests/queries/0_stateless/00318_pk_tuple_order.reference diff --git a/dbms/tests/queries/0_stateless/00318_pk_tuple_order.sql b/tests/queries/0_stateless/00318_pk_tuple_order.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00318_pk_tuple_order.sql rename to tests/queries/0_stateless/00318_pk_tuple_order.sql diff --git a/dbms/tests/queries/0_stateless/00319_index_for_like.reference b/tests/queries/0_stateless/00319_index_for_like.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00319_index_for_like.reference rename to tests/queries/0_stateless/00319_index_for_like.reference diff --git a/dbms/tests/queries/0_stateless/00319_index_for_like.sql b/tests/queries/0_stateless/00319_index_for_like.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00319_index_for_like.sql rename to tests/queries/0_stateless/00319_index_for_like.sql diff --git a/dbms/tests/queries/0_stateless/00320_between.reference b/tests/queries/0_stateless/00320_between.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00320_between.reference rename to tests/queries/0_stateless/00320_between.reference diff --git a/dbms/tests/queries/0_stateless/00320_between.sql b/tests/queries/0_stateless/00320_between.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00320_between.sql rename to tests/queries/0_stateless/00320_between.sql diff --git a/dbms/tests/queries/0_stateless/00321_pk_set.reference b/tests/queries/0_stateless/00321_pk_set.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00321_pk_set.reference rename to tests/queries/0_stateless/00321_pk_set.reference diff --git a/dbms/tests/queries/0_stateless/00321_pk_set.sql b/tests/queries/0_stateless/00321_pk_set.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00321_pk_set.sql rename to tests/queries/0_stateless/00321_pk_set.sql diff --git a/dbms/tests/queries/0_stateless/00322_disable_checksumming.reference b/tests/queries/0_stateless/00322_disable_checksumming.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00322_disable_checksumming.reference rename to tests/queries/0_stateless/00322_disable_checksumming.reference diff --git a/dbms/tests/queries/0_stateless/00322_disable_checksumming.sh b/tests/queries/0_stateless/00322_disable_checksumming.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00322_disable_checksumming.sh rename to tests/queries/0_stateless/00322_disable_checksumming.sh diff --git a/dbms/tests/queries/0_stateless/00323_quantiles_timing_bug.reference b/tests/queries/0_stateless/00323_quantiles_timing_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00323_quantiles_timing_bug.reference rename to tests/queries/0_stateless/00323_quantiles_timing_bug.reference diff --git a/dbms/tests/queries/0_stateless/00323_quantiles_timing_bug.sql b/tests/queries/0_stateless/00323_quantiles_timing_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00323_quantiles_timing_bug.sql rename to tests/queries/0_stateless/00323_quantiles_timing_bug.sql diff --git a/dbms/tests/queries/0_stateless/00324_hashing_enums.reference b/tests/queries/0_stateless/00324_hashing_enums.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00324_hashing_enums.reference rename to tests/queries/0_stateless/00324_hashing_enums.reference diff --git a/dbms/tests/queries/0_stateless/00324_hashing_enums.sql b/tests/queries/0_stateless/00324_hashing_enums.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00324_hashing_enums.sql rename to tests/queries/0_stateless/00324_hashing_enums.sql diff --git a/dbms/tests/queries/0_stateless/00325_replacing_merge_tree.reference b/tests/queries/0_stateless/00325_replacing_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00325_replacing_merge_tree.reference rename to tests/queries/0_stateless/00325_replacing_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00325_replacing_merge_tree.sql.disabled b/tests/queries/0_stateless/00325_replacing_merge_tree.sql.disabled similarity index 100% rename from dbms/tests/queries/0_stateless/00325_replacing_merge_tree.sql.disabled rename to tests/queries/0_stateless/00325_replacing_merge_tree.sql.disabled diff --git a/dbms/tests/queries/0_stateless/00326_long_function_multi_if.reference b/tests/queries/0_stateless/00326_long_function_multi_if.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00326_long_function_multi_if.reference rename to tests/queries/0_stateless/00326_long_function_multi_if.reference diff --git a/dbms/tests/queries/0_stateless/00326_long_function_multi_if.sql b/tests/queries/0_stateless/00326_long_function_multi_if.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00326_long_function_multi_if.sql rename to tests/queries/0_stateless/00326_long_function_multi_if.sql diff --git a/dbms/tests/queries/0_stateless/00327_summing_composite_nested.reference b/tests/queries/0_stateless/00327_summing_composite_nested.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00327_summing_composite_nested.reference rename to tests/queries/0_stateless/00327_summing_composite_nested.reference diff --git a/dbms/tests/queries/0_stateless/00327_summing_composite_nested.sql b/tests/queries/0_stateless/00327_summing_composite_nested.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00327_summing_composite_nested.sql rename to tests/queries/0_stateless/00327_summing_composite_nested.sql diff --git a/dbms/tests/queries/0_stateless/00328_long_case_construction.reference b/tests/queries/0_stateless/00328_long_case_construction.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00328_long_case_construction.reference rename to tests/queries/0_stateless/00328_long_case_construction.reference diff --git a/dbms/tests/queries/0_stateless/00328_long_case_construction.sql b/tests/queries/0_stateless/00328_long_case_construction.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00328_long_case_construction.sql rename to tests/queries/0_stateless/00328_long_case_construction.sql diff --git a/dbms/tests/queries/0_stateless/00330_view_subqueries.reference b/tests/queries/0_stateless/00330_view_subqueries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00330_view_subqueries.reference rename to tests/queries/0_stateless/00330_view_subqueries.reference diff --git a/dbms/tests/queries/0_stateless/00330_view_subqueries.sql b/tests/queries/0_stateless/00330_view_subqueries.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00330_view_subqueries.sql rename to tests/queries/0_stateless/00330_view_subqueries.sql diff --git a/dbms/tests/queries/0_stateless/00331_final_and_prewhere.reference b/tests/queries/0_stateless/00331_final_and_prewhere.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00331_final_and_prewhere.reference rename to tests/queries/0_stateless/00331_final_and_prewhere.reference diff --git a/dbms/tests/queries/0_stateless/00331_final_and_prewhere.sql b/tests/queries/0_stateless/00331_final_and_prewhere.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00331_final_and_prewhere.sql rename to tests/queries/0_stateless/00331_final_and_prewhere.sql diff --git a/dbms/tests/queries/0_stateless/00332_quantile_timing_memory_leak.reference b/tests/queries/0_stateless/00332_quantile_timing_memory_leak.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00332_quantile_timing_memory_leak.reference rename to tests/queries/0_stateless/00332_quantile_timing_memory_leak.reference diff --git a/dbms/tests/queries/0_stateless/00332_quantile_timing_memory_leak.sql b/tests/queries/0_stateless/00332_quantile_timing_memory_leak.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00332_quantile_timing_memory_leak.sql rename to tests/queries/0_stateless/00332_quantile_timing_memory_leak.sql diff --git a/dbms/tests/queries/0_stateless/00333_parser_number_bug.reference b/tests/queries/0_stateless/00333_parser_number_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00333_parser_number_bug.reference rename to tests/queries/0_stateless/00333_parser_number_bug.reference diff --git a/dbms/tests/queries/0_stateless/00333_parser_number_bug.sql b/tests/queries/0_stateless/00333_parser_number_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00333_parser_number_bug.sql rename to tests/queries/0_stateless/00333_parser_number_bug.sql diff --git a/dbms/tests/queries/0_stateless/00334_column_aggregate_function_limit.reference b/tests/queries/0_stateless/00334_column_aggregate_function_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00334_column_aggregate_function_limit.reference rename to tests/queries/0_stateless/00334_column_aggregate_function_limit.reference diff --git a/dbms/tests/queries/0_stateless/00334_column_aggregate_function_limit.sql b/tests/queries/0_stateless/00334_column_aggregate_function_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00334_column_aggregate_function_limit.sql rename to tests/queries/0_stateless/00334_column_aggregate_function_limit.sql diff --git a/dbms/tests/queries/0_stateless/00335_bom.reference b/tests/queries/0_stateless/00335_bom.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00335_bom.reference rename to tests/queries/0_stateless/00335_bom.reference diff --git a/dbms/tests/queries/0_stateless/00335_bom.sh b/tests/queries/0_stateless/00335_bom.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00335_bom.sh rename to tests/queries/0_stateless/00335_bom.sh diff --git a/dbms/tests/queries/0_stateless/00336_shard_stack_trace.reference b/tests/queries/0_stateless/00336_shard_stack_trace.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00336_shard_stack_trace.reference rename to tests/queries/0_stateless/00336_shard_stack_trace.reference diff --git a/dbms/tests/queries/0_stateless/00336_shard_stack_trace.sh b/tests/queries/0_stateless/00336_shard_stack_trace.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00336_shard_stack_trace.sh rename to tests/queries/0_stateless/00336_shard_stack_trace.sh diff --git a/dbms/tests/queries/0_stateless/00337_shard_any_heavy.reference b/tests/queries/0_stateless/00337_shard_any_heavy.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00337_shard_any_heavy.reference rename to tests/queries/0_stateless/00337_shard_any_heavy.reference diff --git a/dbms/tests/queries/0_stateless/00337_shard_any_heavy.sql b/tests/queries/0_stateless/00337_shard_any_heavy.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00337_shard_any_heavy.sql rename to tests/queries/0_stateless/00337_shard_any_heavy.sql diff --git a/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.reference b/tests/queries/0_stateless/00338_replicate_array_of_strings.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.reference rename to tests/queries/0_stateless/00338_replicate_array_of_strings.reference diff --git a/dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql b/tests/queries/0_stateless/00338_replicate_array_of_strings.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00338_replicate_array_of_strings.sql rename to tests/queries/0_stateless/00338_replicate_array_of_strings.sql diff --git a/dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.reference b/tests/queries/0_stateless/00339_parsing_bad_arrays.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.reference rename to tests/queries/0_stateless/00339_parsing_bad_arrays.reference diff --git a/dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.sh b/tests/queries/0_stateless/00339_parsing_bad_arrays.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00339_parsing_bad_arrays.sh rename to tests/queries/0_stateless/00339_parsing_bad_arrays.sh diff --git a/dbms/tests/queries/0_stateless/00340_squashing_insert_select.reference b/tests/queries/0_stateless/00340_squashing_insert_select.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00340_squashing_insert_select.reference rename to tests/queries/0_stateless/00340_squashing_insert_select.reference diff --git a/dbms/tests/queries/0_stateless/00340_squashing_insert_select.sql b/tests/queries/0_stateless/00340_squashing_insert_select.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00340_squashing_insert_select.sql rename to tests/queries/0_stateless/00340_squashing_insert_select.sql diff --git a/dbms/tests/queries/0_stateless/00341_squashing_insert_select2.reference b/tests/queries/0_stateless/00341_squashing_insert_select2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00341_squashing_insert_select2.reference rename to tests/queries/0_stateless/00341_squashing_insert_select2.reference diff --git a/dbms/tests/queries/0_stateless/00341_squashing_insert_select2.sql b/tests/queries/0_stateless/00341_squashing_insert_select2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00341_squashing_insert_select2.sql rename to tests/queries/0_stateless/00341_squashing_insert_select2.sql diff --git a/dbms/tests/queries/0_stateless/00342_escape_sequences.reference b/tests/queries/0_stateless/00342_escape_sequences.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00342_escape_sequences.reference rename to tests/queries/0_stateless/00342_escape_sequences.reference diff --git a/dbms/tests/queries/0_stateless/00342_escape_sequences.sql b/tests/queries/0_stateless/00342_escape_sequences.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00342_escape_sequences.sql rename to tests/queries/0_stateless/00342_escape_sequences.sql diff --git a/dbms/tests/queries/0_stateless/00343_array_element_generic.reference b/tests/queries/0_stateless/00343_array_element_generic.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00343_array_element_generic.reference rename to tests/queries/0_stateless/00343_array_element_generic.reference diff --git a/dbms/tests/queries/0_stateless/00343_array_element_generic.sql b/tests/queries/0_stateless/00343_array_element_generic.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00343_array_element_generic.sql rename to tests/queries/0_stateless/00343_array_element_generic.sql diff --git a/dbms/tests/queries/0_stateless/00344_row_number_in_all_blocks.reference b/tests/queries/0_stateless/00344_row_number_in_all_blocks.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00344_row_number_in_all_blocks.reference rename to tests/queries/0_stateless/00344_row_number_in_all_blocks.reference diff --git a/dbms/tests/queries/0_stateless/00344_row_number_in_all_blocks.sql b/tests/queries/0_stateless/00344_row_number_in_all_blocks.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00344_row_number_in_all_blocks.sql rename to tests/queries/0_stateless/00344_row_number_in_all_blocks.sql diff --git a/dbms/tests/queries/0_stateless/00345_index_accurate_comparison.reference b/tests/queries/0_stateless/00345_index_accurate_comparison.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00345_index_accurate_comparison.reference rename to tests/queries/0_stateless/00345_index_accurate_comparison.reference diff --git a/dbms/tests/queries/0_stateless/00345_index_accurate_comparison.sql b/tests/queries/0_stateless/00345_index_accurate_comparison.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00345_index_accurate_comparison.sql rename to tests/queries/0_stateless/00345_index_accurate_comparison.sql diff --git a/dbms/tests/queries/0_stateless/00346_if_tuple.reference b/tests/queries/0_stateless/00346_if_tuple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00346_if_tuple.reference rename to tests/queries/0_stateless/00346_if_tuple.reference diff --git a/dbms/tests/queries/0_stateless/00346_if_tuple.sql b/tests/queries/0_stateless/00346_if_tuple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00346_if_tuple.sql rename to tests/queries/0_stateless/00346_if_tuple.sql diff --git a/dbms/tests/queries/0_stateless/00347_has_tuple.reference b/tests/queries/0_stateless/00347_has_tuple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00347_has_tuple.reference rename to tests/queries/0_stateless/00347_has_tuple.reference diff --git a/dbms/tests/queries/0_stateless/00347_has_tuple.sql b/tests/queries/0_stateless/00347_has_tuple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00347_has_tuple.sql rename to tests/queries/0_stateless/00347_has_tuple.sql diff --git a/dbms/tests/queries/0_stateless/00348_tuples.reference b/tests/queries/0_stateless/00348_tuples.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00348_tuples.reference rename to tests/queries/0_stateless/00348_tuples.reference diff --git a/dbms/tests/queries/0_stateless/00348_tuples.sql b/tests/queries/0_stateless/00348_tuples.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00348_tuples.sql rename to tests/queries/0_stateless/00348_tuples.sql diff --git a/dbms/tests/queries/0_stateless/00349_visible_width.reference b/tests/queries/0_stateless/00349_visible_width.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00349_visible_width.reference rename to tests/queries/0_stateless/00349_visible_width.reference diff --git a/dbms/tests/queries/0_stateless/00349_visible_width.sql b/tests/queries/0_stateless/00349_visible_width.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00349_visible_width.sql rename to tests/queries/0_stateless/00349_visible_width.sql diff --git a/dbms/tests/queries/0_stateless/00350_count_distinct.reference b/tests/queries/0_stateless/00350_count_distinct.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00350_count_distinct.reference rename to tests/queries/0_stateless/00350_count_distinct.reference diff --git a/dbms/tests/queries/0_stateless/00350_count_distinct.sql b/tests/queries/0_stateless/00350_count_distinct.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00350_count_distinct.sql rename to tests/queries/0_stateless/00350_count_distinct.sql diff --git a/dbms/tests/queries/0_stateless/00351_select_distinct_arrays_tuples.reference b/tests/queries/0_stateless/00351_select_distinct_arrays_tuples.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00351_select_distinct_arrays_tuples.reference rename to tests/queries/0_stateless/00351_select_distinct_arrays_tuples.reference diff --git a/dbms/tests/queries/0_stateless/00351_select_distinct_arrays_tuples.sql b/tests/queries/0_stateless/00351_select_distinct_arrays_tuples.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00351_select_distinct_arrays_tuples.sql rename to tests/queries/0_stateless/00351_select_distinct_arrays_tuples.sql diff --git a/dbms/tests/queries/0_stateless/00352_external_sorting_and_constants.reference b/tests/queries/0_stateless/00352_external_sorting_and_constants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00352_external_sorting_and_constants.reference rename to tests/queries/0_stateless/00352_external_sorting_and_constants.reference diff --git a/dbms/tests/queries/0_stateless/00352_external_sorting_and_constants.sql b/tests/queries/0_stateless/00352_external_sorting_and_constants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00352_external_sorting_and_constants.sql rename to tests/queries/0_stateless/00352_external_sorting_and_constants.sql diff --git a/dbms/tests/queries/0_stateless/00353_join_by_tuple.reference b/tests/queries/0_stateless/00353_join_by_tuple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00353_join_by_tuple.reference rename to tests/queries/0_stateless/00353_join_by_tuple.reference diff --git a/dbms/tests/queries/0_stateless/00353_join_by_tuple.sql b/tests/queries/0_stateless/00353_join_by_tuple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00353_join_by_tuple.sql rename to tests/queries/0_stateless/00353_join_by_tuple.sql diff --git a/dbms/tests/queries/0_stateless/00354_host_command_line_option.reference b/tests/queries/0_stateless/00354_host_command_line_option.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00354_host_command_line_option.reference rename to tests/queries/0_stateless/00354_host_command_line_option.reference diff --git a/dbms/tests/queries/0_stateless/00354_host_command_line_option.sh b/tests/queries/0_stateless/00354_host_command_line_option.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00354_host_command_line_option.sh rename to tests/queries/0_stateless/00354_host_command_line_option.sh diff --git a/dbms/tests/queries/0_stateless/00355_array_of_non_const_convertible_types.reference b/tests/queries/0_stateless/00355_array_of_non_const_convertible_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00355_array_of_non_const_convertible_types.reference rename to tests/queries/0_stateless/00355_array_of_non_const_convertible_types.reference diff --git a/dbms/tests/queries/0_stateless/00355_array_of_non_const_convertible_types.sql b/tests/queries/0_stateless/00355_array_of_non_const_convertible_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00355_array_of_non_const_convertible_types.sql rename to tests/queries/0_stateless/00355_array_of_non_const_convertible_types.sql diff --git a/dbms/tests/queries/0_stateless/00356_analyze_aggregations_and_union_all.reference b/tests/queries/0_stateless/00356_analyze_aggregations_and_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00356_analyze_aggregations_and_union_all.reference rename to tests/queries/0_stateless/00356_analyze_aggregations_and_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00356_analyze_aggregations_and_union_all.sql b/tests/queries/0_stateless/00356_analyze_aggregations_and_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00356_analyze_aggregations_and_union_all.sql rename to tests/queries/0_stateless/00356_analyze_aggregations_and_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00357_to_string_complex_types.reference b/tests/queries/0_stateless/00357_to_string_complex_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00357_to_string_complex_types.reference rename to tests/queries/0_stateless/00357_to_string_complex_types.reference diff --git a/dbms/tests/queries/0_stateless/00357_to_string_complex_types.sql b/tests/queries/0_stateless/00357_to_string_complex_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00357_to_string_complex_types.sql rename to tests/queries/0_stateless/00357_to_string_complex_types.sql diff --git a/dbms/tests/queries/0_stateless/00358_from_string_complex_types.reference b/tests/queries/0_stateless/00358_from_string_complex_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00358_from_string_complex_types.reference rename to tests/queries/0_stateless/00358_from_string_complex_types.reference diff --git a/dbms/tests/queries/0_stateless/00358_from_string_complex_types.sql b/tests/queries/0_stateless/00358_from_string_complex_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00358_from_string_complex_types.sql rename to tests/queries/0_stateless/00358_from_string_complex_types.sql diff --git a/dbms/tests/queries/0_stateless/00359_convert_or_zero_functions.reference b/tests/queries/0_stateless/00359_convert_or_zero_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00359_convert_or_zero_functions.reference rename to tests/queries/0_stateless/00359_convert_or_zero_functions.reference diff --git a/dbms/tests/queries/0_stateless/00359_convert_or_zero_functions.sql b/tests/queries/0_stateless/00359_convert_or_zero_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00359_convert_or_zero_functions.sql rename to tests/queries/0_stateless/00359_convert_or_zero_functions.sql diff --git a/dbms/tests/queries/0_stateless/00360_to_date_from_string_with_datetime.reference b/tests/queries/0_stateless/00360_to_date_from_string_with_datetime.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00360_to_date_from_string_with_datetime.reference rename to tests/queries/0_stateless/00360_to_date_from_string_with_datetime.reference diff --git a/dbms/tests/queries/0_stateless/00360_to_date_from_string_with_datetime.sql b/tests/queries/0_stateless/00360_to_date_from_string_with_datetime.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00360_to_date_from_string_with_datetime.sql rename to tests/queries/0_stateless/00360_to_date_from_string_with_datetime.sql diff --git a/dbms/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.reference b/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.reference rename to tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.reference diff --git a/dbms/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.sql b/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.sql rename to tests/queries/0_stateless/00361_shared_array_offsets_and_squash_blocks.sql diff --git a/dbms/tests/queries/0_stateless/00362_great_circle_distance.reference b/tests/queries/0_stateless/00362_great_circle_distance.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00362_great_circle_distance.reference rename to tests/queries/0_stateless/00362_great_circle_distance.reference diff --git a/dbms/tests/queries/0_stateless/00362_great_circle_distance.sql b/tests/queries/0_stateless/00362_great_circle_distance.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00362_great_circle_distance.sql rename to tests/queries/0_stateless/00362_great_circle_distance.sql diff --git a/dbms/tests/queries/0_stateless/00363_defaults.reference b/tests/queries/0_stateless/00363_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00363_defaults.reference rename to tests/queries/0_stateless/00363_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00363_defaults.sql b/tests/queries/0_stateless/00363_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00363_defaults.sql rename to tests/queries/0_stateless/00363_defaults.sql diff --git a/dbms/tests/queries/0_stateless/00364_java_style_denormals.reference b/tests/queries/0_stateless/00364_java_style_denormals.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00364_java_style_denormals.reference rename to tests/queries/0_stateless/00364_java_style_denormals.reference diff --git a/dbms/tests/queries/0_stateless/00364_java_style_denormals.sql b/tests/queries/0_stateless/00364_java_style_denormals.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00364_java_style_denormals.sql rename to tests/queries/0_stateless/00364_java_style_denormals.sql diff --git a/dbms/tests/queries/0_stateless/00365_statistics_in_formats.reference b/tests/queries/0_stateless/00365_statistics_in_formats.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00365_statistics_in_formats.reference rename to tests/queries/0_stateless/00365_statistics_in_formats.reference diff --git a/dbms/tests/queries/0_stateless/00365_statistics_in_formats.sh b/tests/queries/0_stateless/00365_statistics_in_formats.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00365_statistics_in_formats.sh rename to tests/queries/0_stateless/00365_statistics_in_formats.sh diff --git a/dbms/tests/queries/0_stateless/00366_multi_statements.reference b/tests/queries/0_stateless/00366_multi_statements.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00366_multi_statements.reference rename to tests/queries/0_stateless/00366_multi_statements.reference diff --git a/dbms/tests/queries/0_stateless/00366_multi_statements.sh b/tests/queries/0_stateless/00366_multi_statements.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00366_multi_statements.sh rename to tests/queries/0_stateless/00366_multi_statements.sh diff --git a/dbms/tests/queries/0_stateless/00367_visible_width_of_array_tuple_enum.reference b/tests/queries/0_stateless/00367_visible_width_of_array_tuple_enum.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00367_visible_width_of_array_tuple_enum.reference rename to tests/queries/0_stateless/00367_visible_width_of_array_tuple_enum.reference diff --git a/dbms/tests/queries/0_stateless/00367_visible_width_of_array_tuple_enum.sql b/tests/queries/0_stateless/00367_visible_width_of_array_tuple_enum.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00367_visible_width_of_array_tuple_enum.sql rename to tests/queries/0_stateless/00367_visible_width_of_array_tuple_enum.sql diff --git a/dbms/tests/queries/0_stateless/00368_format_option_collision.reference b/tests/queries/0_stateless/00368_format_option_collision.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00368_format_option_collision.reference rename to tests/queries/0_stateless/00368_format_option_collision.reference diff --git a/dbms/tests/queries/0_stateless/00368_format_option_collision.sh b/tests/queries/0_stateless/00368_format_option_collision.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00368_format_option_collision.sh rename to tests/queries/0_stateless/00368_format_option_collision.sh diff --git a/dbms/tests/queries/0_stateless/00369_int_div_of_float.reference b/tests/queries/0_stateless/00369_int_div_of_float.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00369_int_div_of_float.reference rename to tests/queries/0_stateless/00369_int_div_of_float.reference diff --git a/dbms/tests/queries/0_stateless/00369_int_div_of_float.sql b/tests/queries/0_stateless/00369_int_div_of_float.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00369_int_div_of_float.sql rename to tests/queries/0_stateless/00369_int_div_of_float.sql diff --git a/dbms/tests/queries/0_stateless/00370_duplicate_columns_in_subqueries.reference b/tests/queries/0_stateless/00370_duplicate_columns_in_subqueries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00370_duplicate_columns_in_subqueries.reference rename to tests/queries/0_stateless/00370_duplicate_columns_in_subqueries.reference diff --git a/dbms/tests/queries/0_stateless/00370_duplicate_columns_in_subqueries.sql b/tests/queries/0_stateless/00370_duplicate_columns_in_subqueries.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00370_duplicate_columns_in_subqueries.sql rename to tests/queries/0_stateless/00370_duplicate_columns_in_subqueries.sql diff --git a/dbms/tests/queries/0_stateless/00371_union_all.reference b/tests/queries/0_stateless/00371_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00371_union_all.reference rename to tests/queries/0_stateless/00371_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00371_union_all.sql b/tests/queries/0_stateless/00371_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00371_union_all.sql rename to tests/queries/0_stateless/00371_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00372_cors_header.reference b/tests/queries/0_stateless/00372_cors_header.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00372_cors_header.reference rename to tests/queries/0_stateless/00372_cors_header.reference diff --git a/dbms/tests/queries/0_stateless/00372_cors_header.sh b/tests/queries/0_stateless/00372_cors_header.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00372_cors_header.sh rename to tests/queries/0_stateless/00372_cors_header.sh diff --git a/dbms/tests/queries/0_stateless/00373_group_by_tuple.reference b/tests/queries/0_stateless/00373_group_by_tuple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00373_group_by_tuple.reference rename to tests/queries/0_stateless/00373_group_by_tuple.reference diff --git a/dbms/tests/queries/0_stateless/00373_group_by_tuple.sql b/tests/queries/0_stateless/00373_group_by_tuple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00373_group_by_tuple.sql rename to tests/queries/0_stateless/00373_group_by_tuple.sql diff --git a/dbms/tests/queries/0_stateless/00374_any_last_if_merge.reference b/tests/queries/0_stateless/00374_any_last_if_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00374_any_last_if_merge.reference rename to tests/queries/0_stateless/00374_any_last_if_merge.reference diff --git a/dbms/tests/queries/0_stateless/00374_any_last_if_merge.sql b/tests/queries/0_stateless/00374_any_last_if_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00374_any_last_if_merge.sql rename to tests/queries/0_stateless/00374_any_last_if_merge.sql diff --git a/dbms/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.reference b/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.reference rename to tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.reference diff --git a/dbms/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.sh b/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.sh rename to tests/queries/0_stateless/00374_json_each_row_input_with_noisy_fields.sh diff --git a/dbms/tests/queries/0_stateless/00375_shard_group_uniq_array_of_string.reference b/tests/queries/0_stateless/00375_shard_group_uniq_array_of_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00375_shard_group_uniq_array_of_string.reference rename to tests/queries/0_stateless/00375_shard_group_uniq_array_of_string.reference diff --git a/dbms/tests/queries/0_stateless/00375_shard_group_uniq_array_of_string.sql b/tests/queries/0_stateless/00375_shard_group_uniq_array_of_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00375_shard_group_uniq_array_of_string.sql rename to tests/queries/0_stateless/00375_shard_group_uniq_array_of_string.sql diff --git a/dbms/tests/queries/0_stateless/00376_shard_group_uniq_array_of_int_array.reference b/tests/queries/0_stateless/00376_shard_group_uniq_array_of_int_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00376_shard_group_uniq_array_of_int_array.reference rename to tests/queries/0_stateless/00376_shard_group_uniq_array_of_int_array.reference diff --git a/dbms/tests/queries/0_stateless/00376_shard_group_uniq_array_of_int_array.sql b/tests/queries/0_stateless/00376_shard_group_uniq_array_of_int_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00376_shard_group_uniq_array_of_int_array.sql rename to tests/queries/0_stateless/00376_shard_group_uniq_array_of_int_array.sql diff --git a/dbms/tests/queries/0_stateless/00377_shard_group_uniq_array_of_string_array.reference b/tests/queries/0_stateless/00377_shard_group_uniq_array_of_string_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00377_shard_group_uniq_array_of_string_array.reference rename to tests/queries/0_stateless/00377_shard_group_uniq_array_of_string_array.reference diff --git a/dbms/tests/queries/0_stateless/00377_shard_group_uniq_array_of_string_array.sql b/tests/queries/0_stateless/00377_shard_group_uniq_array_of_string_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00377_shard_group_uniq_array_of_string_array.sql rename to tests/queries/0_stateless/00377_shard_group_uniq_array_of_string_array.sql diff --git a/dbms/tests/queries/0_stateless/00378_json_quote_64bit_integers.reference b/tests/queries/0_stateless/00378_json_quote_64bit_integers.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00378_json_quote_64bit_integers.reference rename to tests/queries/0_stateless/00378_json_quote_64bit_integers.reference diff --git a/dbms/tests/queries/0_stateless/00378_json_quote_64bit_integers.sql b/tests/queries/0_stateless/00378_json_quote_64bit_integers.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00378_json_quote_64bit_integers.sql rename to tests/queries/0_stateless/00378_json_quote_64bit_integers.sql diff --git a/dbms/tests/queries/0_stateless/00379_system_processes_port.reference b/tests/queries/0_stateless/00379_system_processes_port.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00379_system_processes_port.reference rename to tests/queries/0_stateless/00379_system_processes_port.reference diff --git a/dbms/tests/queries/0_stateless/00379_system_processes_port.sh b/tests/queries/0_stateless/00379_system_processes_port.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00379_system_processes_port.sh rename to tests/queries/0_stateless/00379_system_processes_port.sh diff --git a/dbms/tests/queries/0_stateless/00380_client_break_at_exception_in_batch_mode.reference b/tests/queries/0_stateless/00380_client_break_at_exception_in_batch_mode.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00380_client_break_at_exception_in_batch_mode.reference rename to tests/queries/0_stateless/00380_client_break_at_exception_in_batch_mode.reference diff --git a/dbms/tests/queries/0_stateless/00380_client_break_at_exception_in_batch_mode.sh b/tests/queries/0_stateless/00380_client_break_at_exception_in_batch_mode.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00380_client_break_at_exception_in_batch_mode.sh rename to tests/queries/0_stateless/00380_client_break_at_exception_in_batch_mode.sh diff --git a/dbms/tests/queries/0_stateless/00381_first_significant_subdomain.reference b/tests/queries/0_stateless/00381_first_significant_subdomain.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00381_first_significant_subdomain.reference rename to tests/queries/0_stateless/00381_first_significant_subdomain.reference diff --git a/dbms/tests/queries/0_stateless/00381_first_significant_subdomain.sql b/tests/queries/0_stateless/00381_first_significant_subdomain.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00381_first_significant_subdomain.sql rename to tests/queries/0_stateless/00381_first_significant_subdomain.sql diff --git a/dbms/tests/queries/0_stateless/00383_utf8_validation.reference b/tests/queries/0_stateless/00383_utf8_validation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00383_utf8_validation.reference rename to tests/queries/0_stateless/00383_utf8_validation.reference diff --git a/dbms/tests/queries/0_stateless/00383_utf8_validation.sql b/tests/queries/0_stateless/00383_utf8_validation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00383_utf8_validation.sql rename to tests/queries/0_stateless/00383_utf8_validation.sql diff --git a/dbms/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.reference b/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.reference rename to tests/queries/0_stateless/00384_column_aggregate_function_insert_from.reference diff --git a/dbms/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.sql b/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00384_column_aggregate_function_insert_from.sql rename to tests/queries/0_stateless/00384_column_aggregate_function_insert_from.sql diff --git a/dbms/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.reference b/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.reference rename to tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.reference diff --git a/dbms/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.sh b/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.sh rename to tests/queries/0_stateless/00385_storage_file_and_clickhouse-local_app.sh diff --git a/dbms/tests/queries/0_stateless/00386_enum_in_pk.reference b/tests/queries/0_stateless/00386_enum_in_pk.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00386_enum_in_pk.reference rename to tests/queries/0_stateless/00386_enum_in_pk.reference diff --git a/dbms/tests/queries/0_stateless/00386_enum_in_pk.sql b/tests/queries/0_stateless/00386_enum_in_pk.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00386_enum_in_pk.sql rename to tests/queries/0_stateless/00386_enum_in_pk.sql diff --git a/dbms/tests/queries/0_stateless/00386_has_column_in_table.reference b/tests/queries/0_stateless/00386_has_column_in_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00386_has_column_in_table.reference rename to tests/queries/0_stateless/00386_has_column_in_table.reference diff --git a/dbms/tests/queries/0_stateless/00386_has_column_in_table.sql b/tests/queries/0_stateless/00386_has_column_in_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00386_has_column_in_table.sql rename to tests/queries/0_stateless/00386_has_column_in_table.sql diff --git a/dbms/tests/queries/0_stateless/00386_long_in_pk.python b/tests/queries/0_stateless/00386_long_in_pk.python similarity index 100% rename from dbms/tests/queries/0_stateless/00386_long_in_pk.python rename to tests/queries/0_stateless/00386_long_in_pk.python diff --git a/dbms/tests/queries/0_stateless/00386_long_in_pk.reference b/tests/queries/0_stateless/00386_long_in_pk.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00386_long_in_pk.reference rename to tests/queries/0_stateless/00386_long_in_pk.reference diff --git a/dbms/tests/queries/0_stateless/00386_long_in_pk.sh b/tests/queries/0_stateless/00386_long_in_pk.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00386_long_in_pk.sh rename to tests/queries/0_stateless/00386_long_in_pk.sh diff --git a/dbms/tests/queries/0_stateless/00387_use_client_time_zone.reference b/tests/queries/0_stateless/00387_use_client_time_zone.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00387_use_client_time_zone.reference rename to tests/queries/0_stateless/00387_use_client_time_zone.reference diff --git a/dbms/tests/queries/0_stateless/00387_use_client_time_zone.sh b/tests/queries/0_stateless/00387_use_client_time_zone.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00387_use_client_time_zone.sh rename to tests/queries/0_stateless/00387_use_client_time_zone.sh diff --git a/dbms/tests/queries/0_stateless/00388_enum_with_totals.reference b/tests/queries/0_stateless/00388_enum_with_totals.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00388_enum_with_totals.reference rename to tests/queries/0_stateless/00388_enum_with_totals.reference diff --git a/dbms/tests/queries/0_stateless/00388_enum_with_totals.sql b/tests/queries/0_stateless/00388_enum_with_totals.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00388_enum_with_totals.sql rename to tests/queries/0_stateless/00388_enum_with_totals.sql diff --git a/dbms/tests/queries/0_stateless/00389_concat_operator.reference b/tests/queries/0_stateless/00389_concat_operator.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00389_concat_operator.reference rename to tests/queries/0_stateless/00389_concat_operator.reference diff --git a/dbms/tests/queries/0_stateless/00389_concat_operator.sql b/tests/queries/0_stateless/00389_concat_operator.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00389_concat_operator.sql rename to tests/queries/0_stateless/00389_concat_operator.sql diff --git a/dbms/tests/queries/0_stateless/00390_array_sort.reference b/tests/queries/0_stateless/00390_array_sort.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00390_array_sort.reference rename to tests/queries/0_stateless/00390_array_sort.reference diff --git a/dbms/tests/queries/0_stateless/00390_array_sort.sql b/tests/queries/0_stateless/00390_array_sort.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00390_array_sort.sql rename to tests/queries/0_stateless/00390_array_sort.sql diff --git a/dbms/tests/queries/0_stateless/00392_enum_nested_alter.reference b/tests/queries/0_stateless/00392_enum_nested_alter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00392_enum_nested_alter.reference rename to tests/queries/0_stateless/00392_enum_nested_alter.reference diff --git a/dbms/tests/queries/0_stateless/00392_enum_nested_alter.sql b/tests/queries/0_stateless/00392_enum_nested_alter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00392_enum_nested_alter.sql rename to tests/queries/0_stateless/00392_enum_nested_alter.sql diff --git a/dbms/tests/queries/0_stateless/00393_if_with_constant_condition.reference b/tests/queries/0_stateless/00393_if_with_constant_condition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00393_if_with_constant_condition.reference rename to tests/queries/0_stateless/00393_if_with_constant_condition.reference diff --git a/dbms/tests/queries/0_stateless/00393_if_with_constant_condition.sql b/tests/queries/0_stateless/00393_if_with_constant_condition.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00393_if_with_constant_condition.sql rename to tests/queries/0_stateless/00393_if_with_constant_condition.sql diff --git a/dbms/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.reference b/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.reference rename to tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.reference diff --git a/dbms/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.sql b/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.sql rename to tests/queries/0_stateless/00394_new_nested_column_keeps_offsets.sql diff --git a/dbms/tests/queries/0_stateless/00394_replaceall_vector_fixed.reference b/tests/queries/0_stateless/00394_replaceall_vector_fixed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00394_replaceall_vector_fixed.reference rename to tests/queries/0_stateless/00394_replaceall_vector_fixed.reference diff --git a/dbms/tests/queries/0_stateless/00394_replaceall_vector_fixed.sql b/tests/queries/0_stateless/00394_replaceall_vector_fixed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00394_replaceall_vector_fixed.sql rename to tests/queries/0_stateless/00394_replaceall_vector_fixed.sql diff --git a/dbms/tests/queries/0_stateless/00395_nullable.reference b/tests/queries/0_stateless/00395_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00395_nullable.reference rename to tests/queries/0_stateless/00395_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00395_nullable.sql b/tests/queries/0_stateless/00395_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00395_nullable.sql rename to tests/queries/0_stateless/00395_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00396_uuid.reference b/tests/queries/0_stateless/00396_uuid.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00396_uuid.reference rename to tests/queries/0_stateless/00396_uuid.reference diff --git a/dbms/tests/queries/0_stateless/00396_uuid.sql b/tests/queries/0_stateless/00396_uuid.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00396_uuid.sql rename to tests/queries/0_stateless/00396_uuid.sql diff --git a/dbms/tests/queries/0_stateless/00397_tsv_format_synonym.reference b/tests/queries/0_stateless/00397_tsv_format_synonym.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00397_tsv_format_synonym.reference rename to tests/queries/0_stateless/00397_tsv_format_synonym.reference diff --git a/dbms/tests/queries/0_stateless/00397_tsv_format_synonym.sql b/tests/queries/0_stateless/00397_tsv_format_synonym.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00397_tsv_format_synonym.sql rename to tests/queries/0_stateless/00397_tsv_format_synonym.sql diff --git a/dbms/tests/queries/0_stateless/00398_url_functions.reference b/tests/queries/0_stateless/00398_url_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00398_url_functions.reference rename to tests/queries/0_stateless/00398_url_functions.reference diff --git a/dbms/tests/queries/0_stateless/00398_url_functions.sql b/tests/queries/0_stateless/00398_url_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00398_url_functions.sql rename to tests/queries/0_stateless/00398_url_functions.sql diff --git a/dbms/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.reference b/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.reference rename to tests/queries/0_stateless/00399_group_uniq_array_date_datetime.reference diff --git a/dbms/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.sql b/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00399_group_uniq_array_date_datetime.sql rename to tests/queries/0_stateless/00399_group_uniq_array_date_datetime.sql diff --git a/dbms/tests/queries/0_stateless/00400_client_external_options.reference b/tests/queries/0_stateless/00400_client_external_options.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00400_client_external_options.reference rename to tests/queries/0_stateless/00400_client_external_options.reference diff --git a/dbms/tests/queries/0_stateless/00400_client_external_options.sh b/tests/queries/0_stateless/00400_client_external_options.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00400_client_external_options.sh rename to tests/queries/0_stateless/00400_client_external_options.sh diff --git a/dbms/tests/queries/0_stateless/00401_merge_and_stripelog.reference b/tests/queries/0_stateless/00401_merge_and_stripelog.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00401_merge_and_stripelog.reference rename to tests/queries/0_stateless/00401_merge_and_stripelog.reference diff --git a/dbms/tests/queries/0_stateless/00401_merge_and_stripelog.sql b/tests/queries/0_stateless/00401_merge_and_stripelog.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00401_merge_and_stripelog.sql rename to tests/queries/0_stateless/00401_merge_and_stripelog.sql diff --git a/dbms/tests/queries/0_stateless/00402_nan_and_extremes.reference b/tests/queries/0_stateless/00402_nan_and_extremes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00402_nan_and_extremes.reference rename to tests/queries/0_stateless/00402_nan_and_extremes.reference diff --git a/dbms/tests/queries/0_stateless/00402_nan_and_extremes.sql b/tests/queries/0_stateless/00402_nan_and_extremes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00402_nan_and_extremes.sql rename to tests/queries/0_stateless/00402_nan_and_extremes.sql diff --git a/dbms/tests/queries/0_stateless/00403_to_start_of_day.reference b/tests/queries/0_stateless/00403_to_start_of_day.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00403_to_start_of_day.reference rename to tests/queries/0_stateless/00403_to_start_of_day.reference diff --git a/dbms/tests/queries/0_stateless/00403_to_start_of_day.sql b/tests/queries/0_stateless/00403_to_start_of_day.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00403_to_start_of_day.sql rename to tests/queries/0_stateless/00403_to_start_of_day.sql diff --git a/dbms/tests/queries/0_stateless/00404_null_literal.reference b/tests/queries/0_stateless/00404_null_literal.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00404_null_literal.reference rename to tests/queries/0_stateless/00404_null_literal.reference diff --git a/dbms/tests/queries/0_stateless/00404_null_literal.sql b/tests/queries/0_stateless/00404_null_literal.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00404_null_literal.sql rename to tests/queries/0_stateless/00404_null_literal.sql diff --git a/dbms/tests/queries/0_stateless/00405_pretty_formats.reference b/tests/queries/0_stateless/00405_pretty_formats.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00405_pretty_formats.reference rename to tests/queries/0_stateless/00405_pretty_formats.reference diff --git a/dbms/tests/queries/0_stateless/00405_pretty_formats.sql b/tests/queries/0_stateless/00405_pretty_formats.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00405_pretty_formats.sql rename to tests/queries/0_stateless/00405_pretty_formats.sql diff --git a/dbms/tests/queries/0_stateless/00406_tuples_with_nulls.reference b/tests/queries/0_stateless/00406_tuples_with_nulls.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00406_tuples_with_nulls.reference rename to tests/queries/0_stateless/00406_tuples_with_nulls.reference diff --git a/dbms/tests/queries/0_stateless/00406_tuples_with_nulls.sql b/tests/queries/0_stateless/00406_tuples_with_nulls.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00406_tuples_with_nulls.sql rename to tests/queries/0_stateless/00406_tuples_with_nulls.sql diff --git a/dbms/tests/queries/0_stateless/00407_parsing_nulls.reference b/tests/queries/0_stateless/00407_parsing_nulls.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00407_parsing_nulls.reference rename to tests/queries/0_stateless/00407_parsing_nulls.reference diff --git a/dbms/tests/queries/0_stateless/00407_parsing_nulls.sh b/tests/queries/0_stateless/00407_parsing_nulls.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00407_parsing_nulls.sh rename to tests/queries/0_stateless/00407_parsing_nulls.sh diff --git a/dbms/tests/queries/0_stateless/00408_http_keep_alive.reference b/tests/queries/0_stateless/00408_http_keep_alive.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00408_http_keep_alive.reference rename to tests/queries/0_stateless/00408_http_keep_alive.reference diff --git a/dbms/tests/queries/0_stateless/00408_http_keep_alive.sh b/tests/queries/0_stateless/00408_http_keep_alive.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00408_http_keep_alive.sh rename to tests/queries/0_stateless/00408_http_keep_alive.sh diff --git a/dbms/tests/queries/0_stateless/00409_shard_limit_by.reference b/tests/queries/0_stateless/00409_shard_limit_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00409_shard_limit_by.reference rename to tests/queries/0_stateless/00409_shard_limit_by.reference diff --git a/dbms/tests/queries/0_stateless/00409_shard_limit_by.sql b/tests/queries/0_stateless/00409_shard_limit_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00409_shard_limit_by.sql rename to tests/queries/0_stateless/00409_shard_limit_by.sql diff --git a/dbms/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.reference b/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.reference rename to tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.reference diff --git a/dbms/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.sql b/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.sql rename to tests/queries/0_stateless/00410_aggregation_combinators_with_arenas.sql diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison.python b/tests/queries/0_stateless/00411_long_accurate_number_comparison.python similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison.python rename to tests/queries/0_stateless/00411_long_accurate_number_comparison.python diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_float.reference b/tests/queries/0_stateless/00411_long_accurate_number_comparison_float.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_float.reference rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_float.reference diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_float.sh b/tests/queries/0_stateless/00411_long_accurate_number_comparison_float.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_float.sh rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_float.sh diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int1.reference b/tests/queries/0_stateless/00411_long_accurate_number_comparison_int1.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int1.reference rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_int1.reference diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int1.sh b/tests/queries/0_stateless/00411_long_accurate_number_comparison_int1.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int1.sh rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_int1.sh diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int2.reference b/tests/queries/0_stateless/00411_long_accurate_number_comparison_int2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int2.reference rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_int2.reference diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int2.sh b/tests/queries/0_stateless/00411_long_accurate_number_comparison_int2.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int2.sh rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_int2.sh diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int3.reference b/tests/queries/0_stateless/00411_long_accurate_number_comparison_int3.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int3.reference rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_int3.reference diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int3.sh b/tests/queries/0_stateless/00411_long_accurate_number_comparison_int3.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int3.sh rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_int3.sh diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int4.reference b/tests/queries/0_stateless/00411_long_accurate_number_comparison_int4.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int4.reference rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_int4.reference diff --git a/dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int4.sh b/tests/queries/0_stateless/00411_long_accurate_number_comparison_int4.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00411_long_accurate_number_comparison_int4.sh rename to tests/queries/0_stateless/00411_long_accurate_number_comparison_int4.sh diff --git a/dbms/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.reference b/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.reference rename to tests/queries/0_stateless/00411_merge_tree_where_const_in_set.reference diff --git a/dbms/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.sql b/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00411_merge_tree_where_const_in_set.sql rename to tests/queries/0_stateless/00411_merge_tree_where_const_in_set.sql diff --git a/dbms/tests/queries/0_stateless/00412_logical_expressions_optimizer.reference b/tests/queries/0_stateless/00412_logical_expressions_optimizer.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00412_logical_expressions_optimizer.reference rename to tests/queries/0_stateless/00412_logical_expressions_optimizer.reference diff --git a/dbms/tests/queries/0_stateless/00412_logical_expressions_optimizer.sql b/tests/queries/0_stateless/00412_logical_expressions_optimizer.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00412_logical_expressions_optimizer.sql rename to tests/queries/0_stateless/00412_logical_expressions_optimizer.sql diff --git a/dbms/tests/queries/0_stateless/00413_distinct.reference b/tests/queries/0_stateless/00413_distinct.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00413_distinct.reference rename to tests/queries/0_stateless/00413_distinct.reference diff --git a/dbms/tests/queries/0_stateless/00413_distinct.sql b/tests/queries/0_stateless/00413_distinct.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00413_distinct.sql rename to tests/queries/0_stateless/00413_distinct.sql diff --git a/dbms/tests/queries/0_stateless/00413_least_greatest_new_behavior.reference b/tests/queries/0_stateless/00413_least_greatest_new_behavior.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00413_least_greatest_new_behavior.reference rename to tests/queries/0_stateless/00413_least_greatest_new_behavior.reference diff --git a/dbms/tests/queries/0_stateless/00413_least_greatest_new_behavior.sql b/tests/queries/0_stateless/00413_least_greatest_new_behavior.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00413_least_greatest_new_behavior.sql rename to tests/queries/0_stateless/00413_least_greatest_new_behavior.sql diff --git a/dbms/tests/queries/0_stateless/00414_time_zones_direct_conversion.reference b/tests/queries/0_stateless/00414_time_zones_direct_conversion.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00414_time_zones_direct_conversion.reference rename to tests/queries/0_stateless/00414_time_zones_direct_conversion.reference diff --git a/dbms/tests/queries/0_stateless/00414_time_zones_direct_conversion.sql b/tests/queries/0_stateless/00414_time_zones_direct_conversion.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00414_time_zones_direct_conversion.sql rename to tests/queries/0_stateless/00414_time_zones_direct_conversion.sql diff --git a/dbms/tests/queries/0_stateless/00415_into_outfile.reference b/tests/queries/0_stateless/00415_into_outfile.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00415_into_outfile.reference rename to tests/queries/0_stateless/00415_into_outfile.reference diff --git a/dbms/tests/queries/0_stateless/00415_into_outfile.sh b/tests/queries/0_stateless/00415_into_outfile.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00415_into_outfile.sh rename to tests/queries/0_stateless/00415_into_outfile.sh diff --git a/dbms/tests/queries/0_stateless/00416_pocopatch_progress_in_http_headers.reference b/tests/queries/0_stateless/00416_pocopatch_progress_in_http_headers.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00416_pocopatch_progress_in_http_headers.reference rename to tests/queries/0_stateless/00416_pocopatch_progress_in_http_headers.reference diff --git a/dbms/tests/queries/0_stateless/00416_pocopatch_progress_in_http_headers.sh b/tests/queries/0_stateless/00416_pocopatch_progress_in_http_headers.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00416_pocopatch_progress_in_http_headers.sh rename to tests/queries/0_stateless/00416_pocopatch_progress_in_http_headers.sh diff --git a/dbms/tests/queries/0_stateless/00417_kill_query.reference b/tests/queries/0_stateless/00417_kill_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00417_kill_query.reference rename to tests/queries/0_stateless/00417_kill_query.reference diff --git a/dbms/tests/queries/0_stateless/00417_kill_query.sh b/tests/queries/0_stateless/00417_kill_query.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00417_kill_query.sh rename to tests/queries/0_stateless/00417_kill_query.sh diff --git a/dbms/tests/queries/0_stateless/00417_system_build_options.reference b/tests/queries/0_stateless/00417_system_build_options.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00417_system_build_options.reference rename to tests/queries/0_stateless/00417_system_build_options.reference diff --git a/dbms/tests/queries/0_stateless/00417_system_build_options.sh b/tests/queries/0_stateless/00417_system_build_options.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00417_system_build_options.sh rename to tests/queries/0_stateless/00417_system_build_options.sh diff --git a/dbms/tests/queries/0_stateless/00418_input_format_allow_errors.reference b/tests/queries/0_stateless/00418_input_format_allow_errors.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00418_input_format_allow_errors.reference rename to tests/queries/0_stateless/00418_input_format_allow_errors.reference diff --git a/dbms/tests/queries/0_stateless/00418_input_format_allow_errors.sh b/tests/queries/0_stateless/00418_input_format_allow_errors.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00418_input_format_allow_errors.sh rename to tests/queries/0_stateless/00418_input_format_allow_errors.sh diff --git a/dbms/tests/queries/0_stateless/00419_show_sql_queries.reference b/tests/queries/0_stateless/00419_show_sql_queries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00419_show_sql_queries.reference rename to tests/queries/0_stateless/00419_show_sql_queries.reference diff --git a/dbms/tests/queries/0_stateless/00419_show_sql_queries.sh b/tests/queries/0_stateless/00419_show_sql_queries.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00419_show_sql_queries.sh rename to tests/queries/0_stateless/00419_show_sql_queries.sh diff --git a/dbms/tests/queries/0_stateless/00420_null_in_scalar_subqueries.reference b/tests/queries/0_stateless/00420_null_in_scalar_subqueries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00420_null_in_scalar_subqueries.reference rename to tests/queries/0_stateless/00420_null_in_scalar_subqueries.reference diff --git a/dbms/tests/queries/0_stateless/00420_null_in_scalar_subqueries.sql b/tests/queries/0_stateless/00420_null_in_scalar_subqueries.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00420_null_in_scalar_subqueries.sql rename to tests/queries/0_stateless/00420_null_in_scalar_subqueries.sql diff --git a/dbms/tests/queries/0_stateless/00421_storage_merge__table_index.reference b/tests/queries/0_stateless/00421_storage_merge__table_index.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00421_storage_merge__table_index.reference rename to tests/queries/0_stateless/00421_storage_merge__table_index.reference diff --git a/dbms/tests/queries/0_stateless/00421_storage_merge__table_index.sh b/tests/queries/0_stateless/00421_storage_merge__table_index.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00421_storage_merge__table_index.sh rename to tests/queries/0_stateless/00421_storage_merge__table_index.sh diff --git a/dbms/tests/queries/0_stateless/00422_hash_function_constexpr.reference b/tests/queries/0_stateless/00422_hash_function_constexpr.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00422_hash_function_constexpr.reference rename to tests/queries/0_stateless/00422_hash_function_constexpr.reference diff --git a/dbms/tests/queries/0_stateless/00422_hash_function_constexpr.sql b/tests/queries/0_stateless/00422_hash_function_constexpr.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00422_hash_function_constexpr.sql rename to tests/queries/0_stateless/00422_hash_function_constexpr.sql diff --git a/dbms/tests/queries/0_stateless/00423_storage_log_single_thread.reference b/tests/queries/0_stateless/00423_storage_log_single_thread.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00423_storage_log_single_thread.reference rename to tests/queries/0_stateless/00423_storage_log_single_thread.reference diff --git a/dbms/tests/queries/0_stateless/00423_storage_log_single_thread.sql b/tests/queries/0_stateless/00423_storage_log_single_thread.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00423_storage_log_single_thread.sql rename to tests/queries/0_stateless/00423_storage_log_single_thread.sql diff --git a/dbms/tests/queries/0_stateless/00424_shard_aggregate_functions_of_nullable.reference b/tests/queries/0_stateless/00424_shard_aggregate_functions_of_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00424_shard_aggregate_functions_of_nullable.reference rename to tests/queries/0_stateless/00424_shard_aggregate_functions_of_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00424_shard_aggregate_functions_of_nullable.sql b/tests/queries/0_stateless/00424_shard_aggregate_functions_of_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00424_shard_aggregate_functions_of_nullable.sql rename to tests/queries/0_stateless/00424_shard_aggregate_functions_of_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00425_count_nullable.reference b/tests/queries/0_stateless/00425_count_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00425_count_nullable.reference rename to tests/queries/0_stateless/00425_count_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00425_count_nullable.sql b/tests/queries/0_stateless/00425_count_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00425_count_nullable.sql rename to tests/queries/0_stateless/00425_count_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00426_nulls_sorting.reference b/tests/queries/0_stateless/00426_nulls_sorting.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00426_nulls_sorting.reference rename to tests/queries/0_stateless/00426_nulls_sorting.reference diff --git a/dbms/tests/queries/0_stateless/00426_nulls_sorting.sql b/tests/queries/0_stateless/00426_nulls_sorting.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00426_nulls_sorting.sql rename to tests/queries/0_stateless/00426_nulls_sorting.sql diff --git a/dbms/tests/queries/0_stateless/00427_alter_primary_key.reference b/tests/queries/0_stateless/00427_alter_primary_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00427_alter_primary_key.reference rename to tests/queries/0_stateless/00427_alter_primary_key.reference diff --git a/dbms/tests/queries/0_stateless/00427_alter_primary_key.sh b/tests/queries/0_stateless/00427_alter_primary_key.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00427_alter_primary_key.sh rename to tests/queries/0_stateless/00427_alter_primary_key.sh diff --git a/dbms/tests/queries/0_stateless/00429_long_http_bufferization.reference b/tests/queries/0_stateless/00429_long_http_bufferization.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00429_long_http_bufferization.reference rename to tests/queries/0_stateless/00429_long_http_bufferization.reference diff --git a/dbms/tests/queries/0_stateless/00429_long_http_bufferization.sh b/tests/queries/0_stateless/00429_long_http_bufferization.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00429_long_http_bufferization.sh rename to tests/queries/0_stateless/00429_long_http_bufferization.sh diff --git a/dbms/tests/queries/0_stateless/00429_point_in_ellipses.reference b/tests/queries/0_stateless/00429_point_in_ellipses.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00429_point_in_ellipses.reference rename to tests/queries/0_stateless/00429_point_in_ellipses.reference diff --git a/dbms/tests/queries/0_stateless/00429_point_in_ellipses.sql b/tests/queries/0_stateless/00429_point_in_ellipses.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00429_point_in_ellipses.sql rename to tests/queries/0_stateless/00429_point_in_ellipses.sql diff --git a/dbms/tests/queries/0_stateless/00430_https_server.reference b/tests/queries/0_stateless/00430_https_server.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00430_https_server.reference rename to tests/queries/0_stateless/00430_https_server.reference diff --git a/dbms/tests/queries/0_stateless/00430_https_server.sh b/tests/queries/0_stateless/00430_https_server.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00430_https_server.sh rename to tests/queries/0_stateless/00430_https_server.sh diff --git a/dbms/tests/queries/0_stateless/00431_if_nulls.reference b/tests/queries/0_stateless/00431_if_nulls.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00431_if_nulls.reference rename to tests/queries/0_stateless/00431_if_nulls.reference diff --git a/dbms/tests/queries/0_stateless/00431_if_nulls.sql b/tests/queries/0_stateless/00431_if_nulls.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00431_if_nulls.sql rename to tests/queries/0_stateless/00431_if_nulls.sql diff --git a/dbms/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.reference b/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.reference rename to tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.reference diff --git a/dbms/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.sql b/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.sql rename to tests/queries/0_stateless/00432_aggregate_function_scalars_and_constants.sql diff --git a/dbms/tests/queries/0_stateless/00433_ifnull.reference b/tests/queries/0_stateless/00433_ifnull.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00433_ifnull.reference rename to tests/queries/0_stateless/00433_ifnull.reference diff --git a/dbms/tests/queries/0_stateless/00433_ifnull.sql b/tests/queries/0_stateless/00433_ifnull.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00433_ifnull.sql rename to tests/queries/0_stateless/00433_ifnull.sql diff --git a/dbms/tests/queries/0_stateless/00434_tonullable.reference b/tests/queries/0_stateless/00434_tonullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00434_tonullable.reference rename to tests/queries/0_stateless/00434_tonullable.reference diff --git a/dbms/tests/queries/0_stateless/00434_tonullable.sql b/tests/queries/0_stateless/00434_tonullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00434_tonullable.sql rename to tests/queries/0_stateless/00434_tonullable.sql diff --git a/dbms/tests/queries/0_stateless/00435_coalesce.reference b/tests/queries/0_stateless/00435_coalesce.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00435_coalesce.reference rename to tests/queries/0_stateless/00435_coalesce.reference diff --git a/dbms/tests/queries/0_stateless/00435_coalesce.sql b/tests/queries/0_stateless/00435_coalesce.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00435_coalesce.sql rename to tests/queries/0_stateless/00435_coalesce.sql diff --git a/dbms/tests/queries/0_stateless/00436_convert_charset.reference b/tests/queries/0_stateless/00436_convert_charset.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00436_convert_charset.reference rename to tests/queries/0_stateless/00436_convert_charset.reference diff --git a/dbms/tests/queries/0_stateless/00436_convert_charset.sql b/tests/queries/0_stateless/00436_convert_charset.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00436_convert_charset.sql rename to tests/queries/0_stateless/00436_convert_charset.sql diff --git a/dbms/tests/queries/0_stateless/00436_fixed_string_16_comparisons.reference b/tests/queries/0_stateless/00436_fixed_string_16_comparisons.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00436_fixed_string_16_comparisons.reference rename to tests/queries/0_stateless/00436_fixed_string_16_comparisons.reference diff --git a/dbms/tests/queries/0_stateless/00436_fixed_string_16_comparisons.sql b/tests/queries/0_stateless/00436_fixed_string_16_comparisons.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00436_fixed_string_16_comparisons.sql rename to tests/queries/0_stateless/00436_fixed_string_16_comparisons.sql diff --git a/dbms/tests/queries/0_stateless/00437_nulls_first_last.reference b/tests/queries/0_stateless/00437_nulls_first_last.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00437_nulls_first_last.reference rename to tests/queries/0_stateless/00437_nulls_first_last.reference diff --git a/dbms/tests/queries/0_stateless/00437_nulls_first_last.sql b/tests/queries/0_stateless/00437_nulls_first_last.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00437_nulls_first_last.sql rename to tests/queries/0_stateless/00437_nulls_first_last.sql diff --git a/dbms/tests/queries/0_stateless/00438_bit_rotate.reference b/tests/queries/0_stateless/00438_bit_rotate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00438_bit_rotate.reference rename to tests/queries/0_stateless/00438_bit_rotate.reference diff --git a/dbms/tests/queries/0_stateless/00438_bit_rotate.sql b/tests/queries/0_stateless/00438_bit_rotate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00438_bit_rotate.sql rename to tests/queries/0_stateless/00438_bit_rotate.sql diff --git a/dbms/tests/queries/0_stateless/00439_fixed_string_filter.reference b/tests/queries/0_stateless/00439_fixed_string_filter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00439_fixed_string_filter.reference rename to tests/queries/0_stateless/00439_fixed_string_filter.reference diff --git a/dbms/tests/queries/0_stateless/00439_fixed_string_filter.sql b/tests/queries/0_stateless/00439_fixed_string_filter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00439_fixed_string_filter.sql rename to tests/queries/0_stateless/00439_fixed_string_filter.sql diff --git a/dbms/tests/queries/0_stateless/00440_nulls_merge_tree.reference b/tests/queries/0_stateless/00440_nulls_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00440_nulls_merge_tree.reference rename to tests/queries/0_stateless/00440_nulls_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00440_nulls_merge_tree.sql b/tests/queries/0_stateless/00440_nulls_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00440_nulls_merge_tree.sql rename to tests/queries/0_stateless/00440_nulls_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00441_nulls_in.reference b/tests/queries/0_stateless/00441_nulls_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00441_nulls_in.reference rename to tests/queries/0_stateless/00441_nulls_in.reference diff --git a/dbms/tests/queries/0_stateless/00441_nulls_in.sql b/tests/queries/0_stateless/00441_nulls_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00441_nulls_in.sql rename to tests/queries/0_stateless/00441_nulls_in.sql diff --git a/dbms/tests/queries/0_stateless/00442_filter_by_nullable.reference b/tests/queries/0_stateless/00442_filter_by_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00442_filter_by_nullable.reference rename to tests/queries/0_stateless/00442_filter_by_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00442_filter_by_nullable.sql b/tests/queries/0_stateless/00442_filter_by_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00442_filter_by_nullable.sql rename to tests/queries/0_stateless/00442_filter_by_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00443_merge_tree_uniform_read_distribution_0.reference b/tests/queries/0_stateless/00443_merge_tree_uniform_read_distribution_0.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00443_merge_tree_uniform_read_distribution_0.reference rename to tests/queries/0_stateless/00443_merge_tree_uniform_read_distribution_0.reference diff --git a/dbms/tests/queries/0_stateless/00443_merge_tree_uniform_read_distribution_0.sh b/tests/queries/0_stateless/00443_merge_tree_uniform_read_distribution_0.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00443_merge_tree_uniform_read_distribution_0.sh rename to tests/queries/0_stateless/00443_merge_tree_uniform_read_distribution_0.sh diff --git a/dbms/tests/queries/0_stateless/00443_optimize_final_vertical_merge.reference b/tests/queries/0_stateless/00443_optimize_final_vertical_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00443_optimize_final_vertical_merge.reference rename to tests/queries/0_stateless/00443_optimize_final_vertical_merge.reference diff --git a/dbms/tests/queries/0_stateless/00443_optimize_final_vertical_merge.sh b/tests/queries/0_stateless/00443_optimize_final_vertical_merge.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00443_optimize_final_vertical_merge.sh rename to tests/queries/0_stateless/00443_optimize_final_vertical_merge.sh diff --git a/dbms/tests/queries/0_stateless/00443_preferred_block_size_bytes.reference b/tests/queries/0_stateless/00443_preferred_block_size_bytes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00443_preferred_block_size_bytes.reference rename to tests/queries/0_stateless/00443_preferred_block_size_bytes.reference diff --git a/dbms/tests/queries/0_stateless/00443_preferred_block_size_bytes.sh b/tests/queries/0_stateless/00443_preferred_block_size_bytes.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00443_preferred_block_size_bytes.sh rename to tests/queries/0_stateless/00443_preferred_block_size_bytes.sh diff --git a/dbms/tests/queries/0_stateless/00444_join_use_nulls.reference b/tests/queries/0_stateless/00444_join_use_nulls.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00444_join_use_nulls.reference rename to tests/queries/0_stateless/00444_join_use_nulls.reference diff --git a/dbms/tests/queries/0_stateless/00444_join_use_nulls.sql b/tests/queries/0_stateless/00444_join_use_nulls.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00444_join_use_nulls.sql rename to tests/queries/0_stateless/00444_join_use_nulls.sql diff --git a/dbms/tests/queries/0_stateless/00445_join_nullable_keys.reference b/tests/queries/0_stateless/00445_join_nullable_keys.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00445_join_nullable_keys.reference rename to tests/queries/0_stateless/00445_join_nullable_keys.reference diff --git a/dbms/tests/queries/0_stateless/00445_join_nullable_keys.sql b/tests/queries/0_stateless/00445_join_nullable_keys.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00445_join_nullable_keys.sql rename to tests/queries/0_stateless/00445_join_nullable_keys.sql diff --git a/dbms/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.reference b/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.reference rename to tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.sh b/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.sh rename to tests/queries/0_stateless/00446_clear_column_in_partition_concurrent_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00446_clear_column_in_partition_zookeeper.reference b/tests/queries/0_stateless/00446_clear_column_in_partition_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00446_clear_column_in_partition_zookeeper.reference rename to tests/queries/0_stateless/00446_clear_column_in_partition_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00446_clear_column_in_partition_zookeeper.sql b/tests/queries/0_stateless/00446_clear_column_in_partition_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00446_clear_column_in_partition_zookeeper.sql rename to tests/queries/0_stateless/00446_clear_column_in_partition_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00447_foreach_modifier.reference b/tests/queries/0_stateless/00447_foreach_modifier.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00447_foreach_modifier.reference rename to tests/queries/0_stateless/00447_foreach_modifier.reference diff --git a/dbms/tests/queries/0_stateless/00447_foreach_modifier.sql b/tests/queries/0_stateless/00447_foreach_modifier.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00447_foreach_modifier.sql rename to tests/queries/0_stateless/00447_foreach_modifier.sql diff --git a/dbms/tests/queries/0_stateless/00448_replicate_nullable_tuple_generic.reference b/tests/queries/0_stateless/00448_replicate_nullable_tuple_generic.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00448_replicate_nullable_tuple_generic.reference rename to tests/queries/0_stateless/00448_replicate_nullable_tuple_generic.reference diff --git a/dbms/tests/queries/0_stateless/00448_replicate_nullable_tuple_generic.sql b/tests/queries/0_stateless/00448_replicate_nullable_tuple_generic.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00448_replicate_nullable_tuple_generic.sql rename to tests/queries/0_stateless/00448_replicate_nullable_tuple_generic.sql diff --git a/dbms/tests/queries/0_stateless/00448_to_string_cut_to_zero.reference b/tests/queries/0_stateless/00448_to_string_cut_to_zero.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00448_to_string_cut_to_zero.reference rename to tests/queries/0_stateless/00448_to_string_cut_to_zero.reference diff --git a/dbms/tests/queries/0_stateless/00448_to_string_cut_to_zero.sql b/tests/queries/0_stateless/00448_to_string_cut_to_zero.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00448_to_string_cut_to_zero.sql rename to tests/queries/0_stateless/00448_to_string_cut_to_zero.sql diff --git a/dbms/tests/queries/0_stateless/00449_filter_array_nullable_tuple.reference b/tests/queries/0_stateless/00449_filter_array_nullable_tuple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00449_filter_array_nullable_tuple.reference rename to tests/queries/0_stateless/00449_filter_array_nullable_tuple.reference diff --git a/dbms/tests/queries/0_stateless/00449_filter_array_nullable_tuple.sql b/tests/queries/0_stateless/00449_filter_array_nullable_tuple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00449_filter_array_nullable_tuple.sql rename to tests/queries/0_stateless/00449_filter_array_nullable_tuple.sql diff --git a/dbms/tests/queries/0_stateless/00450_higher_order_and_nullable.reference b/tests/queries/0_stateless/00450_higher_order_and_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00450_higher_order_and_nullable.reference rename to tests/queries/0_stateless/00450_higher_order_and_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00450_higher_order_and_nullable.sql b/tests/queries/0_stateless/00450_higher_order_and_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00450_higher_order_and_nullable.sql rename to tests/queries/0_stateless/00450_higher_order_and_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00451_left_array_join_and_constants.reference b/tests/queries/0_stateless/00451_left_array_join_and_constants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00451_left_array_join_and_constants.reference rename to tests/queries/0_stateless/00451_left_array_join_and_constants.reference diff --git a/dbms/tests/queries/0_stateless/00451_left_array_join_and_constants.sql b/tests/queries/0_stateless/00451_left_array_join_and_constants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00451_left_array_join_and_constants.sql rename to tests/queries/0_stateless/00451_left_array_join_and_constants.sql diff --git a/dbms/tests/queries/0_stateless/00452_left_array_join_and_nullable.reference b/tests/queries/0_stateless/00452_left_array_join_and_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00452_left_array_join_and_nullable.reference rename to tests/queries/0_stateless/00452_left_array_join_and_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00452_left_array_join_and_nullable.sql b/tests/queries/0_stateless/00452_left_array_join_and_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00452_left_array_join_and_nullable.sql rename to tests/queries/0_stateless/00452_left_array_join_and_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00453_cast_enum.reference b/tests/queries/0_stateless/00453_cast_enum.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00453_cast_enum.reference rename to tests/queries/0_stateless/00453_cast_enum.reference diff --git a/dbms/tests/queries/0_stateless/00453_cast_enum.sql b/tests/queries/0_stateless/00453_cast_enum.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00453_cast_enum.sql rename to tests/queries/0_stateless/00453_cast_enum.sql diff --git a/dbms/tests/queries/0_stateless/00453_top_k.reference b/tests/queries/0_stateless/00453_top_k.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00453_top_k.reference rename to tests/queries/0_stateless/00453_top_k.reference diff --git a/dbms/tests/queries/0_stateless/00453_top_k.sql b/tests/queries/0_stateless/00453_top_k.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00453_top_k.sql rename to tests/queries/0_stateless/00453_top_k.sql diff --git a/dbms/tests/queries/0_stateless/00456_alter_nullable.reference b/tests/queries/0_stateless/00456_alter_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00456_alter_nullable.reference rename to tests/queries/0_stateless/00456_alter_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00456_alter_nullable.sql b/tests/queries/0_stateless/00456_alter_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00456_alter_nullable.sql rename to tests/queries/0_stateless/00456_alter_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.reference b/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.reference rename to tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.sql b/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.sql rename to tests/queries/0_stateless/00457_log_tinylog_stripelog_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00458_merge_type_cast.reference b/tests/queries/0_stateless/00458_merge_type_cast.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00458_merge_type_cast.reference rename to tests/queries/0_stateless/00458_merge_type_cast.reference diff --git a/dbms/tests/queries/0_stateless/00458_merge_type_cast.sql b/tests/queries/0_stateless/00458_merge_type_cast.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00458_merge_type_cast.sql rename to tests/queries/0_stateless/00458_merge_type_cast.sql diff --git a/dbms/tests/queries/0_stateless/00459_group_array_insert_at.reference b/tests/queries/0_stateless/00459_group_array_insert_at.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00459_group_array_insert_at.reference rename to tests/queries/0_stateless/00459_group_array_insert_at.reference diff --git a/dbms/tests/queries/0_stateless/00459_group_array_insert_at.sql b/tests/queries/0_stateless/00459_group_array_insert_at.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00459_group_array_insert_at.sql rename to tests/queries/0_stateless/00459_group_array_insert_at.sql diff --git a/dbms/tests/queries/0_stateless/00460_vertical_and_totals_extremes.reference b/tests/queries/0_stateless/00460_vertical_and_totals_extremes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00460_vertical_and_totals_extremes.reference rename to tests/queries/0_stateless/00460_vertical_and_totals_extremes.reference diff --git a/dbms/tests/queries/0_stateless/00460_vertical_and_totals_extremes.sql b/tests/queries/0_stateless/00460_vertical_and_totals_extremes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00460_vertical_and_totals_extremes.sql rename to tests/queries/0_stateless/00460_vertical_and_totals_extremes.sql diff --git a/dbms/tests/queries/0_stateless/00461_default_value_of_argument_type.reference b/tests/queries/0_stateless/00461_default_value_of_argument_type.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00461_default_value_of_argument_type.reference rename to tests/queries/0_stateless/00461_default_value_of_argument_type.reference diff --git a/dbms/tests/queries/0_stateless/00461_default_value_of_argument_type.sql b/tests/queries/0_stateless/00461_default_value_of_argument_type.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00461_default_value_of_argument_type.sql rename to tests/queries/0_stateless/00461_default_value_of_argument_type.sql diff --git a/dbms/tests/queries/0_stateless/00462_json_true_false_literals.reference b/tests/queries/0_stateless/00462_json_true_false_literals.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00462_json_true_false_literals.reference rename to tests/queries/0_stateless/00462_json_true_false_literals.reference diff --git a/dbms/tests/queries/0_stateless/00462_json_true_false_literals.sql b/tests/queries/0_stateless/00462_json_true_false_literals.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00462_json_true_false_literals.sql rename to tests/queries/0_stateless/00462_json_true_false_literals.sql diff --git a/dbms/tests/queries/0_stateless/00463_long_sessions_in_http_interface.reference b/tests/queries/0_stateless/00463_long_sessions_in_http_interface.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00463_long_sessions_in_http_interface.reference rename to tests/queries/0_stateless/00463_long_sessions_in_http_interface.reference diff --git a/dbms/tests/queries/0_stateless/00463_long_sessions_in_http_interface.sh b/tests/queries/0_stateless/00463_long_sessions_in_http_interface.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00463_long_sessions_in_http_interface.sh rename to tests/queries/0_stateless/00463_long_sessions_in_http_interface.sh diff --git a/dbms/tests/queries/0_stateless/00464_array_element_out_of_range.reference b/tests/queries/0_stateless/00464_array_element_out_of_range.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00464_array_element_out_of_range.reference rename to tests/queries/0_stateless/00464_array_element_out_of_range.reference diff --git a/dbms/tests/queries/0_stateless/00464_array_element_out_of_range.sql b/tests/queries/0_stateless/00464_array_element_out_of_range.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00464_array_element_out_of_range.sql rename to tests/queries/0_stateless/00464_array_element_out_of_range.sql diff --git a/dbms/tests/queries/0_stateless/00464_sort_all_constant_columns.reference b/tests/queries/0_stateless/00464_sort_all_constant_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00464_sort_all_constant_columns.reference rename to tests/queries/0_stateless/00464_sort_all_constant_columns.reference diff --git a/dbms/tests/queries/0_stateless/00464_sort_all_constant_columns.sql b/tests/queries/0_stateless/00464_sort_all_constant_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00464_sort_all_constant_columns.sql rename to tests/queries/0_stateless/00464_sort_all_constant_columns.sql diff --git a/dbms/tests/queries/0_stateless/00465_nullable_default.reference b/tests/queries/0_stateless/00465_nullable_default.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00465_nullable_default.reference rename to tests/queries/0_stateless/00465_nullable_default.reference diff --git a/dbms/tests/queries/0_stateless/00465_nullable_default.sql b/tests/queries/0_stateless/00465_nullable_default.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00465_nullable_default.sql rename to tests/queries/0_stateless/00465_nullable_default.sql diff --git a/dbms/tests/queries/0_stateless/00466_comments_in_keyword.reference b/tests/queries/0_stateless/00466_comments_in_keyword.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00466_comments_in_keyword.reference rename to tests/queries/0_stateless/00466_comments_in_keyword.reference diff --git a/dbms/tests/queries/0_stateless/00466_comments_in_keyword.sql b/tests/queries/0_stateless/00466_comments_in_keyword.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00466_comments_in_keyword.sql rename to tests/queries/0_stateless/00466_comments_in_keyword.sql diff --git a/dbms/tests/queries/0_stateless/00467_qualified_names.reference b/tests/queries/0_stateless/00467_qualified_names.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00467_qualified_names.reference rename to tests/queries/0_stateless/00467_qualified_names.reference diff --git a/dbms/tests/queries/0_stateless/00467_qualified_names.sql b/tests/queries/0_stateless/00467_qualified_names.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00467_qualified_names.sql rename to tests/queries/0_stateless/00467_qualified_names.sql diff --git a/dbms/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.reference b/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.reference rename to tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.reference diff --git a/dbms/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql b/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql rename to tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql diff --git a/dbms/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.reference b/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.reference rename to tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.reference diff --git a/dbms/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.sql b/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.sql rename to tests/queries/0_stateless/00469_comparison_of_strings_containing_null_char.sql diff --git a/dbms/tests/queries/0_stateless/00470_identifiers_in_double_quotes.reference b/tests/queries/0_stateless/00470_identifiers_in_double_quotes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00470_identifiers_in_double_quotes.reference rename to tests/queries/0_stateless/00470_identifiers_in_double_quotes.reference diff --git a/dbms/tests/queries/0_stateless/00470_identifiers_in_double_quotes.sql b/tests/queries/0_stateless/00470_identifiers_in_double_quotes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00470_identifiers_in_double_quotes.sql rename to tests/queries/0_stateless/00470_identifiers_in_double_quotes.sql diff --git a/dbms/tests/queries/0_stateless/00471_sql_style_quoting.reference b/tests/queries/0_stateless/00471_sql_style_quoting.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00471_sql_style_quoting.reference rename to tests/queries/0_stateless/00471_sql_style_quoting.reference diff --git a/dbms/tests/queries/0_stateless/00471_sql_style_quoting.sql b/tests/queries/0_stateless/00471_sql_style_quoting.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00471_sql_style_quoting.sql rename to tests/queries/0_stateless/00471_sql_style_quoting.sql diff --git a/dbms/tests/queries/0_stateless/00472_compare_uuid_with_constant_string.reference b/tests/queries/0_stateless/00472_compare_uuid_with_constant_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00472_compare_uuid_with_constant_string.reference rename to tests/queries/0_stateless/00472_compare_uuid_with_constant_string.reference diff --git a/dbms/tests/queries/0_stateless/00472_compare_uuid_with_constant_string.sql b/tests/queries/0_stateless/00472_compare_uuid_with_constant_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00472_compare_uuid_with_constant_string.sql rename to tests/queries/0_stateless/00472_compare_uuid_with_constant_string.sql diff --git a/dbms/tests/queries/0_stateless/00472_create_view_if_not_exists.reference b/tests/queries/0_stateless/00472_create_view_if_not_exists.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00472_create_view_if_not_exists.reference rename to tests/queries/0_stateless/00472_create_view_if_not_exists.reference diff --git a/dbms/tests/queries/0_stateless/00472_create_view_if_not_exists.sql b/tests/queries/0_stateless/00472_create_view_if_not_exists.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00472_create_view_if_not_exists.sql rename to tests/queries/0_stateless/00472_create_view_if_not_exists.sql diff --git a/dbms/tests/queries/0_stateless/00473_output_format_json_quote_denormals.reference b/tests/queries/0_stateless/00473_output_format_json_quote_denormals.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00473_output_format_json_quote_denormals.reference rename to tests/queries/0_stateless/00473_output_format_json_quote_denormals.reference diff --git a/dbms/tests/queries/0_stateless/00473_output_format_json_quote_denormals.sh b/tests/queries/0_stateless/00473_output_format_json_quote_denormals.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00473_output_format_json_quote_denormals.sh rename to tests/queries/0_stateless/00473_output_format_json_quote_denormals.sh diff --git a/dbms/tests/queries/0_stateless/00474_readonly_settings.reference b/tests/queries/0_stateless/00474_readonly_settings.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00474_readonly_settings.reference rename to tests/queries/0_stateless/00474_readonly_settings.reference diff --git a/dbms/tests/queries/0_stateless/00474_readonly_settings.sh b/tests/queries/0_stateless/00474_readonly_settings.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00474_readonly_settings.sh rename to tests/queries/0_stateless/00474_readonly_settings.sh diff --git a/dbms/tests/queries/0_stateless/00475_in_join_db_table.reference b/tests/queries/0_stateless/00475_in_join_db_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00475_in_join_db_table.reference rename to tests/queries/0_stateless/00475_in_join_db_table.reference diff --git a/dbms/tests/queries/0_stateless/00475_in_join_db_table.sql b/tests/queries/0_stateless/00475_in_join_db_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00475_in_join_db_table.sql rename to tests/queries/0_stateless/00475_in_join_db_table.sql diff --git a/dbms/tests/queries/0_stateless/00476_pretty_formats_and_widths.reference b/tests/queries/0_stateless/00476_pretty_formats_and_widths.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00476_pretty_formats_and_widths.reference rename to tests/queries/0_stateless/00476_pretty_formats_and_widths.reference diff --git a/dbms/tests/queries/0_stateless/00476_pretty_formats_and_widths.sql b/tests/queries/0_stateless/00476_pretty_formats_and_widths.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00476_pretty_formats_and_widths.sql rename to tests/queries/0_stateless/00476_pretty_formats_and_widths.sql diff --git a/dbms/tests/queries/0_stateless/00477_parsing_data_types.reference b/tests/queries/0_stateless/00477_parsing_data_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00477_parsing_data_types.reference rename to tests/queries/0_stateless/00477_parsing_data_types.reference diff --git a/dbms/tests/queries/0_stateless/00477_parsing_data_types.sql b/tests/queries/0_stateless/00477_parsing_data_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00477_parsing_data_types.sql rename to tests/queries/0_stateless/00477_parsing_data_types.sql diff --git a/dbms/tests/queries/0_stateless/00479_date_and_datetime_to_number.reference b/tests/queries/0_stateless/00479_date_and_datetime_to_number.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00479_date_and_datetime_to_number.reference rename to tests/queries/0_stateless/00479_date_and_datetime_to_number.reference diff --git a/dbms/tests/queries/0_stateless/00479_date_and_datetime_to_number.sql b/tests/queries/0_stateless/00479_date_and_datetime_to_number.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00479_date_and_datetime_to_number.sql rename to tests/queries/0_stateless/00479_date_and_datetime_to_number.sql diff --git a/dbms/tests/queries/0_stateless/00480_mac_addresses.reference b/tests/queries/0_stateless/00480_mac_addresses.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00480_mac_addresses.reference rename to tests/queries/0_stateless/00480_mac_addresses.reference diff --git a/dbms/tests/queries/0_stateless/00480_mac_addresses.sql b/tests/queries/0_stateless/00480_mac_addresses.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00480_mac_addresses.sql rename to tests/queries/0_stateless/00480_mac_addresses.sql diff --git a/dbms/tests/queries/0_stateless/00481_create_view_for_null.reference b/tests/queries/0_stateless/00481_create_view_for_null.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00481_create_view_for_null.reference rename to tests/queries/0_stateless/00481_create_view_for_null.reference diff --git a/dbms/tests/queries/0_stateless/00481_create_view_for_null.sql b/tests/queries/0_stateless/00481_create_view_for_null.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00481_create_view_for_null.sql rename to tests/queries/0_stateless/00481_create_view_for_null.sql diff --git a/dbms/tests/queries/0_stateless/00481_reading_from_last_granula.reference b/tests/queries/0_stateless/00481_reading_from_last_granula.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00481_reading_from_last_granula.reference rename to tests/queries/0_stateless/00481_reading_from_last_granula.reference diff --git a/dbms/tests/queries/0_stateless/00481_reading_from_last_granula.sql b/tests/queries/0_stateless/00481_reading_from_last_granula.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00481_reading_from_last_granula.sql rename to tests/queries/0_stateless/00481_reading_from_last_granula.sql diff --git a/dbms/tests/queries/0_stateless/00482_subqueries_and_aliases.reference b/tests/queries/0_stateless/00482_subqueries_and_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00482_subqueries_and_aliases.reference rename to tests/queries/0_stateless/00482_subqueries_and_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00482_subqueries_and_aliases.sql b/tests/queries/0_stateless/00482_subqueries_and_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00482_subqueries_and_aliases.sql rename to tests/queries/0_stateless/00482_subqueries_and_aliases.sql diff --git a/dbms/tests/queries/0_stateless/00483_cast_syntax.reference b/tests/queries/0_stateless/00483_cast_syntax.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00483_cast_syntax.reference rename to tests/queries/0_stateless/00483_cast_syntax.reference diff --git a/dbms/tests/queries/0_stateless/00483_cast_syntax.sql b/tests/queries/0_stateless/00483_cast_syntax.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00483_cast_syntax.sql rename to tests/queries/0_stateless/00483_cast_syntax.sql diff --git a/dbms/tests/queries/0_stateless/00483_reading_from_array_structure.reference b/tests/queries/0_stateless/00483_reading_from_array_structure.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00483_reading_from_array_structure.reference rename to tests/queries/0_stateless/00483_reading_from_array_structure.reference diff --git a/dbms/tests/queries/0_stateless/00483_reading_from_array_structure.sql b/tests/queries/0_stateless/00483_reading_from_array_structure.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00483_reading_from_array_structure.sql rename to tests/queries/0_stateless/00483_reading_from_array_structure.sql diff --git a/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.reference b/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.reference rename to tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.reference diff --git a/dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql b/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql rename to tests/queries/0_stateless/00484_preferred_max_column_in_block_size_bytes.sql diff --git a/dbms/tests/queries/0_stateless/00485_http_insert_format.reference b/tests/queries/0_stateless/00485_http_insert_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00485_http_insert_format.reference rename to tests/queries/0_stateless/00485_http_insert_format.reference diff --git a/dbms/tests/queries/0_stateless/00485_http_insert_format.sh b/tests/queries/0_stateless/00485_http_insert_format.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00485_http_insert_format.sh rename to tests/queries/0_stateless/00485_http_insert_format.sh diff --git a/dbms/tests/queries/0_stateless/00486_if_fixed_string.reference b/tests/queries/0_stateless/00486_if_fixed_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00486_if_fixed_string.reference rename to tests/queries/0_stateless/00486_if_fixed_string.reference diff --git a/dbms/tests/queries/0_stateless/00486_if_fixed_string.sql b/tests/queries/0_stateless/00486_if_fixed_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00486_if_fixed_string.sql rename to tests/queries/0_stateless/00486_if_fixed_string.sql diff --git a/dbms/tests/queries/0_stateless/00487_if_array_fixed_string.reference b/tests/queries/0_stateless/00487_if_array_fixed_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00487_if_array_fixed_string.reference rename to tests/queries/0_stateless/00487_if_array_fixed_string.reference diff --git a/dbms/tests/queries/0_stateless/00487_if_array_fixed_string.sql b/tests/queries/0_stateless/00487_if_array_fixed_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00487_if_array_fixed_string.sql rename to tests/queries/0_stateless/00487_if_array_fixed_string.sql diff --git a/dbms/tests/queries/0_stateless/00488_non_ascii_column_names.reference b/tests/queries/0_stateless/00488_non_ascii_column_names.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00488_non_ascii_column_names.reference rename to tests/queries/0_stateless/00488_non_ascii_column_names.reference diff --git a/dbms/tests/queries/0_stateless/00488_non_ascii_column_names.sql b/tests/queries/0_stateless/00488_non_ascii_column_names.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00488_non_ascii_column_names.sql rename to tests/queries/0_stateless/00488_non_ascii_column_names.sql diff --git a/dbms/tests/queries/0_stateless/00489_pk_subexpression.reference b/tests/queries/0_stateless/00489_pk_subexpression.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00489_pk_subexpression.reference rename to tests/queries/0_stateless/00489_pk_subexpression.reference diff --git a/dbms/tests/queries/0_stateless/00489_pk_subexpression.sql b/tests/queries/0_stateless/00489_pk_subexpression.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00489_pk_subexpression.sql rename to tests/queries/0_stateless/00489_pk_subexpression.sql diff --git a/dbms/tests/queries/0_stateless/00490_special_line_separators_and_characters_outside_of_bmp.reference b/tests/queries/0_stateless/00490_special_line_separators_and_characters_outside_of_bmp.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00490_special_line_separators_and_characters_outside_of_bmp.reference rename to tests/queries/0_stateless/00490_special_line_separators_and_characters_outside_of_bmp.reference diff --git a/dbms/tests/queries/0_stateless/00490_special_line_separators_and_characters_outside_of_bmp.sql b/tests/queries/0_stateless/00490_special_line_separators_and_characters_outside_of_bmp.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00490_special_line_separators_and_characters_outside_of_bmp.sql rename to tests/queries/0_stateless/00490_special_line_separators_and_characters_outside_of_bmp.sql diff --git a/dbms/tests/queries/0_stateless/00490_with_select.reference b/tests/queries/0_stateless/00490_with_select.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00490_with_select.reference rename to tests/queries/0_stateless/00490_with_select.reference diff --git a/dbms/tests/queries/0_stateless/00490_with_select.sql b/tests/queries/0_stateless/00490_with_select.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00490_with_select.sql rename to tests/queries/0_stateless/00490_with_select.sql diff --git a/dbms/tests/queries/0_stateless/00491_shard_distributed_and_aliases_in_where_having.reference b/tests/queries/0_stateless/00491_shard_distributed_and_aliases_in_where_having.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00491_shard_distributed_and_aliases_in_where_having.reference rename to tests/queries/0_stateless/00491_shard_distributed_and_aliases_in_where_having.reference diff --git a/dbms/tests/queries/0_stateless/00491_shard_distributed_and_aliases_in_where_having.sql b/tests/queries/0_stateless/00491_shard_distributed_and_aliases_in_where_having.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00491_shard_distributed_and_aliases_in_where_having.sql rename to tests/queries/0_stateless/00491_shard_distributed_and_aliases_in_where_having.sql diff --git a/dbms/tests/queries/0_stateless/00492_drop_temporary_table.reference b/tests/queries/0_stateless/00492_drop_temporary_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00492_drop_temporary_table.reference rename to tests/queries/0_stateless/00492_drop_temporary_table.reference diff --git a/dbms/tests/queries/0_stateless/00492_drop_temporary_table.sql b/tests/queries/0_stateless/00492_drop_temporary_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00492_drop_temporary_table.sql rename to tests/queries/0_stateless/00492_drop_temporary_table.sql diff --git a/dbms/tests/queries/0_stateless/00493_substring_of_fixedstring.reference b/tests/queries/0_stateless/00493_substring_of_fixedstring.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00493_substring_of_fixedstring.reference rename to tests/queries/0_stateless/00493_substring_of_fixedstring.reference diff --git a/dbms/tests/queries/0_stateless/00493_substring_of_fixedstring.sql b/tests/queries/0_stateless/00493_substring_of_fixedstring.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00493_substring_of_fixedstring.sql rename to tests/queries/0_stateless/00493_substring_of_fixedstring.sql diff --git a/dbms/tests/queries/0_stateless/00494_shard_alias_substitution_bug.reference b/tests/queries/0_stateless/00494_shard_alias_substitution_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00494_shard_alias_substitution_bug.reference rename to tests/queries/0_stateless/00494_shard_alias_substitution_bug.reference diff --git a/dbms/tests/queries/0_stateless/00494_shard_alias_substitution_bug.sql b/tests/queries/0_stateless/00494_shard_alias_substitution_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00494_shard_alias_substitution_bug.sql rename to tests/queries/0_stateless/00494_shard_alias_substitution_bug.sql diff --git a/dbms/tests/queries/0_stateless/00495_reading_const_zero_column.reference b/tests/queries/0_stateless/00495_reading_const_zero_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00495_reading_const_zero_column.reference rename to tests/queries/0_stateless/00495_reading_const_zero_column.reference diff --git a/dbms/tests/queries/0_stateless/00495_reading_const_zero_column.sql b/tests/queries/0_stateless/00495_reading_const_zero_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00495_reading_const_zero_column.sql rename to tests/queries/0_stateless/00495_reading_const_zero_column.sql diff --git a/dbms/tests/queries/0_stateless/00496_substring_negative_offset.reference b/tests/queries/0_stateless/00496_substring_negative_offset.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00496_substring_negative_offset.reference rename to tests/queries/0_stateless/00496_substring_negative_offset.reference diff --git a/dbms/tests/queries/0_stateless/00496_substring_negative_offset.sql b/tests/queries/0_stateless/00496_substring_negative_offset.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00496_substring_negative_offset.sql rename to tests/queries/0_stateless/00496_substring_negative_offset.sql diff --git a/dbms/tests/queries/0_stateless/00497_whitespaces_in_insert.reference b/tests/queries/0_stateless/00497_whitespaces_in_insert.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00497_whitespaces_in_insert.reference rename to tests/queries/0_stateless/00497_whitespaces_in_insert.reference diff --git a/dbms/tests/queries/0_stateless/00497_whitespaces_in_insert.sh b/tests/queries/0_stateless/00497_whitespaces_in_insert.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00497_whitespaces_in_insert.sh rename to tests/queries/0_stateless/00497_whitespaces_in_insert.sh diff --git a/dbms/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.reference b/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.reference rename to tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.reference diff --git a/dbms/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.sql b/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.sql rename to tests/queries/0_stateless/00498_array_functions_concat_slice_push_pop.sql diff --git a/dbms/tests/queries/0_stateless/00498_bitwise_aggregate_functions.reference b/tests/queries/0_stateless/00498_bitwise_aggregate_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00498_bitwise_aggregate_functions.reference rename to tests/queries/0_stateless/00498_bitwise_aggregate_functions.reference diff --git a/dbms/tests/queries/0_stateless/00498_bitwise_aggregate_functions.sql b/tests/queries/0_stateless/00498_bitwise_aggregate_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00498_bitwise_aggregate_functions.sql rename to tests/queries/0_stateless/00498_bitwise_aggregate_functions.sql diff --git a/dbms/tests/queries/0_stateless/00499_json_enum_insert.reference b/tests/queries/0_stateless/00499_json_enum_insert.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00499_json_enum_insert.reference rename to tests/queries/0_stateless/00499_json_enum_insert.reference diff --git a/dbms/tests/queries/0_stateless/00499_json_enum_insert.sql b/tests/queries/0_stateless/00499_json_enum_insert.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00499_json_enum_insert.sql rename to tests/queries/0_stateless/00499_json_enum_insert.sql diff --git a/dbms/tests/queries/0_stateless/00500_point_in_polygon.reference b/tests/queries/0_stateless/00500_point_in_polygon.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00500_point_in_polygon.reference rename to tests/queries/0_stateless/00500_point_in_polygon.reference diff --git a/dbms/tests/queries/0_stateless/00500_point_in_polygon.sql b/tests/queries/0_stateless/00500_point_in_polygon.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00500_point_in_polygon.sql rename to tests/queries/0_stateless/00500_point_in_polygon.sql diff --git a/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug.reference b/tests/queries/0_stateless/00500_point_in_polygon_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00500_point_in_polygon_bug.reference rename to tests/queries/0_stateless/00500_point_in_polygon_bug.reference diff --git a/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug.sql b/tests/queries/0_stateless/00500_point_in_polygon_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00500_point_in_polygon_bug.sql rename to tests/queries/0_stateless/00500_point_in_polygon_bug.sql diff --git a/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug_2.reference b/tests/queries/0_stateless/00500_point_in_polygon_bug_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00500_point_in_polygon_bug_2.reference rename to tests/queries/0_stateless/00500_point_in_polygon_bug_2.reference diff --git a/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug_2.sql b/tests/queries/0_stateless/00500_point_in_polygon_bug_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00500_point_in_polygon_bug_2.sql rename to tests/queries/0_stateless/00500_point_in_polygon_bug_2.sql diff --git a/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug_3_linestring_rotation_precision.reference b/tests/queries/0_stateless/00500_point_in_polygon_bug_3_linestring_rotation_precision.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00500_point_in_polygon_bug_3_linestring_rotation_precision.reference rename to tests/queries/0_stateless/00500_point_in_polygon_bug_3_linestring_rotation_precision.reference diff --git a/dbms/tests/queries/0_stateless/00500_point_in_polygon_bug_3_linestring_rotation_precision.sql b/tests/queries/0_stateless/00500_point_in_polygon_bug_3_linestring_rotation_precision.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00500_point_in_polygon_bug_3_linestring_rotation_precision.sql rename to tests/queries/0_stateless/00500_point_in_polygon_bug_3_linestring_rotation_precision.sql diff --git a/dbms/tests/queries/0_stateless/00501_http_head.reference b/tests/queries/0_stateless/00501_http_head.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00501_http_head.reference rename to tests/queries/0_stateless/00501_http_head.reference diff --git a/dbms/tests/queries/0_stateless/00501_http_head.sh b/tests/queries/0_stateless/00501_http_head.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00501_http_head.sh rename to tests/queries/0_stateless/00501_http_head.sh diff --git a/dbms/tests/queries/0_stateless/00502_custom_partitioning_local.reference b/tests/queries/0_stateless/00502_custom_partitioning_local.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00502_custom_partitioning_local.reference rename to tests/queries/0_stateless/00502_custom_partitioning_local.reference diff --git a/dbms/tests/queries/0_stateless/00502_custom_partitioning_local.sql b/tests/queries/0_stateless/00502_custom_partitioning_local.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00502_custom_partitioning_local.sql rename to tests/queries/0_stateless/00502_custom_partitioning_local.sql diff --git a/dbms/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.reference b/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.reference rename to tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql b/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql rename to tests/queries/0_stateless/00502_custom_partitioning_replicated_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00502_string_concat_with_array.reference b/tests/queries/0_stateless/00502_string_concat_with_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00502_string_concat_with_array.reference rename to tests/queries/0_stateless/00502_string_concat_with_array.reference diff --git a/dbms/tests/queries/0_stateless/00502_string_concat_with_array.sql b/tests/queries/0_stateless/00502_string_concat_with_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00502_string_concat_with_array.sql rename to tests/queries/0_stateless/00502_string_concat_with_array.sql diff --git a/dbms/tests/queries/0_stateless/00502_sum_map.reference b/tests/queries/0_stateless/00502_sum_map.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00502_sum_map.reference rename to tests/queries/0_stateless/00502_sum_map.reference diff --git a/dbms/tests/queries/0_stateless/00502_sum_map.sql b/tests/queries/0_stateless/00502_sum_map.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00502_sum_map.sql rename to tests/queries/0_stateless/00502_sum_map.sql diff --git a/dbms/tests/queries/0_stateless/00503_cast_const_nullable.reference b/tests/queries/0_stateless/00503_cast_const_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00503_cast_const_nullable.reference rename to tests/queries/0_stateless/00503_cast_const_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00503_cast_const_nullable.sql b/tests/queries/0_stateless/00503_cast_const_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00503_cast_const_nullable.sql rename to tests/queries/0_stateless/00503_cast_const_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00504_insert_miss_columns.reference b/tests/queries/0_stateless/00504_insert_miss_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00504_insert_miss_columns.reference rename to tests/queries/0_stateless/00504_insert_miss_columns.reference diff --git a/dbms/tests/queries/0_stateless/00504_insert_miss_columns.sh b/tests/queries/0_stateless/00504_insert_miss_columns.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00504_insert_miss_columns.sh rename to tests/queries/0_stateless/00504_insert_miss_columns.sh diff --git a/dbms/tests/queries/0_stateless/00504_mergetree_arrays_rw.reference b/tests/queries/0_stateless/00504_mergetree_arrays_rw.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00504_mergetree_arrays_rw.reference rename to tests/queries/0_stateless/00504_mergetree_arrays_rw.reference diff --git a/dbms/tests/queries/0_stateless/00504_mergetree_arrays_rw.sql b/tests/queries/0_stateless/00504_mergetree_arrays_rw.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00504_mergetree_arrays_rw.sql rename to tests/queries/0_stateless/00504_mergetree_arrays_rw.sql diff --git a/dbms/tests/queries/0_stateless/00505_distributed_secure.data b/tests/queries/0_stateless/00505_distributed_secure.data similarity index 100% rename from dbms/tests/queries/0_stateless/00505_distributed_secure.data rename to tests/queries/0_stateless/00505_distributed_secure.data diff --git a/dbms/tests/queries/0_stateless/00505_secure.reference b/tests/queries/0_stateless/00505_secure.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00505_secure.reference rename to tests/queries/0_stateless/00505_secure.reference diff --git a/dbms/tests/queries/0_stateless/00505_secure.sh b/tests/queries/0_stateless/00505_secure.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00505_secure.sh rename to tests/queries/0_stateless/00505_secure.sh diff --git a/dbms/tests/queries/0_stateless/00505_shard_secure.reference b/tests/queries/0_stateless/00505_shard_secure.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00505_shard_secure.reference rename to tests/queries/0_stateless/00505_shard_secure.reference diff --git a/dbms/tests/queries/0_stateless/00505_shard_secure.sh b/tests/queries/0_stateless/00505_shard_secure.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00505_shard_secure.sh rename to tests/queries/0_stateless/00505_shard_secure.sh diff --git a/dbms/tests/queries/0_stateless/00506_shard_global_in_union.reference b/tests/queries/0_stateless/00506_shard_global_in_union.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00506_shard_global_in_union.reference rename to tests/queries/0_stateless/00506_shard_global_in_union.reference diff --git a/dbms/tests/queries/0_stateless/00506_shard_global_in_union.sql b/tests/queries/0_stateless/00506_shard_global_in_union.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00506_shard_global_in_union.sql rename to tests/queries/0_stateless/00506_shard_global_in_union.sql diff --git a/dbms/tests/queries/0_stateless/00506_union_distributed.reference b/tests/queries/0_stateless/00506_union_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00506_union_distributed.reference rename to tests/queries/0_stateless/00506_union_distributed.reference diff --git a/dbms/tests/queries/0_stateless/00506_union_distributed.sql b/tests/queries/0_stateless/00506_union_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00506_union_distributed.sql rename to tests/queries/0_stateless/00506_union_distributed.sql diff --git a/dbms/tests/queries/0_stateless/00507_array_no_params.reference b/tests/queries/0_stateless/00507_array_no_params.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00507_array_no_params.reference rename to tests/queries/0_stateless/00507_array_no_params.reference diff --git a/dbms/tests/queries/0_stateless/00507_array_no_params.sh b/tests/queries/0_stateless/00507_array_no_params.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00507_array_no_params.sh rename to tests/queries/0_stateless/00507_array_no_params.sh diff --git a/dbms/tests/queries/0_stateless/00507_sumwithoverflow.reference b/tests/queries/0_stateless/00507_sumwithoverflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00507_sumwithoverflow.reference rename to tests/queries/0_stateless/00507_sumwithoverflow.reference diff --git a/dbms/tests/queries/0_stateless/00507_sumwithoverflow.sql b/tests/queries/0_stateless/00507_sumwithoverflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00507_sumwithoverflow.sql rename to tests/queries/0_stateless/00507_sumwithoverflow.sql diff --git a/dbms/tests/queries/0_stateless/00508_materialized_view_to.reference b/tests/queries/0_stateless/00508_materialized_view_to.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00508_materialized_view_to.reference rename to tests/queries/0_stateless/00508_materialized_view_to.reference diff --git a/dbms/tests/queries/0_stateless/00508_materialized_view_to.sql b/tests/queries/0_stateless/00508_materialized_view_to.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00508_materialized_view_to.sql rename to tests/queries/0_stateless/00508_materialized_view_to.sql diff --git a/dbms/tests/queries/0_stateless/00509_extended_storage_definition_syntax_zookeeper.reference b/tests/queries/0_stateless/00509_extended_storage_definition_syntax_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00509_extended_storage_definition_syntax_zookeeper.reference rename to tests/queries/0_stateless/00509_extended_storage_definition_syntax_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00509_extended_storage_definition_syntax_zookeeper.sql b/tests/queries/0_stateless/00509_extended_storage_definition_syntax_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00509_extended_storage_definition_syntax_zookeeper.sql rename to tests/queries/0_stateless/00509_extended_storage_definition_syntax_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.reference b/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.reference rename to tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.sql b/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.sql rename to tests/queries/0_stateless/00510_materizlized_view_and_deduplication_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00511_get_size_of_enum.reference b/tests/queries/0_stateless/00511_get_size_of_enum.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00511_get_size_of_enum.reference rename to tests/queries/0_stateless/00511_get_size_of_enum.reference diff --git a/dbms/tests/queries/0_stateless/00511_get_size_of_enum.sql b/tests/queries/0_stateless/00511_get_size_of_enum.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00511_get_size_of_enum.sql rename to tests/queries/0_stateless/00511_get_size_of_enum.sql diff --git a/dbms/tests/queries/0_stateless/00512_fractional_time_zones.reference b/tests/queries/0_stateless/00512_fractional_time_zones.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00512_fractional_time_zones.reference rename to tests/queries/0_stateless/00512_fractional_time_zones.reference diff --git a/dbms/tests/queries/0_stateless/00512_fractional_time_zones.sh b/tests/queries/0_stateless/00512_fractional_time_zones.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00512_fractional_time_zones.sh rename to tests/queries/0_stateless/00512_fractional_time_zones.sh diff --git a/dbms/tests/queries/0_stateless/00513_fractional_time_zones.reference b/tests/queries/0_stateless/00513_fractional_time_zones.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00513_fractional_time_zones.reference rename to tests/queries/0_stateless/00513_fractional_time_zones.reference diff --git a/dbms/tests/queries/0_stateless/00513_fractional_time_zones.sql b/tests/queries/0_stateless/00513_fractional_time_zones.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00513_fractional_time_zones.sql rename to tests/queries/0_stateless/00513_fractional_time_zones.sql diff --git a/dbms/tests/queries/0_stateless/00514_interval_operators.reference b/tests/queries/0_stateless/00514_interval_operators.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00514_interval_operators.reference rename to tests/queries/0_stateless/00514_interval_operators.reference diff --git a/dbms/tests/queries/0_stateless/00514_interval_operators.sql b/tests/queries/0_stateless/00514_interval_operators.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00514_interval_operators.sql rename to tests/queries/0_stateless/00514_interval_operators.sql diff --git a/dbms/tests/queries/0_stateless/00515_enhanced_time_zones.reference b/tests/queries/0_stateless/00515_enhanced_time_zones.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00515_enhanced_time_zones.reference rename to tests/queries/0_stateless/00515_enhanced_time_zones.reference diff --git a/dbms/tests/queries/0_stateless/00515_enhanced_time_zones.sql b/tests/queries/0_stateless/00515_enhanced_time_zones.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00515_enhanced_time_zones.sql rename to tests/queries/0_stateless/00515_enhanced_time_zones.sql diff --git a/dbms/tests/queries/0_stateless/00515_gcd_lcm.reference b/tests/queries/0_stateless/00515_gcd_lcm.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00515_gcd_lcm.reference rename to tests/queries/0_stateless/00515_gcd_lcm.reference diff --git a/dbms/tests/queries/0_stateless/00515_gcd_lcm.sql b/tests/queries/0_stateless/00515_gcd_lcm.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00515_gcd_lcm.sql rename to tests/queries/0_stateless/00515_gcd_lcm.sql diff --git a/dbms/tests/queries/0_stateless/00515_shard_desc_table_functions_and_subqueries.reference b/tests/queries/0_stateless/00515_shard_desc_table_functions_and_subqueries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00515_shard_desc_table_functions_and_subqueries.reference rename to tests/queries/0_stateless/00515_shard_desc_table_functions_and_subqueries.reference diff --git a/dbms/tests/queries/0_stateless/00515_shard_desc_table_functions_and_subqueries.sql b/tests/queries/0_stateless/00515_shard_desc_table_functions_and_subqueries.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00515_shard_desc_table_functions_and_subqueries.sql rename to tests/queries/0_stateless/00515_shard_desc_table_functions_and_subqueries.sql diff --git a/dbms/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.reference b/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.reference rename to tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.sql b/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.sql rename to tests/queries/0_stateless/00516_deduplication_after_drop_partition_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00516_is_inf_nan.reference b/tests/queries/0_stateless/00516_is_inf_nan.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00516_is_inf_nan.reference rename to tests/queries/0_stateless/00516_is_inf_nan.reference diff --git a/dbms/tests/queries/0_stateless/00516_is_inf_nan.sql b/tests/queries/0_stateless/00516_is_inf_nan.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00516_is_inf_nan.sql rename to tests/queries/0_stateless/00516_is_inf_nan.sql diff --git a/dbms/tests/queries/0_stateless/00516_modulo.reference b/tests/queries/0_stateless/00516_modulo.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00516_modulo.reference rename to tests/queries/0_stateless/00516_modulo.reference diff --git a/dbms/tests/queries/0_stateless/00516_modulo.sql b/tests/queries/0_stateless/00516_modulo.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00516_modulo.sql rename to tests/queries/0_stateless/00516_modulo.sql diff --git a/dbms/tests/queries/0_stateless/00517_date_parsing.reference b/tests/queries/0_stateless/00517_date_parsing.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00517_date_parsing.reference rename to tests/queries/0_stateless/00517_date_parsing.reference diff --git a/dbms/tests/queries/0_stateless/00517_date_parsing.sql b/tests/queries/0_stateless/00517_date_parsing.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00517_date_parsing.sql rename to tests/queries/0_stateless/00517_date_parsing.sql diff --git a/dbms/tests/queries/0_stateless/00518_extract_all_and_empty_matches.reference b/tests/queries/0_stateless/00518_extract_all_and_empty_matches.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00518_extract_all_and_empty_matches.reference rename to tests/queries/0_stateless/00518_extract_all_and_empty_matches.reference diff --git a/dbms/tests/queries/0_stateless/00518_extract_all_and_empty_matches.sql b/tests/queries/0_stateless/00518_extract_all_and_empty_matches.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00518_extract_all_and_empty_matches.sql rename to tests/queries/0_stateless/00518_extract_all_and_empty_matches.sql diff --git a/dbms/tests/queries/0_stateless/00519_create_as_select_from_temporary_table.reference b/tests/queries/0_stateless/00519_create_as_select_from_temporary_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00519_create_as_select_from_temporary_table.reference rename to tests/queries/0_stateless/00519_create_as_select_from_temporary_table.reference diff --git a/dbms/tests/queries/0_stateless/00519_create_as_select_from_temporary_table.sql b/tests/queries/0_stateless/00519_create_as_select_from_temporary_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00519_create_as_select_from_temporary_table.sql rename to tests/queries/0_stateless/00519_create_as_select_from_temporary_table.sql diff --git a/dbms/tests/queries/0_stateless/00520_http_nullable.reference b/tests/queries/0_stateless/00520_http_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00520_http_nullable.reference rename to tests/queries/0_stateless/00520_http_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00520_http_nullable.sh b/tests/queries/0_stateless/00520_http_nullable.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00520_http_nullable.sh rename to tests/queries/0_stateless/00520_http_nullable.sh diff --git a/dbms/tests/queries/0_stateless/00520_tuple_values_interpreter.reference b/tests/queries/0_stateless/00520_tuple_values_interpreter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00520_tuple_values_interpreter.reference rename to tests/queries/0_stateless/00520_tuple_values_interpreter.reference diff --git a/dbms/tests/queries/0_stateless/00520_tuple_values_interpreter.sql b/tests/queries/0_stateless/00520_tuple_values_interpreter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00520_tuple_values_interpreter.sql rename to tests/queries/0_stateless/00520_tuple_values_interpreter.sql diff --git a/dbms/tests/queries/0_stateless/00521_multidimensional.reference b/tests/queries/0_stateless/00521_multidimensional.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00521_multidimensional.reference rename to tests/queries/0_stateless/00521_multidimensional.reference diff --git a/dbms/tests/queries/0_stateless/00521_multidimensional.sql b/tests/queries/0_stateless/00521_multidimensional.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00521_multidimensional.sql rename to tests/queries/0_stateless/00521_multidimensional.sql diff --git a/dbms/tests/queries/0_stateless/00522_multidimensional.reference b/tests/queries/0_stateless/00522_multidimensional.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00522_multidimensional.reference rename to tests/queries/0_stateless/00522_multidimensional.reference diff --git a/dbms/tests/queries/0_stateless/00522_multidimensional.sql b/tests/queries/0_stateless/00522_multidimensional.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00522_multidimensional.sql rename to tests/queries/0_stateless/00522_multidimensional.sql diff --git a/dbms/tests/queries/0_stateless/00523_aggregate_functions_in_group_array.reference b/tests/queries/0_stateless/00523_aggregate_functions_in_group_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00523_aggregate_functions_in_group_array.reference rename to tests/queries/0_stateless/00523_aggregate_functions_in_group_array.reference diff --git a/dbms/tests/queries/0_stateless/00523_aggregate_functions_in_group_array.sql b/tests/queries/0_stateless/00523_aggregate_functions_in_group_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00523_aggregate_functions_in_group_array.sql rename to tests/queries/0_stateless/00523_aggregate_functions_in_group_array.sql diff --git a/dbms/tests/queries/0_stateless/00524_time_intervals_months_underflow.reference b/tests/queries/0_stateless/00524_time_intervals_months_underflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00524_time_intervals_months_underflow.reference rename to tests/queries/0_stateless/00524_time_intervals_months_underflow.reference diff --git a/dbms/tests/queries/0_stateless/00524_time_intervals_months_underflow.sql b/tests/queries/0_stateless/00524_time_intervals_months_underflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00524_time_intervals_months_underflow.sql rename to tests/queries/0_stateless/00524_time_intervals_months_underflow.sql diff --git a/dbms/tests/queries/0_stateless/00525_aggregate_functions_of_nullable_that_return_non_nullable.reference b/tests/queries/0_stateless/00525_aggregate_functions_of_nullable_that_return_non_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00525_aggregate_functions_of_nullable_that_return_non_nullable.reference rename to tests/queries/0_stateless/00525_aggregate_functions_of_nullable_that_return_non_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00525_aggregate_functions_of_nullable_that_return_non_nullable.sql b/tests/queries/0_stateless/00525_aggregate_functions_of_nullable_that_return_non_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00525_aggregate_functions_of_nullable_that_return_non_nullable.sql rename to tests/queries/0_stateless/00525_aggregate_functions_of_nullable_that_return_non_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00526_array_join_with_arrays_of_nullable.reference b/tests/queries/0_stateless/00526_array_join_with_arrays_of_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00526_array_join_with_arrays_of_nullable.reference rename to tests/queries/0_stateless/00526_array_join_with_arrays_of_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00526_array_join_with_arrays_of_nullable.sql b/tests/queries/0_stateless/00526_array_join_with_arrays_of_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00526_array_join_with_arrays_of_nullable.sql rename to tests/queries/0_stateless/00526_array_join_with_arrays_of_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00527_totals_having_nullable.reference b/tests/queries/0_stateless/00527_totals_having_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00527_totals_having_nullable.reference rename to tests/queries/0_stateless/00527_totals_having_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00527_totals_having_nullable.sql b/tests/queries/0_stateless/00527_totals_having_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00527_totals_having_nullable.sql rename to tests/queries/0_stateless/00527_totals_having_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00528_const_of_nullable.reference b/tests/queries/0_stateless/00528_const_of_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00528_const_of_nullable.reference rename to tests/queries/0_stateless/00528_const_of_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00528_const_of_nullable.sql b/tests/queries/0_stateless/00528_const_of_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00528_const_of_nullable.sql rename to tests/queries/0_stateless/00528_const_of_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00529_orantius.reference b/tests/queries/0_stateless/00529_orantius.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00529_orantius.reference rename to tests/queries/0_stateless/00529_orantius.reference diff --git a/dbms/tests/queries/0_stateless/00529_orantius.sql b/tests/queries/0_stateless/00529_orantius.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00529_orantius.sql rename to tests/queries/0_stateless/00529_orantius.sql diff --git a/dbms/tests/queries/0_stateless/00530_arrays_of_nothing.reference b/tests/queries/0_stateless/00530_arrays_of_nothing.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00530_arrays_of_nothing.reference rename to tests/queries/0_stateless/00530_arrays_of_nothing.reference diff --git a/dbms/tests/queries/0_stateless/00530_arrays_of_nothing.sql b/tests/queries/0_stateless/00530_arrays_of_nothing.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00530_arrays_of_nothing.sql rename to tests/queries/0_stateless/00530_arrays_of_nothing.sql diff --git a/dbms/tests/queries/0_stateless/00531_aggregate_over_nullable.reference b/tests/queries/0_stateless/00531_aggregate_over_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00531_aggregate_over_nullable.reference rename to tests/queries/0_stateless/00531_aggregate_over_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00531_aggregate_over_nullable.sql b/tests/queries/0_stateless/00531_aggregate_over_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00531_aggregate_over_nullable.sql rename to tests/queries/0_stateless/00531_aggregate_over_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00531_client_ignore_error.reference b/tests/queries/0_stateless/00531_client_ignore_error.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00531_client_ignore_error.reference rename to tests/queries/0_stateless/00531_client_ignore_error.reference diff --git a/dbms/tests/queries/0_stateless/00531_client_ignore_error.sh b/tests/queries/0_stateless/00531_client_ignore_error.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00531_client_ignore_error.sh rename to tests/queries/0_stateless/00531_client_ignore_error.sh diff --git a/dbms/tests/queries/0_stateless/00532_topk_generic.reference b/tests/queries/0_stateless/00532_topk_generic.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00532_topk_generic.reference rename to tests/queries/0_stateless/00532_topk_generic.reference diff --git a/dbms/tests/queries/0_stateless/00532_topk_generic.sql b/tests/queries/0_stateless/00532_topk_generic.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00532_topk_generic.sql rename to tests/queries/0_stateless/00532_topk_generic.sql diff --git a/dbms/tests/queries/0_stateless/00533_uniq_array.reference b/tests/queries/0_stateless/00533_uniq_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00533_uniq_array.reference rename to tests/queries/0_stateless/00533_uniq_array.reference diff --git a/dbms/tests/queries/0_stateless/00533_uniq_array.sql b/tests/queries/0_stateless/00533_uniq_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00533_uniq_array.sql rename to tests/queries/0_stateless/00533_uniq_array.sql diff --git a/dbms/tests/queries/0_stateless/00534_client_ignore_error.reference b/tests/queries/0_stateless/00534_client_ignore_error.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_client_ignore_error.reference rename to tests/queries/0_stateless/00534_client_ignore_error.reference diff --git a/dbms/tests/queries/0_stateless/00534_client_ignore_error.sh b/tests/queries/0_stateless/00534_client_ignore_error.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_client_ignore_error.sh rename to tests/queries/0_stateless/00534_client_ignore_error.sh diff --git a/dbms/tests/queries/0_stateless/00534_exp10.reference b/tests/queries/0_stateless/00534_exp10.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_exp10.reference rename to tests/queries/0_stateless/00534_exp10.reference diff --git a/dbms/tests/queries/0_stateless/00534_exp10.sql b/tests/queries/0_stateless/00534_exp10.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00534_exp10.sql rename to tests/queries/0_stateless/00534_exp10.sql diff --git a/dbms/tests/queries/0_stateless/00534_filimonov.data b/tests/queries/0_stateless/00534_filimonov.data similarity index 100% rename from dbms/tests/queries/0_stateless/00534_filimonov.data rename to tests/queries/0_stateless/00534_filimonov.data diff --git a/dbms/tests/queries/0_stateless/00534_filimonov.reference b/tests/queries/0_stateless/00534_filimonov.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_filimonov.reference rename to tests/queries/0_stateless/00534_filimonov.reference diff --git a/dbms/tests/queries/0_stateless/00534_filimonov.sh b/tests/queries/0_stateless/00534_filimonov.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_filimonov.sh rename to tests/queries/0_stateless/00534_filimonov.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments.lib b/tests/queries/0_stateless/00534_functions_bad_arguments.lib similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments.lib rename to tests/queries/0_stateless/00534_functions_bad_arguments.lib diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments1.reference b/tests/queries/0_stateless/00534_functions_bad_arguments1.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments1.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments1.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments1.sh b/tests/queries/0_stateless/00534_functions_bad_arguments1.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments1.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments1.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments10.reference b/tests/queries/0_stateless/00534_functions_bad_arguments10.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments10.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments10.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments10.sh b/tests/queries/0_stateless/00534_functions_bad_arguments10.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments10.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments10.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments11.reference b/tests/queries/0_stateless/00534_functions_bad_arguments11.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments11.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments11.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments11.sh b/tests/queries/0_stateless/00534_functions_bad_arguments11.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments11.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments11.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments12.reference b/tests/queries/0_stateless/00534_functions_bad_arguments12.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments12.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments12.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments12.sh b/tests/queries/0_stateless/00534_functions_bad_arguments12.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments12.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments12.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments13.reference b/tests/queries/0_stateless/00534_functions_bad_arguments13.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments13.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments13.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments13.sh b/tests/queries/0_stateless/00534_functions_bad_arguments13.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments13.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments13.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments2.reference b/tests/queries/0_stateless/00534_functions_bad_arguments2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments2.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments2.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments2.sh b/tests/queries/0_stateless/00534_functions_bad_arguments2.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments2.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments2.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments3.reference b/tests/queries/0_stateless/00534_functions_bad_arguments3.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments3.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments3.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments3.sh b/tests/queries/0_stateless/00534_functions_bad_arguments3.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments3.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments3.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments4.reference b/tests/queries/0_stateless/00534_functions_bad_arguments4.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments4.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments4.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments4.sh b/tests/queries/0_stateless/00534_functions_bad_arguments4.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments4.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments4.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments5.reference b/tests/queries/0_stateless/00534_functions_bad_arguments5.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments5.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments5.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments5.sh b/tests/queries/0_stateless/00534_functions_bad_arguments5.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments5.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments5.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments6.reference b/tests/queries/0_stateless/00534_functions_bad_arguments6.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments6.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments6.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments6.sh b/tests/queries/0_stateless/00534_functions_bad_arguments6.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments6.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments6.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments7.reference b/tests/queries/0_stateless/00534_functions_bad_arguments7.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments7.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments7.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments7.sh b/tests/queries/0_stateless/00534_functions_bad_arguments7.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments7.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments7.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments8.reference b/tests/queries/0_stateless/00534_functions_bad_arguments8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments8.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments8.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments8.sh b/tests/queries/0_stateless/00534_functions_bad_arguments8.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments8.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments8.sh diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments9.reference b/tests/queries/0_stateless/00534_functions_bad_arguments9.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments9.reference rename to tests/queries/0_stateless/00534_functions_bad_arguments9.reference diff --git a/dbms/tests/queries/0_stateless/00534_functions_bad_arguments9.sh b/tests/queries/0_stateless/00534_functions_bad_arguments9.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00534_functions_bad_arguments9.sh rename to tests/queries/0_stateless/00534_functions_bad_arguments9.sh diff --git a/dbms/tests/queries/0_stateless/00535_parse_float_scientific.reference b/tests/queries/0_stateless/00535_parse_float_scientific.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00535_parse_float_scientific.reference rename to tests/queries/0_stateless/00535_parse_float_scientific.reference diff --git a/dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql b/tests/queries/0_stateless/00535_parse_float_scientific.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql rename to tests/queries/0_stateless/00535_parse_float_scientific.sql diff --git a/dbms/tests/queries/0_stateless/00536_int_exp.reference b/tests/queries/0_stateless/00536_int_exp.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00536_int_exp.reference rename to tests/queries/0_stateless/00536_int_exp.reference diff --git a/dbms/tests/queries/0_stateless/00536_int_exp.sql b/tests/queries/0_stateless/00536_int_exp.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00536_int_exp.sql rename to tests/queries/0_stateless/00536_int_exp.sql diff --git a/dbms/tests/queries/0_stateless/00537_quarters.reference b/tests/queries/0_stateless/00537_quarters.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00537_quarters.reference rename to tests/queries/0_stateless/00537_quarters.reference diff --git a/dbms/tests/queries/0_stateless/00537_quarters.sql b/tests/queries/0_stateless/00537_quarters.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00537_quarters.sql rename to tests/queries/0_stateless/00537_quarters.sql diff --git a/dbms/tests/queries/0_stateless/00538_datediff.reference b/tests/queries/0_stateless/00538_datediff.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00538_datediff.reference rename to tests/queries/0_stateless/00538_datediff.reference diff --git a/dbms/tests/queries/0_stateless/00538_datediff.sql b/tests/queries/0_stateless/00538_datediff.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00538_datediff.sql rename to tests/queries/0_stateless/00538_datediff.sql diff --git a/dbms/tests/queries/0_stateless/00539_functions_for_working_with_json.reference b/tests/queries/0_stateless/00539_functions_for_working_with_json.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00539_functions_for_working_with_json.reference rename to tests/queries/0_stateless/00539_functions_for_working_with_json.reference diff --git a/dbms/tests/queries/0_stateless/00539_functions_for_working_with_json.sql b/tests/queries/0_stateless/00539_functions_for_working_with_json.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00539_functions_for_working_with_json.sql rename to tests/queries/0_stateless/00539_functions_for_working_with_json.sql diff --git a/dbms/tests/queries/0_stateless/00540_bad_data_types.reference b/tests/queries/0_stateless/00540_bad_data_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00540_bad_data_types.reference rename to tests/queries/0_stateless/00540_bad_data_types.reference diff --git a/dbms/tests/queries/0_stateless/00540_bad_data_types.sh b/tests/queries/0_stateless/00540_bad_data_types.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00540_bad_data_types.sh rename to tests/queries/0_stateless/00540_bad_data_types.sh diff --git a/dbms/tests/queries/0_stateless/00541_kahan_sum.reference b/tests/queries/0_stateless/00541_kahan_sum.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00541_kahan_sum.reference rename to tests/queries/0_stateless/00541_kahan_sum.reference diff --git a/dbms/tests/queries/0_stateless/00541_kahan_sum.sql b/tests/queries/0_stateless/00541_kahan_sum.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00541_kahan_sum.sql rename to tests/queries/0_stateless/00541_kahan_sum.sql diff --git a/dbms/tests/queries/0_stateless/00541_to_start_of_fifteen_minutes.reference b/tests/queries/0_stateless/00541_to_start_of_fifteen_minutes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00541_to_start_of_fifteen_minutes.reference rename to tests/queries/0_stateless/00541_to_start_of_fifteen_minutes.reference diff --git a/dbms/tests/queries/0_stateless/00541_to_start_of_fifteen_minutes.sql b/tests/queries/0_stateless/00541_to_start_of_fifteen_minutes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00541_to_start_of_fifteen_minutes.sql rename to tests/queries/0_stateless/00541_to_start_of_fifteen_minutes.sql diff --git a/dbms/tests/queries/0_stateless/00542_access_to_temporary_table_in_readonly_mode.reference b/tests/queries/0_stateless/00542_access_to_temporary_table_in_readonly_mode.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00542_access_to_temporary_table_in_readonly_mode.reference rename to tests/queries/0_stateless/00542_access_to_temporary_table_in_readonly_mode.reference diff --git a/dbms/tests/queries/0_stateless/00542_access_to_temporary_table_in_readonly_mode.sql b/tests/queries/0_stateless/00542_access_to_temporary_table_in_readonly_mode.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00542_access_to_temporary_table_in_readonly_mode.sql rename to tests/queries/0_stateless/00542_access_to_temporary_table_in_readonly_mode.sql diff --git a/dbms/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.reference b/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.reference rename to tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.reference diff --git a/dbms/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.sql b/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.sql rename to tests/queries/0_stateless/00542_materialized_view_and_time_zone_tag.sql diff --git a/dbms/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.reference b/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.reference rename to tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.reference diff --git a/dbms/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.sh b/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.sh rename to tests/queries/0_stateless/00543_access_to_temporary_table_in_readonly_mode.sh diff --git a/dbms/tests/queries/0_stateless/00543_null_and_prewhere.reference b/tests/queries/0_stateless/00543_null_and_prewhere.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00543_null_and_prewhere.reference rename to tests/queries/0_stateless/00543_null_and_prewhere.reference diff --git a/dbms/tests/queries/0_stateless/00543_null_and_prewhere.sql b/tests/queries/0_stateless/00543_null_and_prewhere.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00543_null_and_prewhere.sql rename to tests/queries/0_stateless/00543_null_and_prewhere.sql diff --git a/dbms/tests/queries/0_stateless/00544_agg_foreach_of_two_arg.reference b/tests/queries/0_stateless/00544_agg_foreach_of_two_arg.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00544_agg_foreach_of_two_arg.reference rename to tests/queries/0_stateless/00544_agg_foreach_of_two_arg.reference diff --git a/dbms/tests/queries/0_stateless/00544_agg_foreach_of_two_arg.sql b/tests/queries/0_stateless/00544_agg_foreach_of_two_arg.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00544_agg_foreach_of_two_arg.sql rename to tests/queries/0_stateless/00544_agg_foreach_of_two_arg.sql diff --git a/dbms/tests/queries/0_stateless/00544_insert_with_select.reference b/tests/queries/0_stateless/00544_insert_with_select.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00544_insert_with_select.reference rename to tests/queries/0_stateless/00544_insert_with_select.reference diff --git a/dbms/tests/queries/0_stateless/00544_insert_with_select.sql b/tests/queries/0_stateless/00544_insert_with_select.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00544_insert_with_select.sql rename to tests/queries/0_stateless/00544_insert_with_select.sql diff --git a/dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.reference b/tests/queries/0_stateless/00545_weird_aggregate_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.reference rename to tests/queries/0_stateless/00545_weird_aggregate_functions.reference diff --git a/dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.sql b/tests/queries/0_stateless/00545_weird_aggregate_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00545_weird_aggregate_functions.sql rename to tests/queries/0_stateless/00545_weird_aggregate_functions.sql diff --git a/dbms/tests/queries/0_stateless/00546_shard_tuple_element_formatting.reference b/tests/queries/0_stateless/00546_shard_tuple_element_formatting.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00546_shard_tuple_element_formatting.reference rename to tests/queries/0_stateless/00546_shard_tuple_element_formatting.reference diff --git a/dbms/tests/queries/0_stateless/00546_shard_tuple_element_formatting.sql b/tests/queries/0_stateless/00546_shard_tuple_element_formatting.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00546_shard_tuple_element_formatting.sql rename to tests/queries/0_stateless/00546_shard_tuple_element_formatting.sql diff --git a/dbms/tests/queries/0_stateless/00547_named_tuples.reference b/tests/queries/0_stateless/00547_named_tuples.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00547_named_tuples.reference rename to tests/queries/0_stateless/00547_named_tuples.reference diff --git a/dbms/tests/queries/0_stateless/00547_named_tuples.sql b/tests/queries/0_stateless/00547_named_tuples.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00547_named_tuples.sql rename to tests/queries/0_stateless/00547_named_tuples.sql diff --git a/dbms/tests/queries/0_stateless/00548_slice_of_nested.reference b/tests/queries/0_stateless/00548_slice_of_nested.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00548_slice_of_nested.reference rename to tests/queries/0_stateless/00548_slice_of_nested.reference diff --git a/dbms/tests/queries/0_stateless/00548_slice_of_nested.sql b/tests/queries/0_stateless/00548_slice_of_nested.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00548_slice_of_nested.sql rename to tests/queries/0_stateless/00548_slice_of_nested.sql diff --git a/dbms/tests/queries/0_stateless/00549_join_use_nulls.reference b/tests/queries/0_stateless/00549_join_use_nulls.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00549_join_use_nulls.reference rename to tests/queries/0_stateless/00549_join_use_nulls.reference diff --git a/dbms/tests/queries/0_stateless/00549_join_use_nulls.sql b/tests/queries/0_stateless/00549_join_use_nulls.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00549_join_use_nulls.sql rename to tests/queries/0_stateless/00549_join_use_nulls.sql diff --git a/dbms/tests/queries/0_stateless/00550_join_insert_select.reference b/tests/queries/0_stateless/00550_join_insert_select.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00550_join_insert_select.reference rename to tests/queries/0_stateless/00550_join_insert_select.reference diff --git a/dbms/tests/queries/0_stateless/00550_join_insert_select.sh b/tests/queries/0_stateless/00550_join_insert_select.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00550_join_insert_select.sh rename to tests/queries/0_stateless/00550_join_insert_select.sh diff --git a/dbms/tests/queries/0_stateless/00551_parse_or_null.reference b/tests/queries/0_stateless/00551_parse_or_null.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00551_parse_or_null.reference rename to tests/queries/0_stateless/00551_parse_or_null.reference diff --git a/dbms/tests/queries/0_stateless/00551_parse_or_null.sql b/tests/queries/0_stateless/00551_parse_or_null.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00551_parse_or_null.sql rename to tests/queries/0_stateless/00551_parse_or_null.sql diff --git a/dbms/tests/queries/0_stateless/00552_logical_functions_simple.reference b/tests/queries/0_stateless/00552_logical_functions_simple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00552_logical_functions_simple.reference rename to tests/queries/0_stateless/00552_logical_functions_simple.reference diff --git a/dbms/tests/queries/0_stateless/00552_logical_functions_simple.sql b/tests/queries/0_stateless/00552_logical_functions_simple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00552_logical_functions_simple.sql rename to tests/queries/0_stateless/00552_logical_functions_simple.sql diff --git a/dbms/tests/queries/0_stateless/00552_logical_functions_ternary.reference b/tests/queries/0_stateless/00552_logical_functions_ternary.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00552_logical_functions_ternary.reference rename to tests/queries/0_stateless/00552_logical_functions_ternary.reference diff --git a/dbms/tests/queries/0_stateless/00552_logical_functions_ternary.sql b/tests/queries/0_stateless/00552_logical_functions_ternary.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00552_logical_functions_ternary.sql rename to tests/queries/0_stateless/00552_logical_functions_ternary.sql diff --git a/dbms/tests/queries/0_stateless/00552_or_nullable.reference b/tests/queries/0_stateless/00552_or_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00552_or_nullable.reference rename to tests/queries/0_stateless/00552_or_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00552_or_nullable.sql b/tests/queries/0_stateless/00552_or_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00552_or_nullable.sql rename to tests/queries/0_stateless/00552_or_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00553_buff_exists_materlized_column.reference b/tests/queries/0_stateless/00553_buff_exists_materlized_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00553_buff_exists_materlized_column.reference rename to tests/queries/0_stateless/00553_buff_exists_materlized_column.reference diff --git a/dbms/tests/queries/0_stateless/00553_buff_exists_materlized_column.sql b/tests/queries/0_stateless/00553_buff_exists_materlized_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00553_buff_exists_materlized_column.sql rename to tests/queries/0_stateless/00553_buff_exists_materlized_column.sql diff --git a/dbms/tests/queries/0_stateless/00553_invalid_nested_name.reference b/tests/queries/0_stateless/00553_invalid_nested_name.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00553_invalid_nested_name.reference rename to tests/queries/0_stateless/00553_invalid_nested_name.reference diff --git a/dbms/tests/queries/0_stateless/00553_invalid_nested_name.sql b/tests/queries/0_stateless/00553_invalid_nested_name.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00553_invalid_nested_name.sql rename to tests/queries/0_stateless/00553_invalid_nested_name.sql diff --git a/dbms/tests/queries/0_stateless/00554_nested_and_table_engines.reference b/tests/queries/0_stateless/00554_nested_and_table_engines.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00554_nested_and_table_engines.reference rename to tests/queries/0_stateless/00554_nested_and_table_engines.reference diff --git a/dbms/tests/queries/0_stateless/00554_nested_and_table_engines.sql b/tests/queries/0_stateless/00554_nested_and_table_engines.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00554_nested_and_table_engines.sql rename to tests/queries/0_stateless/00554_nested_and_table_engines.sql diff --git a/dbms/tests/queries/0_stateless/00555_hasAll_hasAny.reference b/tests/queries/0_stateless/00555_hasAll_hasAny.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00555_hasAll_hasAny.reference rename to tests/queries/0_stateless/00555_hasAll_hasAny.reference diff --git a/dbms/tests/queries/0_stateless/00555_hasAll_hasAny.sql b/tests/queries/0_stateless/00555_hasAll_hasAny.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00555_hasAll_hasAny.sql rename to tests/queries/0_stateless/00555_hasAll_hasAny.sql diff --git a/dbms/tests/queries/0_stateless/00555_right_join_excessive_rows.reference b/tests/queries/0_stateless/00555_right_join_excessive_rows.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00555_right_join_excessive_rows.reference rename to tests/queries/0_stateless/00555_right_join_excessive_rows.reference diff --git a/dbms/tests/queries/0_stateless/00555_right_join_excessive_rows.sql b/tests/queries/0_stateless/00555_right_join_excessive_rows.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00555_right_join_excessive_rows.sql rename to tests/queries/0_stateless/00555_right_join_excessive_rows.sql diff --git a/dbms/tests/queries/0_stateless/00556_array_intersect.reference b/tests/queries/0_stateless/00556_array_intersect.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00556_array_intersect.reference rename to tests/queries/0_stateless/00556_array_intersect.reference diff --git a/dbms/tests/queries/0_stateless/00556_array_intersect.sql b/tests/queries/0_stateless/00556_array_intersect.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00556_array_intersect.sql rename to tests/queries/0_stateless/00556_array_intersect.sql diff --git a/dbms/tests/queries/0_stateless/00556_remove_columns_from_subquery.reference b/tests/queries/0_stateless/00556_remove_columns_from_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00556_remove_columns_from_subquery.reference rename to tests/queries/0_stateless/00556_remove_columns_from_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00556_remove_columns_from_subquery.sql b/tests/queries/0_stateless/00556_remove_columns_from_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00556_remove_columns_from_subquery.sql rename to tests/queries/0_stateless/00556_remove_columns_from_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00557_alter_null_storage_tables.reference b/tests/queries/0_stateless/00557_alter_null_storage_tables.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00557_alter_null_storage_tables.reference rename to tests/queries/0_stateless/00557_alter_null_storage_tables.reference diff --git a/dbms/tests/queries/0_stateless/00557_alter_null_storage_tables.sql b/tests/queries/0_stateless/00557_alter_null_storage_tables.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00557_alter_null_storage_tables.sql rename to tests/queries/0_stateless/00557_alter_null_storage_tables.sql diff --git a/dbms/tests/queries/0_stateless/00557_array_resize.reference b/tests/queries/0_stateless/00557_array_resize.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00557_array_resize.reference rename to tests/queries/0_stateless/00557_array_resize.reference diff --git a/dbms/tests/queries/0_stateless/00557_array_resize.sql b/tests/queries/0_stateless/00557_array_resize.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00557_array_resize.sql rename to tests/queries/0_stateless/00557_array_resize.sql diff --git a/dbms/tests/queries/0_stateless/00557_remote_port.reference b/tests/queries/0_stateless/00557_remote_port.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00557_remote_port.reference rename to tests/queries/0_stateless/00557_remote_port.reference diff --git a/dbms/tests/queries/0_stateless/00557_remote_port.sh b/tests/queries/0_stateless/00557_remote_port.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00557_remote_port.sh rename to tests/queries/0_stateless/00557_remote_port.sh diff --git a/dbms/tests/queries/0_stateless/00558_aggregate_merge_totals_with_arenas.reference b/tests/queries/0_stateless/00558_aggregate_merge_totals_with_arenas.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00558_aggregate_merge_totals_with_arenas.reference rename to tests/queries/0_stateless/00558_aggregate_merge_totals_with_arenas.reference diff --git a/dbms/tests/queries/0_stateless/00558_aggregate_merge_totals_with_arenas.sql b/tests/queries/0_stateless/00558_aggregate_merge_totals_with_arenas.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00558_aggregate_merge_totals_with_arenas.sql rename to tests/queries/0_stateless/00558_aggregate_merge_totals_with_arenas.sql diff --git a/dbms/tests/queries/0_stateless/00558_parse_floats.reference b/tests/queries/0_stateless/00558_parse_floats.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00558_parse_floats.reference rename to tests/queries/0_stateless/00558_parse_floats.reference diff --git a/dbms/tests/queries/0_stateless/00558_parse_floats.sql b/tests/queries/0_stateless/00558_parse_floats.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00558_parse_floats.sql rename to tests/queries/0_stateless/00558_parse_floats.sql diff --git a/dbms/tests/queries/0_stateless/00559_filter_array_generic.reference b/tests/queries/0_stateless/00559_filter_array_generic.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00559_filter_array_generic.reference rename to tests/queries/0_stateless/00559_filter_array_generic.reference diff --git a/dbms/tests/queries/0_stateless/00559_filter_array_generic.sql b/tests/queries/0_stateless/00559_filter_array_generic.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00559_filter_array_generic.sql rename to tests/queries/0_stateless/00559_filter_array_generic.sql diff --git a/dbms/tests/queries/0_stateless/00560_float_leading_plus_in_exponent.reference b/tests/queries/0_stateless/00560_float_leading_plus_in_exponent.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00560_float_leading_plus_in_exponent.reference rename to tests/queries/0_stateless/00560_float_leading_plus_in_exponent.reference diff --git a/dbms/tests/queries/0_stateless/00560_float_leading_plus_in_exponent.sql b/tests/queries/0_stateless/00560_float_leading_plus_in_exponent.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00560_float_leading_plus_in_exponent.sql rename to tests/queries/0_stateless/00560_float_leading_plus_in_exponent.sql diff --git a/dbms/tests/queries/0_stateless/00561_storage_join.reference b/tests/queries/0_stateless/00561_storage_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00561_storage_join.reference rename to tests/queries/0_stateless/00561_storage_join.reference diff --git a/dbms/tests/queries/0_stateless/00561_storage_join.sql b/tests/queries/0_stateless/00561_storage_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00561_storage_join.sql rename to tests/queries/0_stateless/00561_storage_join.sql diff --git a/dbms/tests/queries/0_stateless/00562_in_subquery_merge_tree.reference b/tests/queries/0_stateless/00562_in_subquery_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00562_in_subquery_merge_tree.reference rename to tests/queries/0_stateless/00562_in_subquery_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00562_in_subquery_merge_tree.sql b/tests/queries/0_stateless/00562_in_subquery_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00562_in_subquery_merge_tree.sql rename to tests/queries/0_stateless/00562_in_subquery_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.reference b/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.reference rename to tests/queries/0_stateless/00562_rewrite_select_expression_with_union.reference diff --git a/dbms/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.sql b/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00562_rewrite_select_expression_with_union.sql rename to tests/queries/0_stateless/00562_rewrite_select_expression_with_union.sql diff --git a/dbms/tests/queries/0_stateless/00563_complex_in_expression.reference b/tests/queries/0_stateless/00563_complex_in_expression.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00563_complex_in_expression.reference rename to tests/queries/0_stateless/00563_complex_in_expression.reference diff --git a/dbms/tests/queries/0_stateless/00563_complex_in_expression.sql b/tests/queries/0_stateless/00563_complex_in_expression.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00563_complex_in_expression.sql rename to tests/queries/0_stateless/00563_complex_in_expression.sql diff --git a/dbms/tests/queries/0_stateless/00563_insert_into_remote_and_zookeeper.reference b/tests/queries/0_stateless/00563_insert_into_remote_and_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00563_insert_into_remote_and_zookeeper.reference rename to tests/queries/0_stateless/00563_insert_into_remote_and_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00563_insert_into_remote_and_zookeeper.sql b/tests/queries/0_stateless/00563_insert_into_remote_and_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00563_insert_into_remote_and_zookeeper.sql rename to tests/queries/0_stateless/00563_insert_into_remote_and_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00563_shard_insert_into_remote.reference b/tests/queries/0_stateless/00563_shard_insert_into_remote.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00563_shard_insert_into_remote.reference rename to tests/queries/0_stateless/00563_shard_insert_into_remote.reference diff --git a/dbms/tests/queries/0_stateless/00563_shard_insert_into_remote.sql b/tests/queries/0_stateless/00563_shard_insert_into_remote.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00563_shard_insert_into_remote.sql rename to tests/queries/0_stateless/00563_shard_insert_into_remote.sql diff --git a/dbms/tests/queries/0_stateless/00564_enum_order.reference b/tests/queries/0_stateless/00564_enum_order.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00564_enum_order.reference rename to tests/queries/0_stateless/00564_enum_order.reference diff --git a/dbms/tests/queries/0_stateless/00564_enum_order.sh b/tests/queries/0_stateless/00564_enum_order.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00564_enum_order.sh rename to tests/queries/0_stateless/00564_enum_order.sh diff --git a/dbms/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.reference b/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.reference rename to tests/queries/0_stateless/00564_initial_column_values_with_default_expression.reference diff --git a/dbms/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.sql b/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00564_initial_column_values_with_default_expression.sql rename to tests/queries/0_stateless/00564_initial_column_values_with_default_expression.sql diff --git a/dbms/tests/queries/0_stateless/00564_temporary_table_management.reference b/tests/queries/0_stateless/00564_temporary_table_management.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00564_temporary_table_management.reference rename to tests/queries/0_stateless/00564_temporary_table_management.reference diff --git a/dbms/tests/queries/0_stateless/00564_temporary_table_management.sql b/tests/queries/0_stateless/00564_temporary_table_management.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00564_temporary_table_management.sql rename to tests/queries/0_stateless/00564_temporary_table_management.sql diff --git a/dbms/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.reference b/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.reference rename to tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.sql b/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.sql rename to tests/queries/0_stateless/00564_versioned_collapsing_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00565_enum_order.reference b/tests/queries/0_stateless/00565_enum_order.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00565_enum_order.reference rename to tests/queries/0_stateless/00565_enum_order.reference diff --git a/dbms/tests/queries/0_stateless/00565_enum_order.sh b/tests/queries/0_stateless/00565_enum_order.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00565_enum_order.sh rename to tests/queries/0_stateless/00565_enum_order.sh diff --git a/dbms/tests/queries/0_stateless/00566_enum_min_max.reference b/tests/queries/0_stateless/00566_enum_min_max.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00566_enum_min_max.reference rename to tests/queries/0_stateless/00566_enum_min_max.reference diff --git a/dbms/tests/queries/0_stateless/00566_enum_min_max.sql b/tests/queries/0_stateless/00566_enum_min_max.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00566_enum_min_max.sql rename to tests/queries/0_stateless/00566_enum_min_max.sql diff --git a/dbms/tests/queries/0_stateless/00567_parse_datetime_as_unix_timestamp.reference b/tests/queries/0_stateless/00567_parse_datetime_as_unix_timestamp.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00567_parse_datetime_as_unix_timestamp.reference rename to tests/queries/0_stateless/00567_parse_datetime_as_unix_timestamp.reference diff --git a/dbms/tests/queries/0_stateless/00567_parse_datetime_as_unix_timestamp.sql b/tests/queries/0_stateless/00567_parse_datetime_as_unix_timestamp.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00567_parse_datetime_as_unix_timestamp.sql rename to tests/queries/0_stateless/00567_parse_datetime_as_unix_timestamp.sql diff --git a/dbms/tests/queries/0_stateless/00568_empty_function_with_fixed_string.reference b/tests/queries/0_stateless/00568_empty_function_with_fixed_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00568_empty_function_with_fixed_string.reference rename to tests/queries/0_stateless/00568_empty_function_with_fixed_string.reference diff --git a/dbms/tests/queries/0_stateless/00568_empty_function_with_fixed_string.sql b/tests/queries/0_stateless/00568_empty_function_with_fixed_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00568_empty_function_with_fixed_string.sql rename to tests/queries/0_stateless/00568_empty_function_with_fixed_string.sql diff --git a/dbms/tests/queries/0_stateless/00569_parse_date_time_best_effort.reference b/tests/queries/0_stateless/00569_parse_date_time_best_effort.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00569_parse_date_time_best_effort.reference rename to tests/queries/0_stateless/00569_parse_date_time_best_effort.reference diff --git a/dbms/tests/queries/0_stateless/00569_parse_date_time_best_effort.sql b/tests/queries/0_stateless/00569_parse_date_time_best_effort.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00569_parse_date_time_best_effort.sql rename to tests/queries/0_stateless/00569_parse_date_time_best_effort.sql diff --git a/dbms/tests/queries/0_stateless/00570_empty_array_is_const.reference b/tests/queries/0_stateless/00570_empty_array_is_const.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00570_empty_array_is_const.reference rename to tests/queries/0_stateless/00570_empty_array_is_const.reference diff --git a/dbms/tests/queries/0_stateless/00570_empty_array_is_const.sql b/tests/queries/0_stateless/00570_empty_array_is_const.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00570_empty_array_is_const.sql rename to tests/queries/0_stateless/00570_empty_array_is_const.sql diff --git a/dbms/tests/queries/0_stateless/00571_alter_nullable.reference b/tests/queries/0_stateless/00571_alter_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00571_alter_nullable.reference rename to tests/queries/0_stateless/00571_alter_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00571_alter_nullable.sql b/tests/queries/0_stateless/00571_alter_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00571_alter_nullable.sql rename to tests/queries/0_stateless/00571_alter_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00571_non_exist_database_when_create_materializ_view.reference b/tests/queries/0_stateless/00571_non_exist_database_when_create_materializ_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00571_non_exist_database_when_create_materializ_view.reference rename to tests/queries/0_stateless/00571_non_exist_database_when_create_materializ_view.reference diff --git a/dbms/tests/queries/0_stateless/00571_non_exist_database_when_create_materializ_view.sql b/tests/queries/0_stateless/00571_non_exist_database_when_create_materializ_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00571_non_exist_database_when_create_materializ_view.sql rename to tests/queries/0_stateless/00571_non_exist_database_when_create_materializ_view.sql diff --git a/dbms/tests/queries/0_stateless/00572_aggregation_by_empty_set.reference b/tests/queries/0_stateless/00572_aggregation_by_empty_set.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00572_aggregation_by_empty_set.reference rename to tests/queries/0_stateless/00572_aggregation_by_empty_set.reference diff --git a/dbms/tests/queries/0_stateless/00572_aggregation_by_empty_set.sql b/tests/queries/0_stateless/00572_aggregation_by_empty_set.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00572_aggregation_by_empty_set.sql rename to tests/queries/0_stateless/00572_aggregation_by_empty_set.sql diff --git a/dbms/tests/queries/0_stateless/00573_shard_aggregation_by_empty_set.reference b/tests/queries/0_stateless/00573_shard_aggregation_by_empty_set.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00573_shard_aggregation_by_empty_set.reference rename to tests/queries/0_stateless/00573_shard_aggregation_by_empty_set.reference diff --git a/dbms/tests/queries/0_stateless/00573_shard_aggregation_by_empty_set.sql b/tests/queries/0_stateless/00573_shard_aggregation_by_empty_set.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00573_shard_aggregation_by_empty_set.sql rename to tests/queries/0_stateless/00573_shard_aggregation_by_empty_set.sql diff --git a/dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.reference b/tests/queries/0_stateless/00574_empty_strings_deserialization.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.reference rename to tests/queries/0_stateless/00574_empty_strings_deserialization.reference diff --git a/dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.sh b/tests/queries/0_stateless/00574_empty_strings_deserialization.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00574_empty_strings_deserialization.sh rename to tests/queries/0_stateless/00574_empty_strings_deserialization.sh diff --git a/dbms/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.reference b/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.reference rename to tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.reference diff --git a/dbms/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.sh b/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.sh rename to tests/queries/0_stateless/00575_illegal_column_exception_when_drop_depen_column.sh diff --git a/dbms/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.reference b/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.reference rename to tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.reference diff --git a/dbms/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.sql b/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.sql rename to tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.sql diff --git a/dbms/tests/queries/0_stateless/00576_nested_and_prewhere.reference b/tests/queries/0_stateless/00576_nested_and_prewhere.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00576_nested_and_prewhere.reference rename to tests/queries/0_stateless/00576_nested_and_prewhere.reference diff --git a/dbms/tests/queries/0_stateless/00576_nested_and_prewhere.sql b/tests/queries/0_stateless/00576_nested_and_prewhere.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00576_nested_and_prewhere.sql rename to tests/queries/0_stateless/00576_nested_and_prewhere.sql diff --git a/dbms/tests/queries/0_stateless/00577_full_join_segfault.reference b/tests/queries/0_stateless/00577_full_join_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00577_full_join_segfault.reference rename to tests/queries/0_stateless/00577_full_join_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00577_full_join_segfault.sql b/tests/queries/0_stateless/00577_full_join_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00577_full_join_segfault.sql rename to tests/queries/0_stateless/00577_full_join_segfault.sql diff --git a/dbms/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.reference b/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.reference rename to tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.reference diff --git a/dbms/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.sql b/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.sql rename to tests/queries/0_stateless/00577_replacing_merge_tree_vertical_merge.sql diff --git a/dbms/tests/queries/0_stateless/00578_merge_table_and_table_virtual_column.reference b/tests/queries/0_stateless/00578_merge_table_and_table_virtual_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00578_merge_table_and_table_virtual_column.reference rename to tests/queries/0_stateless/00578_merge_table_and_table_virtual_column.reference diff --git a/dbms/tests/queries/0_stateless/00578_merge_table_and_table_virtual_column.sql b/tests/queries/0_stateless/00578_merge_table_and_table_virtual_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00578_merge_table_and_table_virtual_column.sql rename to tests/queries/0_stateless/00578_merge_table_and_table_virtual_column.sql diff --git a/dbms/tests/queries/0_stateless/00578_merge_table_sampling.reference b/tests/queries/0_stateless/00578_merge_table_sampling.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00578_merge_table_sampling.reference rename to tests/queries/0_stateless/00578_merge_table_sampling.reference diff --git a/dbms/tests/queries/0_stateless/00578_merge_table_sampling.sql b/tests/queries/0_stateless/00578_merge_table_sampling.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00578_merge_table_sampling.sql rename to tests/queries/0_stateless/00578_merge_table_sampling.sql diff --git a/dbms/tests/queries/0_stateless/00578_merge_table_shadow_virtual_column.reference b/tests/queries/0_stateless/00578_merge_table_shadow_virtual_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00578_merge_table_shadow_virtual_column.reference rename to tests/queries/0_stateless/00578_merge_table_shadow_virtual_column.reference diff --git a/dbms/tests/queries/0_stateless/00578_merge_table_shadow_virtual_column.sql b/tests/queries/0_stateless/00578_merge_table_shadow_virtual_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00578_merge_table_shadow_virtual_column.sql rename to tests/queries/0_stateless/00578_merge_table_shadow_virtual_column.sql diff --git a/dbms/tests/queries/0_stateless/00578_merge_trees_without_primary_key.reference b/tests/queries/0_stateless/00578_merge_trees_without_primary_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00578_merge_trees_without_primary_key.reference rename to tests/queries/0_stateless/00578_merge_trees_without_primary_key.reference diff --git a/dbms/tests/queries/0_stateless/00578_merge_trees_without_primary_key.sql b/tests/queries/0_stateless/00578_merge_trees_without_primary_key.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00578_merge_trees_without_primary_key.sql rename to tests/queries/0_stateless/00578_merge_trees_without_primary_key.sql diff --git a/dbms/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.reference b/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.reference rename to tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.reference diff --git a/dbms/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.sql b/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.sql rename to tests/queries/0_stateless/00579_merge_tree_partition_and_primary_keys_using_same_expression.sql diff --git a/dbms/tests/queries/0_stateless/00579_virtual_column_and_lazy.reference b/tests/queries/0_stateless/00579_virtual_column_and_lazy.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00579_virtual_column_and_lazy.reference rename to tests/queries/0_stateless/00579_virtual_column_and_lazy.reference diff --git a/dbms/tests/queries/0_stateless/00579_virtual_column_and_lazy.sql b/tests/queries/0_stateless/00579_virtual_column_and_lazy.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00579_virtual_column_and_lazy.sql rename to tests/queries/0_stateless/00579_virtual_column_and_lazy.sql diff --git a/dbms/tests/queries/0_stateless/00580_cast_nullable_to_non_nullable.reference b/tests/queries/0_stateless/00580_cast_nullable_to_non_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00580_cast_nullable_to_non_nullable.reference rename to tests/queries/0_stateless/00580_cast_nullable_to_non_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00580_cast_nullable_to_non_nullable.sql b/tests/queries/0_stateless/00580_cast_nullable_to_non_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00580_cast_nullable_to_non_nullable.sql rename to tests/queries/0_stateless/00580_cast_nullable_to_non_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00580_consistent_hashing_functions.reference b/tests/queries/0_stateless/00580_consistent_hashing_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00580_consistent_hashing_functions.reference rename to tests/queries/0_stateless/00580_consistent_hashing_functions.reference diff --git a/dbms/tests/queries/0_stateless/00580_consistent_hashing_functions.sql b/tests/queries/0_stateless/00580_consistent_hashing_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00580_consistent_hashing_functions.sql rename to tests/queries/0_stateless/00580_consistent_hashing_functions.sql diff --git a/dbms/tests/queries/0_stateless/00581_limit_on_result_and_subquery_and_insert.reference b/tests/queries/0_stateless/00581_limit_on_result_and_subquery_and_insert.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00581_limit_on_result_and_subquery_and_insert.reference rename to tests/queries/0_stateless/00581_limit_on_result_and_subquery_and_insert.reference diff --git a/dbms/tests/queries/0_stateless/00581_limit_on_result_and_subquery_and_insert.sql b/tests/queries/0_stateless/00581_limit_on_result_and_subquery_and_insert.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00581_limit_on_result_and_subquery_and_insert.sql rename to tests/queries/0_stateless/00581_limit_on_result_and_subquery_and_insert.sql diff --git a/dbms/tests/queries/0_stateless/00582_not_aliasing_functions.reference b/tests/queries/0_stateless/00582_not_aliasing_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00582_not_aliasing_functions.reference rename to tests/queries/0_stateless/00582_not_aliasing_functions.reference diff --git a/dbms/tests/queries/0_stateless/00582_not_aliasing_functions.sql b/tests/queries/0_stateless/00582_not_aliasing_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00582_not_aliasing_functions.sql rename to tests/queries/0_stateless/00582_not_aliasing_functions.sql diff --git a/dbms/tests/queries/0_stateless/00583_limit_by_expressions.reference b/tests/queries/0_stateless/00583_limit_by_expressions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00583_limit_by_expressions.reference rename to tests/queries/0_stateless/00583_limit_by_expressions.reference diff --git a/dbms/tests/queries/0_stateless/00583_limit_by_expressions.sql b/tests/queries/0_stateless/00583_limit_by_expressions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00583_limit_by_expressions.sql rename to tests/queries/0_stateless/00583_limit_by_expressions.sql diff --git a/dbms/tests/queries/0_stateless/00584_view_union_all.reference b/tests/queries/0_stateless/00584_view_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00584_view_union_all.reference rename to tests/queries/0_stateless/00584_view_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00584_view_union_all.sql b/tests/queries/0_stateless/00584_view_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00584_view_union_all.sql rename to tests/queries/0_stateless/00584_view_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.reference b/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.reference rename to tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.reference diff --git a/dbms/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.sql b/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.sql rename to tests/queries/0_stateless/00585_union_all_subquery_aggregation_column_removal.sql diff --git a/dbms/tests/queries/0_stateless/00586_removing_unused_columns_from_subquery.reference b/tests/queries/0_stateless/00586_removing_unused_columns_from_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00586_removing_unused_columns_from_subquery.reference rename to tests/queries/0_stateless/00586_removing_unused_columns_from_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00586_removing_unused_columns_from_subquery.sql b/tests/queries/0_stateless/00586_removing_unused_columns_from_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00586_removing_unused_columns_from_subquery.sql rename to tests/queries/0_stateless/00586_removing_unused_columns_from_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00587_union_all_type_conversions.reference b/tests/queries/0_stateless/00587_union_all_type_conversions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00587_union_all_type_conversions.reference rename to tests/queries/0_stateless/00587_union_all_type_conversions.reference diff --git a/dbms/tests/queries/0_stateless/00587_union_all_type_conversions.sql b/tests/queries/0_stateless/00587_union_all_type_conversions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00587_union_all_type_conversions.sql rename to tests/queries/0_stateless/00587_union_all_type_conversions.sql diff --git a/dbms/tests/queries/0_stateless/00588_shard_distributed_prewhere.reference b/tests/queries/0_stateless/00588_shard_distributed_prewhere.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00588_shard_distributed_prewhere.reference rename to tests/queries/0_stateless/00588_shard_distributed_prewhere.reference diff --git a/dbms/tests/queries/0_stateless/00588_shard_distributed_prewhere.sql b/tests/queries/0_stateless/00588_shard_distributed_prewhere.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00588_shard_distributed_prewhere.sql rename to tests/queries/0_stateless/00588_shard_distributed_prewhere.sql diff --git a/dbms/tests/queries/0_stateless/00589_removal_unused_columns_aggregation.reference b/tests/queries/0_stateless/00589_removal_unused_columns_aggregation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00589_removal_unused_columns_aggregation.reference rename to tests/queries/0_stateless/00589_removal_unused_columns_aggregation.reference diff --git a/dbms/tests/queries/0_stateless/00589_removal_unused_columns_aggregation.sql b/tests/queries/0_stateless/00589_removal_unused_columns_aggregation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00589_removal_unused_columns_aggregation.sql rename to tests/queries/0_stateless/00589_removal_unused_columns_aggregation.sql diff --git a/dbms/tests/queries/0_stateless/00590_limit_by_column_removal.reference b/tests/queries/0_stateless/00590_limit_by_column_removal.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00590_limit_by_column_removal.reference rename to tests/queries/0_stateless/00590_limit_by_column_removal.reference diff --git a/dbms/tests/queries/0_stateless/00590_limit_by_column_removal.sql b/tests/queries/0_stateless/00590_limit_by_column_removal.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00590_limit_by_column_removal.sql rename to tests/queries/0_stateless/00590_limit_by_column_removal.sql diff --git a/dbms/tests/queries/0_stateless/00591_columns_removal_union_all.reference b/tests/queries/0_stateless/00591_columns_removal_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00591_columns_removal_union_all.reference rename to tests/queries/0_stateless/00591_columns_removal_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00591_columns_removal_union_all.sql b/tests/queries/0_stateless/00591_columns_removal_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00591_columns_removal_union_all.sql rename to tests/queries/0_stateless/00591_columns_removal_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00592_union_all_different_aliases.reference b/tests/queries/0_stateless/00592_union_all_different_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00592_union_all_different_aliases.reference rename to tests/queries/0_stateless/00592_union_all_different_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00592_union_all_different_aliases.sql b/tests/queries/0_stateless/00592_union_all_different_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00592_union_all_different_aliases.sql rename to tests/queries/0_stateless/00592_union_all_different_aliases.sql diff --git a/dbms/tests/queries/0_stateless/00593_union_all_assert_columns_removed.reference b/tests/queries/0_stateless/00593_union_all_assert_columns_removed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00593_union_all_assert_columns_removed.reference rename to tests/queries/0_stateless/00593_union_all_assert_columns_removed.reference diff --git a/dbms/tests/queries/0_stateless/00593_union_all_assert_columns_removed.sql b/tests/queries/0_stateless/00593_union_all_assert_columns_removed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00593_union_all_assert_columns_removed.sql rename to tests/queries/0_stateless/00593_union_all_assert_columns_removed.sql diff --git a/dbms/tests/queries/0_stateless/00594_alias_in_distributed.reference b/tests/queries/0_stateless/00594_alias_in_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00594_alias_in_distributed.reference rename to tests/queries/0_stateless/00594_alias_in_distributed.reference diff --git a/dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql b/tests/queries/0_stateless/00594_alias_in_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00594_alias_in_distributed.sql rename to tests/queries/0_stateless/00594_alias_in_distributed.sql diff --git a/dbms/tests/queries/0_stateless/00595_insert_into_view.reference b/tests/queries/0_stateless/00595_insert_into_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00595_insert_into_view.reference rename to tests/queries/0_stateless/00595_insert_into_view.reference diff --git a/dbms/tests/queries/0_stateless/00595_insert_into_view.sh b/tests/queries/0_stateless/00595_insert_into_view.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00595_insert_into_view.sh rename to tests/queries/0_stateless/00595_insert_into_view.sh diff --git a/dbms/tests/queries/0_stateless/00596_limit_on_expanded_ast.reference b/tests/queries/0_stateless/00596_limit_on_expanded_ast.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00596_limit_on_expanded_ast.reference rename to tests/queries/0_stateless/00596_limit_on_expanded_ast.reference diff --git a/dbms/tests/queries/0_stateless/00596_limit_on_expanded_ast.sh b/tests/queries/0_stateless/00596_limit_on_expanded_ast.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00596_limit_on_expanded_ast.sh rename to tests/queries/0_stateless/00596_limit_on_expanded_ast.sh diff --git a/dbms/tests/queries/0_stateless/00597_push_down_predicate.reference b/tests/queries/0_stateless/00597_push_down_predicate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00597_push_down_predicate.reference rename to tests/queries/0_stateless/00597_push_down_predicate.reference diff --git a/dbms/tests/queries/0_stateless/00597_push_down_predicate.sql b/tests/queries/0_stateless/00597_push_down_predicate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00597_push_down_predicate.sql rename to tests/queries/0_stateless/00597_push_down_predicate.sql diff --git a/dbms/tests/queries/0_stateless/00597_with_totals_on_empty_set.reference b/tests/queries/0_stateless/00597_with_totals_on_empty_set.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00597_with_totals_on_empty_set.reference rename to tests/queries/0_stateless/00597_with_totals_on_empty_set.reference diff --git a/dbms/tests/queries/0_stateless/00597_with_totals_on_empty_set.sql b/tests/queries/0_stateless/00597_with_totals_on_empty_set.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00597_with_totals_on_empty_set.sql rename to tests/queries/0_stateless/00597_with_totals_on_empty_set.sql diff --git a/dbms/tests/queries/0_stateless/00598_create_as_select_http.reference b/tests/queries/0_stateless/00598_create_as_select_http.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00598_create_as_select_http.reference rename to tests/queries/0_stateless/00598_create_as_select_http.reference diff --git a/dbms/tests/queries/0_stateless/00598_create_as_select_http.sh b/tests/queries/0_stateless/00598_create_as_select_http.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00598_create_as_select_http.sh rename to tests/queries/0_stateless/00598_create_as_select_http.sh diff --git a/dbms/tests/queries/0_stateless/00599_create_view_with_subquery.reference b/tests/queries/0_stateless/00599_create_view_with_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00599_create_view_with_subquery.reference rename to tests/queries/0_stateless/00599_create_view_with_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00599_create_view_with_subquery.sql b/tests/queries/0_stateless/00599_create_view_with_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00599_create_view_with_subquery.sql rename to tests/queries/0_stateless/00599_create_view_with_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00600_create_temporary_table_if_not_exists.reference b/tests/queries/0_stateless/00600_create_temporary_table_if_not_exists.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00600_create_temporary_table_if_not_exists.reference rename to tests/queries/0_stateless/00600_create_temporary_table_if_not_exists.reference diff --git a/dbms/tests/queries/0_stateless/00600_create_temporary_table_if_not_exists.sql b/tests/queries/0_stateless/00600_create_temporary_table_if_not_exists.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00600_create_temporary_table_if_not_exists.sql rename to tests/queries/0_stateless/00600_create_temporary_table_if_not_exists.sql diff --git a/dbms/tests/queries/0_stateless/00600_replace_running_query.reference b/tests/queries/0_stateless/00600_replace_running_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00600_replace_running_query.reference rename to tests/queries/0_stateless/00600_replace_running_query.reference diff --git a/dbms/tests/queries/0_stateless/00600_replace_running_query.sh b/tests/queries/0_stateless/00600_replace_running_query.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00600_replace_running_query.sh rename to tests/queries/0_stateless/00600_replace_running_query.sh diff --git a/dbms/tests/queries/0_stateless/00601_kill_running_query.reference b/tests/queries/0_stateless/00601_kill_running_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00601_kill_running_query.reference rename to tests/queries/0_stateless/00601_kill_running_query.reference diff --git a/dbms/tests/queries/0_stateless/00601_kill_running_query.sh b/tests/queries/0_stateless/00601_kill_running_query.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00601_kill_running_query.sh rename to tests/queries/0_stateless/00601_kill_running_query.sh diff --git a/dbms/tests/queries/0_stateless/00602_throw_if.reference b/tests/queries/0_stateless/00602_throw_if.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00602_throw_if.reference rename to tests/queries/0_stateless/00602_throw_if.reference diff --git a/dbms/tests/queries/0_stateless/00602_throw_if.sh b/tests/queries/0_stateless/00602_throw_if.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00602_throw_if.sh rename to tests/queries/0_stateless/00602_throw_if.sh diff --git a/dbms/tests/queries/0_stateless/00603_system_parts_nonexistent_database.reference b/tests/queries/0_stateless/00603_system_parts_nonexistent_database.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00603_system_parts_nonexistent_database.reference rename to tests/queries/0_stateless/00603_system_parts_nonexistent_database.reference diff --git a/dbms/tests/queries/0_stateless/00603_system_parts_nonexistent_database.sql b/tests/queries/0_stateless/00603_system_parts_nonexistent_database.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00603_system_parts_nonexistent_database.sql rename to tests/queries/0_stateless/00603_system_parts_nonexistent_database.sql diff --git a/dbms/tests/queries/0_stateless/00604_shard_remote_and_columns_with_defaults.reference b/tests/queries/0_stateless/00604_shard_remote_and_columns_with_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00604_shard_remote_and_columns_with_defaults.reference rename to tests/queries/0_stateless/00604_shard_remote_and_columns_with_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00604_shard_remote_and_columns_with_defaults.sql b/tests/queries/0_stateless/00604_shard_remote_and_columns_with_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00604_shard_remote_and_columns_with_defaults.sql rename to tests/queries/0_stateless/00604_shard_remote_and_columns_with_defaults.sql diff --git a/dbms/tests/queries/0_stateless/00604_show_create_database.reference b/tests/queries/0_stateless/00604_show_create_database.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00604_show_create_database.reference rename to tests/queries/0_stateless/00604_show_create_database.reference diff --git a/dbms/tests/queries/0_stateless/00604_show_create_database.sql b/tests/queries/0_stateless/00604_show_create_database.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00604_show_create_database.sql rename to tests/queries/0_stateless/00604_show_create_database.sql diff --git a/dbms/tests/queries/0_stateless/00605_intersections_aggregate_functions.reference b/tests/queries/0_stateless/00605_intersections_aggregate_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00605_intersections_aggregate_functions.reference rename to tests/queries/0_stateless/00605_intersections_aggregate_functions.reference diff --git a/dbms/tests/queries/0_stateless/00605_intersections_aggregate_functions.sql b/tests/queries/0_stateless/00605_intersections_aggregate_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00605_intersections_aggregate_functions.sql rename to tests/queries/0_stateless/00605_intersections_aggregate_functions.sql diff --git a/dbms/tests/queries/0_stateless/00606_quantiles_and_nans.reference b/tests/queries/0_stateless/00606_quantiles_and_nans.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00606_quantiles_and_nans.reference rename to tests/queries/0_stateless/00606_quantiles_and_nans.reference diff --git a/dbms/tests/queries/0_stateless/00606_quantiles_and_nans.sql b/tests/queries/0_stateless/00606_quantiles_and_nans.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00606_quantiles_and_nans.sql rename to tests/queries/0_stateless/00606_quantiles_and_nans.sql diff --git a/dbms/tests/queries/0_stateless/00607_index_in_in.reference b/tests/queries/0_stateless/00607_index_in_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00607_index_in_in.reference rename to tests/queries/0_stateless/00607_index_in_in.reference diff --git a/dbms/tests/queries/0_stateless/00607_index_in_in.sql b/tests/queries/0_stateless/00607_index_in_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00607_index_in_in.sql rename to tests/queries/0_stateless/00607_index_in_in.sql diff --git a/dbms/tests/queries/0_stateless/00608_uniq_array.reference b/tests/queries/0_stateless/00608_uniq_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00608_uniq_array.reference rename to tests/queries/0_stateless/00608_uniq_array.reference diff --git a/dbms/tests/queries/0_stateless/00608_uniq_array.sql b/tests/queries/0_stateless/00608_uniq_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00608_uniq_array.sql rename to tests/queries/0_stateless/00608_uniq_array.sql diff --git a/dbms/tests/queries/0_stateless/00609_distributed_with_case_when_then.reference b/tests/queries/0_stateless/00609_distributed_with_case_when_then.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00609_distributed_with_case_when_then.reference rename to tests/queries/0_stateless/00609_distributed_with_case_when_then.reference diff --git a/dbms/tests/queries/0_stateless/00609_distributed_with_case_when_then.sql b/tests/queries/0_stateless/00609_distributed_with_case_when_then.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00609_distributed_with_case_when_then.sql rename to tests/queries/0_stateless/00609_distributed_with_case_when_then.sql diff --git a/dbms/tests/queries/0_stateless/00609_mv_index_in_in.reference b/tests/queries/0_stateless/00609_mv_index_in_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00609_mv_index_in_in.reference rename to tests/queries/0_stateless/00609_mv_index_in_in.reference diff --git a/dbms/tests/queries/0_stateless/00609_mv_index_in_in.sql b/tests/queries/0_stateless/00609_mv_index_in_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00609_mv_index_in_in.sql rename to tests/queries/0_stateless/00609_mv_index_in_in.sql diff --git a/dbms/tests/queries/0_stateless/00609_prewhere_and_default.reference b/tests/queries/0_stateless/00609_prewhere_and_default.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00609_prewhere_and_default.reference rename to tests/queries/0_stateless/00609_prewhere_and_default.reference diff --git a/dbms/tests/queries/0_stateless/00609_prewhere_and_default.sql b/tests/queries/0_stateless/00609_prewhere_and_default.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00609_prewhere_and_default.sql rename to tests/queries/0_stateless/00609_prewhere_and_default.sql diff --git a/dbms/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.reference b/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.reference rename to tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.reference diff --git a/dbms/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.sql b/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.sql rename to tests/queries/0_stateless/00610_materialized_view_forward_alter_partition_statements.sql diff --git a/dbms/tests/queries/0_stateless/00612_count.reference b/tests/queries/0_stateless/00612_count.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00612_count.reference rename to tests/queries/0_stateless/00612_count.reference diff --git a/dbms/tests/queries/0_stateless/00612_count.sql b/tests/queries/0_stateless/00612_count.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00612_count.sql rename to tests/queries/0_stateless/00612_count.sql diff --git a/dbms/tests/queries/0_stateless/00612_http_max_query_size.reference b/tests/queries/0_stateless/00612_http_max_query_size.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00612_http_max_query_size.reference rename to tests/queries/0_stateless/00612_http_max_query_size.reference diff --git a/dbms/tests/queries/0_stateless/00612_http_max_query_size.sh b/tests/queries/0_stateless/00612_http_max_query_size.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00612_http_max_query_size.sh rename to tests/queries/0_stateless/00612_http_max_query_size.sh diff --git a/dbms/tests/queries/0_stateless/00612_pk_in_tuple.reference b/tests/queries/0_stateless/00612_pk_in_tuple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00612_pk_in_tuple.reference rename to tests/queries/0_stateless/00612_pk_in_tuple.reference diff --git a/dbms/tests/queries/0_stateless/00612_pk_in_tuple.sql b/tests/queries/0_stateless/00612_pk_in_tuple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00612_pk_in_tuple.sql rename to tests/queries/0_stateless/00612_pk_in_tuple.sql diff --git a/dbms/tests/queries/0_stateless/00612_shard_count.reference b/tests/queries/0_stateless/00612_shard_count.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00612_shard_count.reference rename to tests/queries/0_stateless/00612_shard_count.reference diff --git a/dbms/tests/queries/0_stateless/00612_shard_count.sql b/tests/queries/0_stateless/00612_shard_count.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00612_shard_count.sql rename to tests/queries/0_stateless/00612_shard_count.sql diff --git a/dbms/tests/queries/0_stateless/00612_union_query_with_subquery.reference b/tests/queries/0_stateless/00612_union_query_with_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00612_union_query_with_subquery.reference rename to tests/queries/0_stateless/00612_union_query_with_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00612_union_query_with_subquery.sql b/tests/queries/0_stateless/00612_union_query_with_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00612_union_query_with_subquery.sql rename to tests/queries/0_stateless/00612_union_query_with_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00613_shard_distributed_max_execution_time.reference b/tests/queries/0_stateless/00613_shard_distributed_max_execution_time.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00613_shard_distributed_max_execution_time.reference rename to tests/queries/0_stateless/00613_shard_distributed_max_execution_time.reference diff --git a/dbms/tests/queries/0_stateless/00613_shard_distributed_max_execution_time.sql b/tests/queries/0_stateless/00613_shard_distributed_max_execution_time.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00613_shard_distributed_max_execution_time.sql rename to tests/queries/0_stateless/00613_shard_distributed_max_execution_time.sql diff --git a/dbms/tests/queries/0_stateless/00614_array_nullable.reference b/tests/queries/0_stateless/00614_array_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00614_array_nullable.reference rename to tests/queries/0_stateless/00614_array_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00614_array_nullable.sql b/tests/queries/0_stateless/00614_array_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00614_array_nullable.sql rename to tests/queries/0_stateless/00614_array_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.reference b/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.reference rename to tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.reference diff --git a/dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.sql b/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.sql rename to tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.sql diff --git a/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.reference b/tests/queries/0_stateless/00615_nullable_alter_optimize.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.reference rename to tests/queries/0_stateless/00615_nullable_alter_optimize.reference diff --git a/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql b/tests/queries/0_stateless/00615_nullable_alter_optimize.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql rename to tests/queries/0_stateless/00615_nullable_alter_optimize.sql diff --git a/dbms/tests/queries/0_stateless/00616_final_single_part.reference b/tests/queries/0_stateless/00616_final_single_part.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00616_final_single_part.reference rename to tests/queries/0_stateless/00616_final_single_part.reference diff --git a/dbms/tests/queries/0_stateless/00616_final_single_part.sql b/tests/queries/0_stateless/00616_final_single_part.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00616_final_single_part.sql rename to tests/queries/0_stateless/00616_final_single_part.sql diff --git a/dbms/tests/queries/0_stateless/00617_array_in.reference b/tests/queries/0_stateless/00617_array_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00617_array_in.reference rename to tests/queries/0_stateless/00617_array_in.reference diff --git a/dbms/tests/queries/0_stateless/00617_array_in.sql b/tests/queries/0_stateless/00617_array_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00617_array_in.sql rename to tests/queries/0_stateless/00617_array_in.sql diff --git a/dbms/tests/queries/0_stateless/00618_nullable_in.reference b/tests/queries/0_stateless/00618_nullable_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00618_nullable_in.reference rename to tests/queries/0_stateless/00618_nullable_in.reference diff --git a/dbms/tests/queries/0_stateless/00618_nullable_in.sql b/tests/queries/0_stateless/00618_nullable_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00618_nullable_in.sql rename to tests/queries/0_stateless/00618_nullable_in.sql diff --git a/dbms/tests/queries/0_stateless/00619_extract.reference b/tests/queries/0_stateless/00619_extract.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00619_extract.reference rename to tests/queries/0_stateless/00619_extract.reference diff --git a/dbms/tests/queries/0_stateless/00619_extract.sql b/tests/queries/0_stateless/00619_extract.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00619_extract.sql rename to tests/queries/0_stateless/00619_extract.sql diff --git a/dbms/tests/queries/0_stateless/00619_union_highlite.reference b/tests/queries/0_stateless/00619_union_highlite.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00619_union_highlite.reference rename to tests/queries/0_stateless/00619_union_highlite.reference diff --git a/dbms/tests/queries/0_stateless/00619_union_highlite.sql b/tests/queries/0_stateless/00619_union_highlite.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00619_union_highlite.sql rename to tests/queries/0_stateless/00619_union_highlite.sql diff --git a/dbms/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.reference b/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.reference rename to tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.sql b/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.sql rename to tests/queries/0_stateless/00620_optimize_on_nonleader_replica_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00621_regression_for_in_operator.reference b/tests/queries/0_stateless/00621_regression_for_in_operator.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00621_regression_for_in_operator.reference rename to tests/queries/0_stateless/00621_regression_for_in_operator.reference diff --git a/dbms/tests/queries/0_stateless/00621_regression_for_in_operator.sql b/tests/queries/0_stateless/00621_regression_for_in_operator.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00621_regression_for_in_operator.sql rename to tests/queries/0_stateless/00621_regression_for_in_operator.sql diff --git a/dbms/tests/queries/0_stateless/00622_select_in_parens.reference b/tests/queries/0_stateless/00622_select_in_parens.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00622_select_in_parens.reference rename to tests/queries/0_stateless/00622_select_in_parens.reference diff --git a/dbms/tests/queries/0_stateless/00622_select_in_parens.sql b/tests/queries/0_stateless/00622_select_in_parens.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00622_select_in_parens.sql rename to tests/queries/0_stateless/00622_select_in_parens.sql diff --git a/dbms/tests/queries/0_stateless/00623_in_partition_key.reference b/tests/queries/0_stateless/00623_in_partition_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00623_in_partition_key.reference rename to tests/queries/0_stateless/00623_in_partition_key.reference diff --git a/dbms/tests/queries/0_stateless/00623_in_partition_key.sql b/tests/queries/0_stateless/00623_in_partition_key.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00623_in_partition_key.sql rename to tests/queries/0_stateless/00623_in_partition_key.sql diff --git a/dbms/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.reference b/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.reference rename to tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.sql b/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.sql rename to tests/queries/0_stateless/00623_replicated_truncate_table_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00623_truncate_table.reference b/tests/queries/0_stateless/00623_truncate_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00623_truncate_table.reference rename to tests/queries/0_stateless/00623_truncate_table.reference diff --git a/dbms/tests/queries/0_stateless/00623_truncate_table.sql b/tests/queries/0_stateless/00623_truncate_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00623_truncate_table.sql rename to tests/queries/0_stateless/00623_truncate_table.sql diff --git a/dbms/tests/queries/0_stateless/00623_truncate_table_throw_exception.reference b/tests/queries/0_stateless/00623_truncate_table_throw_exception.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00623_truncate_table_throw_exception.reference rename to tests/queries/0_stateless/00623_truncate_table_throw_exception.reference diff --git a/dbms/tests/queries/0_stateless/00623_truncate_table_throw_exception.sh b/tests/queries/0_stateless/00623_truncate_table_throw_exception.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00623_truncate_table_throw_exception.sh rename to tests/queries/0_stateless/00623_truncate_table_throw_exception.sh diff --git a/dbms/tests/queries/0_stateless/00624_length_utf8.reference b/tests/queries/0_stateless/00624_length_utf8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00624_length_utf8.reference rename to tests/queries/0_stateless/00624_length_utf8.reference diff --git a/dbms/tests/queries/0_stateless/00624_length_utf8.sql b/tests/queries/0_stateless/00624_length_utf8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00624_length_utf8.sql rename to tests/queries/0_stateless/00624_length_utf8.sql diff --git a/dbms/tests/queries/0_stateless/00625_arrays_in_nested.reference b/tests/queries/0_stateless/00625_arrays_in_nested.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00625_arrays_in_nested.reference rename to tests/queries/0_stateless/00625_arrays_in_nested.reference diff --git a/dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql b/tests/queries/0_stateless/00625_arrays_in_nested.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00625_arrays_in_nested.sql rename to tests/queries/0_stateless/00625_arrays_in_nested.sql diff --git a/dbms/tests/queries/0_stateless/00625_query_in_form_data.reference b/tests/queries/0_stateless/00625_query_in_form_data.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00625_query_in_form_data.reference rename to tests/queries/0_stateless/00625_query_in_form_data.reference diff --git a/dbms/tests/queries/0_stateless/00625_query_in_form_data.sh b/tests/queries/0_stateless/00625_query_in_form_data.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00625_query_in_form_data.sh rename to tests/queries/0_stateless/00625_query_in_form_data.sh diff --git a/dbms/tests/queries/0_stateless/00625_summing_merge_tree_merge.reference b/tests/queries/0_stateless/00625_summing_merge_tree_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00625_summing_merge_tree_merge.reference rename to tests/queries/0_stateless/00625_summing_merge_tree_merge.reference diff --git a/dbms/tests/queries/0_stateless/00625_summing_merge_tree_merge.sql b/tests/queries/0_stateless/00625_summing_merge_tree_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00625_summing_merge_tree_merge.sql rename to tests/queries/0_stateless/00625_summing_merge_tree_merge.sql diff --git a/dbms/tests/queries/0_stateless/00626_in_syntax.reference b/tests/queries/0_stateless/00626_in_syntax.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00626_in_syntax.reference rename to tests/queries/0_stateless/00626_in_syntax.reference diff --git a/dbms/tests/queries/0_stateless/00626_in_syntax.sql b/tests/queries/0_stateless/00626_in_syntax.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00626_in_syntax.sql rename to tests/queries/0_stateless/00626_in_syntax.sql diff --git a/dbms/tests/queries/0_stateless/00626_replace_partition_from_table.reference b/tests/queries/0_stateless/00626_replace_partition_from_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00626_replace_partition_from_table.reference rename to tests/queries/0_stateless/00626_replace_partition_from_table.reference diff --git a/dbms/tests/queries/0_stateless/00626_replace_partition_from_table.sql b/tests/queries/0_stateless/00626_replace_partition_from_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00626_replace_partition_from_table.sql rename to tests/queries/0_stateless/00626_replace_partition_from_table.sql diff --git a/dbms/tests/queries/0_stateless/00626_replace_partition_from_table_zookeeper.reference b/tests/queries/0_stateless/00626_replace_partition_from_table_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00626_replace_partition_from_table_zookeeper.reference rename to tests/queries/0_stateless/00626_replace_partition_from_table_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00626_replace_partition_from_table_zookeeper.sh b/tests/queries/0_stateless/00626_replace_partition_from_table_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00626_replace_partition_from_table_zookeeper.sh rename to tests/queries/0_stateless/00626_replace_partition_from_table_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00627_recursive_alias.reference b/tests/queries/0_stateless/00627_recursive_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00627_recursive_alias.reference rename to tests/queries/0_stateless/00627_recursive_alias.reference diff --git a/dbms/tests/queries/0_stateless/00627_recursive_alias.sql b/tests/queries/0_stateless/00627_recursive_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00627_recursive_alias.sql rename to tests/queries/0_stateless/00627_recursive_alias.sql diff --git a/dbms/tests/queries/0_stateless/00628_in_lambda_on_merge_table_bug.reference b/tests/queries/0_stateless/00628_in_lambda_on_merge_table_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00628_in_lambda_on_merge_table_bug.reference rename to tests/queries/0_stateless/00628_in_lambda_on_merge_table_bug.reference diff --git a/dbms/tests/queries/0_stateless/00628_in_lambda_on_merge_table_bug.sql b/tests/queries/0_stateless/00628_in_lambda_on_merge_table_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00628_in_lambda_on_merge_table_bug.sql rename to tests/queries/0_stateless/00628_in_lambda_on_merge_table_bug.sql diff --git a/dbms/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.reference b/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.reference rename to tests/queries/0_stateless/00630_arbitrary_csv_delimiter.reference diff --git a/dbms/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.sh b/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00630_arbitrary_csv_delimiter.sh rename to tests/queries/0_stateless/00630_arbitrary_csv_delimiter.sh diff --git a/dbms/tests/queries/0_stateless/00632_aggregation_window_funnel.reference b/tests/queries/0_stateless/00632_aggregation_window_funnel.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00632_aggregation_window_funnel.reference rename to tests/queries/0_stateless/00632_aggregation_window_funnel.reference diff --git a/dbms/tests/queries/0_stateless/00632_aggregation_window_funnel.sql b/tests/queries/0_stateless/00632_aggregation_window_funnel.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00632_aggregation_window_funnel.sql rename to tests/queries/0_stateless/00632_aggregation_window_funnel.sql diff --git a/dbms/tests/queries/0_stateless/00632_get_sample_block_cache.reference b/tests/queries/0_stateless/00632_get_sample_block_cache.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00632_get_sample_block_cache.reference rename to tests/queries/0_stateless/00632_get_sample_block_cache.reference diff --git a/dbms/tests/queries/0_stateless/00632_get_sample_block_cache.sql b/tests/queries/0_stateless/00632_get_sample_block_cache.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00632_get_sample_block_cache.sql rename to tests/queries/0_stateless/00632_get_sample_block_cache.sql diff --git a/dbms/tests/queries/0_stateless/00633_func_or_in.reference b/tests/queries/0_stateless/00633_func_or_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00633_func_or_in.reference rename to tests/queries/0_stateless/00633_func_or_in.reference diff --git a/dbms/tests/queries/0_stateless/00633_func_or_in.sql b/tests/queries/0_stateless/00633_func_or_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00633_func_or_in.sql rename to tests/queries/0_stateless/00633_func_or_in.sql diff --git a/dbms/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.reference b/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.reference rename to tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.sh b/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.sh rename to tests/queries/0_stateless/00633_materialized_view_and_too_many_parts_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00634_logging_shard.reference b/tests/queries/0_stateless/00634_logging_shard.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00634_logging_shard.reference rename to tests/queries/0_stateless/00634_logging_shard.reference diff --git a/dbms/tests/queries/0_stateless/00634_logging_shard.sh b/tests/queries/0_stateless/00634_logging_shard.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00634_logging_shard.sh rename to tests/queries/0_stateless/00634_logging_shard.sh diff --git a/dbms/tests/queries/0_stateless/00634_performance_introspection_and_logging.reference b/tests/queries/0_stateless/00634_performance_introspection_and_logging.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00634_performance_introspection_and_logging.reference rename to tests/queries/0_stateless/00634_performance_introspection_and_logging.reference diff --git a/dbms/tests/queries/0_stateless/00634_performance_introspection_and_logging.sh b/tests/queries/0_stateless/00634_performance_introspection_and_logging.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00634_performance_introspection_and_logging.sh rename to tests/queries/0_stateless/00634_performance_introspection_and_logging.sh diff --git a/dbms/tests/queries/0_stateless/00634_rename_view.reference b/tests/queries/0_stateless/00634_rename_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00634_rename_view.reference rename to tests/queries/0_stateless/00634_rename_view.reference diff --git a/dbms/tests/queries/0_stateless/00634_rename_view.sql b/tests/queries/0_stateless/00634_rename_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00634_rename_view.sql rename to tests/queries/0_stateless/00634_rename_view.sql diff --git a/dbms/tests/queries/0_stateless/00635_shard_distinct_order_by.reference b/tests/queries/0_stateless/00635_shard_distinct_order_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00635_shard_distinct_order_by.reference rename to tests/queries/0_stateless/00635_shard_distinct_order_by.reference diff --git a/dbms/tests/queries/0_stateless/00635_shard_distinct_order_by.sql b/tests/queries/0_stateless/00635_shard_distinct_order_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00635_shard_distinct_order_by.sql rename to tests/queries/0_stateless/00635_shard_distinct_order_by.sql diff --git a/dbms/tests/queries/0_stateless/00636_partition_key_parts_pruning.reference b/tests/queries/0_stateless/00636_partition_key_parts_pruning.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00636_partition_key_parts_pruning.reference rename to tests/queries/0_stateless/00636_partition_key_parts_pruning.reference diff --git a/dbms/tests/queries/0_stateless/00636_partition_key_parts_pruning.sh b/tests/queries/0_stateless/00636_partition_key_parts_pruning.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00636_partition_key_parts_pruning.sh rename to tests/queries/0_stateless/00636_partition_key_parts_pruning.sh diff --git a/dbms/tests/queries/0_stateless/00637_sessions_in_http_interface_and_settings.reference b/tests/queries/0_stateless/00637_sessions_in_http_interface_and_settings.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00637_sessions_in_http_interface_and_settings.reference rename to tests/queries/0_stateless/00637_sessions_in_http_interface_and_settings.reference diff --git a/dbms/tests/queries/0_stateless/00637_sessions_in_http_interface_and_settings.sh b/tests/queries/0_stateless/00637_sessions_in_http_interface_and_settings.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00637_sessions_in_http_interface_and_settings.sh rename to tests/queries/0_stateless/00637_sessions_in_http_interface_and_settings.sh diff --git a/dbms/tests/queries/0_stateless/00638_remote_ssrf.reference b/tests/queries/0_stateless/00638_remote_ssrf.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00638_remote_ssrf.reference rename to tests/queries/0_stateless/00638_remote_ssrf.reference diff --git a/dbms/tests/queries/0_stateless/00638_remote_ssrf.sh.disabled b/tests/queries/0_stateless/00638_remote_ssrf.sh.disabled similarity index 100% rename from dbms/tests/queries/0_stateless/00638_remote_ssrf.sh.disabled rename to tests/queries/0_stateless/00638_remote_ssrf.sh.disabled diff --git a/dbms/tests/queries/0_stateless/00639_startsWith.reference b/tests/queries/0_stateless/00639_startsWith.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00639_startsWith.reference rename to tests/queries/0_stateless/00639_startsWith.reference diff --git a/dbms/tests/queries/0_stateless/00639_startsWith.sql b/tests/queries/0_stateless/00639_startsWith.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00639_startsWith.sql rename to tests/queries/0_stateless/00639_startsWith.sql diff --git a/dbms/tests/queries/0_stateless/00640_endsWith.reference b/tests/queries/0_stateless/00640_endsWith.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00640_endsWith.reference rename to tests/queries/0_stateless/00640_endsWith.reference diff --git a/dbms/tests/queries/0_stateless/00640_endsWith.sql b/tests/queries/0_stateless/00640_endsWith.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00640_endsWith.sql rename to tests/queries/0_stateless/00640_endsWith.sql diff --git a/dbms/tests/queries/0_stateless/00642_cast.reference b/tests/queries/0_stateless/00642_cast.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00642_cast.reference rename to tests/queries/0_stateless/00642_cast.reference diff --git a/dbms/tests/queries/0_stateless/00642_cast.sql b/tests/queries/0_stateless/00642_cast.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00642_cast.sql rename to tests/queries/0_stateless/00642_cast.sql diff --git a/dbms/tests/queries/0_stateless/00643_cast_zookeeper.reference b/tests/queries/0_stateless/00643_cast_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00643_cast_zookeeper.reference rename to tests/queries/0_stateless/00643_cast_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00643_cast_zookeeper.sql b/tests/queries/0_stateless/00643_cast_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00643_cast_zookeeper.sql rename to tests/queries/0_stateless/00643_cast_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00644_different_expressions_with_same_alias.reference b/tests/queries/0_stateless/00644_different_expressions_with_same_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00644_different_expressions_with_same_alias.reference rename to tests/queries/0_stateless/00644_different_expressions_with_same_alias.reference diff --git a/dbms/tests/queries/0_stateless/00644_different_expressions_with_same_alias.sql b/tests/queries/0_stateless/00644_different_expressions_with_same_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00644_different_expressions_with_same_alias.sql rename to tests/queries/0_stateless/00644_different_expressions_with_same_alias.sql diff --git a/dbms/tests/queries/0_stateless/00645_date_time_input_format.reference b/tests/queries/0_stateless/00645_date_time_input_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00645_date_time_input_format.reference rename to tests/queries/0_stateless/00645_date_time_input_format.reference diff --git a/dbms/tests/queries/0_stateless/00645_date_time_input_format.sql b/tests/queries/0_stateless/00645_date_time_input_format.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00645_date_time_input_format.sql rename to tests/queries/0_stateless/00645_date_time_input_format.sql diff --git a/dbms/tests/queries/0_stateless/00646_url_engine.python b/tests/queries/0_stateless/00646_url_engine.python similarity index 100% rename from dbms/tests/queries/0_stateless/00646_url_engine.python rename to tests/queries/0_stateless/00646_url_engine.python diff --git a/dbms/tests/queries/0_stateless/00646_url_engine.reference b/tests/queries/0_stateless/00646_url_engine.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00646_url_engine.reference rename to tests/queries/0_stateless/00646_url_engine.reference diff --git a/dbms/tests/queries/0_stateless/00646_url_engine.sh b/tests/queries/0_stateless/00646_url_engine.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00646_url_engine.sh rename to tests/queries/0_stateless/00646_url_engine.sh diff --git a/dbms/tests/queries/0_stateless/00646_weird_mmx.reference b/tests/queries/0_stateless/00646_weird_mmx.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00646_weird_mmx.reference rename to tests/queries/0_stateless/00646_weird_mmx.reference diff --git a/dbms/tests/queries/0_stateless/00646_weird_mmx.sql b/tests/queries/0_stateless/00646_weird_mmx.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00646_weird_mmx.sql rename to tests/queries/0_stateless/00646_weird_mmx.sql diff --git a/dbms/tests/queries/0_stateless/00647_histogram.reference b/tests/queries/0_stateless/00647_histogram.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00647_histogram.reference rename to tests/queries/0_stateless/00647_histogram.reference diff --git a/dbms/tests/queries/0_stateless/00647_histogram.sql b/tests/queries/0_stateless/00647_histogram.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00647_histogram.sql rename to tests/queries/0_stateless/00647_histogram.sql diff --git a/dbms/tests/queries/0_stateless/00647_multiply_aggregation_state.reference b/tests/queries/0_stateless/00647_multiply_aggregation_state.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00647_multiply_aggregation_state.reference rename to tests/queries/0_stateless/00647_multiply_aggregation_state.reference diff --git a/dbms/tests/queries/0_stateless/00647_multiply_aggregation_state.sql b/tests/queries/0_stateless/00647_multiply_aggregation_state.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00647_multiply_aggregation_state.sql rename to tests/queries/0_stateless/00647_multiply_aggregation_state.sql diff --git a/dbms/tests/queries/0_stateless/00647_select_numbers_with_offset.reference b/tests/queries/0_stateless/00647_select_numbers_with_offset.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00647_select_numbers_with_offset.reference rename to tests/queries/0_stateless/00647_select_numbers_with_offset.reference diff --git a/dbms/tests/queries/0_stateless/00647_select_numbers_with_offset.sql b/tests/queries/0_stateless/00647_select_numbers_with_offset.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00647_select_numbers_with_offset.sql rename to tests/queries/0_stateless/00647_select_numbers_with_offset.sql diff --git a/dbms/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.reference b/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.reference rename to tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.reference diff --git a/dbms/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.sql b/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.sql rename to tests/queries/0_stateless/00648_replacing_empty_set_from_prewhere.sql diff --git a/dbms/tests/queries/0_stateless/00649_quantile_tdigest_negative.reference b/tests/queries/0_stateless/00649_quantile_tdigest_negative.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00649_quantile_tdigest_negative.reference rename to tests/queries/0_stateless/00649_quantile_tdigest_negative.reference diff --git a/dbms/tests/queries/0_stateless/00649_quantile_tdigest_negative.sql b/tests/queries/0_stateless/00649_quantile_tdigest_negative.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00649_quantile_tdigest_negative.sql rename to tests/queries/0_stateless/00649_quantile_tdigest_negative.sql diff --git a/dbms/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.reference b/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.reference rename to tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.reference diff --git a/dbms/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.sql b/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.sql rename to tests/queries/0_stateless/00650_array_enumerate_uniq_with_tuples.sql diff --git a/dbms/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.reference b/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.reference rename to tests/queries/0_stateless/00650_csv_with_specified_quote_rule.reference diff --git a/dbms/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.sh b/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00650_csv_with_specified_quote_rule.sh rename to tests/queries/0_stateless/00650_csv_with_specified_quote_rule.sh diff --git a/dbms/tests/queries/0_stateless/00651_default_database_on_client_reconnect.reference b/tests/queries/0_stateless/00651_default_database_on_client_reconnect.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00651_default_database_on_client_reconnect.reference rename to tests/queries/0_stateless/00651_default_database_on_client_reconnect.reference diff --git a/dbms/tests/queries/0_stateless/00651_default_database_on_client_reconnect.sh b/tests/queries/0_stateless/00651_default_database_on_client_reconnect.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00651_default_database_on_client_reconnect.sh rename to tests/queries/0_stateless/00651_default_database_on_client_reconnect.sh diff --git a/dbms/tests/queries/0_stateless/00652_mergetree_mutations.reference b/tests/queries/0_stateless/00652_mergetree_mutations.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00652_mergetree_mutations.reference rename to tests/queries/0_stateless/00652_mergetree_mutations.reference diff --git a/dbms/tests/queries/0_stateless/00652_mergetree_mutations.sh b/tests/queries/0_stateless/00652_mergetree_mutations.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00652_mergetree_mutations.sh rename to tests/queries/0_stateless/00652_mergetree_mutations.sh diff --git a/dbms/tests/queries/0_stateless/00652_mutations_alter_update.reference b/tests/queries/0_stateless/00652_mutations_alter_update.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00652_mutations_alter_update.reference rename to tests/queries/0_stateless/00652_mutations_alter_update.reference diff --git a/dbms/tests/queries/0_stateless/00652_mutations_alter_update.sh b/tests/queries/0_stateless/00652_mutations_alter_update.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00652_mutations_alter_update.sh rename to tests/queries/0_stateless/00652_mutations_alter_update.sh diff --git a/dbms/tests/queries/0_stateless/00652_mutations_default_database.reference b/tests/queries/0_stateless/00652_mutations_default_database.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00652_mutations_default_database.reference rename to tests/queries/0_stateless/00652_mutations_default_database.reference diff --git a/dbms/tests/queries/0_stateless/00652_mutations_default_database.sh b/tests/queries/0_stateless/00652_mutations_default_database.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00652_mutations_default_database.sh rename to tests/queries/0_stateless/00652_mutations_default_database.sh diff --git a/dbms/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.reference b/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.reference rename to tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.sh b/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.sh rename to tests/queries/0_stateless/00652_replicated_mutations_default_database_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.reference b/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.reference rename to tests/queries/0_stateless/00652_replicated_mutations_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.sh b/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00652_replicated_mutations_zookeeper.sh rename to tests/queries/0_stateless/00652_replicated_mutations_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00653_monotonic_integer_cast.reference b/tests/queries/0_stateless/00653_monotonic_integer_cast.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00653_monotonic_integer_cast.reference rename to tests/queries/0_stateless/00653_monotonic_integer_cast.reference diff --git a/dbms/tests/queries/0_stateless/00653_monotonic_integer_cast.sql b/tests/queries/0_stateless/00653_monotonic_integer_cast.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00653_monotonic_integer_cast.sql rename to tests/queries/0_stateless/00653_monotonic_integer_cast.sql diff --git a/dbms/tests/queries/0_stateless/00653_running_difference.reference b/tests/queries/0_stateless/00653_running_difference.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00653_running_difference.reference rename to tests/queries/0_stateless/00653_running_difference.reference diff --git a/dbms/tests/queries/0_stateless/00653_running_difference.sql b/tests/queries/0_stateless/00653_running_difference.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00653_running_difference.sql rename to tests/queries/0_stateless/00653_running_difference.sql diff --git a/dbms/tests/queries/0_stateless/00653_verification_monotonic_data_load.reference b/tests/queries/0_stateless/00653_verification_monotonic_data_load.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00653_verification_monotonic_data_load.reference rename to tests/queries/0_stateless/00653_verification_monotonic_data_load.reference diff --git a/dbms/tests/queries/0_stateless/00653_verification_monotonic_data_load.sh b/tests/queries/0_stateless/00653_verification_monotonic_data_load.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00653_verification_monotonic_data_load.sh rename to tests/queries/0_stateless/00653_verification_monotonic_data_load.sh diff --git a/dbms/tests/queries/0_stateless/00660_optimize_final_without_partition.reference b/tests/queries/0_stateless/00660_optimize_final_without_partition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00660_optimize_final_without_partition.reference rename to tests/queries/0_stateless/00660_optimize_final_without_partition.reference diff --git a/dbms/tests/queries/0_stateless/00660_optimize_final_without_partition.sql b/tests/queries/0_stateless/00660_optimize_final_without_partition.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00660_optimize_final_without_partition.sql rename to tests/queries/0_stateless/00660_optimize_final_without_partition.sql diff --git a/dbms/tests/queries/0_stateless/00661_array_has_silviucpp.reference b/tests/queries/0_stateless/00661_array_has_silviucpp.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00661_array_has_silviucpp.reference rename to tests/queries/0_stateless/00661_array_has_silviucpp.reference diff --git a/dbms/tests/queries/0_stateless/00661_array_has_silviucpp.sql b/tests/queries/0_stateless/00661_array_has_silviucpp.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00661_array_has_silviucpp.sql rename to tests/queries/0_stateless/00661_array_has_silviucpp.sql diff --git a/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.reference b/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.reference rename to tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql b/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql rename to tests/queries/0_stateless/00661_optimize_final_replicated_without_partition_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00662_array_has_nullable.reference b/tests/queries/0_stateless/00662_array_has_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00662_array_has_nullable.reference rename to tests/queries/0_stateless/00662_array_has_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00662_array_has_nullable.sql b/tests/queries/0_stateless/00662_array_has_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00662_array_has_nullable.sql rename to tests/queries/0_stateless/00662_array_has_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00663_tiny_log_empty_insert.reference b/tests/queries/0_stateless/00663_tiny_log_empty_insert.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00663_tiny_log_empty_insert.reference rename to tests/queries/0_stateless/00663_tiny_log_empty_insert.reference diff --git a/dbms/tests/queries/0_stateless/00663_tiny_log_empty_insert.sql b/tests/queries/0_stateless/00663_tiny_log_empty_insert.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00663_tiny_log_empty_insert.sql rename to tests/queries/0_stateless/00663_tiny_log_empty_insert.sql diff --git a/dbms/tests/queries/0_stateless/00664_cast_from_string_to_nullable.reference b/tests/queries/0_stateless/00664_cast_from_string_to_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00664_cast_from_string_to_nullable.reference rename to tests/queries/0_stateless/00664_cast_from_string_to_nullable.reference diff --git a/dbms/tests/queries/0_stateless/00664_cast_from_string_to_nullable.sql b/tests/queries/0_stateless/00664_cast_from_string_to_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00664_cast_from_string_to_nullable.sql rename to tests/queries/0_stateless/00664_cast_from_string_to_nullable.sql diff --git a/dbms/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.reference b/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.reference rename to tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.reference diff --git a/dbms/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.sql b/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.sql rename to tests/queries/0_stateless/00665_alter_nullable_string_to_nullable_uint8.sql diff --git a/dbms/tests/queries/0_stateless/00666_uniq_complex_types.reference b/tests/queries/0_stateless/00666_uniq_complex_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00666_uniq_complex_types.reference rename to tests/queries/0_stateless/00666_uniq_complex_types.reference diff --git a/dbms/tests/queries/0_stateless/00666_uniq_complex_types.sql b/tests/queries/0_stateless/00666_uniq_complex_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00666_uniq_complex_types.sql rename to tests/queries/0_stateless/00666_uniq_complex_types.sql diff --git a/dbms/tests/queries/0_stateless/00667_compare_arrays_of_different_types.reference b/tests/queries/0_stateless/00667_compare_arrays_of_different_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00667_compare_arrays_of_different_types.reference rename to tests/queries/0_stateless/00667_compare_arrays_of_different_types.reference diff --git a/dbms/tests/queries/0_stateless/00667_compare_arrays_of_different_types.sql b/tests/queries/0_stateless/00667_compare_arrays_of_different_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00667_compare_arrays_of_different_types.sql rename to tests/queries/0_stateless/00667_compare_arrays_of_different_types.sql diff --git a/dbms/tests/queries/0_stateless/00668_compare_arrays_silviucpp.reference b/tests/queries/0_stateless/00668_compare_arrays_silviucpp.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00668_compare_arrays_silviucpp.reference rename to tests/queries/0_stateless/00668_compare_arrays_silviucpp.reference diff --git a/dbms/tests/queries/0_stateless/00668_compare_arrays_silviucpp.sql b/tests/queries/0_stateless/00668_compare_arrays_silviucpp.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00668_compare_arrays_silviucpp.sql rename to tests/queries/0_stateless/00668_compare_arrays_silviucpp.sql diff --git a/dbms/tests/queries/0_stateless/00670_truncate_temporary_table.reference b/tests/queries/0_stateless/00670_truncate_temporary_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00670_truncate_temporary_table.reference rename to tests/queries/0_stateless/00670_truncate_temporary_table.reference diff --git a/dbms/tests/queries/0_stateless/00670_truncate_temporary_table.sql b/tests/queries/0_stateless/00670_truncate_temporary_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00670_truncate_temporary_table.sql rename to tests/queries/0_stateless/00670_truncate_temporary_table.sql diff --git a/dbms/tests/queries/0_stateless/00671_max_intersections.reference b/tests/queries/0_stateless/00671_max_intersections.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00671_max_intersections.reference rename to tests/queries/0_stateless/00671_max_intersections.reference diff --git a/dbms/tests/queries/0_stateless/00671_max_intersections.sql b/tests/queries/0_stateless/00671_max_intersections.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00671_max_intersections.sql rename to tests/queries/0_stateless/00671_max_intersections.sql diff --git a/dbms/tests/queries/0_stateless/00672_arrayDistinct.reference b/tests/queries/0_stateless/00672_arrayDistinct.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00672_arrayDistinct.reference rename to tests/queries/0_stateless/00672_arrayDistinct.reference diff --git a/dbms/tests/queries/0_stateless/00672_arrayDistinct.sql b/tests/queries/0_stateless/00672_arrayDistinct.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00672_arrayDistinct.sql rename to tests/queries/0_stateless/00672_arrayDistinct.sql diff --git a/dbms/tests/queries/0_stateless/00673_subquery_prepared_set_performance.reference b/tests/queries/0_stateless/00673_subquery_prepared_set_performance.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00673_subquery_prepared_set_performance.reference rename to tests/queries/0_stateless/00673_subquery_prepared_set_performance.reference diff --git a/dbms/tests/queries/0_stateless/00673_subquery_prepared_set_performance.sql b/tests/queries/0_stateless/00673_subquery_prepared_set_performance.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00673_subquery_prepared_set_performance.sql rename to tests/queries/0_stateless/00673_subquery_prepared_set_performance.sql diff --git a/dbms/tests/queries/0_stateless/00674_has_array_enum.reference b/tests/queries/0_stateless/00674_has_array_enum.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00674_has_array_enum.reference rename to tests/queries/0_stateless/00674_has_array_enum.reference diff --git a/dbms/tests/queries/0_stateless/00674_has_array_enum.sql b/tests/queries/0_stateless/00674_has_array_enum.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00674_has_array_enum.sql rename to tests/queries/0_stateless/00674_has_array_enum.sql diff --git a/dbms/tests/queries/0_stateless/00674_join_on_syntax.reference b/tests/queries/0_stateless/00674_join_on_syntax.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00674_join_on_syntax.reference rename to tests/queries/0_stateless/00674_join_on_syntax.reference diff --git a/dbms/tests/queries/0_stateless/00674_join_on_syntax.sql b/tests/queries/0_stateless/00674_join_on_syntax.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00674_join_on_syntax.sql rename to tests/queries/0_stateless/00674_join_on_syntax.sql diff --git a/dbms/tests/queries/0_stateless/00675_shard_remote_with_table_function.reference b/tests/queries/0_stateless/00675_shard_remote_with_table_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00675_shard_remote_with_table_function.reference rename to tests/queries/0_stateless/00675_shard_remote_with_table_function.reference diff --git a/dbms/tests/queries/0_stateless/00675_shard_remote_with_table_function.sql b/tests/queries/0_stateless/00675_shard_remote_with_table_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00675_shard_remote_with_table_function.sql rename to tests/queries/0_stateless/00675_shard_remote_with_table_function.sql diff --git a/dbms/tests/queries/0_stateless/00676_group_by_in.reference b/tests/queries/0_stateless/00676_group_by_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00676_group_by_in.reference rename to tests/queries/0_stateless/00676_group_by_in.reference diff --git a/dbms/tests/queries/0_stateless/00676_group_by_in.sql b/tests/queries/0_stateless/00676_group_by_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00676_group_by_in.sql rename to tests/queries/0_stateless/00676_group_by_in.sql diff --git a/dbms/tests/queries/0_stateless/00677_shard_any_heavy_merge.reference b/tests/queries/0_stateless/00677_shard_any_heavy_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00677_shard_any_heavy_merge.reference rename to tests/queries/0_stateless/00677_shard_any_heavy_merge.reference diff --git a/dbms/tests/queries/0_stateless/00677_shard_any_heavy_merge.sql b/tests/queries/0_stateless/00677_shard_any_heavy_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00677_shard_any_heavy_merge.sql rename to tests/queries/0_stateless/00677_shard_any_heavy_merge.sql diff --git a/dbms/tests/queries/0_stateless/00678_murmurhash.reference b/tests/queries/0_stateless/00678_murmurhash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00678_murmurhash.reference rename to tests/queries/0_stateless/00678_murmurhash.reference diff --git a/dbms/tests/queries/0_stateless/00678_murmurhash.sql b/tests/queries/0_stateless/00678_murmurhash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00678_murmurhash.sql rename to tests/queries/0_stateless/00678_murmurhash.sql diff --git a/dbms/tests/queries/0_stateless/00678_shard_funnel_window.reference b/tests/queries/0_stateless/00678_shard_funnel_window.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00678_shard_funnel_window.reference rename to tests/queries/0_stateless/00678_shard_funnel_window.reference diff --git a/dbms/tests/queries/0_stateless/00678_shard_funnel_window.sql b/tests/queries/0_stateless/00678_shard_funnel_window.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00678_shard_funnel_window.sql rename to tests/queries/0_stateless/00678_shard_funnel_window.sql diff --git a/dbms/tests/queries/0_stateless/00679_replace_asterisk.reference b/tests/queries/0_stateless/00679_replace_asterisk.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00679_replace_asterisk.reference rename to tests/queries/0_stateless/00679_replace_asterisk.reference diff --git a/dbms/tests/queries/0_stateless/00679_replace_asterisk.sql b/tests/queries/0_stateless/00679_replace_asterisk.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00679_replace_asterisk.sql rename to tests/queries/0_stateless/00679_replace_asterisk.sql diff --git a/dbms/tests/queries/0_stateless/00679_uuid_in_key.reference b/tests/queries/0_stateless/00679_uuid_in_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00679_uuid_in_key.reference rename to tests/queries/0_stateless/00679_uuid_in_key.reference diff --git a/dbms/tests/queries/0_stateless/00679_uuid_in_key.sql b/tests/queries/0_stateless/00679_uuid_in_key.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00679_uuid_in_key.sql rename to tests/queries/0_stateless/00679_uuid_in_key.sql diff --git a/dbms/tests/queries/0_stateless/00680_duplicate_columns_inside_union_all.reference b/tests/queries/0_stateless/00680_duplicate_columns_inside_union_all.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00680_duplicate_columns_inside_union_all.reference rename to tests/queries/0_stateless/00680_duplicate_columns_inside_union_all.reference diff --git a/dbms/tests/queries/0_stateless/00680_duplicate_columns_inside_union_all.sql b/tests/queries/0_stateless/00680_duplicate_columns_inside_union_all.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00680_duplicate_columns_inside_union_all.sql rename to tests/queries/0_stateless/00680_duplicate_columns_inside_union_all.sql diff --git a/dbms/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.reference b/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.reference rename to tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.reference diff --git a/dbms/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.sql b/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.sql rename to tests/queries/0_stateless/00681_duplicate_columns_inside_union_all_stas_sviridov.sql diff --git a/dbms/tests/queries/0_stateless/00682_empty_parts_merge.reference b/tests/queries/0_stateless/00682_empty_parts_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00682_empty_parts_merge.reference rename to tests/queries/0_stateless/00682_empty_parts_merge.reference diff --git a/dbms/tests/queries/0_stateless/00682_empty_parts_merge.sh b/tests/queries/0_stateless/00682_empty_parts_merge.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00682_empty_parts_merge.sh rename to tests/queries/0_stateless/00682_empty_parts_merge.sh diff --git a/dbms/tests/queries/0_stateless/00685_output_format_json_escape_forward_slashes.reference b/tests/queries/0_stateless/00685_output_format_json_escape_forward_slashes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00685_output_format_json_escape_forward_slashes.reference rename to tests/queries/0_stateless/00685_output_format_json_escape_forward_slashes.reference diff --git a/dbms/tests/queries/0_stateless/00685_output_format_json_escape_forward_slashes.sql b/tests/queries/0_stateless/00685_output_format_json_escape_forward_slashes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00685_output_format_json_escape_forward_slashes.sql rename to tests/queries/0_stateless/00685_output_format_json_escape_forward_slashes.sql diff --git a/dbms/tests/queries/0_stateless/00686_client_exit_code.reference b/tests/queries/0_stateless/00686_client_exit_code.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00686_client_exit_code.reference rename to tests/queries/0_stateless/00686_client_exit_code.reference diff --git a/dbms/tests/queries/0_stateless/00686_client_exit_code.sh b/tests/queries/0_stateless/00686_client_exit_code.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00686_client_exit_code.sh rename to tests/queries/0_stateless/00686_client_exit_code.sh diff --git a/dbms/tests/queries/0_stateless/00687_insert_into_mv.reference b/tests/queries/0_stateless/00687_insert_into_mv.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00687_insert_into_mv.reference rename to tests/queries/0_stateless/00687_insert_into_mv.reference diff --git a/dbms/tests/queries/0_stateless/00687_insert_into_mv.sql b/tests/queries/0_stateless/00687_insert_into_mv.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00687_insert_into_mv.sql rename to tests/queries/0_stateless/00687_insert_into_mv.sql diff --git a/dbms/tests/queries/0_stateless/00687_top_and_offset.reference b/tests/queries/0_stateless/00687_top_and_offset.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00687_top_and_offset.reference rename to tests/queries/0_stateless/00687_top_and_offset.reference diff --git a/dbms/tests/queries/0_stateless/00687_top_and_offset.sh b/tests/queries/0_stateless/00687_top_and_offset.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00687_top_and_offset.sh rename to tests/queries/0_stateless/00687_top_and_offset.sh diff --git a/dbms/tests/queries/0_stateless/00688_aggregation_retention.reference b/tests/queries/0_stateless/00688_aggregation_retention.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_aggregation_retention.reference rename to tests/queries/0_stateless/00688_aggregation_retention.reference diff --git a/dbms/tests/queries/0_stateless/00688_aggregation_retention.sql b/tests/queries/0_stateless/00688_aggregation_retention.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_aggregation_retention.sql rename to tests/queries/0_stateless/00688_aggregation_retention.sql diff --git a/dbms/tests/queries/0_stateless/00688_case_without_else.reference b/tests/queries/0_stateless/00688_case_without_else.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_case_without_else.reference rename to tests/queries/0_stateless/00688_case_without_else.reference diff --git a/dbms/tests/queries/0_stateless/00688_case_without_else.sql b/tests/queries/0_stateless/00688_case_without_else.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_case_without_else.sql rename to tests/queries/0_stateless/00688_case_without_else.sql diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.reference b/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.reference rename to tests/queries/0_stateless/00688_low_cardinality_alter_add_column.reference diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.sql b/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_alter_add_column.sql rename to tests/queries/0_stateless/00688_low_cardinality_alter_add_column.sql diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_defaults.reference b/tests/queries/0_stateless/00688_low_cardinality_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_defaults.reference rename to tests/queries/0_stateless/00688_low_cardinality_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_defaults.sql b/tests/queries/0_stateless/00688_low_cardinality_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_defaults.sql rename to tests/queries/0_stateless/00688_low_cardinality_defaults.sql diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.reference b/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.reference rename to tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.reference diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.sql b/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.sql rename to tests/queries/0_stateless/00688_low_cardinality_dictionary_deserialization.sql diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_in.reference b/tests/queries/0_stateless/00688_low_cardinality_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_in.reference rename to tests/queries/0_stateless/00688_low_cardinality_in.reference diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_in.sql b/tests/queries/0_stateless/00688_low_cardinality_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_in.sql rename to tests/queries/0_stateless/00688_low_cardinality_in.sql diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.reference b/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.reference rename to tests/queries/0_stateless/00688_low_cardinality_nullable_cast.reference diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.sql b/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_nullable_cast.sql rename to tests/queries/0_stateless/00688_low_cardinality_nullable_cast.sql diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_prewhere.reference b/tests/queries/0_stateless/00688_low_cardinality_prewhere.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_prewhere.reference rename to tests/queries/0_stateless/00688_low_cardinality_prewhere.reference diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_prewhere.sql b/tests/queries/0_stateless/00688_low_cardinality_prewhere.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_prewhere.sql rename to tests/queries/0_stateless/00688_low_cardinality_prewhere.sql diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_serialization.reference b/tests/queries/0_stateless/00688_low_cardinality_serialization.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_serialization.reference rename to tests/queries/0_stateless/00688_low_cardinality_serialization.reference diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_serialization.sql b/tests/queries/0_stateless/00688_low_cardinality_serialization.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_serialization.sql rename to tests/queries/0_stateless/00688_low_cardinality_serialization.sql diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_syntax.reference b/tests/queries/0_stateless/00688_low_cardinality_syntax.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_syntax.reference rename to tests/queries/0_stateless/00688_low_cardinality_syntax.reference diff --git a/dbms/tests/queries/0_stateless/00688_low_cardinality_syntax.sql b/tests/queries/0_stateless/00688_low_cardinality_syntax.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00688_low_cardinality_syntax.sql rename to tests/queries/0_stateless/00688_low_cardinality_syntax.sql diff --git a/dbms/tests/queries/0_stateless/00689_file.txt b/tests/queries/0_stateless/00689_file.txt similarity index 100% rename from dbms/tests/queries/0_stateless/00689_file.txt rename to tests/queries/0_stateless/00689_file.txt diff --git a/dbms/tests/queries/0_stateless/00689_join_table_function.reference b/tests/queries/0_stateless/00689_join_table_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00689_join_table_function.reference rename to tests/queries/0_stateless/00689_join_table_function.reference diff --git a/dbms/tests/queries/0_stateless/00689_join_table_function.sql b/tests/queries/0_stateless/00689_join_table_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00689_join_table_function.sql rename to tests/queries/0_stateless/00689_join_table_function.sql diff --git a/dbms/tests/queries/0_stateless/00690_insert_select_converting_exception_message.reference b/tests/queries/0_stateless/00690_insert_select_converting_exception_message.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00690_insert_select_converting_exception_message.reference rename to tests/queries/0_stateless/00690_insert_select_converting_exception_message.reference diff --git a/dbms/tests/queries/0_stateless/00690_insert_select_converting_exception_message.sh b/tests/queries/0_stateless/00690_insert_select_converting_exception_message.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00690_insert_select_converting_exception_message.sh rename to tests/queries/0_stateless/00690_insert_select_converting_exception_message.sh diff --git a/dbms/tests/queries/0_stateless/00691_array_distinct.reference b/tests/queries/0_stateless/00691_array_distinct.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00691_array_distinct.reference rename to tests/queries/0_stateless/00691_array_distinct.reference diff --git a/dbms/tests/queries/0_stateless/00691_array_distinct.sql b/tests/queries/0_stateless/00691_array_distinct.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00691_array_distinct.sql rename to tests/queries/0_stateless/00691_array_distinct.sql diff --git a/dbms/tests/queries/0_stateless/00692_if_exception_code.reference b/tests/queries/0_stateless/00692_if_exception_code.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00692_if_exception_code.reference rename to tests/queries/0_stateless/00692_if_exception_code.reference diff --git a/dbms/tests/queries/0_stateless/00692_if_exception_code.sql b/tests/queries/0_stateless/00692_if_exception_code.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00692_if_exception_code.sql rename to tests/queries/0_stateless/00692_if_exception_code.sql diff --git a/dbms/tests/queries/0_stateless/00693_max_block_size_system_tables_columns.reference b/tests/queries/0_stateless/00693_max_block_size_system_tables_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00693_max_block_size_system_tables_columns.reference rename to tests/queries/0_stateless/00693_max_block_size_system_tables_columns.reference diff --git a/dbms/tests/queries/0_stateless/00693_max_block_size_system_tables_columns.sql b/tests/queries/0_stateless/00693_max_block_size_system_tables_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00693_max_block_size_system_tables_columns.sql rename to tests/queries/0_stateless/00693_max_block_size_system_tables_columns.sql diff --git a/dbms/tests/queries/0_stateless/00694_max_block_size_zero.reference b/tests/queries/0_stateless/00694_max_block_size_zero.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00694_max_block_size_zero.reference rename to tests/queries/0_stateless/00694_max_block_size_zero.reference diff --git a/dbms/tests/queries/0_stateless/00694_max_block_size_zero.sql b/tests/queries/0_stateless/00694_max_block_size_zero.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00694_max_block_size_zero.sql rename to tests/queries/0_stateless/00694_max_block_size_zero.sql diff --git a/dbms/tests/queries/0_stateless/00695_pretty_max_column_pad_width.reference b/tests/queries/0_stateless/00695_pretty_max_column_pad_width.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00695_pretty_max_column_pad_width.reference rename to tests/queries/0_stateless/00695_pretty_max_column_pad_width.reference diff --git a/dbms/tests/queries/0_stateless/00695_pretty_max_column_pad_width.sql b/tests/queries/0_stateless/00695_pretty_max_column_pad_width.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00695_pretty_max_column_pad_width.sql rename to tests/queries/0_stateless/00695_pretty_max_column_pad_width.sql diff --git a/dbms/tests/queries/0_stateless/00696_system_columns_limit.reference b/tests/queries/0_stateless/00696_system_columns_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00696_system_columns_limit.reference rename to tests/queries/0_stateless/00696_system_columns_limit.reference diff --git a/dbms/tests/queries/0_stateless/00696_system_columns_limit.sql b/tests/queries/0_stateless/00696_system_columns_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00696_system_columns_limit.sql rename to tests/queries/0_stateless/00696_system_columns_limit.sql diff --git a/dbms/tests/queries/0_stateless/00697_in_subquery_shard.reference b/tests/queries/0_stateless/00697_in_subquery_shard.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00697_in_subquery_shard.reference rename to tests/queries/0_stateless/00697_in_subquery_shard.reference diff --git a/dbms/tests/queries/0_stateless/00697_in_subquery_shard.sql b/tests/queries/0_stateless/00697_in_subquery_shard.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00697_in_subquery_shard.sql rename to tests/queries/0_stateless/00697_in_subquery_shard.sql diff --git a/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.reference b/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.reference rename to tests/queries/0_stateless/00698_validate_array_sizes_for_nested.reference diff --git a/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.sql b/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested.sql rename to tests/queries/0_stateless/00698_validate_array_sizes_for_nested.sql diff --git a/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.reference b/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.reference rename to tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.reference diff --git a/dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.sql b/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.sql rename to tests/queries/0_stateless/00698_validate_array_sizes_for_nested_kshvakov.sql diff --git a/dbms/tests/queries/0_stateless/00699_materialized_view_mutations.reference b/tests/queries/0_stateless/00699_materialized_view_mutations.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00699_materialized_view_mutations.reference rename to tests/queries/0_stateless/00699_materialized_view_mutations.reference diff --git a/dbms/tests/queries/0_stateless/00699_materialized_view_mutations.sh b/tests/queries/0_stateless/00699_materialized_view_mutations.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00699_materialized_view_mutations.sh rename to tests/queries/0_stateless/00699_materialized_view_mutations.sh diff --git a/dbms/tests/queries/0_stateless/00700_decimal_aggregates.reference b/tests/queries/0_stateless/00700_decimal_aggregates.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_aggregates.reference rename to tests/queries/0_stateless/00700_decimal_aggregates.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_aggregates.sql b/tests/queries/0_stateless/00700_decimal_aggregates.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_aggregates.sql rename to tests/queries/0_stateless/00700_decimal_aggregates.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_arithm.reference b/tests/queries/0_stateless/00700_decimal_arithm.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_arithm.reference rename to tests/queries/0_stateless/00700_decimal_arithm.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_arithm.sql b/tests/queries/0_stateless/00700_decimal_arithm.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_arithm.sql rename to tests/queries/0_stateless/00700_decimal_arithm.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_array_functions.reference b/tests/queries/0_stateless/00700_decimal_array_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_array_functions.reference rename to tests/queries/0_stateless/00700_decimal_array_functions.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_array_functions.sql b/tests/queries/0_stateless/00700_decimal_array_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_array_functions.sql rename to tests/queries/0_stateless/00700_decimal_array_functions.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_bounds.reference b/tests/queries/0_stateless/00700_decimal_bounds.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_bounds.reference rename to tests/queries/0_stateless/00700_decimal_bounds.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_bounds.sql b/tests/queries/0_stateless/00700_decimal_bounds.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_bounds.sql rename to tests/queries/0_stateless/00700_decimal_bounds.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_casts.reference b/tests/queries/0_stateless/00700_decimal_casts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_casts.reference rename to tests/queries/0_stateless/00700_decimal_casts.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_casts.sql b/tests/queries/0_stateless/00700_decimal_casts.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_casts.sql rename to tests/queries/0_stateless/00700_decimal_casts.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_compare.reference b/tests/queries/0_stateless/00700_decimal_compare.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_compare.reference rename to tests/queries/0_stateless/00700_decimal_compare.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_compare.sql b/tests/queries/0_stateless/00700_decimal_compare.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_compare.sql rename to tests/queries/0_stateless/00700_decimal_compare.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_complex_types.reference b/tests/queries/0_stateless/00700_decimal_complex_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_complex_types.reference rename to tests/queries/0_stateless/00700_decimal_complex_types.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_complex_types.sql b/tests/queries/0_stateless/00700_decimal_complex_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_complex_types.sql rename to tests/queries/0_stateless/00700_decimal_complex_types.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_defaults.reference b/tests/queries/0_stateless/00700_decimal_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_defaults.reference rename to tests/queries/0_stateless/00700_decimal_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_defaults.sql b/tests/queries/0_stateless/00700_decimal_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_defaults.sql rename to tests/queries/0_stateless/00700_decimal_defaults.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_empty_aggregates.reference b/tests/queries/0_stateless/00700_decimal_empty_aggregates.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_empty_aggregates.reference rename to tests/queries/0_stateless/00700_decimal_empty_aggregates.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_empty_aggregates.sql b/tests/queries/0_stateless/00700_decimal_empty_aggregates.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_empty_aggregates.sql rename to tests/queries/0_stateless/00700_decimal_empty_aggregates.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_formats.reference b/tests/queries/0_stateless/00700_decimal_formats.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_formats.reference rename to tests/queries/0_stateless/00700_decimal_formats.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_formats.sql b/tests/queries/0_stateless/00700_decimal_formats.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_formats.sql rename to tests/queries/0_stateless/00700_decimal_formats.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_gathers.reference b/tests/queries/0_stateless/00700_decimal_gathers.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_gathers.reference rename to tests/queries/0_stateless/00700_decimal_gathers.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_gathers.sql b/tests/queries/0_stateless/00700_decimal_gathers.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_gathers.sql rename to tests/queries/0_stateless/00700_decimal_gathers.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_in_keys.reference b/tests/queries/0_stateless/00700_decimal_in_keys.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_in_keys.reference rename to tests/queries/0_stateless/00700_decimal_in_keys.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_in_keys.sql b/tests/queries/0_stateless/00700_decimal_in_keys.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_in_keys.sql rename to tests/queries/0_stateless/00700_decimal_in_keys.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_math.reference b/tests/queries/0_stateless/00700_decimal_math.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_math.reference rename to tests/queries/0_stateless/00700_decimal_math.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_math.sql b/tests/queries/0_stateless/00700_decimal_math.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_math.sql rename to tests/queries/0_stateless/00700_decimal_math.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_null.reference b/tests/queries/0_stateless/00700_decimal_null.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_null.reference rename to tests/queries/0_stateless/00700_decimal_null.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_null.sql b/tests/queries/0_stateless/00700_decimal_null.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_null.sql rename to tests/queries/0_stateless/00700_decimal_null.sql diff --git a/dbms/tests/queries/0_stateless/00700_decimal_round.reference b/tests/queries/0_stateless/00700_decimal_round.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_round.reference rename to tests/queries/0_stateless/00700_decimal_round.reference diff --git a/dbms/tests/queries/0_stateless/00700_decimal_round.sql b/tests/queries/0_stateless/00700_decimal_round.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_decimal_round.sql rename to tests/queries/0_stateless/00700_decimal_round.sql diff --git a/dbms/tests/queries/0_stateless/00700_to_decimal_or_something.reference b/tests/queries/0_stateless/00700_to_decimal_or_something.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00700_to_decimal_or_something.reference rename to tests/queries/0_stateless/00700_to_decimal_or_something.reference diff --git a/dbms/tests/queries/0_stateless/00700_to_decimal_or_something.sql b/tests/queries/0_stateless/00700_to_decimal_or_something.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00700_to_decimal_or_something.sql rename to tests/queries/0_stateless/00700_to_decimal_or_something.sql diff --git a/dbms/tests/queries/0_stateless/00701_context_use_after_free.reference b/tests/queries/0_stateless/00701_context_use_after_free.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00701_context_use_after_free.reference rename to tests/queries/0_stateless/00701_context_use_after_free.reference diff --git a/dbms/tests/queries/0_stateless/00701_context_use_after_free.sql b/tests/queries/0_stateless/00701_context_use_after_free.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00701_context_use_after_free.sql rename to tests/queries/0_stateless/00701_context_use_after_free.sql diff --git a/dbms/tests/queries/0_stateless/00701_join_default_strictness.reference b/tests/queries/0_stateless/00701_join_default_strictness.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00701_join_default_strictness.reference rename to tests/queries/0_stateless/00701_join_default_strictness.reference diff --git a/dbms/tests/queries/0_stateless/00701_join_default_strictness.sql b/tests/queries/0_stateless/00701_join_default_strictness.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00701_join_default_strictness.sql rename to tests/queries/0_stateless/00701_join_default_strictness.sql diff --git a/dbms/tests/queries/0_stateless/00701_rollup.reference b/tests/queries/0_stateless/00701_rollup.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00701_rollup.reference rename to tests/queries/0_stateless/00701_rollup.reference diff --git a/dbms/tests/queries/0_stateless/00701_rollup.sql b/tests/queries/0_stateless/00701_rollup.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00701_rollup.sql rename to tests/queries/0_stateless/00701_rollup.sql diff --git a/dbms/tests/queries/0_stateless/00702_join_on_dups.reference b/tests/queries/0_stateless/00702_join_on_dups.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00702_join_on_dups.reference rename to tests/queries/0_stateless/00702_join_on_dups.reference diff --git a/dbms/tests/queries/0_stateless/00702_join_on_dups.sql b/tests/queries/0_stateless/00702_join_on_dups.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00702_join_on_dups.sql rename to tests/queries/0_stateless/00702_join_on_dups.sql diff --git a/dbms/tests/queries/0_stateless/00702_join_with_using.reference b/tests/queries/0_stateless/00702_join_with_using.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00702_join_with_using.reference rename to tests/queries/0_stateless/00702_join_with_using.reference diff --git a/dbms/tests/queries/0_stateless/00702_join_with_using.sql b/tests/queries/0_stateless/00702_join_with_using.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00702_join_with_using.sql rename to tests/queries/0_stateless/00702_join_with_using.sql diff --git a/dbms/tests/queries/0_stateless/00702_join_with_using_dups.reference b/tests/queries/0_stateless/00702_join_with_using_dups.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00702_join_with_using_dups.reference rename to tests/queries/0_stateless/00702_join_with_using_dups.reference diff --git a/dbms/tests/queries/0_stateless/00702_join_with_using_dups.sql b/tests/queries/0_stateless/00702_join_with_using_dups.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00702_join_with_using_dups.sql rename to tests/queries/0_stateless/00702_join_with_using_dups.sql diff --git a/dbms/tests/queries/0_stateless/00702_where_with_quailified_names.reference b/tests/queries/0_stateless/00702_where_with_quailified_names.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00702_where_with_quailified_names.reference rename to tests/queries/0_stateless/00702_where_with_quailified_names.reference diff --git a/dbms/tests/queries/0_stateless/00702_where_with_quailified_names.sql b/tests/queries/0_stateless/00702_where_with_quailified_names.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00702_where_with_quailified_names.sql rename to tests/queries/0_stateless/00702_where_with_quailified_names.sql diff --git a/dbms/tests/queries/0_stateless/00703_join_crash.reference b/tests/queries/0_stateless/00703_join_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00703_join_crash.reference rename to tests/queries/0_stateless/00703_join_crash.reference diff --git a/dbms/tests/queries/0_stateless/00703_join_crash.sql b/tests/queries/0_stateless/00703_join_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00703_join_crash.sql rename to tests/queries/0_stateless/00703_join_crash.sql diff --git a/dbms/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.reference b/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.reference rename to tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.reference diff --git a/dbms/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.sql b/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.sql rename to tests/queries/0_stateless/00704_arrayCumSumLimited_arrayDifference.sql diff --git a/dbms/tests/queries/0_stateless/00704_drop_truncate_memory_table.reference b/tests/queries/0_stateless/00704_drop_truncate_memory_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00704_drop_truncate_memory_table.reference rename to tests/queries/0_stateless/00704_drop_truncate_memory_table.reference diff --git a/dbms/tests/queries/0_stateless/00704_drop_truncate_memory_table.sh b/tests/queries/0_stateless/00704_drop_truncate_memory_table.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00704_drop_truncate_memory_table.sh rename to tests/queries/0_stateless/00704_drop_truncate_memory_table.sh diff --git a/dbms/tests/queries/0_stateless/00705_aggregate_states_addition.reference b/tests/queries/0_stateless/00705_aggregate_states_addition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00705_aggregate_states_addition.reference rename to tests/queries/0_stateless/00705_aggregate_states_addition.reference diff --git a/dbms/tests/queries/0_stateless/00705_aggregate_states_addition.sql b/tests/queries/0_stateless/00705_aggregate_states_addition.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00705_aggregate_states_addition.sql rename to tests/queries/0_stateless/00705_aggregate_states_addition.sql diff --git a/dbms/tests/queries/0_stateless/00705_drop_create_merge_tree.reference b/tests/queries/0_stateless/00705_drop_create_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00705_drop_create_merge_tree.reference rename to tests/queries/0_stateless/00705_drop_create_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00705_drop_create_merge_tree.sh b/tests/queries/0_stateless/00705_drop_create_merge_tree.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00705_drop_create_merge_tree.sh rename to tests/queries/0_stateless/00705_drop_create_merge_tree.sh diff --git a/dbms/tests/queries/0_stateless/00706_iso_week_and_day_of_year.reference b/tests/queries/0_stateless/00706_iso_week_and_day_of_year.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00706_iso_week_and_day_of_year.reference rename to tests/queries/0_stateless/00706_iso_week_and_day_of_year.reference diff --git a/dbms/tests/queries/0_stateless/00706_iso_week_and_day_of_year.sql b/tests/queries/0_stateless/00706_iso_week_and_day_of_year.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00706_iso_week_and_day_of_year.sql rename to tests/queries/0_stateless/00706_iso_week_and_day_of_year.sql diff --git a/dbms/tests/queries/0_stateless/00707_float_csv_delimiter.reference b/tests/queries/0_stateless/00707_float_csv_delimiter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00707_float_csv_delimiter.reference rename to tests/queries/0_stateless/00707_float_csv_delimiter.reference diff --git a/dbms/tests/queries/0_stateless/00707_float_csv_delimiter.sql b/tests/queries/0_stateless/00707_float_csv_delimiter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00707_float_csv_delimiter.sql rename to tests/queries/0_stateless/00707_float_csv_delimiter.sql diff --git a/dbms/tests/queries/0_stateless/00709_virtual_column_partition_id.reference b/tests/queries/0_stateless/00709_virtual_column_partition_id.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00709_virtual_column_partition_id.reference rename to tests/queries/0_stateless/00709_virtual_column_partition_id.reference diff --git a/dbms/tests/queries/0_stateless/00709_virtual_column_partition_id.sql b/tests/queries/0_stateless/00709_virtual_column_partition_id.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00709_virtual_column_partition_id.sql rename to tests/queries/0_stateless/00709_virtual_column_partition_id.sql diff --git a/dbms/tests/queries/0_stateless/00710_array_enumerate_dense.reference b/tests/queries/0_stateless/00710_array_enumerate_dense.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00710_array_enumerate_dense.reference rename to tests/queries/0_stateless/00710_array_enumerate_dense.reference diff --git a/dbms/tests/queries/0_stateless/00710_array_enumerate_dense.sql b/tests/queries/0_stateless/00710_array_enumerate_dense.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00710_array_enumerate_dense.sql rename to tests/queries/0_stateless/00710_array_enumerate_dense.sql diff --git a/dbms/tests/queries/0_stateless/00711_array_enumerate_variants.reference b/tests/queries/0_stateless/00711_array_enumerate_variants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00711_array_enumerate_variants.reference rename to tests/queries/0_stateless/00711_array_enumerate_variants.reference diff --git a/dbms/tests/queries/0_stateless/00711_array_enumerate_variants.sql b/tests/queries/0_stateless/00711_array_enumerate_variants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00711_array_enumerate_variants.sql rename to tests/queries/0_stateless/00711_array_enumerate_variants.sql diff --git a/dbms/tests/queries/0_stateless/00712_nan_comparison.reference b/tests/queries/0_stateless/00712_nan_comparison.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_nan_comparison.reference rename to tests/queries/0_stateless/00712_nan_comparison.reference diff --git a/dbms/tests/queries/0_stateless/00712_nan_comparison.sql b/tests/queries/0_stateless/00712_nan_comparison.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_nan_comparison.sql rename to tests/queries/0_stateless/00712_nan_comparison.sql diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias.reference b/tests/queries/0_stateless/00712_prewhere_with_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_alias.reference rename to tests/queries/0_stateless/00712_prewhere_with_alias.reference diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias.sql b/tests/queries/0_stateless/00712_prewhere_with_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_alias.sql rename to tests/queries/0_stateless/00712_prewhere_with_alias.sql diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.reference b/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.reference rename to tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.reference diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql b/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql rename to tests/queries/0_stateless/00712_prewhere_with_alias_and_virtual_column.sql diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug.reference b/tests/queries/0_stateless/00712_prewhere_with_alias_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug.reference rename to tests/queries/0_stateless/00712_prewhere_with_alias_bug.reference diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug.sql b/tests/queries/0_stateless/00712_prewhere_with_alias_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug.sql rename to tests/queries/0_stateless/00712_prewhere_with_alias_bug.sql diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.reference b/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.reference rename to tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.reference diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.sql b/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.sql rename to tests/queries/0_stateless/00712_prewhere_with_alias_bug_2.sql diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_final.reference b/tests/queries/0_stateless/00712_prewhere_with_final.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_final.reference rename to tests/queries/0_stateless/00712_prewhere_with_final.reference diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_final.sql b/tests/queries/0_stateless/00712_prewhere_with_final.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_final.sql rename to tests/queries/0_stateless/00712_prewhere_with_final.sql diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns.reference b/tests/queries/0_stateless/00712_prewhere_with_missing_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns.reference rename to tests/queries/0_stateless/00712_prewhere_with_missing_columns.reference diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns.sql b/tests/queries/0_stateless/00712_prewhere_with_missing_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns.sql rename to tests/queries/0_stateless/00712_prewhere_with_missing_columns.sql diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.reference b/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.reference rename to tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.reference diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.sql b/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.sql rename to tests/queries/0_stateless/00712_prewhere_with_missing_columns_2.sql diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling.reference b/tests/queries/0_stateless/00712_prewhere_with_sampling.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_sampling.reference rename to tests/queries/0_stateless/00712_prewhere_with_sampling.reference diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling.sql b/tests/queries/0_stateless/00712_prewhere_with_sampling.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_sampling.sql rename to tests/queries/0_stateless/00712_prewhere_with_sampling.sql diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.reference b/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.reference rename to tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.reference diff --git a/dbms/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.sql b/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.sql rename to tests/queries/0_stateless/00712_prewhere_with_sampling_and_alias.sql diff --git a/dbms/tests/queries/0_stateless/00713_collapsing_merge_tree.reference b/tests/queries/0_stateless/00713_collapsing_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00713_collapsing_merge_tree.reference rename to tests/queries/0_stateless/00713_collapsing_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00713_collapsing_merge_tree.sql b/tests/queries/0_stateless/00713_collapsing_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00713_collapsing_merge_tree.sql rename to tests/queries/0_stateless/00713_collapsing_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00714_alter_uuid.reference b/tests/queries/0_stateless/00714_alter_uuid.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00714_alter_uuid.reference rename to tests/queries/0_stateless/00714_alter_uuid.reference diff --git a/dbms/tests/queries/0_stateless/00714_alter_uuid.sql b/tests/queries/0_stateless/00714_alter_uuid.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00714_alter_uuid.sql rename to tests/queries/0_stateless/00714_alter_uuid.sql diff --git a/dbms/tests/queries/0_stateless/00714_create_temporary_table_with_in_clause.reference b/tests/queries/0_stateless/00714_create_temporary_table_with_in_clause.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00714_create_temporary_table_with_in_clause.reference rename to tests/queries/0_stateless/00714_create_temporary_table_with_in_clause.reference diff --git a/dbms/tests/queries/0_stateless/00714_create_temporary_table_with_in_clause.sql b/tests/queries/0_stateless/00714_create_temporary_table_with_in_clause.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00714_create_temporary_table_with_in_clause.sql rename to tests/queries/0_stateless/00714_create_temporary_table_with_in_clause.sql diff --git a/dbms/tests/queries/0_stateless/00715_bounding_ratio.reference b/tests/queries/0_stateless/00715_bounding_ratio.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00715_bounding_ratio.reference rename to tests/queries/0_stateless/00715_bounding_ratio.reference diff --git a/dbms/tests/queries/0_stateless/00715_bounding_ratio.sql b/tests/queries/0_stateless/00715_bounding_ratio.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00715_bounding_ratio.sql rename to tests/queries/0_stateless/00715_bounding_ratio.sql diff --git a/dbms/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.reference b/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.reference rename to tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.sh b/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.sh rename to tests/queries/0_stateless/00715_fetch_merged_or_mutated_part_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00715_json_each_row_input_nested.reference b/tests/queries/0_stateless/00715_json_each_row_input_nested.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00715_json_each_row_input_nested.reference rename to tests/queries/0_stateless/00715_json_each_row_input_nested.reference diff --git a/dbms/tests/queries/0_stateless/00715_json_each_row_input_nested.sh b/tests/queries/0_stateless/00715_json_each_row_input_nested.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00715_json_each_row_input_nested.sh rename to tests/queries/0_stateless/00715_json_each_row_input_nested.sh diff --git a/dbms/tests/queries/0_stateless/00716_allow_ddl.reference b/tests/queries/0_stateless/00716_allow_ddl.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00716_allow_ddl.reference rename to tests/queries/0_stateless/00716_allow_ddl.reference diff --git a/dbms/tests/queries/0_stateless/00716_allow_ddl.sql b/tests/queries/0_stateless/00716_allow_ddl.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00716_allow_ddl.sql rename to tests/queries/0_stateless/00716_allow_ddl.sql diff --git a/dbms/tests/queries/0_stateless/00717_default_join_type.reference b/tests/queries/0_stateless/00717_default_join_type.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00717_default_join_type.reference rename to tests/queries/0_stateless/00717_default_join_type.reference diff --git a/dbms/tests/queries/0_stateless/00717_default_join_type.sql b/tests/queries/0_stateless/00717_default_join_type.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00717_default_join_type.sql rename to tests/queries/0_stateless/00717_default_join_type.sql diff --git a/dbms/tests/queries/0_stateless/00717_low_cardinaliry_distributed_group_by.reference b/tests/queries/0_stateless/00717_low_cardinaliry_distributed_group_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00717_low_cardinaliry_distributed_group_by.reference rename to tests/queries/0_stateless/00717_low_cardinaliry_distributed_group_by.reference diff --git a/dbms/tests/queries/0_stateless/00717_low_cardinaliry_distributed_group_by.sql b/tests/queries/0_stateless/00717_low_cardinaliry_distributed_group_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00717_low_cardinaliry_distributed_group_by.sql rename to tests/queries/0_stateless/00717_low_cardinaliry_distributed_group_by.sql diff --git a/dbms/tests/queries/0_stateless/00717_low_cardinaliry_group_by.reference b/tests/queries/0_stateless/00717_low_cardinaliry_group_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00717_low_cardinaliry_group_by.reference rename to tests/queries/0_stateless/00717_low_cardinaliry_group_by.reference diff --git a/dbms/tests/queries/0_stateless/00717_low_cardinaliry_group_by.sql b/tests/queries/0_stateless/00717_low_cardinaliry_group_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00717_low_cardinaliry_group_by.sql rename to tests/queries/0_stateless/00717_low_cardinaliry_group_by.sql diff --git a/dbms/tests/queries/0_stateless/00717_merge_and_distributed.reference b/tests/queries/0_stateless/00717_merge_and_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00717_merge_and_distributed.reference rename to tests/queries/0_stateless/00717_merge_and_distributed.reference diff --git a/dbms/tests/queries/0_stateless/00717_merge_and_distributed.sql b/tests/queries/0_stateless/00717_merge_and_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00717_merge_and_distributed.sql rename to tests/queries/0_stateless/00717_merge_and_distributed.sql diff --git a/dbms/tests/queries/0_stateless/00718_format_datetime.reference b/tests/queries/0_stateless/00718_format_datetime.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00718_format_datetime.reference rename to tests/queries/0_stateless/00718_format_datetime.reference diff --git a/dbms/tests/queries/0_stateless/00718_format_datetime.sql b/tests/queries/0_stateless/00718_format_datetime.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00718_format_datetime.sql rename to tests/queries/0_stateless/00718_format_datetime.sql diff --git a/dbms/tests/queries/0_stateless/00718_low_cardinaliry_alter.reference b/tests/queries/0_stateless/00718_low_cardinaliry_alter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00718_low_cardinaliry_alter.reference rename to tests/queries/0_stateless/00718_low_cardinaliry_alter.reference diff --git a/dbms/tests/queries/0_stateless/00718_low_cardinaliry_alter.sql b/tests/queries/0_stateless/00718_low_cardinaliry_alter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00718_low_cardinaliry_alter.sql rename to tests/queries/0_stateless/00718_low_cardinaliry_alter.sql diff --git a/dbms/tests/queries/0_stateless/00719_format_datetime_rand.reference b/tests/queries/0_stateless/00719_format_datetime_rand.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00719_format_datetime_rand.reference rename to tests/queries/0_stateless/00719_format_datetime_rand.reference diff --git a/dbms/tests/queries/0_stateless/00719_format_datetime_rand.sql b/tests/queries/0_stateless/00719_format_datetime_rand.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00719_format_datetime_rand.sql rename to tests/queries/0_stateless/00719_format_datetime_rand.sql diff --git a/dbms/tests/queries/0_stateless/00719_insert_block_without_column.reference b/tests/queries/0_stateless/00719_insert_block_without_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00719_insert_block_without_column.reference rename to tests/queries/0_stateless/00719_insert_block_without_column.reference diff --git a/dbms/tests/queries/0_stateless/00719_insert_block_without_column.sh b/tests/queries/0_stateless/00719_insert_block_without_column.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00719_insert_block_without_column.sh rename to tests/queries/0_stateless/00719_insert_block_without_column.sh diff --git a/dbms/tests/queries/0_stateless/00719_parallel_ddl_db.reference b/tests/queries/0_stateless/00719_parallel_ddl_db.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00719_parallel_ddl_db.reference rename to tests/queries/0_stateless/00719_parallel_ddl_db.reference diff --git a/dbms/tests/queries/0_stateless/00719_parallel_ddl_db.sh b/tests/queries/0_stateless/00719_parallel_ddl_db.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00719_parallel_ddl_db.sh rename to tests/queries/0_stateless/00719_parallel_ddl_db.sh diff --git a/dbms/tests/queries/0_stateless/00719_parallel_ddl_table.reference b/tests/queries/0_stateless/00719_parallel_ddl_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00719_parallel_ddl_table.reference rename to tests/queries/0_stateless/00719_parallel_ddl_table.reference diff --git a/dbms/tests/queries/0_stateless/00719_parallel_ddl_table.sh b/tests/queries/0_stateless/00719_parallel_ddl_table.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00719_parallel_ddl_table.sh rename to tests/queries/0_stateless/00719_parallel_ddl_table.sh diff --git a/dbms/tests/queries/0_stateless/00720_combinations_of_aggregate_combinators.reference b/tests/queries/0_stateless/00720_combinations_of_aggregate_combinators.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00720_combinations_of_aggregate_combinators.reference rename to tests/queries/0_stateless/00720_combinations_of_aggregate_combinators.reference diff --git a/dbms/tests/queries/0_stateless/00720_combinations_of_aggregate_combinators.sql b/tests/queries/0_stateless/00720_combinations_of_aggregate_combinators.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00720_combinations_of_aggregate_combinators.sql rename to tests/queries/0_stateless/00720_combinations_of_aggregate_combinators.sql diff --git a/dbms/tests/queries/0_stateless/00720_with_cube.reference b/tests/queries/0_stateless/00720_with_cube.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00720_with_cube.reference rename to tests/queries/0_stateless/00720_with_cube.reference diff --git a/dbms/tests/queries/0_stateless/00720_with_cube.sql b/tests/queries/0_stateless/00720_with_cube.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00720_with_cube.sql rename to tests/queries/0_stateless/00720_with_cube.sql diff --git a/dbms/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.reference b/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.reference rename to tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.sql b/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.sql rename to tests/queries/0_stateless/00721_force_by_identical_result_after_merge_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00722_inner_join.reference b/tests/queries/0_stateless/00722_inner_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00722_inner_join.reference rename to tests/queries/0_stateless/00722_inner_join.reference diff --git a/dbms/tests/queries/0_stateless/00722_inner_join.sql b/tests/queries/0_stateless/00722_inner_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00722_inner_join.sql rename to tests/queries/0_stateless/00722_inner_join.sql diff --git a/dbms/tests/queries/0_stateless/00723_remerge_sort.reference b/tests/queries/0_stateless/00723_remerge_sort.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00723_remerge_sort.reference rename to tests/queries/0_stateless/00723_remerge_sort.reference diff --git a/dbms/tests/queries/0_stateless/00723_remerge_sort.sql b/tests/queries/0_stateless/00723_remerge_sort.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00723_remerge_sort.sql rename to tests/queries/0_stateless/00723_remerge_sort.sql diff --git a/dbms/tests/queries/0_stateless/00724_insert_values_datetime_conversion.reference b/tests/queries/0_stateless/00724_insert_values_datetime_conversion.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00724_insert_values_datetime_conversion.reference rename to tests/queries/0_stateless/00724_insert_values_datetime_conversion.reference diff --git a/dbms/tests/queries/0_stateless/00724_insert_values_datetime_conversion.sql b/tests/queries/0_stateless/00724_insert_values_datetime_conversion.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00724_insert_values_datetime_conversion.sql rename to tests/queries/0_stateless/00724_insert_values_datetime_conversion.sql diff --git a/dbms/tests/queries/0_stateless/00725_comment_columns.reference b/tests/queries/0_stateless/00725_comment_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00725_comment_columns.reference rename to tests/queries/0_stateless/00725_comment_columns.reference diff --git a/dbms/tests/queries/0_stateless/00725_comment_columns.sql b/tests/queries/0_stateless/00725_comment_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00725_comment_columns.sql rename to tests/queries/0_stateless/00725_comment_columns.sql diff --git a/dbms/tests/queries/0_stateless/00725_ipv4_ipv6_domains.reference b/tests/queries/0_stateless/00725_ipv4_ipv6_domains.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00725_ipv4_ipv6_domains.reference rename to tests/queries/0_stateless/00725_ipv4_ipv6_domains.reference diff --git a/dbms/tests/queries/0_stateless/00725_ipv4_ipv6_domains.sql b/tests/queries/0_stateless/00725_ipv4_ipv6_domains.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00725_ipv4_ipv6_domains.sql rename to tests/queries/0_stateless/00725_ipv4_ipv6_domains.sql diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_1.reference b/tests/queries/0_stateless/00725_join_on_bug_1.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00725_join_on_bug_1.reference rename to tests/queries/0_stateless/00725_join_on_bug_1.reference diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_1.sql b/tests/queries/0_stateless/00725_join_on_bug_1.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00725_join_on_bug_1.sql rename to tests/queries/0_stateless/00725_join_on_bug_1.sql diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_2.reference b/tests/queries/0_stateless/00725_join_on_bug_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00725_join_on_bug_2.reference rename to tests/queries/0_stateless/00725_join_on_bug_2.reference diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_2.sql b/tests/queries/0_stateless/00725_join_on_bug_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00725_join_on_bug_2.sql rename to tests/queries/0_stateless/00725_join_on_bug_2.sql diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_3.reference b/tests/queries/0_stateless/00725_join_on_bug_3.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00725_join_on_bug_3.reference rename to tests/queries/0_stateless/00725_join_on_bug_3.reference diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_3.sql b/tests/queries/0_stateless/00725_join_on_bug_3.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00725_join_on_bug_3.sql rename to tests/queries/0_stateless/00725_join_on_bug_3.sql diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_4.reference b/tests/queries/0_stateless/00725_join_on_bug_4.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00725_join_on_bug_4.reference rename to tests/queries/0_stateless/00725_join_on_bug_4.reference diff --git a/dbms/tests/queries/0_stateless/00725_join_on_bug_4.sql b/tests/queries/0_stateless/00725_join_on_bug_4.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00725_join_on_bug_4.sql rename to tests/queries/0_stateless/00725_join_on_bug_4.sql diff --git a/dbms/tests/queries/0_stateless/00725_memory_tracking.reference b/tests/queries/0_stateless/00725_memory_tracking.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00725_memory_tracking.reference rename to tests/queries/0_stateless/00725_memory_tracking.reference diff --git a/dbms/tests/queries/0_stateless/00725_memory_tracking.sql b/tests/queries/0_stateless/00725_memory_tracking.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00725_memory_tracking.sql rename to tests/queries/0_stateless/00725_memory_tracking.sql diff --git a/dbms/tests/queries/0_stateless/00725_quantiles_shard.reference b/tests/queries/0_stateless/00725_quantiles_shard.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00725_quantiles_shard.reference rename to tests/queries/0_stateless/00725_quantiles_shard.reference diff --git a/dbms/tests/queries/0_stateless/00725_quantiles_shard.sql b/tests/queries/0_stateless/00725_quantiles_shard.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00725_quantiles_shard.sql rename to tests/queries/0_stateless/00725_quantiles_shard.sql diff --git a/dbms/tests/queries/0_stateless/00726_length_aliases.reference b/tests/queries/0_stateless/00726_length_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00726_length_aliases.reference rename to tests/queries/0_stateless/00726_length_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00726_length_aliases.sql b/tests/queries/0_stateless/00726_length_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00726_length_aliases.sql rename to tests/queries/0_stateless/00726_length_aliases.sql diff --git a/dbms/tests/queries/0_stateless/00726_materialized_view_concurrent.reference b/tests/queries/0_stateless/00726_materialized_view_concurrent.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00726_materialized_view_concurrent.reference rename to tests/queries/0_stateless/00726_materialized_view_concurrent.reference diff --git a/dbms/tests/queries/0_stateless/00726_materialized_view_concurrent.sql b/tests/queries/0_stateless/00726_materialized_view_concurrent.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00726_materialized_view_concurrent.sql rename to tests/queries/0_stateless/00726_materialized_view_concurrent.sql diff --git a/dbms/tests/queries/0_stateless/00726_modulo_for_date.reference b/tests/queries/0_stateless/00726_modulo_for_date.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00726_modulo_for_date.reference rename to tests/queries/0_stateless/00726_modulo_for_date.reference diff --git a/dbms/tests/queries/0_stateless/00726_modulo_for_date.sql b/tests/queries/0_stateless/00726_modulo_for_date.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00726_modulo_for_date.sql rename to tests/queries/0_stateless/00726_modulo_for_date.sql diff --git a/dbms/tests/queries/0_stateless/00727_concat.reference b/tests/queries/0_stateless/00727_concat.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00727_concat.reference rename to tests/queries/0_stateless/00727_concat.reference diff --git a/dbms/tests/queries/0_stateless/00727_concat.sql b/tests/queries/0_stateless/00727_concat.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00727_concat.sql rename to tests/queries/0_stateless/00727_concat.sql diff --git a/dbms/tests/queries/0_stateless/00728_json_each_row_parsing.reference b/tests/queries/0_stateless/00728_json_each_row_parsing.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00728_json_each_row_parsing.reference rename to tests/queries/0_stateless/00728_json_each_row_parsing.reference diff --git a/dbms/tests/queries/0_stateless/00728_json_each_row_parsing.sh b/tests/queries/0_stateless/00728_json_each_row_parsing.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00728_json_each_row_parsing.sh rename to tests/queries/0_stateless/00728_json_each_row_parsing.sh diff --git a/dbms/tests/queries/0_stateless/00729_prewhere_array_join.reference b/tests/queries/0_stateless/00729_prewhere_array_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00729_prewhere_array_join.reference rename to tests/queries/0_stateless/00729_prewhere_array_join.reference diff --git a/dbms/tests/queries/0_stateless/00729_prewhere_array_join.sql b/tests/queries/0_stateless/00729_prewhere_array_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00729_prewhere_array_join.sql rename to tests/queries/0_stateless/00729_prewhere_array_join.sql diff --git a/dbms/tests/queries/0_stateless/00730_unicode_terminal_format.reference b/tests/queries/0_stateless/00730_unicode_terminal_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00730_unicode_terminal_format.reference rename to tests/queries/0_stateless/00730_unicode_terminal_format.reference diff --git a/dbms/tests/queries/0_stateless/00730_unicode_terminal_format.sql b/tests/queries/0_stateless/00730_unicode_terminal_format.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00730_unicode_terminal_format.sql rename to tests/queries/0_stateless/00730_unicode_terminal_format.sql diff --git a/dbms/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.reference b/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.reference rename to tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.reference diff --git a/dbms/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.sh b/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.sh rename to tests/queries/0_stateless/00731_long_merge_tree_select_opened_files.sh diff --git a/dbms/tests/queries/0_stateless/00732_base64_functions.reference b/tests/queries/0_stateless/00732_base64_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00732_base64_functions.reference rename to tests/queries/0_stateless/00732_base64_functions.reference diff --git a/dbms/tests/queries/0_stateless/00732_base64_functions.sql b/tests/queries/0_stateless/00732_base64_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00732_base64_functions.sql rename to tests/queries/0_stateless/00732_base64_functions.sql diff --git a/dbms/tests/queries/0_stateless/00732_decimal_summing_merge_tree.reference b/tests/queries/0_stateless/00732_decimal_summing_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00732_decimal_summing_merge_tree.reference rename to tests/queries/0_stateless/00732_decimal_summing_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00732_decimal_summing_merge_tree.sql b/tests/queries/0_stateless/00732_decimal_summing_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00732_decimal_summing_merge_tree.sql rename to tests/queries/0_stateless/00732_decimal_summing_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.reference b/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.reference rename to tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.sql b/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.sql rename to tests/queries/0_stateless/00732_quorum_insert_have_data_before_quorum_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.reference b/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.reference rename to tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.sql b/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.sql rename to tests/queries/0_stateless/00732_quorum_insert_lost_part_and_alive_part_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.reference b/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.reference rename to tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.sql b/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.sql rename to tests/queries/0_stateless/00732_quorum_insert_lost_part_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.reference b/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.reference rename to tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.sql b/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.sql rename to tests/queries/0_stateless/00732_quorum_insert_select_with_old_data_and_without_quorum_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_1_parts_zookeeper.reference b/tests/queries/0_stateless/00732_quorum_insert_simple_test_1_parts_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_1_parts_zookeeper.reference rename to tests/queries/0_stateless/00732_quorum_insert_simple_test_1_parts_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_1_parts_zookeeper.sql b/tests/queries/0_stateless/00732_quorum_insert_simple_test_1_parts_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_1_parts_zookeeper.sql rename to tests/queries/0_stateless/00732_quorum_insert_simple_test_1_parts_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.reference b/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.reference rename to tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.sql b/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.sql rename to tests/queries/0_stateless/00732_quorum_insert_simple_test_2_parts_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00733_if_datetime.reference b/tests/queries/0_stateless/00733_if_datetime.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00733_if_datetime.reference rename to tests/queries/0_stateless/00733_if_datetime.reference diff --git a/dbms/tests/queries/0_stateless/00733_if_datetime.sql b/tests/queries/0_stateless/00733_if_datetime.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00733_if_datetime.sql rename to tests/queries/0_stateless/00733_if_datetime.sql diff --git a/dbms/tests/queries/0_stateless/00734_timeslot.reference b/tests/queries/0_stateless/00734_timeslot.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00734_timeslot.reference rename to tests/queries/0_stateless/00734_timeslot.reference diff --git a/dbms/tests/queries/0_stateless/00734_timeslot.sql b/tests/queries/0_stateless/00734_timeslot.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00734_timeslot.sql rename to tests/queries/0_stateless/00734_timeslot.sql diff --git a/dbms/tests/queries/0_stateless/00735_conditional.reference b/tests/queries/0_stateless/00735_conditional.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00735_conditional.reference rename to tests/queries/0_stateless/00735_conditional.reference diff --git a/dbms/tests/queries/0_stateless/00735_conditional.sql b/tests/queries/0_stateless/00735_conditional.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00735_conditional.sql rename to tests/queries/0_stateless/00735_conditional.sql diff --git a/dbms/tests/queries/0_stateless/00735_or_expr_optimize_bug.reference b/tests/queries/0_stateless/00735_or_expr_optimize_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00735_or_expr_optimize_bug.reference rename to tests/queries/0_stateless/00735_or_expr_optimize_bug.reference diff --git a/dbms/tests/queries/0_stateless/00735_or_expr_optimize_bug.sql b/tests/queries/0_stateless/00735_or_expr_optimize_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00735_or_expr_optimize_bug.sql rename to tests/queries/0_stateless/00735_or_expr_optimize_bug.sql diff --git a/dbms/tests/queries/0_stateless/00736_disjunction_optimisation.reference b/tests/queries/0_stateless/00736_disjunction_optimisation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00736_disjunction_optimisation.reference rename to tests/queries/0_stateless/00736_disjunction_optimisation.reference diff --git a/dbms/tests/queries/0_stateless/00736_disjunction_optimisation.sql b/tests/queries/0_stateless/00736_disjunction_optimisation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00736_disjunction_optimisation.sql rename to tests/queries/0_stateless/00736_disjunction_optimisation.sql diff --git a/dbms/tests/queries/0_stateless/00737_decimal_group_by.reference b/tests/queries/0_stateless/00737_decimal_group_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00737_decimal_group_by.reference rename to tests/queries/0_stateless/00737_decimal_group_by.reference diff --git a/dbms/tests/queries/0_stateless/00737_decimal_group_by.sql b/tests/queries/0_stateless/00737_decimal_group_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00737_decimal_group_by.sql rename to tests/queries/0_stateless/00737_decimal_group_by.sql diff --git a/dbms/tests/queries/0_stateless/00738_lock_for_inner_table.reference b/tests/queries/0_stateless/00738_lock_for_inner_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00738_lock_for_inner_table.reference rename to tests/queries/0_stateless/00738_lock_for_inner_table.reference diff --git a/dbms/tests/queries/0_stateless/00738_lock_for_inner_table.sh b/tests/queries/0_stateless/00738_lock_for_inner_table.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00738_lock_for_inner_table.sh rename to tests/queries/0_stateless/00738_lock_for_inner_table.sh diff --git a/dbms/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.reference b/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.reference rename to tests/queries/0_stateless/00738_nested_merge_multidimensional_array.reference diff --git a/dbms/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.sql b/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00738_nested_merge_multidimensional_array.sql rename to tests/queries/0_stateless/00738_nested_merge_multidimensional_array.sql diff --git a/dbms/tests/queries/0_stateless/00739_array_element_nullable_string_mattrobenolt.reference b/tests/queries/0_stateless/00739_array_element_nullable_string_mattrobenolt.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00739_array_element_nullable_string_mattrobenolt.reference rename to tests/queries/0_stateless/00739_array_element_nullable_string_mattrobenolt.reference diff --git a/dbms/tests/queries/0_stateless/00739_array_element_nullable_string_mattrobenolt.sql b/tests/queries/0_stateless/00739_array_element_nullable_string_mattrobenolt.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00739_array_element_nullable_string_mattrobenolt.sql rename to tests/queries/0_stateless/00739_array_element_nullable_string_mattrobenolt.sql diff --git a/dbms/tests/queries/0_stateless/00740_database_in_nested_view.reference b/tests/queries/0_stateless/00740_database_in_nested_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00740_database_in_nested_view.reference rename to tests/queries/0_stateless/00740_database_in_nested_view.reference diff --git a/dbms/tests/queries/0_stateless/00740_database_in_nested_view.sql b/tests/queries/0_stateless/00740_database_in_nested_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00740_database_in_nested_view.sql rename to tests/queries/0_stateless/00740_database_in_nested_view.sql diff --git a/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.reference b/tests/queries/0_stateless/00740_optimize_predicate_expression.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.reference rename to tests/queries/0_stateless/00740_optimize_predicate_expression.reference diff --git a/dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql b/tests/queries/0_stateless/00740_optimize_predicate_expression.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00740_optimize_predicate_expression.sql rename to tests/queries/0_stateless/00740_optimize_predicate_expression.sql diff --git a/dbms/tests/queries/0_stateless/00741_client_comment_multiline.reference b/tests/queries/0_stateless/00741_client_comment_multiline.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00741_client_comment_multiline.reference rename to tests/queries/0_stateless/00741_client_comment_multiline.reference diff --git a/dbms/tests/queries/0_stateless/00741_client_comment_multiline.sql b/tests/queries/0_stateless/00741_client_comment_multiline.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00741_client_comment_multiline.sql rename to tests/queries/0_stateless/00741_client_comment_multiline.sql diff --git a/dbms/tests/queries/0_stateless/00742_require_join_strictness.reference b/tests/queries/0_stateless/00742_require_join_strictness.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00742_require_join_strictness.reference rename to tests/queries/0_stateless/00742_require_join_strictness.reference diff --git a/dbms/tests/queries/0_stateless/00742_require_join_strictness.sql b/tests/queries/0_stateless/00742_require_join_strictness.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00742_require_join_strictness.sql rename to tests/queries/0_stateless/00742_require_join_strictness.sql diff --git a/dbms/tests/queries/0_stateless/00743_limit_by_not_found_column.reference b/tests/queries/0_stateless/00743_limit_by_not_found_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00743_limit_by_not_found_column.reference rename to tests/queries/0_stateless/00743_limit_by_not_found_column.reference diff --git a/dbms/tests/queries/0_stateless/00743_limit_by_not_found_column.sql b/tests/queries/0_stateless/00743_limit_by_not_found_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00743_limit_by_not_found_column.sql rename to tests/queries/0_stateless/00743_limit_by_not_found_column.sql diff --git a/dbms/tests/queries/0_stateless/00744_join_not_found_column.reference b/tests/queries/0_stateless/00744_join_not_found_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00744_join_not_found_column.reference rename to tests/queries/0_stateless/00744_join_not_found_column.reference diff --git a/dbms/tests/queries/0_stateless/00744_join_not_found_column.sql b/tests/queries/0_stateless/00744_join_not_found_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00744_join_not_found_column.sql rename to tests/queries/0_stateless/00744_join_not_found_column.sql diff --git a/dbms/tests/queries/0_stateless/00745_compile_scalar_subquery.reference b/tests/queries/0_stateless/00745_compile_scalar_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00745_compile_scalar_subquery.reference rename to tests/queries/0_stateless/00745_compile_scalar_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00745_compile_scalar_subquery.sql b/tests/queries/0_stateless/00745_compile_scalar_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00745_compile_scalar_subquery.sql rename to tests/queries/0_stateless/00745_compile_scalar_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00746_compile_non_deterministic_function.reference b/tests/queries/0_stateless/00746_compile_non_deterministic_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00746_compile_non_deterministic_function.reference rename to tests/queries/0_stateless/00746_compile_non_deterministic_function.reference diff --git a/dbms/tests/queries/0_stateless/00746_compile_non_deterministic_function.sql b/tests/queries/0_stateless/00746_compile_non_deterministic_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00746_compile_non_deterministic_function.sql rename to tests/queries/0_stateless/00746_compile_non_deterministic_function.sql diff --git a/dbms/tests/queries/0_stateless/00746_hashing_tuples.reference b/tests/queries/0_stateless/00746_hashing_tuples.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00746_hashing_tuples.reference rename to tests/queries/0_stateless/00746_hashing_tuples.reference diff --git a/dbms/tests/queries/0_stateless/00746_hashing_tuples.sql b/tests/queries/0_stateless/00746_hashing_tuples.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00746_hashing_tuples.sql rename to tests/queries/0_stateless/00746_hashing_tuples.sql diff --git a/dbms/tests/queries/0_stateless/00746_sql_fuzzy.pl b/tests/queries/0_stateless/00746_sql_fuzzy.pl similarity index 100% rename from dbms/tests/queries/0_stateless/00746_sql_fuzzy.pl rename to tests/queries/0_stateless/00746_sql_fuzzy.pl diff --git a/dbms/tests/queries/0_stateless/00746_sql_fuzzy.reference b/tests/queries/0_stateless/00746_sql_fuzzy.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00746_sql_fuzzy.reference rename to tests/queries/0_stateless/00746_sql_fuzzy.reference diff --git a/dbms/tests/queries/0_stateless/00746_sql_fuzzy.sh b/tests/queries/0_stateless/00746_sql_fuzzy.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00746_sql_fuzzy.sh rename to tests/queries/0_stateless/00746_sql_fuzzy.sh diff --git a/dbms/tests/queries/0_stateless/00747_contributors.reference b/tests/queries/0_stateless/00747_contributors.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00747_contributors.reference rename to tests/queries/0_stateless/00747_contributors.reference diff --git a/dbms/tests/queries/0_stateless/00747_contributors.sql b/tests/queries/0_stateless/00747_contributors.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00747_contributors.sql rename to tests/queries/0_stateless/00747_contributors.sql diff --git a/dbms/tests/queries/0_stateless/00748_insert_array_with_null.reference b/tests/queries/0_stateless/00748_insert_array_with_null.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00748_insert_array_with_null.reference rename to tests/queries/0_stateless/00748_insert_array_with_null.reference diff --git a/dbms/tests/queries/0_stateless/00748_insert_array_with_null.sql b/tests/queries/0_stateless/00748_insert_array_with_null.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00748_insert_array_with_null.sql rename to tests/queries/0_stateless/00748_insert_array_with_null.sql diff --git a/dbms/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.reference b/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.reference rename to tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.reference diff --git a/dbms/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.sql b/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.sql rename to tests/queries/0_stateless/00749_inner_join_of_unnamed_subqueries.sql diff --git a/dbms/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.reference b/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.reference rename to tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.reference diff --git a/dbms/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.sql b/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.sql rename to tests/queries/0_stateless/00750_merge_tree_merge_with_o_direct.sql diff --git a/dbms/tests/queries/0_stateless/00751_default_databasename_for_view.reference b/tests/queries/0_stateless/00751_default_databasename_for_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00751_default_databasename_for_view.reference rename to tests/queries/0_stateless/00751_default_databasename_for_view.reference diff --git a/dbms/tests/queries/0_stateless/00751_default_databasename_for_view.sql b/tests/queries/0_stateless/00751_default_databasename_for_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00751_default_databasename_for_view.sql rename to tests/queries/0_stateless/00751_default_databasename_for_view.sql diff --git a/dbms/tests/queries/0_stateless/00751_hashing_ints.reference b/tests/queries/0_stateless/00751_hashing_ints.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00751_hashing_ints.reference rename to tests/queries/0_stateless/00751_hashing_ints.reference diff --git a/dbms/tests/queries/0_stateless/00751_hashing_ints.sql b/tests/queries/0_stateless/00751_hashing_ints.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00751_hashing_ints.sql rename to tests/queries/0_stateless/00751_hashing_ints.sql diff --git a/dbms/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.reference b/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.reference rename to tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.reference diff --git a/dbms/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.sql b/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.sql rename to tests/queries/0_stateless/00751_low_cardinality_nullable_group_by.sql diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_array_result.reference b/tests/queries/0_stateless/00752_low_cardinality_array_result.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_array_result.reference rename to tests/queries/0_stateless/00752_low_cardinality_array_result.reference diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_array_result.sql b/tests/queries/0_stateless/00752_low_cardinality_array_result.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_array_result.sql rename to tests/queries/0_stateless/00752_low_cardinality_array_result.sql diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.reference b/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.reference rename to tests/queries/0_stateless/00752_low_cardinality_lambda_argument.reference diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql b/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql rename to tests/queries/0_stateless/00752_low_cardinality_lambda_argument.sql diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_left_array_join.reference b/tests/queries/0_stateless/00752_low_cardinality_left_array_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_left_array_join.reference rename to tests/queries/0_stateless/00752_low_cardinality_left_array_join.reference diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_left_array_join.sql b/tests/queries/0_stateless/00752_low_cardinality_left_array_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_left_array_join.sql rename to tests/queries/0_stateless/00752_low_cardinality_left_array_join.sql diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_1.reference b/tests/queries/0_stateless/00752_low_cardinality_mv_1.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_mv_1.reference rename to tests/queries/0_stateless/00752_low_cardinality_mv_1.reference diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_1.sql b/tests/queries/0_stateless/00752_low_cardinality_mv_1.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_mv_1.sql rename to tests/queries/0_stateless/00752_low_cardinality_mv_1.sql diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_2.reference b/tests/queries/0_stateless/00752_low_cardinality_mv_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_mv_2.reference rename to tests/queries/0_stateless/00752_low_cardinality_mv_2.reference diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_mv_2.sql b/tests/queries/0_stateless/00752_low_cardinality_mv_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_mv_2.sql rename to tests/queries/0_stateless/00752_low_cardinality_mv_2.sql diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_permute.reference b/tests/queries/0_stateless/00752_low_cardinality_permute.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_permute.reference rename to tests/queries/0_stateless/00752_low_cardinality_permute.reference diff --git a/dbms/tests/queries/0_stateless/00752_low_cardinality_permute.sql b/tests/queries/0_stateless/00752_low_cardinality_permute.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00752_low_cardinality_permute.sql rename to tests/queries/0_stateless/00752_low_cardinality_permute.sql diff --git a/dbms/tests/queries/0_stateless/00753_alter_attach.reference b/tests/queries/0_stateless/00753_alter_attach.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00753_alter_attach.reference rename to tests/queries/0_stateless/00753_alter_attach.reference diff --git a/dbms/tests/queries/0_stateless/00753_alter_attach.sql b/tests/queries/0_stateless/00753_alter_attach.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00753_alter_attach.sql rename to tests/queries/0_stateless/00753_alter_attach.sql diff --git a/dbms/tests/queries/0_stateless/00753_alter_destination_for_storage_buffer.reference b/tests/queries/0_stateless/00753_alter_destination_for_storage_buffer.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00753_alter_destination_for_storage_buffer.reference rename to tests/queries/0_stateless/00753_alter_destination_for_storage_buffer.reference diff --git a/dbms/tests/queries/0_stateless/00753_alter_destination_for_storage_buffer.sql b/tests/queries/0_stateless/00753_alter_destination_for_storage_buffer.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00753_alter_destination_for_storage_buffer.sql rename to tests/queries/0_stateless/00753_alter_destination_for_storage_buffer.sql diff --git a/dbms/tests/queries/0_stateless/00753_comment_columns_zookeeper.reference b/tests/queries/0_stateless/00753_comment_columns_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00753_comment_columns_zookeeper.reference rename to tests/queries/0_stateless/00753_comment_columns_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00753_comment_columns_zookeeper.sql b/tests/queries/0_stateless/00753_comment_columns_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00753_comment_columns_zookeeper.sql rename to tests/queries/0_stateless/00753_comment_columns_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00753_quantile_format.reference b/tests/queries/0_stateless/00753_quantile_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00753_quantile_format.reference rename to tests/queries/0_stateless/00753_quantile_format.reference diff --git a/dbms/tests/queries/0_stateless/00753_quantile_format.sql b/tests/queries/0_stateless/00753_quantile_format.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00753_quantile_format.sql rename to tests/queries/0_stateless/00753_quantile_format.sql diff --git a/dbms/tests/queries/0_stateless/00753_system_columns_and_system_tables.reference b/tests/queries/0_stateless/00753_system_columns_and_system_tables.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00753_system_columns_and_system_tables.reference rename to tests/queries/0_stateless/00753_system_columns_and_system_tables.reference diff --git a/dbms/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql b/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00753_system_columns_and_system_tables.sql rename to tests/queries/0_stateless/00753_system_columns_and_system_tables.sql diff --git a/dbms/tests/queries/0_stateless/00753_with_with_single_alias.reference b/tests/queries/0_stateless/00753_with_with_single_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00753_with_with_single_alias.reference rename to tests/queries/0_stateless/00753_with_with_single_alias.reference diff --git a/dbms/tests/queries/0_stateless/00753_with_with_single_alias.sql b/tests/queries/0_stateless/00753_with_with_single_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00753_with_with_single_alias.sql rename to tests/queries/0_stateless/00753_with_with_single_alias.sql diff --git a/dbms/tests/queries/0_stateless/00754_alter_modify_column_partitions.reference b/tests/queries/0_stateless/00754_alter_modify_column_partitions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00754_alter_modify_column_partitions.reference rename to tests/queries/0_stateless/00754_alter_modify_column_partitions.reference diff --git a/dbms/tests/queries/0_stateless/00754_alter_modify_column_partitions.sql b/tests/queries/0_stateless/00754_alter_modify_column_partitions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00754_alter_modify_column_partitions.sql rename to tests/queries/0_stateless/00754_alter_modify_column_partitions.sql diff --git a/dbms/tests/queries/0_stateless/00754_alter_modify_order_by.reference b/tests/queries/0_stateless/00754_alter_modify_order_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00754_alter_modify_order_by.reference rename to tests/queries/0_stateless/00754_alter_modify_order_by.reference diff --git a/dbms/tests/queries/0_stateless/00754_alter_modify_order_by.sql b/tests/queries/0_stateless/00754_alter_modify_order_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00754_alter_modify_order_by.sql rename to tests/queries/0_stateless/00754_alter_modify_order_by.sql diff --git a/dbms/tests/queries/0_stateless/00754_alter_modify_order_by_replicated_zookeeper.reference b/tests/queries/0_stateless/00754_alter_modify_order_by_replicated_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00754_alter_modify_order_by_replicated_zookeeper.reference rename to tests/queries/0_stateless/00754_alter_modify_order_by_replicated_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00754_alter_modify_order_by_replicated_zookeeper.sql b/tests/queries/0_stateless/00754_alter_modify_order_by_replicated_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00754_alter_modify_order_by_replicated_zookeeper.sql rename to tests/queries/0_stateless/00754_alter_modify_order_by_replicated_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.reference b/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.reference rename to tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.reference diff --git a/dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.sh b/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.sh rename to tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards.sh diff --git a/dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards_with_prewhere.reference b/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards_with_prewhere.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards_with_prewhere.reference rename to tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards_with_prewhere.reference diff --git a/dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards_with_prewhere.sh b/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards_with_prewhere.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards_with_prewhere.sh rename to tests/queries/0_stateless/00754_distributed_optimize_skip_select_on_unused_shards_with_prewhere.sh diff --git a/dbms/tests/queries/0_stateless/00754_first_significant_subdomain_more.reference b/tests/queries/0_stateless/00754_first_significant_subdomain_more.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00754_first_significant_subdomain_more.reference rename to tests/queries/0_stateless/00754_first_significant_subdomain_more.reference diff --git a/dbms/tests/queries/0_stateless/00754_first_significant_subdomain_more.sql b/tests/queries/0_stateless/00754_first_significant_subdomain_more.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00754_first_significant_subdomain_more.sql rename to tests/queries/0_stateless/00754_first_significant_subdomain_more.sql diff --git a/dbms/tests/queries/0_stateless/00755_avg_value_size_hint_passing.reference b/tests/queries/0_stateless/00755_avg_value_size_hint_passing.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00755_avg_value_size_hint_passing.reference rename to tests/queries/0_stateless/00755_avg_value_size_hint_passing.reference diff --git a/dbms/tests/queries/0_stateless/00755_avg_value_size_hint_passing.sql b/tests/queries/0_stateless/00755_avg_value_size_hint_passing.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00755_avg_value_size_hint_passing.sql rename to tests/queries/0_stateless/00755_avg_value_size_hint_passing.sql diff --git a/dbms/tests/queries/0_stateless/00756_power_alias.reference b/tests/queries/0_stateless/00756_power_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00756_power_alias.reference rename to tests/queries/0_stateless/00756_power_alias.reference diff --git a/dbms/tests/queries/0_stateless/00756_power_alias.sql b/tests/queries/0_stateless/00756_power_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00756_power_alias.sql rename to tests/queries/0_stateless/00756_power_alias.sql diff --git a/dbms/tests/queries/0_stateless/00757_enum_defaults.reference b/tests/queries/0_stateless/00757_enum_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00757_enum_defaults.reference rename to tests/queries/0_stateless/00757_enum_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00757_enum_defaults.sql b/tests/queries/0_stateless/00757_enum_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00757_enum_defaults.sql rename to tests/queries/0_stateless/00757_enum_defaults.sql diff --git a/dbms/tests/queries/0_stateless/00758_array_reverse.reference b/tests/queries/0_stateless/00758_array_reverse.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00758_array_reverse.reference rename to tests/queries/0_stateless/00758_array_reverse.reference diff --git a/dbms/tests/queries/0_stateless/00758_array_reverse.sql b/tests/queries/0_stateless/00758_array_reverse.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00758_array_reverse.sql rename to tests/queries/0_stateless/00758_array_reverse.sql diff --git a/dbms/tests/queries/0_stateless/00759_kodieg.reference b/tests/queries/0_stateless/00759_kodieg.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00759_kodieg.reference rename to tests/queries/0_stateless/00759_kodieg.reference diff --git a/dbms/tests/queries/0_stateless/00759_kodieg.sql b/tests/queries/0_stateless/00759_kodieg.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00759_kodieg.sql rename to tests/queries/0_stateless/00759_kodieg.sql diff --git a/dbms/tests/queries/0_stateless/00760_insert_json_with_defaults.reference b/tests/queries/0_stateless/00760_insert_json_with_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00760_insert_json_with_defaults.reference rename to tests/queries/0_stateless/00760_insert_json_with_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00760_insert_json_with_defaults.sql b/tests/queries/0_stateless/00760_insert_json_with_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00760_insert_json_with_defaults.sql rename to tests/queries/0_stateless/00760_insert_json_with_defaults.sql diff --git a/dbms/tests/queries/0_stateless/00760_url_functions_overflow.reference b/tests/queries/0_stateless/00760_url_functions_overflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00760_url_functions_overflow.reference rename to tests/queries/0_stateless/00760_url_functions_overflow.reference diff --git a/dbms/tests/queries/0_stateless/00760_url_functions_overflow.sql b/tests/queries/0_stateless/00760_url_functions_overflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00760_url_functions_overflow.sql rename to tests/queries/0_stateless/00760_url_functions_overflow.sql diff --git a/dbms/tests/queries/0_stateless/00761_lower_utf8_bug.reference b/tests/queries/0_stateless/00761_lower_utf8_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00761_lower_utf8_bug.reference rename to tests/queries/0_stateless/00761_lower_utf8_bug.reference diff --git a/dbms/tests/queries/0_stateless/00761_lower_utf8_bug.sql b/tests/queries/0_stateless/00761_lower_utf8_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00761_lower_utf8_bug.sql rename to tests/queries/0_stateless/00761_lower_utf8_bug.sql diff --git a/dbms/tests/queries/0_stateless/00762_date_comparsion.reference b/tests/queries/0_stateless/00762_date_comparsion.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00762_date_comparsion.reference rename to tests/queries/0_stateless/00762_date_comparsion.reference diff --git a/dbms/tests/queries/0_stateless/00762_date_comparsion.sql b/tests/queries/0_stateless/00762_date_comparsion.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00762_date_comparsion.sql rename to tests/queries/0_stateless/00762_date_comparsion.sql diff --git a/dbms/tests/queries/0_stateless/00763_create_query_as_table_engine_bug.reference b/tests/queries/0_stateless/00763_create_query_as_table_engine_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00763_create_query_as_table_engine_bug.reference rename to tests/queries/0_stateless/00763_create_query_as_table_engine_bug.reference diff --git a/dbms/tests/queries/0_stateless/00763_create_query_as_table_engine_bug.sql b/tests/queries/0_stateless/00763_create_query_as_table_engine_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00763_create_query_as_table_engine_bug.sql rename to tests/queries/0_stateless/00763_create_query_as_table_engine_bug.sql diff --git a/dbms/tests/queries/0_stateless/00763_lock_buffer.reference b/tests/queries/0_stateless/00763_lock_buffer.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00763_lock_buffer.reference rename to tests/queries/0_stateless/00763_lock_buffer.reference diff --git a/dbms/tests/queries/0_stateless/00763_lock_buffer.sh b/tests/queries/0_stateless/00763_lock_buffer.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00763_lock_buffer.sh rename to tests/queries/0_stateless/00763_lock_buffer.sh diff --git a/dbms/tests/queries/0_stateless/00763_long_lock_buffer_alter_destination_table.reference b/tests/queries/0_stateless/00763_long_lock_buffer_alter_destination_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00763_long_lock_buffer_alter_destination_table.reference rename to tests/queries/0_stateless/00763_long_lock_buffer_alter_destination_table.reference diff --git a/dbms/tests/queries/0_stateless/00763_long_lock_buffer_alter_destination_table.sh b/tests/queries/0_stateless/00763_long_lock_buffer_alter_destination_table.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00763_long_lock_buffer_alter_destination_table.sh rename to tests/queries/0_stateless/00763_long_lock_buffer_alter_destination_table.sh diff --git a/dbms/tests/queries/0_stateless/00764_max_query_size_allocation.reference b/tests/queries/0_stateless/00764_max_query_size_allocation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00764_max_query_size_allocation.reference rename to tests/queries/0_stateless/00764_max_query_size_allocation.reference diff --git a/dbms/tests/queries/0_stateless/00764_max_query_size_allocation.sh b/tests/queries/0_stateless/00764_max_query_size_allocation.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00764_max_query_size_allocation.sh rename to tests/queries/0_stateless/00764_max_query_size_allocation.sh diff --git a/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.reference b/tests/queries/0_stateless/00765_sql_compatibility_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.reference rename to tests/queries/0_stateless/00765_sql_compatibility_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.sql b/tests/queries/0_stateless/00765_sql_compatibility_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00765_sql_compatibility_aliases.sql rename to tests/queries/0_stateless/00765_sql_compatibility_aliases.sql diff --git a/dbms/tests/queries/0_stateless/00779_all_right_join_max_block_size.reference b/tests/queries/0_stateless/00779_all_right_join_max_block_size.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00779_all_right_join_max_block_size.reference rename to tests/queries/0_stateless/00779_all_right_join_max_block_size.reference diff --git a/dbms/tests/queries/0_stateless/00779_all_right_join_max_block_size.sql b/tests/queries/0_stateless/00779_all_right_join_max_block_size.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00779_all_right_join_max_block_size.sql rename to tests/queries/0_stateless/00779_all_right_join_max_block_size.sql diff --git a/dbms/tests/queries/0_stateless/00780_unaligned_array_join.reference b/tests/queries/0_stateless/00780_unaligned_array_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00780_unaligned_array_join.reference rename to tests/queries/0_stateless/00780_unaligned_array_join.reference diff --git a/dbms/tests/queries/0_stateless/00780_unaligned_array_join.sql b/tests/queries/0_stateless/00780_unaligned_array_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00780_unaligned_array_join.sql rename to tests/queries/0_stateless/00780_unaligned_array_join.sql diff --git a/dbms/tests/queries/0_stateless/00794_materialized_view_with_column_defaults.reference b/tests/queries/0_stateless/00794_materialized_view_with_column_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00794_materialized_view_with_column_defaults.reference rename to tests/queries/0_stateless/00794_materialized_view_with_column_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00794_materialized_view_with_column_defaults.sql b/tests/queries/0_stateless/00794_materialized_view_with_column_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00794_materialized_view_with_column_defaults.sql rename to tests/queries/0_stateless/00794_materialized_view_with_column_defaults.sql diff --git a/dbms/tests/queries/0_stateless/00799_function_dry_run.reference b/tests/queries/0_stateless/00799_function_dry_run.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00799_function_dry_run.reference rename to tests/queries/0_stateless/00799_function_dry_run.reference diff --git a/dbms/tests/queries/0_stateless/00799_function_dry_run.sql b/tests/queries/0_stateless/00799_function_dry_run.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00799_function_dry_run.sql rename to tests/queries/0_stateless/00799_function_dry_run.sql diff --git a/dbms/tests/queries/0_stateless/00800_function_java_hash.reference b/tests/queries/0_stateless/00800_function_java_hash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00800_function_java_hash.reference rename to tests/queries/0_stateless/00800_function_java_hash.reference diff --git a/dbms/tests/queries/0_stateless/00800_function_java_hash.sql b/tests/queries/0_stateless/00800_function_java_hash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00800_function_java_hash.sql rename to tests/queries/0_stateless/00800_function_java_hash.sql diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.reference b/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.reference rename to tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.reference diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.sql b/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.sql rename to tests/queries/0_stateless/00800_low_cardinality_array_group_by_arg.sql diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.reference b/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.reference rename to tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.reference diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.sql b/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.sql rename to tests/queries/0_stateless/00800_low_cardinality_distinct_numeric.sql diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_distributed_insert.reference b/tests/queries/0_stateless/00800_low_cardinality_distributed_insert.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_distributed_insert.reference rename to tests/queries/0_stateless/00800_low_cardinality_distributed_insert.reference diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_distributed_insert.sql b/tests/queries/0_stateless/00800_low_cardinality_distributed_insert.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_distributed_insert.sql rename to tests/queries/0_stateless/00800_low_cardinality_distributed_insert.sql diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_empty_array.reference b/tests/queries/0_stateless/00800_low_cardinality_empty_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_empty_array.reference rename to tests/queries/0_stateless/00800_low_cardinality_empty_array.reference diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_empty_array.sql b/tests/queries/0_stateless/00800_low_cardinality_empty_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_empty_array.sql rename to tests/queries/0_stateless/00800_low_cardinality_empty_array.sql diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_join.reference b/tests/queries/0_stateless/00800_low_cardinality_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_join.reference rename to tests/queries/0_stateless/00800_low_cardinality_join.reference diff --git a/dbms/tests/queries/0_stateless/00800_low_cardinality_join.sql b/tests/queries/0_stateless/00800_low_cardinality_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00800_low_cardinality_join.sql rename to tests/queries/0_stateless/00800_low_cardinality_join.sql diff --git a/dbms/tests/queries/0_stateless/00800_versatile_storage_join.reference b/tests/queries/0_stateless/00800_versatile_storage_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00800_versatile_storage_join.reference rename to tests/queries/0_stateless/00800_versatile_storage_join.reference diff --git a/dbms/tests/queries/0_stateless/00800_versatile_storage_join.sql b/tests/queries/0_stateless/00800_versatile_storage_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00800_versatile_storage_join.sql rename to tests/queries/0_stateless/00800_versatile_storage_join.sql diff --git a/dbms/tests/queries/0_stateless/00801_daylight_saving_time_hour_underflow.reference b/tests/queries/0_stateless/00801_daylight_saving_time_hour_underflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00801_daylight_saving_time_hour_underflow.reference rename to tests/queries/0_stateless/00801_daylight_saving_time_hour_underflow.reference diff --git a/dbms/tests/queries/0_stateless/00801_daylight_saving_time_hour_underflow.sql b/tests/queries/0_stateless/00801_daylight_saving_time_hour_underflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00801_daylight_saving_time_hour_underflow.sql rename to tests/queries/0_stateless/00801_daylight_saving_time_hour_underflow.sql diff --git a/dbms/tests/queries/0_stateless/00802_daylight_saving_time_shift_backwards_at_midnight.reference b/tests/queries/0_stateless/00802_daylight_saving_time_shift_backwards_at_midnight.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00802_daylight_saving_time_shift_backwards_at_midnight.reference rename to tests/queries/0_stateless/00802_daylight_saving_time_shift_backwards_at_midnight.reference diff --git a/dbms/tests/queries/0_stateless/00802_daylight_saving_time_shift_backwards_at_midnight.sql b/tests/queries/0_stateless/00802_daylight_saving_time_shift_backwards_at_midnight.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00802_daylight_saving_time_shift_backwards_at_midnight.sql rename to tests/queries/0_stateless/00802_daylight_saving_time_shift_backwards_at_midnight.sql diff --git a/dbms/tests/queries/0_stateless/00802_system_parts_with_datetime_partition.reference b/tests/queries/0_stateless/00802_system_parts_with_datetime_partition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00802_system_parts_with_datetime_partition.reference rename to tests/queries/0_stateless/00802_system_parts_with_datetime_partition.reference diff --git a/dbms/tests/queries/0_stateless/00802_system_parts_with_datetime_partition.sql b/tests/queries/0_stateless/00802_system_parts_with_datetime_partition.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00802_system_parts_with_datetime_partition.sql rename to tests/queries/0_stateless/00802_system_parts_with_datetime_partition.sql diff --git a/dbms/tests/queries/0_stateless/00803_odbc_driver_2_format.reference b/tests/queries/0_stateless/00803_odbc_driver_2_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00803_odbc_driver_2_format.reference rename to tests/queries/0_stateless/00803_odbc_driver_2_format.reference diff --git a/dbms/tests/queries/0_stateless/00803_odbc_driver_2_format.sql b/tests/queries/0_stateless/00803_odbc_driver_2_format.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00803_odbc_driver_2_format.sql rename to tests/queries/0_stateless/00803_odbc_driver_2_format.sql diff --git a/dbms/tests/queries/0_stateless/00803_xxhash.reference b/tests/queries/0_stateless/00803_xxhash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00803_xxhash.reference rename to tests/queries/0_stateless/00803_xxhash.reference diff --git a/dbms/tests/queries/0_stateless/00803_xxhash.sql b/tests/queries/0_stateless/00803_xxhash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00803_xxhash.sql rename to tests/queries/0_stateless/00803_xxhash.sql diff --git a/dbms/tests/queries/0_stateless/00804_rollup_with_having.reference b/tests/queries/0_stateless/00804_rollup_with_having.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00804_rollup_with_having.reference rename to tests/queries/0_stateless/00804_rollup_with_having.reference diff --git a/dbms/tests/queries/0_stateless/00804_rollup_with_having.sql b/tests/queries/0_stateless/00804_rollup_with_having.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00804_rollup_with_having.sql rename to tests/queries/0_stateless/00804_rollup_with_having.sql diff --git a/dbms/tests/queries/0_stateless/00804_test_alter_compression_codecs.reference b/tests/queries/0_stateless/00804_test_alter_compression_codecs.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_alter_compression_codecs.reference rename to tests/queries/0_stateless/00804_test_alter_compression_codecs.reference diff --git a/dbms/tests/queries/0_stateless/00804_test_alter_compression_codecs.sql b/tests/queries/0_stateless/00804_test_alter_compression_codecs.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_alter_compression_codecs.sql rename to tests/queries/0_stateless/00804_test_alter_compression_codecs.sql diff --git a/dbms/tests/queries/0_stateless/00804_test_custom_compression_codecs.reference b/tests/queries/0_stateless/00804_test_custom_compression_codecs.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_custom_compression_codecs.reference rename to tests/queries/0_stateless/00804_test_custom_compression_codecs.reference diff --git a/dbms/tests/queries/0_stateless/00804_test_custom_compression_codecs.sql b/tests/queries/0_stateless/00804_test_custom_compression_codecs.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_custom_compression_codecs.sql rename to tests/queries/0_stateless/00804_test_custom_compression_codecs.sql diff --git a/dbms/tests/queries/0_stateless/00804_test_custom_compression_codes_log_storages.reference b/tests/queries/0_stateless/00804_test_custom_compression_codes_log_storages.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_custom_compression_codes_log_storages.reference rename to tests/queries/0_stateless/00804_test_custom_compression_codes_log_storages.reference diff --git a/dbms/tests/queries/0_stateless/00804_test_custom_compression_codes_log_storages.sql b/tests/queries/0_stateless/00804_test_custom_compression_codes_log_storages.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_custom_compression_codes_log_storages.sql rename to tests/queries/0_stateless/00804_test_custom_compression_codes_log_storages.sql diff --git a/dbms/tests/queries/0_stateless/00804_test_delta_codec_compression.reference b/tests/queries/0_stateless/00804_test_delta_codec_compression.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_delta_codec_compression.reference rename to tests/queries/0_stateless/00804_test_delta_codec_compression.reference diff --git a/dbms/tests/queries/0_stateless/00804_test_delta_codec_compression.sql b/tests/queries/0_stateless/00804_test_delta_codec_compression.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_delta_codec_compression.sql rename to tests/queries/0_stateless/00804_test_delta_codec_compression.sql diff --git a/dbms/tests/queries/0_stateless/00804_test_delta_codec_no_type_alter.reference b/tests/queries/0_stateless/00804_test_delta_codec_no_type_alter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_delta_codec_no_type_alter.reference rename to tests/queries/0_stateless/00804_test_delta_codec_no_type_alter.reference diff --git a/dbms/tests/queries/0_stateless/00804_test_delta_codec_no_type_alter.sql b/tests/queries/0_stateless/00804_test_delta_codec_no_type_alter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00804_test_delta_codec_no_type_alter.sql rename to tests/queries/0_stateless/00804_test_delta_codec_no_type_alter.sql diff --git a/dbms/tests/queries/0_stateless/00805_round_down.reference b/tests/queries/0_stateless/00805_round_down.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00805_round_down.reference rename to tests/queries/0_stateless/00805_round_down.reference diff --git a/dbms/tests/queries/0_stateless/00805_round_down.sql b/tests/queries/0_stateless/00805_round_down.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00805_round_down.sql rename to tests/queries/0_stateless/00805_round_down.sql diff --git a/dbms/tests/queries/0_stateless/00806_alter_update.reference b/tests/queries/0_stateless/00806_alter_update.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00806_alter_update.reference rename to tests/queries/0_stateless/00806_alter_update.reference diff --git a/dbms/tests/queries/0_stateless/00806_alter_update.sql b/tests/queries/0_stateless/00806_alter_update.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00806_alter_update.sql rename to tests/queries/0_stateless/00806_alter_update.sql diff --git a/dbms/tests/queries/0_stateless/00807_regexp_quote_meta.reference b/tests/queries/0_stateless/00807_regexp_quote_meta.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00807_regexp_quote_meta.reference rename to tests/queries/0_stateless/00807_regexp_quote_meta.reference diff --git a/dbms/tests/queries/0_stateless/00807_regexp_quote_meta.sql b/tests/queries/0_stateless/00807_regexp_quote_meta.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00807_regexp_quote_meta.sql rename to tests/queries/0_stateless/00807_regexp_quote_meta.sql diff --git a/dbms/tests/queries/0_stateless/00808_array_enumerate_segfault.reference b/tests/queries/0_stateless/00808_array_enumerate_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00808_array_enumerate_segfault.reference rename to tests/queries/0_stateless/00808_array_enumerate_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00808_array_enumerate_segfault.sql b/tests/queries/0_stateless/00808_array_enumerate_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00808_array_enumerate_segfault.sql rename to tests/queries/0_stateless/00808_array_enumerate_segfault.sql diff --git a/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.reference b/tests/queries/0_stateless/00808_not_optimize_predicate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00808_not_optimize_predicate.reference rename to tests/queries/0_stateless/00808_not_optimize_predicate.reference diff --git a/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql b/tests/queries/0_stateless/00808_not_optimize_predicate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql rename to tests/queries/0_stateless/00808_not_optimize_predicate.sql diff --git a/dbms/tests/queries/0_stateless/00809_add_days_segfault.reference b/tests/queries/0_stateless/00809_add_days_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00809_add_days_segfault.reference rename to tests/queries/0_stateless/00809_add_days_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00809_add_days_segfault.sql b/tests/queries/0_stateless/00809_add_days_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00809_add_days_segfault.sql rename to tests/queries/0_stateless/00809_add_days_segfault.sql diff --git a/dbms/tests/queries/0_stateless/00810_in_operators_segfault.reference b/tests/queries/0_stateless/00810_in_operators_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00810_in_operators_segfault.reference rename to tests/queries/0_stateless/00810_in_operators_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00810_in_operators_segfault.sql b/tests/queries/0_stateless/00810_in_operators_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00810_in_operators_segfault.sql rename to tests/queries/0_stateless/00810_in_operators_segfault.sql diff --git a/dbms/tests/queries/0_stateless/00811_garbage.reference b/tests/queries/0_stateless/00811_garbage.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00811_garbage.reference rename to tests/queries/0_stateless/00811_garbage.reference diff --git a/dbms/tests/queries/0_stateless/00811_garbage.sql b/tests/queries/0_stateless/00811_garbage.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00811_garbage.sql rename to tests/queries/0_stateless/00811_garbage.sql diff --git a/dbms/tests/queries/0_stateless/00812_prewhere_alias_array.reference b/tests/queries/0_stateless/00812_prewhere_alias_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00812_prewhere_alias_array.reference rename to tests/queries/0_stateless/00812_prewhere_alias_array.reference diff --git a/dbms/tests/queries/0_stateless/00812_prewhere_alias_array.sql b/tests/queries/0_stateless/00812_prewhere_alias_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00812_prewhere_alias_array.sql rename to tests/queries/0_stateless/00812_prewhere_alias_array.sql diff --git a/dbms/tests/queries/0_stateless/00813_parse_date_time_best_effort_more.reference b/tests/queries/0_stateless/00813_parse_date_time_best_effort_more.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00813_parse_date_time_best_effort_more.reference rename to tests/queries/0_stateless/00813_parse_date_time_best_effort_more.reference diff --git a/dbms/tests/queries/0_stateless/00813_parse_date_time_best_effort_more.sql b/tests/queries/0_stateless/00813_parse_date_time_best_effort_more.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00813_parse_date_time_best_effort_more.sql rename to tests/queries/0_stateless/00813_parse_date_time_best_effort_more.sql diff --git a/dbms/tests/queries/0_stateless/00814_parsing_ub.reference b/tests/queries/0_stateless/00814_parsing_ub.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00814_parsing_ub.reference rename to tests/queries/0_stateless/00814_parsing_ub.reference diff --git a/dbms/tests/queries/0_stateless/00814_parsing_ub.sql b/tests/queries/0_stateless/00814_parsing_ub.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00814_parsing_ub.sql rename to tests/queries/0_stateless/00814_parsing_ub.sql diff --git a/dbms/tests/queries/0_stateless/00814_replicated_minimalistic_part_header_zookeeper.reference b/tests/queries/0_stateless/00814_replicated_minimalistic_part_header_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00814_replicated_minimalistic_part_header_zookeeper.reference rename to tests/queries/0_stateless/00814_replicated_minimalistic_part_header_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00814_replicated_minimalistic_part_header_zookeeper.sql b/tests/queries/0_stateless/00814_replicated_minimalistic_part_header_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00814_replicated_minimalistic_part_header_zookeeper.sql rename to tests/queries/0_stateless/00814_replicated_minimalistic_part_header_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00815_left_join_on_stepanel.reference b/tests/queries/0_stateless/00815_left_join_on_stepanel.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00815_left_join_on_stepanel.reference rename to tests/queries/0_stateless/00815_left_join_on_stepanel.reference diff --git a/dbms/tests/queries/0_stateless/00815_left_join_on_stepanel.sql b/tests/queries/0_stateless/00815_left_join_on_stepanel.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00815_left_join_on_stepanel.sql rename to tests/queries/0_stateless/00815_left_join_on_stepanel.sql diff --git a/dbms/tests/queries/0_stateless/00816_join_column_names_sarg.reference b/tests/queries/0_stateless/00816_join_column_names_sarg.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00816_join_column_names_sarg.reference rename to tests/queries/0_stateless/00816_join_column_names_sarg.reference diff --git a/dbms/tests/queries/0_stateless/00816_join_column_names_sarg.sql b/tests/queries/0_stateless/00816_join_column_names_sarg.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00816_join_column_names_sarg.sql rename to tests/queries/0_stateless/00816_join_column_names_sarg.sql diff --git a/dbms/tests/queries/0_stateless/00816_long_concurrent_alter_column.reference b/tests/queries/0_stateless/00816_long_concurrent_alter_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00816_long_concurrent_alter_column.reference rename to tests/queries/0_stateless/00816_long_concurrent_alter_column.reference diff --git a/dbms/tests/queries/0_stateless/00816_long_concurrent_alter_column.sh b/tests/queries/0_stateless/00816_long_concurrent_alter_column.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00816_long_concurrent_alter_column.sh rename to tests/queries/0_stateless/00816_long_concurrent_alter_column.sh diff --git a/dbms/tests/queries/0_stateless/00817_with_simple.reference b/tests/queries/0_stateless/00817_with_simple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00817_with_simple.reference rename to tests/queries/0_stateless/00817_with_simple.reference diff --git a/dbms/tests/queries/0_stateless/00817_with_simple.sql b/tests/queries/0_stateless/00817_with_simple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00817_with_simple.sql rename to tests/queries/0_stateless/00817_with_simple.sql diff --git a/dbms/tests/queries/0_stateless/00818_alias_bug_4110.reference b/tests/queries/0_stateless/00818_alias_bug_4110.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00818_alias_bug_4110.reference rename to tests/queries/0_stateless/00818_alias_bug_4110.reference diff --git a/dbms/tests/queries/0_stateless/00818_alias_bug_4110.sql b/tests/queries/0_stateless/00818_alias_bug_4110.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00818_alias_bug_4110.sql rename to tests/queries/0_stateless/00818_alias_bug_4110.sql diff --git a/dbms/tests/queries/0_stateless/00818_inner_join_bug_3567.reference b/tests/queries/0_stateless/00818_inner_join_bug_3567.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00818_inner_join_bug_3567.reference rename to tests/queries/0_stateless/00818_inner_join_bug_3567.reference diff --git a/dbms/tests/queries/0_stateless/00818_inner_join_bug_3567.sql b/tests/queries/0_stateless/00818_inner_join_bug_3567.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00818_inner_join_bug_3567.sql rename to tests/queries/0_stateless/00818_inner_join_bug_3567.sql diff --git a/dbms/tests/queries/0_stateless/00818_join_bug_4271.reference b/tests/queries/0_stateless/00818_join_bug_4271.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00818_join_bug_4271.reference rename to tests/queries/0_stateless/00818_join_bug_4271.reference diff --git a/dbms/tests/queries/0_stateless/00818_join_bug_4271.sql b/tests/queries/0_stateless/00818_join_bug_4271.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00818_join_bug_4271.sql rename to tests/queries/0_stateless/00818_join_bug_4271.sql diff --git a/dbms/tests/queries/0_stateless/00819_ast_refactoring_bugs.reference b/tests/queries/0_stateless/00819_ast_refactoring_bugs.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00819_ast_refactoring_bugs.reference rename to tests/queries/0_stateless/00819_ast_refactoring_bugs.reference diff --git a/dbms/tests/queries/0_stateless/00819_ast_refactoring_bugs.sql b/tests/queries/0_stateless/00819_ast_refactoring_bugs.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00819_ast_refactoring_bugs.sql rename to tests/queries/0_stateless/00819_ast_refactoring_bugs.sql diff --git a/dbms/tests/queries/0_stateless/00819_full_join_wrong_columns_in_block.reference b/tests/queries/0_stateless/00819_full_join_wrong_columns_in_block.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00819_full_join_wrong_columns_in_block.reference rename to tests/queries/0_stateless/00819_full_join_wrong_columns_in_block.reference diff --git a/dbms/tests/queries/0_stateless/00819_full_join_wrong_columns_in_block.sql b/tests/queries/0_stateless/00819_full_join_wrong_columns_in_block.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00819_full_join_wrong_columns_in_block.sql rename to tests/queries/0_stateless/00819_full_join_wrong_columns_in_block.sql diff --git a/dbms/tests/queries/0_stateless/00820_multiple_joins.reference b/tests/queries/0_stateless/00820_multiple_joins.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00820_multiple_joins.reference rename to tests/queries/0_stateless/00820_multiple_joins.reference diff --git a/dbms/tests/queries/0_stateless/00820_multiple_joins.sql b/tests/queries/0_stateless/00820_multiple_joins.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00820_multiple_joins.sql rename to tests/queries/0_stateless/00820_multiple_joins.sql diff --git a/dbms/tests/queries/0_stateless/00820_multiple_joins_subquery_requires_alias.reference b/tests/queries/0_stateless/00820_multiple_joins_subquery_requires_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00820_multiple_joins_subquery_requires_alias.reference rename to tests/queries/0_stateless/00820_multiple_joins_subquery_requires_alias.reference diff --git a/dbms/tests/queries/0_stateless/00820_multiple_joins_subquery_requires_alias.sql b/tests/queries/0_stateless/00820_multiple_joins_subquery_requires_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00820_multiple_joins_subquery_requires_alias.sql rename to tests/queries/0_stateless/00820_multiple_joins_subquery_requires_alias.sql diff --git a/dbms/tests/queries/0_stateless/00821_distributed_storage_with_join_on.reference b/tests/queries/0_stateless/00821_distributed_storage_with_join_on.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00821_distributed_storage_with_join_on.reference rename to tests/queries/0_stateless/00821_distributed_storage_with_join_on.reference diff --git a/dbms/tests/queries/0_stateless/00821_distributed_storage_with_join_on.sql b/tests/queries/0_stateless/00821_distributed_storage_with_join_on.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00821_distributed_storage_with_join_on.sql rename to tests/queries/0_stateless/00821_distributed_storage_with_join_on.sql diff --git a/dbms/tests/queries/0_stateless/00822_array_insert_default.reference b/tests/queries/0_stateless/00822_array_insert_default.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00822_array_insert_default.reference rename to tests/queries/0_stateless/00822_array_insert_default.reference diff --git a/dbms/tests/queries/0_stateless/00822_array_insert_default.sql b/tests/queries/0_stateless/00822_array_insert_default.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00822_array_insert_default.sql rename to tests/queries/0_stateless/00822_array_insert_default.sql diff --git a/dbms/tests/queries/0_stateless/00823_capnproto_input.reference b/tests/queries/0_stateless/00823_capnproto_input.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00823_capnproto_input.reference rename to tests/queries/0_stateless/00823_capnproto_input.reference diff --git a/dbms/tests/queries/0_stateless/00823_capnproto_input.sh b/tests/queries/0_stateless/00823_capnproto_input.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00823_capnproto_input.sh rename to tests/queries/0_stateless/00823_capnproto_input.sh diff --git a/dbms/tests/queries/0_stateless/00823_sequence_match_dfa.reference b/tests/queries/0_stateless/00823_sequence_match_dfa.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00823_sequence_match_dfa.reference rename to tests/queries/0_stateless/00823_sequence_match_dfa.reference diff --git a/dbms/tests/queries/0_stateless/00823_sequence_match_dfa.sql b/tests/queries/0_stateless/00823_sequence_match_dfa.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00823_sequence_match_dfa.sql rename to tests/queries/0_stateless/00823_sequence_match_dfa.sql diff --git a/dbms/tests/queries/0_stateless/00824_filesystem.reference b/tests/queries/0_stateless/00824_filesystem.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00824_filesystem.reference rename to tests/queries/0_stateless/00824_filesystem.reference diff --git a/dbms/tests/queries/0_stateless/00824_filesystem.sql b/tests/queries/0_stateless/00824_filesystem.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00824_filesystem.sql rename to tests/queries/0_stateless/00824_filesystem.sql diff --git a/dbms/tests/queries/0_stateless/00825_http_header_query_id.reference b/tests/queries/0_stateless/00825_http_header_query_id.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00825_http_header_query_id.reference rename to tests/queries/0_stateless/00825_http_header_query_id.reference diff --git a/dbms/tests/queries/0_stateless/00825_http_header_query_id.sh b/tests/queries/0_stateless/00825_http_header_query_id.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00825_http_header_query_id.sh rename to tests/queries/0_stateless/00825_http_header_query_id.sh diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format.proto b/tests/queries/0_stateless/00825_protobuf_format.proto similarity index 100% rename from dbms/tests/queries/0_stateless/00825_protobuf_format.proto rename to tests/queries/0_stateless/00825_protobuf_format.proto diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format_input.insh b/tests/queries/0_stateless/00825_protobuf_format_input.insh similarity index 100% rename from dbms/tests/queries/0_stateless/00825_protobuf_format_input.insh rename to tests/queries/0_stateless/00825_protobuf_format_input.insh diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format_input.reference b/tests/queries/0_stateless/00825_protobuf_format_input.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00825_protobuf_format_input.reference rename to tests/queries/0_stateless/00825_protobuf_format_input.reference diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format_input.sh b/tests/queries/0_stateless/00825_protobuf_format_input.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00825_protobuf_format_input.sh rename to tests/queries/0_stateless/00825_protobuf_format_input.sh diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format_output.reference b/tests/queries/0_stateless/00825_protobuf_format_output.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00825_protobuf_format_output.reference rename to tests/queries/0_stateless/00825_protobuf_format_output.reference diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format_output.sh b/tests/queries/0_stateless/00825_protobuf_format_output.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00825_protobuf_format_output.sh rename to tests/queries/0_stateless/00825_protobuf_format_output.sh diff --git a/dbms/tests/queries/0_stateless/00825_protobuf_format_syntax2.proto b/tests/queries/0_stateless/00825_protobuf_format_syntax2.proto similarity index 100% rename from dbms/tests/queries/0_stateless/00825_protobuf_format_syntax2.proto rename to tests/queries/0_stateless/00825_protobuf_format_syntax2.proto diff --git a/dbms/tests/queries/0_stateless/00826_cross_to_inner_join.reference b/tests/queries/0_stateless/00826_cross_to_inner_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00826_cross_to_inner_join.reference rename to tests/queries/0_stateless/00826_cross_to_inner_join.reference diff --git a/dbms/tests/queries/0_stateless/00826_cross_to_inner_join.sql b/tests/queries/0_stateless/00826_cross_to_inner_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00826_cross_to_inner_join.sql rename to tests/queries/0_stateless/00826_cross_to_inner_join.sql diff --git a/dbms/tests/queries/0_stateless/00829_bitmap_function.reference b/tests/queries/0_stateless/00829_bitmap_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00829_bitmap_function.reference rename to tests/queries/0_stateless/00829_bitmap_function.reference diff --git a/dbms/tests/queries/0_stateless/00829_bitmap_function.sql b/tests/queries/0_stateless/00829_bitmap_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00829_bitmap_function.sql rename to tests/queries/0_stateless/00829_bitmap_function.sql diff --git a/dbms/tests/queries/0_stateless/00830_join_overwrite.reference b/tests/queries/0_stateless/00830_join_overwrite.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00830_join_overwrite.reference rename to tests/queries/0_stateless/00830_join_overwrite.reference diff --git a/dbms/tests/queries/0_stateless/00830_join_overwrite.sql b/tests/queries/0_stateless/00830_join_overwrite.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00830_join_overwrite.sql rename to tests/queries/0_stateless/00830_join_overwrite.sql diff --git a/dbms/tests/queries/0_stateless/00831_quantile_weighted_parameter_check.reference b/tests/queries/0_stateless/00831_quantile_weighted_parameter_check.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00831_quantile_weighted_parameter_check.reference rename to tests/queries/0_stateless/00831_quantile_weighted_parameter_check.reference diff --git a/dbms/tests/queries/0_stateless/00831_quantile_weighted_parameter_check.sql b/tests/queries/0_stateless/00831_quantile_weighted_parameter_check.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00831_quantile_weighted_parameter_check.sql rename to tests/queries/0_stateless/00831_quantile_weighted_parameter_check.sql diff --git a/dbms/tests/queries/0_stateless/00832_storage_file_lock.reference b/tests/queries/0_stateless/00832_storage_file_lock.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00832_storage_file_lock.reference rename to tests/queries/0_stateless/00832_storage_file_lock.reference diff --git a/dbms/tests/queries/0_stateless/00832_storage_file_lock.sql b/tests/queries/0_stateless/00832_storage_file_lock.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00832_storage_file_lock.sql rename to tests/queries/0_stateless/00832_storage_file_lock.sql diff --git a/dbms/tests/queries/0_stateless/00833_sleep_overflow.reference b/tests/queries/0_stateless/00833_sleep_overflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00833_sleep_overflow.reference rename to tests/queries/0_stateless/00833_sleep_overflow.reference diff --git a/dbms/tests/queries/0_stateless/00833_sleep_overflow.sql b/tests/queries/0_stateless/00833_sleep_overflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00833_sleep_overflow.sql rename to tests/queries/0_stateless/00833_sleep_overflow.sql diff --git a/dbms/tests/queries/0_stateless/00834_cancel_http_readonly_queries_on_client_close.reference b/tests/queries/0_stateless/00834_cancel_http_readonly_queries_on_client_close.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00834_cancel_http_readonly_queries_on_client_close.reference rename to tests/queries/0_stateless/00834_cancel_http_readonly_queries_on_client_close.reference diff --git a/dbms/tests/queries/0_stateless/00834_cancel_http_readonly_queries_on_client_close.sh b/tests/queries/0_stateless/00834_cancel_http_readonly_queries_on_client_close.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00834_cancel_http_readonly_queries_on_client_close.sh rename to tests/queries/0_stateless/00834_cancel_http_readonly_queries_on_client_close.sh diff --git a/dbms/tests/queries/0_stateless/00834_date_datetime_cmp.reference b/tests/queries/0_stateless/00834_date_datetime_cmp.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00834_date_datetime_cmp.reference rename to tests/queries/0_stateless/00834_date_datetime_cmp.reference diff --git a/dbms/tests/queries/0_stateless/00834_date_datetime_cmp.sql b/tests/queries/0_stateless/00834_date_datetime_cmp.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00834_date_datetime_cmp.sql rename to tests/queries/0_stateless/00834_date_datetime_cmp.sql diff --git a/dbms/tests/queries/0_stateless/00834_dont_allow_to_set_two_configuration_files_in_client.reference b/tests/queries/0_stateless/00834_dont_allow_to_set_two_configuration_files_in_client.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00834_dont_allow_to_set_two_configuration_files_in_client.reference rename to tests/queries/0_stateless/00834_dont_allow_to_set_two_configuration_files_in_client.reference diff --git a/dbms/tests/queries/0_stateless/00834_dont_allow_to_set_two_configuration_files_in_client.sh b/tests/queries/0_stateless/00834_dont_allow_to_set_two_configuration_files_in_client.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00834_dont_allow_to_set_two_configuration_files_in_client.sh rename to tests/queries/0_stateless/00834_dont_allow_to_set_two_configuration_files_in_client.sh diff --git a/dbms/tests/queries/0_stateless/00834_hints_for_type_function_typos.reference b/tests/queries/0_stateless/00834_hints_for_type_function_typos.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00834_hints_for_type_function_typos.reference rename to tests/queries/0_stateless/00834_hints_for_type_function_typos.reference diff --git a/dbms/tests/queries/0_stateless/00834_hints_for_type_function_typos.sh b/tests/queries/0_stateless/00834_hints_for_type_function_typos.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00834_hints_for_type_function_typos.sh rename to tests/queries/0_stateless/00834_hints_for_type_function_typos.sh diff --git a/dbms/tests/queries/0_stateless/00834_kill_mutation.reference b/tests/queries/0_stateless/00834_kill_mutation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00834_kill_mutation.reference rename to tests/queries/0_stateless/00834_kill_mutation.reference diff --git a/dbms/tests/queries/0_stateless/00834_kill_mutation.sh b/tests/queries/0_stateless/00834_kill_mutation.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00834_kill_mutation.sh rename to tests/queries/0_stateless/00834_kill_mutation.sh diff --git a/dbms/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.reference b/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.reference rename to tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.sh b/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.sh rename to tests/queries/0_stateless/00834_kill_mutation_replicated_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00834_limit_with_constant_expressions.reference b/tests/queries/0_stateless/00834_limit_with_constant_expressions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00834_limit_with_constant_expressions.reference rename to tests/queries/0_stateless/00834_limit_with_constant_expressions.reference diff --git a/dbms/tests/queries/0_stateless/00834_limit_with_constant_expressions.sql b/tests/queries/0_stateless/00834_limit_with_constant_expressions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00834_limit_with_constant_expressions.sql rename to tests/queries/0_stateless/00834_limit_with_constant_expressions.sql diff --git a/dbms/tests/queries/0_stateless/00834_not_between.reference b/tests/queries/0_stateless/00834_not_between.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00834_not_between.reference rename to tests/queries/0_stateless/00834_not_between.reference diff --git a/dbms/tests/queries/0_stateless/00834_not_between.sql b/tests/queries/0_stateless/00834_not_between.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00834_not_between.sql rename to tests/queries/0_stateless/00834_not_between.sql diff --git a/dbms/tests/queries/0_stateless/00835_if_generic_case.reference b/tests/queries/0_stateless/00835_if_generic_case.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00835_if_generic_case.reference rename to tests/queries/0_stateless/00835_if_generic_case.reference diff --git a/dbms/tests/queries/0_stateless/00835_if_generic_case.sql b/tests/queries/0_stateless/00835_if_generic_case.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00835_if_generic_case.sql rename to tests/queries/0_stateless/00835_if_generic_case.sql diff --git a/dbms/tests/queries/0_stateless/00836_indices_alter.reference b/tests/queries/0_stateless/00836_indices_alter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00836_indices_alter.reference rename to tests/queries/0_stateless/00836_indices_alter.reference diff --git a/dbms/tests/queries/0_stateless/00836_indices_alter.sql b/tests/queries/0_stateless/00836_indices_alter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00836_indices_alter.sql rename to tests/queries/0_stateless/00836_indices_alter.sql diff --git a/dbms/tests/queries/0_stateless/00836_indices_alter_replicated_zookeeper.reference b/tests/queries/0_stateless/00836_indices_alter_replicated_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00836_indices_alter_replicated_zookeeper.reference rename to tests/queries/0_stateless/00836_indices_alter_replicated_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00836_indices_alter_replicated_zookeeper.sql b/tests/queries/0_stateless/00836_indices_alter_replicated_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00836_indices_alter_replicated_zookeeper.sql rename to tests/queries/0_stateless/00836_indices_alter_replicated_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00836_numbers_table_function_zero.reference b/tests/queries/0_stateless/00836_numbers_table_function_zero.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00836_numbers_table_function_zero.reference rename to tests/queries/0_stateless/00836_numbers_table_function_zero.reference diff --git a/dbms/tests/queries/0_stateless/00836_numbers_table_function_zero.sql b/tests/queries/0_stateless/00836_numbers_table_function_zero.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00836_numbers_table_function_zero.sql rename to tests/queries/0_stateless/00836_numbers_table_function_zero.sql diff --git a/dbms/tests/queries/0_stateless/00837_insert_select_and_read_prefix.reference b/tests/queries/0_stateless/00837_insert_select_and_read_prefix.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00837_insert_select_and_read_prefix.reference rename to tests/queries/0_stateless/00837_insert_select_and_read_prefix.reference diff --git a/dbms/tests/queries/0_stateless/00837_insert_select_and_read_prefix.sql b/tests/queries/0_stateless/00837_insert_select_and_read_prefix.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00837_insert_select_and_read_prefix.sql rename to tests/queries/0_stateless/00837_insert_select_and_read_prefix.sql diff --git a/dbms/tests/queries/0_stateless/00837_minmax_index.reference b/tests/queries/0_stateless/00837_minmax_index.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00837_minmax_index.reference rename to tests/queries/0_stateless/00837_minmax_index.reference diff --git a/dbms/tests/queries/0_stateless/00837_minmax_index.sh b/tests/queries/0_stateless/00837_minmax_index.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00837_minmax_index.sh rename to tests/queries/0_stateless/00837_minmax_index.sh diff --git a/dbms/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.reference b/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.reference rename to tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.sql b/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.sql rename to tests/queries/0_stateless/00837_minmax_index_replicated_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00838_system_tables_drop_table_race.reference b/tests/queries/0_stateless/00838_system_tables_drop_table_race.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00838_system_tables_drop_table_race.reference rename to tests/queries/0_stateless/00838_system_tables_drop_table_race.reference diff --git a/dbms/tests/queries/0_stateless/00838_system_tables_drop_table_race.sh b/tests/queries/0_stateless/00838_system_tables_drop_table_race.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00838_system_tables_drop_table_race.sh rename to tests/queries/0_stateless/00838_system_tables_drop_table_race.sh diff --git a/dbms/tests/queries/0_stateless/00838_unique_index.reference b/tests/queries/0_stateless/00838_unique_index.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00838_unique_index.reference rename to tests/queries/0_stateless/00838_unique_index.reference diff --git a/dbms/tests/queries/0_stateless/00838_unique_index.sh b/tests/queries/0_stateless/00838_unique_index.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00838_unique_index.sh rename to tests/queries/0_stateless/00838_unique_index.sh diff --git a/dbms/tests/queries/0_stateless/00839_bitmask_negative.reference b/tests/queries/0_stateless/00839_bitmask_negative.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00839_bitmask_negative.reference rename to tests/queries/0_stateless/00839_bitmask_negative.reference diff --git a/dbms/tests/queries/0_stateless/00839_bitmask_negative.sql b/tests/queries/0_stateless/00839_bitmask_negative.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00839_bitmask_negative.sql rename to tests/queries/0_stateless/00839_bitmask_negative.sql diff --git a/dbms/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.reference b/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.reference rename to tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.reference diff --git a/dbms/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.sh b/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.sh rename to tests/queries/0_stateless/00840_long_concurrent_select_and_drop_deadlock.sh diff --git a/dbms/tests/queries/0_stateless/00840_top_k_weighted.reference b/tests/queries/0_stateless/00840_top_k_weighted.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00840_top_k_weighted.reference rename to tests/queries/0_stateless/00840_top_k_weighted.reference diff --git a/dbms/tests/queries/0_stateless/00840_top_k_weighted.sql b/tests/queries/0_stateless/00840_top_k_weighted.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00840_top_k_weighted.sql rename to tests/queries/0_stateless/00840_top_k_weighted.sql diff --git a/dbms/tests/queries/0_stateless/00841_temporary_table_database.reference b/tests/queries/0_stateless/00841_temporary_table_database.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00841_temporary_table_database.reference rename to tests/queries/0_stateless/00841_temporary_table_database.reference diff --git a/dbms/tests/queries/0_stateless/00841_temporary_table_database.sql b/tests/queries/0_stateless/00841_temporary_table_database.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00841_temporary_table_database.sql rename to tests/queries/0_stateless/00841_temporary_table_database.sql diff --git a/dbms/tests/queries/0_stateless/00842_array_with_constant_overflow.reference b/tests/queries/0_stateless/00842_array_with_constant_overflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00842_array_with_constant_overflow.reference rename to tests/queries/0_stateless/00842_array_with_constant_overflow.reference diff --git a/dbms/tests/queries/0_stateless/00842_array_with_constant_overflow.sql b/tests/queries/0_stateless/00842_array_with_constant_overflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00842_array_with_constant_overflow.sql rename to tests/queries/0_stateless/00842_array_with_constant_overflow.sql diff --git a/dbms/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.reference b/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.reference rename to tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.reference diff --git a/dbms/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.sql b/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.sql rename to tests/queries/0_stateless/00843_optimize_predicate_and_rename_table.sql diff --git a/dbms/tests/queries/0_stateless/00844_join_lightee2.reference b/tests/queries/0_stateless/00844_join_lightee2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00844_join_lightee2.reference rename to tests/queries/0_stateless/00844_join_lightee2.reference diff --git a/dbms/tests/queries/0_stateless/00844_join_lightee2.sql b/tests/queries/0_stateless/00844_join_lightee2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00844_join_lightee2.sql rename to tests/queries/0_stateless/00844_join_lightee2.sql diff --git a/dbms/tests/queries/0_stateless/00845_join_on_aliases.reference b/tests/queries/0_stateless/00845_join_on_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00845_join_on_aliases.reference rename to tests/queries/0_stateless/00845_join_on_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00845_join_on_aliases.sql b/tests/queries/0_stateless/00845_join_on_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00845_join_on_aliases.sql rename to tests/queries/0_stateless/00845_join_on_aliases.sql diff --git a/dbms/tests/queries/0_stateless/00846_join_using_tuple_crash.reference b/tests/queries/0_stateless/00846_join_using_tuple_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00846_join_using_tuple_crash.reference rename to tests/queries/0_stateless/00846_join_using_tuple_crash.reference diff --git a/dbms/tests/queries/0_stateless/00846_join_using_tuple_crash.sql b/tests/queries/0_stateless/00846_join_using_tuple_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00846_join_using_tuple_crash.sql rename to tests/queries/0_stateless/00846_join_using_tuple_crash.sql diff --git a/dbms/tests/queries/0_stateless/00847_multiple_join_same_column.reference b/tests/queries/0_stateless/00847_multiple_join_same_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00847_multiple_join_same_column.reference rename to tests/queries/0_stateless/00847_multiple_join_same_column.reference diff --git a/dbms/tests/queries/0_stateless/00847_multiple_join_same_column.sql b/tests/queries/0_stateless/00847_multiple_join_same_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00847_multiple_join_same_column.sql rename to tests/queries/0_stateless/00847_multiple_join_same_column.sql diff --git a/dbms/tests/queries/0_stateless/00848_join_use_nulls_segfault.reference b/tests/queries/0_stateless/00848_join_use_nulls_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00848_join_use_nulls_segfault.reference rename to tests/queries/0_stateless/00848_join_use_nulls_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00848_join_use_nulls_segfault.sql b/tests/queries/0_stateless/00848_join_use_nulls_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00848_join_use_nulls_segfault.sql rename to tests/queries/0_stateless/00848_join_use_nulls_segfault.sql diff --git a/dbms/tests/queries/0_stateless/00849_multiple_comma_join.reference b/tests/queries/0_stateless/00849_multiple_comma_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00849_multiple_comma_join.reference rename to tests/queries/0_stateless/00849_multiple_comma_join.reference diff --git a/dbms/tests/queries/0_stateless/00849_multiple_comma_join.sql b/tests/queries/0_stateless/00849_multiple_comma_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00849_multiple_comma_join.sql rename to tests/queries/0_stateless/00849_multiple_comma_join.sql diff --git a/dbms/tests/queries/0_stateless/00849_multiple_comma_join_2.reference b/tests/queries/0_stateless/00849_multiple_comma_join_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00849_multiple_comma_join_2.reference rename to tests/queries/0_stateless/00849_multiple_comma_join_2.reference diff --git a/dbms/tests/queries/0_stateless/00849_multiple_comma_join_2.sql b/tests/queries/0_stateless/00849_multiple_comma_join_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00849_multiple_comma_join_2.sql rename to tests/queries/0_stateless/00849_multiple_comma_join_2.sql diff --git a/dbms/tests/queries/0_stateless/00850_global_join_dups.reference b/tests/queries/0_stateless/00850_global_join_dups.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00850_global_join_dups.reference rename to tests/queries/0_stateless/00850_global_join_dups.reference diff --git a/dbms/tests/queries/0_stateless/00850_global_join_dups.sql b/tests/queries/0_stateless/00850_global_join_dups.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00850_global_join_dups.sql rename to tests/queries/0_stateless/00850_global_join_dups.sql diff --git a/dbms/tests/queries/0_stateless/00851_http_insert_json_defaults.reference b/tests/queries/0_stateless/00851_http_insert_json_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00851_http_insert_json_defaults.reference rename to tests/queries/0_stateless/00851_http_insert_json_defaults.reference diff --git a/dbms/tests/queries/0_stateless/00851_http_insert_json_defaults.sh b/tests/queries/0_stateless/00851_http_insert_json_defaults.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00851_http_insert_json_defaults.sh rename to tests/queries/0_stateless/00851_http_insert_json_defaults.sh diff --git a/dbms/tests/queries/0_stateless/00852_any_join_nulls.reference b/tests/queries/0_stateless/00852_any_join_nulls.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00852_any_join_nulls.reference rename to tests/queries/0_stateless/00852_any_join_nulls.reference diff --git a/dbms/tests/queries/0_stateless/00852_any_join_nulls.sql b/tests/queries/0_stateless/00852_any_join_nulls.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00852_any_join_nulls.sql rename to tests/queries/0_stateless/00852_any_join_nulls.sql diff --git a/dbms/tests/queries/0_stateless/00853_join_with_nulls_crash.reference b/tests/queries/0_stateless/00853_join_with_nulls_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00853_join_with_nulls_crash.reference rename to tests/queries/0_stateless/00853_join_with_nulls_crash.reference diff --git a/dbms/tests/queries/0_stateless/00853_join_with_nulls_crash.sql b/tests/queries/0_stateless/00853_join_with_nulls_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00853_join_with_nulls_crash.sql rename to tests/queries/0_stateless/00853_join_with_nulls_crash.sql diff --git a/dbms/tests/queries/0_stateless/00854_multiple_join_asterisks.reference b/tests/queries/0_stateless/00854_multiple_join_asterisks.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00854_multiple_join_asterisks.reference rename to tests/queries/0_stateless/00854_multiple_join_asterisks.reference diff --git a/dbms/tests/queries/0_stateless/00854_multiple_join_asterisks.sql b/tests/queries/0_stateless/00854_multiple_join_asterisks.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00854_multiple_join_asterisks.sql rename to tests/queries/0_stateless/00854_multiple_join_asterisks.sql diff --git a/dbms/tests/queries/0_stateless/00855_join_with_array_join.reference b/tests/queries/0_stateless/00855_join_with_array_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00855_join_with_array_join.reference rename to tests/queries/0_stateless/00855_join_with_array_join.reference diff --git a/dbms/tests/queries/0_stateless/00855_join_with_array_join.sql b/tests/queries/0_stateless/00855_join_with_array_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00855_join_with_array_join.sql rename to tests/queries/0_stateless/00855_join_with_array_join.sql diff --git a/dbms/tests/queries/0_stateless/00856_no_column_issue_4242.reference b/tests/queries/0_stateless/00856_no_column_issue_4242.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00856_no_column_issue_4242.reference rename to tests/queries/0_stateless/00856_no_column_issue_4242.reference diff --git a/dbms/tests/queries/0_stateless/00856_no_column_issue_4242.sql b/tests/queries/0_stateless/00856_no_column_issue_4242.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00856_no_column_issue_4242.sql rename to tests/queries/0_stateless/00856_no_column_issue_4242.sql diff --git a/dbms/tests/queries/0_stateless/00857_global_joinsavel_table_alias.reference b/tests/queries/0_stateless/00857_global_joinsavel_table_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00857_global_joinsavel_table_alias.reference rename to tests/queries/0_stateless/00857_global_joinsavel_table_alias.reference diff --git a/dbms/tests/queries/0_stateless/00857_global_joinsavel_table_alias.sql b/tests/queries/0_stateless/00857_global_joinsavel_table_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00857_global_joinsavel_table_alias.sql rename to tests/queries/0_stateless/00857_global_joinsavel_table_alias.sql diff --git a/dbms/tests/queries/0_stateless/00858_issue_4756.reference b/tests/queries/0_stateless/00858_issue_4756.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00858_issue_4756.reference rename to tests/queries/0_stateless/00858_issue_4756.reference diff --git a/dbms/tests/queries/0_stateless/00858_issue_4756.sql b/tests/queries/0_stateless/00858_issue_4756.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00858_issue_4756.sql rename to tests/queries/0_stateless/00858_issue_4756.sql diff --git a/dbms/tests/queries/0_stateless/00859_distinct_with_join.reference b/tests/queries/0_stateless/00859_distinct_with_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00859_distinct_with_join.reference rename to tests/queries/0_stateless/00859_distinct_with_join.reference diff --git a/dbms/tests/queries/0_stateless/00859_distinct_with_join.sql b/tests/queries/0_stateless/00859_distinct_with_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00859_distinct_with_join.sql rename to tests/queries/0_stateless/00859_distinct_with_join.sql diff --git a/dbms/tests/queries/0_stateless/00860_unknown_identifier_bug.reference b/tests/queries/0_stateless/00860_unknown_identifier_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00860_unknown_identifier_bug.reference rename to tests/queries/0_stateless/00860_unknown_identifier_bug.reference diff --git a/dbms/tests/queries/0_stateless/00860_unknown_identifier_bug.sql b/tests/queries/0_stateless/00860_unknown_identifier_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00860_unknown_identifier_bug.sql rename to tests/queries/0_stateless/00860_unknown_identifier_bug.sql diff --git a/dbms/tests/queries/0_stateless/00861_decimal_quoted_csv.reference b/tests/queries/0_stateless/00861_decimal_quoted_csv.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00861_decimal_quoted_csv.reference rename to tests/queries/0_stateless/00861_decimal_quoted_csv.reference diff --git a/dbms/tests/queries/0_stateless/00861_decimal_quoted_csv.sql b/tests/queries/0_stateless/00861_decimal_quoted_csv.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00861_decimal_quoted_csv.sql rename to tests/queries/0_stateless/00861_decimal_quoted_csv.sql diff --git a/dbms/tests/queries/0_stateless/00862_decimal_in.reference b/tests/queries/0_stateless/00862_decimal_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00862_decimal_in.reference rename to tests/queries/0_stateless/00862_decimal_in.reference diff --git a/dbms/tests/queries/0_stateless/00862_decimal_in.sql b/tests/queries/0_stateless/00862_decimal_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00862_decimal_in.sql rename to tests/queries/0_stateless/00862_decimal_in.sql diff --git a/dbms/tests/queries/0_stateless/00863_comma_join_in.reference b/tests/queries/0_stateless/00863_comma_join_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00863_comma_join_in.reference rename to tests/queries/0_stateless/00863_comma_join_in.reference diff --git a/dbms/tests/queries/0_stateless/00863_comma_join_in.sql b/tests/queries/0_stateless/00863_comma_join_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00863_comma_join_in.sql rename to tests/queries/0_stateless/00863_comma_join_in.sql diff --git a/dbms/tests/queries/0_stateless/00864_union_all_supertype.reference b/tests/queries/0_stateless/00864_union_all_supertype.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00864_union_all_supertype.reference rename to tests/queries/0_stateless/00864_union_all_supertype.reference diff --git a/dbms/tests/queries/0_stateless/00864_union_all_supertype.sql b/tests/queries/0_stateless/00864_union_all_supertype.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00864_union_all_supertype.sql rename to tests/queries/0_stateless/00864_union_all_supertype.sql diff --git a/dbms/tests/queries/0_stateless/00870_t64_codec.reference b/tests/queries/0_stateless/00870_t64_codec.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00870_t64_codec.reference rename to tests/queries/0_stateless/00870_t64_codec.reference diff --git a/dbms/tests/queries/0_stateless/00870_t64_codec.sql b/tests/queries/0_stateless/00870_t64_codec.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00870_t64_codec.sql rename to tests/queries/0_stateless/00870_t64_codec.sql diff --git a/dbms/tests/queries/0_stateless/00871_t64_codec_signed.reference b/tests/queries/0_stateless/00871_t64_codec_signed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00871_t64_codec_signed.reference rename to tests/queries/0_stateless/00871_t64_codec_signed.reference diff --git a/dbms/tests/queries/0_stateless/00871_t64_codec_signed.sql b/tests/queries/0_stateless/00871_t64_codec_signed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00871_t64_codec_signed.sql rename to tests/queries/0_stateless/00871_t64_codec_signed.sql diff --git a/dbms/tests/queries/0_stateless/00872_t64_bit_codec.reference b/tests/queries/0_stateless/00872_t64_bit_codec.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00872_t64_bit_codec.reference rename to tests/queries/0_stateless/00872_t64_bit_codec.reference diff --git a/dbms/tests/queries/0_stateless/00872_t64_bit_codec.sql b/tests/queries/0_stateless/00872_t64_bit_codec.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00872_t64_bit_codec.sql rename to tests/queries/0_stateless/00872_t64_bit_codec.sql diff --git a/dbms/tests/queries/0_stateless/00874_issue_3495.reference b/tests/queries/0_stateless/00874_issue_3495.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00874_issue_3495.reference rename to tests/queries/0_stateless/00874_issue_3495.reference diff --git a/dbms/tests/queries/0_stateless/00874_issue_3495.sql b/tests/queries/0_stateless/00874_issue_3495.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00874_issue_3495.sql rename to tests/queries/0_stateless/00874_issue_3495.sql diff --git a/dbms/tests/queries/0_stateless/00875_join_right_nulls.reference b/tests/queries/0_stateless/00875_join_right_nulls.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00875_join_right_nulls.reference rename to tests/queries/0_stateless/00875_join_right_nulls.reference diff --git a/dbms/tests/queries/0_stateless/00875_join_right_nulls.sql b/tests/queries/0_stateless/00875_join_right_nulls.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00875_join_right_nulls.sql rename to tests/queries/0_stateless/00875_join_right_nulls.sql diff --git a/dbms/tests/queries/0_stateless/00876_wrong_arraj_join_column.reference b/tests/queries/0_stateless/00876_wrong_arraj_join_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00876_wrong_arraj_join_column.reference rename to tests/queries/0_stateless/00876_wrong_arraj_join_column.reference diff --git a/dbms/tests/queries/0_stateless/00876_wrong_arraj_join_column.sql b/tests/queries/0_stateless/00876_wrong_arraj_join_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00876_wrong_arraj_join_column.sql rename to tests/queries/0_stateless/00876_wrong_arraj_join_column.sql diff --git a/dbms/tests/queries/0_stateless/00877_memory_limit_for_new_delete.reference b/tests/queries/0_stateless/00877_memory_limit_for_new_delete.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00877_memory_limit_for_new_delete.reference rename to tests/queries/0_stateless/00877_memory_limit_for_new_delete.reference diff --git a/dbms/tests/queries/0_stateless/00877_memory_limit_for_new_delete.sql b/tests/queries/0_stateless/00877_memory_limit_for_new_delete.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00877_memory_limit_for_new_delete.sql rename to tests/queries/0_stateless/00877_memory_limit_for_new_delete.sql diff --git a/dbms/tests/queries/0_stateless/00878_join_unexpected_results.reference b/tests/queries/0_stateless/00878_join_unexpected_results.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00878_join_unexpected_results.reference rename to tests/queries/0_stateless/00878_join_unexpected_results.reference diff --git a/dbms/tests/queries/0_stateless/00878_join_unexpected_results.sql b/tests/queries/0_stateless/00878_join_unexpected_results.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00878_join_unexpected_results.sql rename to tests/queries/0_stateless/00878_join_unexpected_results.sql diff --git a/dbms/tests/queries/0_stateless/00879_cast_to_decimal_crash.reference b/tests/queries/0_stateless/00879_cast_to_decimal_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00879_cast_to_decimal_crash.reference rename to tests/queries/0_stateless/00879_cast_to_decimal_crash.reference diff --git a/dbms/tests/queries/0_stateless/00879_cast_to_decimal_crash.sql b/tests/queries/0_stateless/00879_cast_to_decimal_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00879_cast_to_decimal_crash.sql rename to tests/queries/0_stateless/00879_cast_to_decimal_crash.sql diff --git a/dbms/tests/queries/0_stateless/00880_decimal_in_key.reference b/tests/queries/0_stateless/00880_decimal_in_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00880_decimal_in_key.reference rename to tests/queries/0_stateless/00880_decimal_in_key.reference diff --git a/dbms/tests/queries/0_stateless/00880_decimal_in_key.sql b/tests/queries/0_stateless/00880_decimal_in_key.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00880_decimal_in_key.sql rename to tests/queries/0_stateless/00880_decimal_in_key.sql diff --git a/dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.reference b/tests/queries/0_stateless/00881_unknown_identifier_in_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.reference rename to tests/queries/0_stateless/00881_unknown_identifier_in_in.reference diff --git a/dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.sql b/tests/queries/0_stateless/00881_unknown_identifier_in_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.sql rename to tests/queries/0_stateless/00881_unknown_identifier_in_in.sql diff --git a/dbms/tests/queries/0_stateless/00882_multiple_join_no_alias.reference b/tests/queries/0_stateless/00882_multiple_join_no_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00882_multiple_join_no_alias.reference rename to tests/queries/0_stateless/00882_multiple_join_no_alias.reference diff --git a/dbms/tests/queries/0_stateless/00882_multiple_join_no_alias.sql b/tests/queries/0_stateless/00882_multiple_join_no_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00882_multiple_join_no_alias.sql rename to tests/queries/0_stateless/00882_multiple_join_no_alias.sql diff --git a/dbms/tests/queries/0_stateless/00897_flatten.reference b/tests/queries/0_stateless/00897_flatten.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00897_flatten.reference rename to tests/queries/0_stateless/00897_flatten.reference diff --git a/dbms/tests/queries/0_stateless/00897_flatten.sql b/tests/queries/0_stateless/00897_flatten.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00897_flatten.sql rename to tests/queries/0_stateless/00897_flatten.sql diff --git a/dbms/tests/queries/0_stateless/00898_parsing_bad_diagnostic_message.reference b/tests/queries/0_stateless/00898_parsing_bad_diagnostic_message.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00898_parsing_bad_diagnostic_message.reference rename to tests/queries/0_stateless/00898_parsing_bad_diagnostic_message.reference diff --git a/dbms/tests/queries/0_stateless/00898_parsing_bad_diagnostic_message.sh b/tests/queries/0_stateless/00898_parsing_bad_diagnostic_message.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00898_parsing_bad_diagnostic_message.sh rename to tests/queries/0_stateless/00898_parsing_bad_diagnostic_message.sh diff --git a/dbms/tests/queries/0_stateless/00898_quantile_timing_parameter_check.reference b/tests/queries/0_stateless/00898_quantile_timing_parameter_check.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00898_quantile_timing_parameter_check.reference rename to tests/queries/0_stateless/00898_quantile_timing_parameter_check.reference diff --git a/dbms/tests/queries/0_stateless/00898_quantile_timing_parameter_check.sql b/tests/queries/0_stateless/00898_quantile_timing_parameter_check.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00898_quantile_timing_parameter_check.sql rename to tests/queries/0_stateless/00898_quantile_timing_parameter_check.sql diff --git a/dbms/tests/queries/0_stateless/00899_long_attach_memory_limit.reference b/tests/queries/0_stateless/00899_long_attach_memory_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00899_long_attach_memory_limit.reference rename to tests/queries/0_stateless/00899_long_attach_memory_limit.reference diff --git a/dbms/tests/queries/0_stateless/00899_long_attach_memory_limit.sql b/tests/queries/0_stateless/00899_long_attach_memory_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00899_long_attach_memory_limit.sql rename to tests/queries/0_stateless/00899_long_attach_memory_limit.sql diff --git a/dbms/tests/queries/0_stateless/00900_entropy_shard.reference b/tests/queries/0_stateless/00900_entropy_shard.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00900_entropy_shard.reference rename to tests/queries/0_stateless/00900_entropy_shard.reference diff --git a/dbms/tests/queries/0_stateless/00900_entropy_shard.sql b/tests/queries/0_stateless/00900_entropy_shard.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00900_entropy_shard.sql rename to tests/queries/0_stateless/00900_entropy_shard.sql diff --git a/dbms/tests/queries/0_stateless/00900_orc_load.reference b/tests/queries/0_stateless/00900_orc_load.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00900_orc_load.reference rename to tests/queries/0_stateless/00900_orc_load.reference diff --git a/dbms/tests/queries/0_stateless/00900_orc_load.sh b/tests/queries/0_stateless/00900_orc_load.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00900_orc_load.sh rename to tests/queries/0_stateless/00900_orc_load.sh diff --git a/dbms/tests/queries/0_stateless/00900_parquet.reference b/tests/queries/0_stateless/00900_parquet.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00900_parquet.reference rename to tests/queries/0_stateless/00900_parquet.reference diff --git a/dbms/tests/queries/0_stateless/00900_parquet.sh b/tests/queries/0_stateless/00900_parquet.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00900_parquet.sh rename to tests/queries/0_stateless/00900_parquet.sh diff --git a/dbms/tests/queries/0_stateless/00900_parquet_create_table_columns.pl b/tests/queries/0_stateless/00900_parquet_create_table_columns.pl similarity index 100% rename from dbms/tests/queries/0_stateless/00900_parquet_create_table_columns.pl rename to tests/queries/0_stateless/00900_parquet_create_table_columns.pl diff --git a/dbms/tests/queries/0_stateless/00900_parquet_decimal.reference b/tests/queries/0_stateless/00900_parquet_decimal.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00900_parquet_decimal.reference rename to tests/queries/0_stateless/00900_parquet_decimal.reference diff --git a/dbms/tests/queries/0_stateless/00900_parquet_decimal.sh b/tests/queries/0_stateless/00900_parquet_decimal.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00900_parquet_decimal.sh rename to tests/queries/0_stateless/00900_parquet_decimal.sh diff --git a/dbms/tests/queries/0_stateless/00900_parquet_load.reference b/tests/queries/0_stateless/00900_parquet_load.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00900_parquet_load.reference rename to tests/queries/0_stateless/00900_parquet_load.reference diff --git a/dbms/tests/queries/0_stateless/00900_parquet_load.sh b/tests/queries/0_stateless/00900_parquet_load.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00900_parquet_load.sh rename to tests/queries/0_stateless/00900_parquet_load.sh diff --git a/dbms/tests/queries/0_stateless/00901_joint_entropy.reference b/tests/queries/0_stateless/00901_joint_entropy.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00901_joint_entropy.reference rename to tests/queries/0_stateless/00901_joint_entropy.reference diff --git a/dbms/tests/queries/0_stateless/00901_joint_entropy.sql b/tests/queries/0_stateless/00901_joint_entropy.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00901_joint_entropy.sql rename to tests/queries/0_stateless/00901_joint_entropy.sql diff --git a/dbms/tests/queries/0_stateless/00902_entropy.reference b/tests/queries/0_stateless/00902_entropy.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00902_entropy.reference rename to tests/queries/0_stateless/00902_entropy.reference diff --git a/dbms/tests/queries/0_stateless/00902_entropy.sql b/tests/queries/0_stateless/00902_entropy.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00902_entropy.sql rename to tests/queries/0_stateless/00902_entropy.sql diff --git a/dbms/tests/queries/0_stateless/00903_array_with_constant_function.reference b/tests/queries/0_stateless/00903_array_with_constant_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00903_array_with_constant_function.reference rename to tests/queries/0_stateless/00903_array_with_constant_function.reference diff --git a/dbms/tests/queries/0_stateless/00903_array_with_constant_function.sql b/tests/queries/0_stateless/00903_array_with_constant_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00903_array_with_constant_function.sql rename to tests/queries/0_stateless/00903_array_with_constant_function.sql diff --git a/dbms/tests/queries/0_stateless/00904_array_with_constant_2.reference b/tests/queries/0_stateless/00904_array_with_constant_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00904_array_with_constant_2.reference rename to tests/queries/0_stateless/00904_array_with_constant_2.reference diff --git a/dbms/tests/queries/0_stateless/00904_array_with_constant_2.sql b/tests/queries/0_stateless/00904_array_with_constant_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00904_array_with_constant_2.sql rename to tests/queries/0_stateless/00904_array_with_constant_2.sql diff --git a/dbms/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.reference b/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.reference rename to tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.reference diff --git a/dbms/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.sql b/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.sql rename to tests/queries/0_stateless/00905_compile_expressions_compare_big_dates.sql diff --git a/dbms/tests/queries/0_stateless/00905_field_with_aggregate_function_state.reference b/tests/queries/0_stateless/00905_field_with_aggregate_function_state.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00905_field_with_aggregate_function_state.reference rename to tests/queries/0_stateless/00905_field_with_aggregate_function_state.reference diff --git a/dbms/tests/queries/0_stateless/00905_field_with_aggregate_function_state.sql b/tests/queries/0_stateless/00905_field_with_aggregate_function_state.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00905_field_with_aggregate_function_state.sql rename to tests/queries/0_stateless/00905_field_with_aggregate_function_state.sql diff --git a/dbms/tests/queries/0_stateless/00906_low_cardinality_cache.reference b/tests/queries/0_stateless/00906_low_cardinality_cache.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00906_low_cardinality_cache.reference rename to tests/queries/0_stateless/00906_low_cardinality_cache.reference diff --git a/dbms/tests/queries/0_stateless/00906_low_cardinality_cache.sql b/tests/queries/0_stateless/00906_low_cardinality_cache.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00906_low_cardinality_cache.sql rename to tests/queries/0_stateless/00906_low_cardinality_cache.sql diff --git a/dbms/tests/queries/0_stateless/00906_low_cardinality_const_argument.reference b/tests/queries/0_stateless/00906_low_cardinality_const_argument.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00906_low_cardinality_const_argument.reference rename to tests/queries/0_stateless/00906_low_cardinality_const_argument.reference diff --git a/dbms/tests/queries/0_stateless/00906_low_cardinality_const_argument.sql b/tests/queries/0_stateless/00906_low_cardinality_const_argument.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00906_low_cardinality_const_argument.sql rename to tests/queries/0_stateless/00906_low_cardinality_const_argument.sql diff --git a/dbms/tests/queries/0_stateless/00906_low_cardinality_rollup.reference b/tests/queries/0_stateless/00906_low_cardinality_rollup.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00906_low_cardinality_rollup.reference rename to tests/queries/0_stateless/00906_low_cardinality_rollup.reference diff --git a/dbms/tests/queries/0_stateless/00906_low_cardinality_rollup.sql b/tests/queries/0_stateless/00906_low_cardinality_rollup.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00906_low_cardinality_rollup.sql rename to tests/queries/0_stateless/00906_low_cardinality_rollup.sql diff --git a/dbms/tests/queries/0_stateless/00907_set_index_max_rows.reference b/tests/queries/0_stateless/00907_set_index_max_rows.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00907_set_index_max_rows.reference rename to tests/queries/0_stateless/00907_set_index_max_rows.reference diff --git a/dbms/tests/queries/0_stateless/00907_set_index_max_rows.sh b/tests/queries/0_stateless/00907_set_index_max_rows.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00907_set_index_max_rows.sh rename to tests/queries/0_stateless/00907_set_index_max_rows.sh diff --git a/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.reference b/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.reference rename to tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.reference diff --git a/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.sql b/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.sql rename to tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality.sql diff --git a/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.reference b/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.reference rename to tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.reference diff --git a/dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.sql b/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.sql rename to tests/queries/0_stateless/00907_set_index_with_nullable_and_low_cardinality_bug.sql diff --git a/dbms/tests/queries/0_stateless/00908_analyze_query.reference b/tests/queries/0_stateless/00908_analyze_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00908_analyze_query.reference rename to tests/queries/0_stateless/00908_analyze_query.reference diff --git a/dbms/tests/queries/0_stateless/00908_analyze_query.sql b/tests/queries/0_stateless/00908_analyze_query.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00908_analyze_query.sql rename to tests/queries/0_stateless/00908_analyze_query.sql diff --git a/dbms/tests/queries/0_stateless/00908_bloom_filter_index.reference b/tests/queries/0_stateless/00908_bloom_filter_index.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00908_bloom_filter_index.reference rename to tests/queries/0_stateless/00908_bloom_filter_index.reference diff --git a/dbms/tests/queries/0_stateless/00908_bloom_filter_index.sh b/tests/queries/0_stateless/00908_bloom_filter_index.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00908_bloom_filter_index.sh rename to tests/queries/0_stateless/00908_bloom_filter_index.sh diff --git a/dbms/tests/queries/0_stateless/00908_long_http_insert.reference b/tests/queries/0_stateless/00908_long_http_insert.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00908_long_http_insert.reference rename to tests/queries/0_stateless/00908_long_http_insert.reference diff --git a/dbms/tests/queries/0_stateless/00908_long_http_insert.sh b/tests/queries/0_stateless/00908_long_http_insert.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00908_long_http_insert.sh rename to tests/queries/0_stateless/00908_long_http_insert.sh diff --git a/dbms/tests/queries/0_stateless/00909_arrayEnumerateUniq.reference b/tests/queries/0_stateless/00909_arrayEnumerateUniq.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00909_arrayEnumerateUniq.reference rename to tests/queries/0_stateless/00909_arrayEnumerateUniq.reference diff --git a/dbms/tests/queries/0_stateless/00909_arrayEnumerateUniq.sql b/tests/queries/0_stateless/00909_arrayEnumerateUniq.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00909_arrayEnumerateUniq.sql rename to tests/queries/0_stateless/00909_arrayEnumerateUniq.sql diff --git a/dbms/tests/queries/0_stateless/00909_kill_not_initialized_query.reference b/tests/queries/0_stateless/00909_kill_not_initialized_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00909_kill_not_initialized_query.reference rename to tests/queries/0_stateless/00909_kill_not_initialized_query.reference diff --git a/dbms/tests/queries/0_stateless/00909_kill_not_initialized_query.sh b/tests/queries/0_stateless/00909_kill_not_initialized_query.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00909_kill_not_initialized_query.sh rename to tests/queries/0_stateless/00909_kill_not_initialized_query.sh diff --git a/dbms/tests/queries/0_stateless/00909_ngram_distance.reference b/tests/queries/0_stateless/00909_ngram_distance.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00909_ngram_distance.reference rename to tests/queries/0_stateless/00909_ngram_distance.reference diff --git a/dbms/tests/queries/0_stateless/00909_ngram_distance.sql b/tests/queries/0_stateless/00909_ngram_distance.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00909_ngram_distance.sql rename to tests/queries/0_stateless/00909_ngram_distance.sql diff --git a/dbms/tests/queries/0_stateless/00910_aggregation_timeseriesgroupsum.reference b/tests/queries/0_stateless/00910_aggregation_timeseriesgroupsum.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00910_aggregation_timeseriesgroupsum.reference rename to tests/queries/0_stateless/00910_aggregation_timeseriesgroupsum.reference diff --git a/dbms/tests/queries/0_stateless/00910_aggregation_timeseriesgroupsum.sql b/tests/queries/0_stateless/00910_aggregation_timeseriesgroupsum.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00910_aggregation_timeseriesgroupsum.sql rename to tests/queries/0_stateless/00910_aggregation_timeseriesgroupsum.sql diff --git a/dbms/tests/queries/0_stateless/00910_buffer_prewhere.reference b/tests/queries/0_stateless/00910_buffer_prewhere.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00910_buffer_prewhere.reference rename to tests/queries/0_stateless/00910_buffer_prewhere.reference diff --git a/dbms/tests/queries/0_stateless/00910_buffer_prewhere.sql b/tests/queries/0_stateless/00910_buffer_prewhere.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00910_buffer_prewhere.sql rename to tests/queries/0_stateless/00910_buffer_prewhere.sql diff --git a/dbms/tests/queries/0_stateless/00910_client_window_size_detection.reference b/tests/queries/0_stateless/00910_client_window_size_detection.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00910_client_window_size_detection.reference rename to tests/queries/0_stateless/00910_client_window_size_detection.reference diff --git a/dbms/tests/queries/0_stateless/00910_client_window_size_detection.sh b/tests/queries/0_stateless/00910_client_window_size_detection.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00910_client_window_size_detection.sh rename to tests/queries/0_stateless/00910_client_window_size_detection.sh diff --git a/dbms/tests/queries/0_stateless/00910_crash_when_distributed_modify_order_by.reference b/tests/queries/0_stateless/00910_crash_when_distributed_modify_order_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00910_crash_when_distributed_modify_order_by.reference rename to tests/queries/0_stateless/00910_crash_when_distributed_modify_order_by.reference diff --git a/dbms/tests/queries/0_stateless/00910_crash_when_distributed_modify_order_by.sql b/tests/queries/0_stateless/00910_crash_when_distributed_modify_order_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00910_crash_when_distributed_modify_order_by.sql rename to tests/queries/0_stateless/00910_crash_when_distributed_modify_order_by.sql diff --git a/dbms/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.reference b/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.reference rename to tests/queries/0_stateless/00910_decimal_group_array_crash_3783.reference diff --git a/dbms/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.sql b/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00910_decimal_group_array_crash_3783.sql rename to tests/queries/0_stateless/00910_decimal_group_array_crash_3783.sql diff --git a/dbms/tests/queries/0_stateless/00910_zookeeper_custom_compression_codecs_replicated.reference b/tests/queries/0_stateless/00910_zookeeper_custom_compression_codecs_replicated.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00910_zookeeper_custom_compression_codecs_replicated.reference rename to tests/queries/0_stateless/00910_zookeeper_custom_compression_codecs_replicated.reference diff --git a/dbms/tests/queries/0_stateless/00910_zookeeper_custom_compression_codecs_replicated.sql b/tests/queries/0_stateless/00910_zookeeper_custom_compression_codecs_replicated.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00910_zookeeper_custom_compression_codecs_replicated.sql rename to tests/queries/0_stateless/00910_zookeeper_custom_compression_codecs_replicated.sql diff --git a/dbms/tests/queries/0_stateless/00910_zookeeper_test_alter_compression_codecs.reference b/tests/queries/0_stateless/00910_zookeeper_test_alter_compression_codecs.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00910_zookeeper_test_alter_compression_codecs.reference rename to tests/queries/0_stateless/00910_zookeeper_test_alter_compression_codecs.reference diff --git a/dbms/tests/queries/0_stateless/00910_zookeeper_test_alter_compression_codecs.sql b/tests/queries/0_stateless/00910_zookeeper_test_alter_compression_codecs.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00910_zookeeper_test_alter_compression_codecs.sql rename to tests/queries/0_stateless/00910_zookeeper_test_alter_compression_codecs.sql diff --git a/dbms/tests/queries/0_stateless/00911_tautological_compare.reference b/tests/queries/0_stateless/00911_tautological_compare.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00911_tautological_compare.reference rename to tests/queries/0_stateless/00911_tautological_compare.reference diff --git a/dbms/tests/queries/0_stateless/00911_tautological_compare.sql b/tests/queries/0_stateless/00911_tautological_compare.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00911_tautological_compare.sql rename to tests/queries/0_stateless/00911_tautological_compare.sql diff --git a/dbms/tests/queries/0_stateless/00912_string_comparison.reference b/tests/queries/0_stateless/00912_string_comparison.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00912_string_comparison.reference rename to tests/queries/0_stateless/00912_string_comparison.reference diff --git a/dbms/tests/queries/0_stateless/00912_string_comparison.sql b/tests/queries/0_stateless/00912_string_comparison.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00912_string_comparison.sql rename to tests/queries/0_stateless/00912_string_comparison.sql diff --git a/dbms/tests/queries/0_stateless/00913_many_threads.reference b/tests/queries/0_stateless/00913_many_threads.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00913_many_threads.reference rename to tests/queries/0_stateless/00913_many_threads.reference diff --git a/dbms/tests/queries/0_stateless/00913_many_threads.sql b/tests/queries/0_stateless/00913_many_threads.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00913_many_threads.sql rename to tests/queries/0_stateless/00913_many_threads.sql diff --git a/dbms/tests/queries/0_stateless/00914_join_bgranvea.reference b/tests/queries/0_stateless/00914_join_bgranvea.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00914_join_bgranvea.reference rename to tests/queries/0_stateless/00914_join_bgranvea.reference diff --git a/dbms/tests/queries/0_stateless/00914_join_bgranvea.sql b/tests/queries/0_stateless/00914_join_bgranvea.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00914_join_bgranvea.sql rename to tests/queries/0_stateless/00914_join_bgranvea.sql diff --git a/dbms/tests/queries/0_stateless/00914_replicate.reference b/tests/queries/0_stateless/00914_replicate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00914_replicate.reference rename to tests/queries/0_stateless/00914_replicate.reference diff --git a/dbms/tests/queries/0_stateless/00914_replicate.sql b/tests/queries/0_stateless/00914_replicate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00914_replicate.sql rename to tests/queries/0_stateless/00914_replicate.sql diff --git a/dbms/tests/queries/0_stateless/00915_simple_aggregate_function.reference b/tests/queries/0_stateless/00915_simple_aggregate_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00915_simple_aggregate_function.reference rename to tests/queries/0_stateless/00915_simple_aggregate_function.reference diff --git a/dbms/tests/queries/0_stateless/00915_simple_aggregate_function.sql b/tests/queries/0_stateless/00915_simple_aggregate_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00915_simple_aggregate_function.sql rename to tests/queries/0_stateless/00915_simple_aggregate_function.sql diff --git a/dbms/tests/queries/0_stateless/00915_tuple_orantius.reference b/tests/queries/0_stateless/00915_tuple_orantius.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00915_tuple_orantius.reference rename to tests/queries/0_stateless/00915_tuple_orantius.reference diff --git a/dbms/tests/queries/0_stateless/00915_tuple_orantius.sql b/tests/queries/0_stateless/00915_tuple_orantius.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00915_tuple_orantius.sql rename to tests/queries/0_stateless/00915_tuple_orantius.sql diff --git a/dbms/tests/queries/0_stateless/00916_add_materialized_column_after.reference b/tests/queries/0_stateless/00916_add_materialized_column_after.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00916_add_materialized_column_after.reference rename to tests/queries/0_stateless/00916_add_materialized_column_after.reference diff --git a/dbms/tests/queries/0_stateless/00916_add_materialized_column_after.sql b/tests/queries/0_stateless/00916_add_materialized_column_after.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00916_add_materialized_column_after.sql rename to tests/queries/0_stateless/00916_add_materialized_column_after.sql diff --git a/dbms/tests/queries/0_stateless/00916_create_or_replace_view.reference b/tests/queries/0_stateless/00916_create_or_replace_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00916_create_or_replace_view.reference rename to tests/queries/0_stateless/00916_create_or_replace_view.reference diff --git a/dbms/tests/queries/0_stateless/00916_create_or_replace_view.sql b/tests/queries/0_stateless/00916_create_or_replace_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00916_create_or_replace_view.sql rename to tests/queries/0_stateless/00916_create_or_replace_view.sql diff --git a/dbms/tests/queries/0_stateless/00916_join_using_duplicate_columns.reference b/tests/queries/0_stateless/00916_join_using_duplicate_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00916_join_using_duplicate_columns.reference rename to tests/queries/0_stateless/00916_join_using_duplicate_columns.reference diff --git a/dbms/tests/queries/0_stateless/00916_join_using_duplicate_columns.sql b/tests/queries/0_stateless/00916_join_using_duplicate_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00916_join_using_duplicate_columns.sql rename to tests/queries/0_stateless/00916_join_using_duplicate_columns.sql diff --git a/dbms/tests/queries/0_stateless/00917_least_sqr.reference b/tests/queries/0_stateless/00917_least_sqr.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00917_least_sqr.reference rename to tests/queries/0_stateless/00917_least_sqr.reference diff --git a/dbms/tests/queries/0_stateless/00917_least_sqr.sql b/tests/queries/0_stateless/00917_least_sqr.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00917_least_sqr.sql rename to tests/queries/0_stateless/00917_least_sqr.sql diff --git a/dbms/tests/queries/0_stateless/00917_multiple_joins_denny_crane.reference b/tests/queries/0_stateless/00917_multiple_joins_denny_crane.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00917_multiple_joins_denny_crane.reference rename to tests/queries/0_stateless/00917_multiple_joins_denny_crane.reference diff --git a/dbms/tests/queries/0_stateless/00917_multiple_joins_denny_crane.sql b/tests/queries/0_stateless/00917_multiple_joins_denny_crane.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00917_multiple_joins_denny_crane.sql rename to tests/queries/0_stateless/00917_multiple_joins_denny_crane.sql diff --git a/dbms/tests/queries/0_stateless/00918_has_unsufficient_type_check.reference b/tests/queries/0_stateless/00918_has_unsufficient_type_check.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00918_has_unsufficient_type_check.reference rename to tests/queries/0_stateless/00918_has_unsufficient_type_check.reference diff --git a/dbms/tests/queries/0_stateless/00918_has_unsufficient_type_check.sql b/tests/queries/0_stateless/00918_has_unsufficient_type_check.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00918_has_unsufficient_type_check.sql rename to tests/queries/0_stateless/00918_has_unsufficient_type_check.sql diff --git a/dbms/tests/queries/0_stateless/00918_json_functions.reference b/tests/queries/0_stateless/00918_json_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00918_json_functions.reference rename to tests/queries/0_stateless/00918_json_functions.reference diff --git a/dbms/tests/queries/0_stateless/00918_json_functions.sql b/tests/queries/0_stateless/00918_json_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00918_json_functions.sql rename to tests/queries/0_stateless/00918_json_functions.sql diff --git a/dbms/tests/queries/0_stateless/00919_histogram_merge.reference b/tests/queries/0_stateless/00919_histogram_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00919_histogram_merge.reference rename to tests/queries/0_stateless/00919_histogram_merge.reference diff --git a/dbms/tests/queries/0_stateless/00919_histogram_merge.sql b/tests/queries/0_stateless/00919_histogram_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00919_histogram_merge.sql rename to tests/queries/0_stateless/00919_histogram_merge.sql diff --git a/dbms/tests/queries/0_stateless/00919_sum_aggregate_states_constants.reference b/tests/queries/0_stateless/00919_sum_aggregate_states_constants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00919_sum_aggregate_states_constants.reference rename to tests/queries/0_stateless/00919_sum_aggregate_states_constants.reference diff --git a/dbms/tests/queries/0_stateless/00919_sum_aggregate_states_constants.sql b/tests/queries/0_stateless/00919_sum_aggregate_states_constants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00919_sum_aggregate_states_constants.sql rename to tests/queries/0_stateless/00919_sum_aggregate_states_constants.sql diff --git a/dbms/tests/queries/0_stateless/00920_multiply_aggregate_states_constants.reference b/tests/queries/0_stateless/00920_multiply_aggregate_states_constants.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00920_multiply_aggregate_states_constants.reference rename to tests/queries/0_stateless/00920_multiply_aggregate_states_constants.reference diff --git a/dbms/tests/queries/0_stateless/00920_multiply_aggregate_states_constants.sql b/tests/queries/0_stateless/00920_multiply_aggregate_states_constants.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00920_multiply_aggregate_states_constants.sql rename to tests/queries/0_stateless/00920_multiply_aggregate_states_constants.sql diff --git a/dbms/tests/queries/0_stateless/00921_datetime64_basic.reference b/tests/queries/0_stateless/00921_datetime64_basic.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00921_datetime64_basic.reference rename to tests/queries/0_stateless/00921_datetime64_basic.reference diff --git a/dbms/tests/queries/0_stateless/00921_datetime64_basic.sql b/tests/queries/0_stateless/00921_datetime64_basic.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00921_datetime64_basic.sql rename to tests/queries/0_stateless/00921_datetime64_basic.sql diff --git a/dbms/tests/queries/0_stateless/00921_datetime64_compatibility.python b/tests/queries/0_stateless/00921_datetime64_compatibility.python similarity index 100% rename from dbms/tests/queries/0_stateless/00921_datetime64_compatibility.python rename to tests/queries/0_stateless/00921_datetime64_compatibility.python diff --git a/dbms/tests/queries/0_stateless/00921_datetime64_compatibility.reference b/tests/queries/0_stateless/00921_datetime64_compatibility.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00921_datetime64_compatibility.reference rename to tests/queries/0_stateless/00921_datetime64_compatibility.reference diff --git a/dbms/tests/queries/0_stateless/00921_datetime64_compatibility.sh b/tests/queries/0_stateless/00921_datetime64_compatibility.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00921_datetime64_compatibility.sh rename to tests/queries/0_stateless/00921_datetime64_compatibility.sh diff --git a/dbms/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.reference b/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.reference rename to tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.reference diff --git a/dbms/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.sql b/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.sql rename to tests/queries/0_stateless/00925_zookeeper_empty_replicated_merge_tree_optimize_final.sql diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_collapsing_merge_tree.reference b/tests/queries/0_stateless/00926_adaptive_index_granularity_collapsing_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_collapsing_merge_tree.reference rename to tests/queries/0_stateless/00926_adaptive_index_granularity_collapsing_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_collapsing_merge_tree.sql b/tests/queries/0_stateless/00926_adaptive_index_granularity_collapsing_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_collapsing_merge_tree.sql rename to tests/queries/0_stateless/00926_adaptive_index_granularity_collapsing_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_merge_tree.reference b/tests/queries/0_stateless/00926_adaptive_index_granularity_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_merge_tree.reference rename to tests/queries/0_stateless/00926_adaptive_index_granularity_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_merge_tree.sql b/tests/queries/0_stateless/00926_adaptive_index_granularity_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_merge_tree.sql rename to tests/queries/0_stateless/00926_adaptive_index_granularity_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_pk.reference b/tests/queries/0_stateless/00926_adaptive_index_granularity_pk.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_pk.reference rename to tests/queries/0_stateless/00926_adaptive_index_granularity_pk.reference diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_pk.sql b/tests/queries/0_stateless/00926_adaptive_index_granularity_pk.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_pk.sql rename to tests/queries/0_stateless/00926_adaptive_index_granularity_pk.sql diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_replacing_merge_tree.reference b/tests/queries/0_stateless/00926_adaptive_index_granularity_replacing_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_replacing_merge_tree.reference rename to tests/queries/0_stateless/00926_adaptive_index_granularity_replacing_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_replacing_merge_tree.sql b/tests/queries/0_stateless/00926_adaptive_index_granularity_replacing_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_replacing_merge_tree.sql rename to tests/queries/0_stateless/00926_adaptive_index_granularity_replacing_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_versioned_collapsing_merge_tree.reference b/tests/queries/0_stateless/00926_adaptive_index_granularity_versioned_collapsing_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_versioned_collapsing_merge_tree.reference rename to tests/queries/0_stateless/00926_adaptive_index_granularity_versioned_collapsing_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_versioned_collapsing_merge_tree.sql b/tests/queries/0_stateless/00926_adaptive_index_granularity_versioned_collapsing_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00926_adaptive_index_granularity_versioned_collapsing_merge_tree.sql rename to tests/queries/0_stateless/00926_adaptive_index_granularity_versioned_collapsing_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00926_geo_to_h3.reference b/tests/queries/0_stateless/00926_geo_to_h3.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00926_geo_to_h3.reference rename to tests/queries/0_stateless/00926_geo_to_h3.reference diff --git a/dbms/tests/queries/0_stateless/00926_geo_to_h3.sql b/tests/queries/0_stateless/00926_geo_to_h3.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00926_geo_to_h3.sql rename to tests/queries/0_stateless/00926_geo_to_h3.sql diff --git a/dbms/tests/queries/0_stateless/00926_multimatch.reference b/tests/queries/0_stateless/00926_multimatch.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00926_multimatch.reference rename to tests/queries/0_stateless/00926_multimatch.reference diff --git a/dbms/tests/queries/0_stateless/00926_multimatch.sql b/tests/queries/0_stateless/00926_multimatch.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00926_multimatch.sql rename to tests/queries/0_stateless/00926_multimatch.sql diff --git a/dbms/tests/queries/0_stateless/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree.reference b/tests/queries/0_stateless/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree.reference rename to tests/queries/0_stateless/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree.sql b/tests/queries/0_stateless/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree.sql rename to tests/queries/0_stateless/00926_zookeeper_adaptive_index_granularity_replicated_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_correct_bt.reference b/tests/queries/0_stateless/00927_asof_join_correct_bt.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_join_correct_bt.reference rename to tests/queries/0_stateless/00927_asof_join_correct_bt.reference diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_correct_bt.sql b/tests/queries/0_stateless/00927_asof_join_correct_bt.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_join_correct_bt.sql rename to tests/queries/0_stateless/00927_asof_join_correct_bt.sql diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_long.reference b/tests/queries/0_stateless/00927_asof_join_long.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_join_long.reference rename to tests/queries/0_stateless/00927_asof_join_long.reference diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_long.sql b/tests/queries/0_stateless/00927_asof_join_long.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_join_long.sql rename to tests/queries/0_stateless/00927_asof_join_long.sql diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.reference b/tests/queries/0_stateless/00927_asof_join_noninclusive.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.reference rename to tests/queries/0_stateless/00927_asof_join_noninclusive.reference diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql b/tests/queries/0_stateless/00927_asof_join_noninclusive.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_join_noninclusive.sql rename to tests/queries/0_stateless/00927_asof_join_noninclusive.sql diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_other_types.reference b/tests/queries/0_stateless/00927_asof_join_other_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_join_other_types.reference rename to tests/queries/0_stateless/00927_asof_join_other_types.reference diff --git a/dbms/tests/queries/0_stateless/00927_asof_join_other_types.sh b/tests/queries/0_stateless/00927_asof_join_other_types.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_join_other_types.sh rename to tests/queries/0_stateless/00927_asof_join_other_types.sh diff --git a/dbms/tests/queries/0_stateless/00927_asof_joins.reference b/tests/queries/0_stateless/00927_asof_joins.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_joins.reference rename to tests/queries/0_stateless/00927_asof_joins.reference diff --git a/dbms/tests/queries/0_stateless/00927_asof_joins.sql b/tests/queries/0_stateless/00927_asof_joins.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00927_asof_joins.sql rename to tests/queries/0_stateless/00927_asof_joins.sql diff --git a/dbms/tests/queries/0_stateless/00927_disable_hyperscan.reference b/tests/queries/0_stateless/00927_disable_hyperscan.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00927_disable_hyperscan.reference rename to tests/queries/0_stateless/00927_disable_hyperscan.reference diff --git a/dbms/tests/queries/0_stateless/00927_disable_hyperscan.sql b/tests/queries/0_stateless/00927_disable_hyperscan.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00927_disable_hyperscan.sql rename to tests/queries/0_stateless/00927_disable_hyperscan.sql diff --git a/dbms/tests/queries/0_stateless/00928_multi_match_constant_constant.reference b/tests/queries/0_stateless/00928_multi_match_constant_constant.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00928_multi_match_constant_constant.reference rename to tests/queries/0_stateless/00928_multi_match_constant_constant.reference diff --git a/dbms/tests/queries/0_stateless/00928_multi_match_constant_constant.sql b/tests/queries/0_stateless/00928_multi_match_constant_constant.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00928_multi_match_constant_constant.sql rename to tests/queries/0_stateless/00928_multi_match_constant_constant.sql diff --git a/dbms/tests/queries/0_stateless/00929_multi_match_edit_distance.reference b/tests/queries/0_stateless/00929_multi_match_edit_distance.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00929_multi_match_edit_distance.reference rename to tests/queries/0_stateless/00929_multi_match_edit_distance.reference diff --git a/dbms/tests/queries/0_stateless/00929_multi_match_edit_distance.sql b/tests/queries/0_stateless/00929_multi_match_edit_distance.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00929_multi_match_edit_distance.sql rename to tests/queries/0_stateless/00929_multi_match_edit_distance.sql diff --git a/dbms/tests/queries/0_stateless/00930_arrayIntersect.reference b/tests/queries/0_stateless/00930_arrayIntersect.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00930_arrayIntersect.reference rename to tests/queries/0_stateless/00930_arrayIntersect.reference diff --git a/dbms/tests/queries/0_stateless/00930_arrayIntersect.sql b/tests/queries/0_stateless/00930_arrayIntersect.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00930_arrayIntersect.sql rename to tests/queries/0_stateless/00930_arrayIntersect.sql diff --git a/dbms/tests/queries/0_stateless/00930_max_partitions_per_insert_block.reference b/tests/queries/0_stateless/00930_max_partitions_per_insert_block.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00930_max_partitions_per_insert_block.reference rename to tests/queries/0_stateless/00930_max_partitions_per_insert_block.reference diff --git a/dbms/tests/queries/0_stateless/00930_max_partitions_per_insert_block.sql b/tests/queries/0_stateless/00930_max_partitions_per_insert_block.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00930_max_partitions_per_insert_block.sql rename to tests/queries/0_stateless/00930_max_partitions_per_insert_block.sql diff --git a/dbms/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.reference b/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.reference rename to tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.reference diff --git a/dbms/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.sql b/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.sql rename to tests/queries/0_stateless/00931_low_cardinality_nullable_aggregate_function_type.sql diff --git a/dbms/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.reference b/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.reference rename to tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.reference diff --git a/dbms/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.sql b/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.sql rename to tests/queries/0_stateless/00931_low_cardinality_read_with_empty_array.sql diff --git a/dbms/tests/queries/0_stateless/00931_low_cardinality_set_index_in_key_condition.reference b/tests/queries/0_stateless/00931_low_cardinality_set_index_in_key_condition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00931_low_cardinality_set_index_in_key_condition.reference rename to tests/queries/0_stateless/00931_low_cardinality_set_index_in_key_condition.reference diff --git a/dbms/tests/queries/0_stateless/00931_low_cardinality_set_index_in_key_condition.sql b/tests/queries/0_stateless/00931_low_cardinality_set_index_in_key_condition.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00931_low_cardinality_set_index_in_key_condition.sql rename to tests/queries/0_stateless/00931_low_cardinality_set_index_in_key_condition.sql diff --git a/dbms/tests/queries/0_stateless/00932_array_intersect_bug.reference b/tests/queries/0_stateless/00932_array_intersect_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00932_array_intersect_bug.reference rename to tests/queries/0_stateless/00932_array_intersect_bug.reference diff --git a/dbms/tests/queries/0_stateless/00932_array_intersect_bug.sql b/tests/queries/0_stateless/00932_array_intersect_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00932_array_intersect_bug.sql rename to tests/queries/0_stateless/00932_array_intersect_bug.sql diff --git a/dbms/tests/queries/0_stateless/00932_geohash_support.reference b/tests/queries/0_stateless/00932_geohash_support.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00932_geohash_support.reference rename to tests/queries/0_stateless/00932_geohash_support.reference diff --git a/dbms/tests/queries/0_stateless/00932_geohash_support.sql b/tests/queries/0_stateless/00932_geohash_support.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00932_geohash_support.sql rename to tests/queries/0_stateless/00932_geohash_support.sql diff --git a/dbms/tests/queries/0_stateless/00933_alter_ttl.reference b/tests/queries/0_stateless/00933_alter_ttl.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00933_alter_ttl.reference rename to tests/queries/0_stateless/00933_alter_ttl.reference diff --git a/dbms/tests/queries/0_stateless/00933_alter_ttl.sql b/tests/queries/0_stateless/00933_alter_ttl.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00933_alter_ttl.sql rename to tests/queries/0_stateless/00933_alter_ttl.sql diff --git a/dbms/tests/queries/0_stateless/00933_reserved_word.reference b/tests/queries/0_stateless/00933_reserved_word.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00933_reserved_word.reference rename to tests/queries/0_stateless/00933_reserved_word.reference diff --git a/dbms/tests/queries/0_stateless/00933_reserved_word.sql b/tests/queries/0_stateless/00933_reserved_word.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00933_reserved_word.sql rename to tests/queries/0_stateless/00933_reserved_word.sql diff --git a/dbms/tests/queries/0_stateless/00933_test_fix_extra_seek_on_compressed_cache.reference b/tests/queries/0_stateless/00933_test_fix_extra_seek_on_compressed_cache.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00933_test_fix_extra_seek_on_compressed_cache.reference rename to tests/queries/0_stateless/00933_test_fix_extra_seek_on_compressed_cache.reference diff --git a/dbms/tests/queries/0_stateless/00933_test_fix_extra_seek_on_compressed_cache.sh b/tests/queries/0_stateless/00933_test_fix_extra_seek_on_compressed_cache.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00933_test_fix_extra_seek_on_compressed_cache.sh rename to tests/queries/0_stateless/00933_test_fix_extra_seek_on_compressed_cache.sh diff --git a/dbms/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.reference b/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.reference rename to tests/queries/0_stateless/00933_ttl_replicated_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.sql b/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00933_ttl_replicated_zookeeper.sql rename to tests/queries/0_stateless/00933_ttl_replicated_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00933_ttl_simple.reference b/tests/queries/0_stateless/00933_ttl_simple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00933_ttl_simple.reference rename to tests/queries/0_stateless/00933_ttl_simple.reference diff --git a/dbms/tests/queries/0_stateless/00933_ttl_simple.sql b/tests/queries/0_stateless/00933_ttl_simple.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00933_ttl_simple.sql rename to tests/queries/0_stateless/00933_ttl_simple.sql diff --git a/dbms/tests/queries/0_stateless/00933_ttl_with_default.reference b/tests/queries/0_stateless/00933_ttl_with_default.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00933_ttl_with_default.reference rename to tests/queries/0_stateless/00933_ttl_with_default.reference diff --git a/dbms/tests/queries/0_stateless/00933_ttl_with_default.sql b/tests/queries/0_stateless/00933_ttl_with_default.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00933_ttl_with_default.sql rename to tests/queries/0_stateless/00933_ttl_with_default.sql diff --git a/dbms/tests/queries/0_stateless/00934_is_valid_utf8.reference b/tests/queries/0_stateless/00934_is_valid_utf8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00934_is_valid_utf8.reference rename to tests/queries/0_stateless/00934_is_valid_utf8.reference diff --git a/dbms/tests/queries/0_stateless/00934_is_valid_utf8.sql b/tests/queries/0_stateless/00934_is_valid_utf8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00934_is_valid_utf8.sql rename to tests/queries/0_stateless/00934_is_valid_utf8.sql diff --git a/dbms/tests/queries/0_stateless/00935_to_iso_week_first_year.reference b/tests/queries/0_stateless/00935_to_iso_week_first_year.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00935_to_iso_week_first_year.reference rename to tests/queries/0_stateless/00935_to_iso_week_first_year.reference diff --git a/dbms/tests/queries/0_stateless/00935_to_iso_week_first_year.sql b/tests/queries/0_stateless/00935_to_iso_week_first_year.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00935_to_iso_week_first_year.sql rename to tests/queries/0_stateless/00935_to_iso_week_first_year.sql diff --git a/dbms/tests/queries/0_stateless/00936_crc_functions.reference b/tests/queries/0_stateless/00936_crc_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00936_crc_functions.reference rename to tests/queries/0_stateless/00936_crc_functions.reference diff --git a/dbms/tests/queries/0_stateless/00936_crc_functions.sql b/tests/queries/0_stateless/00936_crc_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00936_crc_functions.sql rename to tests/queries/0_stateless/00936_crc_functions.sql diff --git a/dbms/tests/queries/0_stateless/00936_function_result_with_operator_in.reference b/tests/queries/0_stateless/00936_function_result_with_operator_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00936_function_result_with_operator_in.reference rename to tests/queries/0_stateless/00936_function_result_with_operator_in.reference diff --git a/dbms/tests/queries/0_stateless/00936_function_result_with_operator_in.sql b/tests/queries/0_stateless/00936_function_result_with_operator_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00936_function_result_with_operator_in.sql rename to tests/queries/0_stateless/00936_function_result_with_operator_in.sql diff --git a/dbms/tests/queries/0_stateless/00936_substring_utf8_non_const.reference b/tests/queries/0_stateless/00936_substring_utf8_non_const.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00936_substring_utf8_non_const.reference rename to tests/queries/0_stateless/00936_substring_utf8_non_const.reference diff --git a/dbms/tests/queries/0_stateless/00936_substring_utf8_non_const.sql b/tests/queries/0_stateless/00936_substring_utf8_non_const.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00936_substring_utf8_non_const.sql rename to tests/queries/0_stateless/00936_substring_utf8_non_const.sql diff --git a/dbms/tests/queries/0_stateless/00937_ipv4_cidr_range.reference b/tests/queries/0_stateless/00937_ipv4_cidr_range.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00937_ipv4_cidr_range.reference rename to tests/queries/0_stateless/00937_ipv4_cidr_range.reference diff --git a/dbms/tests/queries/0_stateless/00937_ipv4_cidr_range.sql b/tests/queries/0_stateless/00937_ipv4_cidr_range.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00937_ipv4_cidr_range.sql rename to tests/queries/0_stateless/00937_ipv4_cidr_range.sql diff --git a/dbms/tests/queries/0_stateless/00937_template_output_format.reference b/tests/queries/0_stateless/00937_template_output_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00937_template_output_format.reference rename to tests/queries/0_stateless/00937_template_output_format.reference diff --git a/dbms/tests/queries/0_stateless/00937_template_output_format.sh b/tests/queries/0_stateless/00937_template_output_format.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00937_template_output_format.sh rename to tests/queries/0_stateless/00937_template_output_format.sh diff --git a/dbms/tests/queries/0_stateless/00937_test_use_header_csv.reference b/tests/queries/0_stateless/00937_test_use_header_csv.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00937_test_use_header_csv.reference rename to tests/queries/0_stateless/00937_test_use_header_csv.reference diff --git a/dbms/tests/queries/0_stateless/00937_test_use_header_csv.sh b/tests/queries/0_stateless/00937_test_use_header_csv.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00937_test_use_header_csv.sh rename to tests/queries/0_stateless/00937_test_use_header_csv.sh diff --git a/dbms/tests/queries/0_stateless/00937_test_use_header_tsv.reference b/tests/queries/0_stateless/00937_test_use_header_tsv.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00937_test_use_header_tsv.reference rename to tests/queries/0_stateless/00937_test_use_header_tsv.reference diff --git a/dbms/tests/queries/0_stateless/00937_test_use_header_tsv.sh b/tests/queries/0_stateless/00937_test_use_header_tsv.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00937_test_use_header_tsv.sh rename to tests/queries/0_stateless/00937_test_use_header_tsv.sh diff --git a/dbms/tests/queries/0_stateless/00938_basename.reference b/tests/queries/0_stateless/00938_basename.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00938_basename.reference rename to tests/queries/0_stateless/00938_basename.reference diff --git a/dbms/tests/queries/0_stateless/00938_basename.sql b/tests/queries/0_stateless/00938_basename.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00938_basename.sql rename to tests/queries/0_stateless/00938_basename.sql diff --git a/dbms/tests/queries/0_stateless/00938_dataset_test.reference b/tests/queries/0_stateless/00938_dataset_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00938_dataset_test.reference rename to tests/queries/0_stateless/00938_dataset_test.reference diff --git a/dbms/tests/queries/0_stateless/00938_dataset_test.sql b/tests/queries/0_stateless/00938_dataset_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00938_dataset_test.sql rename to tests/queries/0_stateless/00938_dataset_test.sql diff --git a/dbms/tests/queries/0_stateless/00938_fix_rwlock_segfault.reference b/tests/queries/0_stateless/00938_fix_rwlock_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00938_fix_rwlock_segfault.reference rename to tests/queries/0_stateless/00938_fix_rwlock_segfault.reference diff --git a/dbms/tests/queries/0_stateless/00938_fix_rwlock_segfault.sh b/tests/queries/0_stateless/00938_fix_rwlock_segfault.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00938_fix_rwlock_segfault.sh rename to tests/queries/0_stateless/00938_fix_rwlock_segfault.sh diff --git a/dbms/tests/queries/0_stateless/00938_ipv6_cidr_range.reference b/tests/queries/0_stateless/00938_ipv6_cidr_range.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00938_ipv6_cidr_range.reference rename to tests/queries/0_stateless/00938_ipv6_cidr_range.reference diff --git a/dbms/tests/queries/0_stateless/00938_ipv6_cidr_range.sql b/tests/queries/0_stateless/00938_ipv6_cidr_range.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00938_ipv6_cidr_range.sql rename to tests/queries/0_stateless/00938_ipv6_cidr_range.sql diff --git a/dbms/tests/queries/0_stateless/00938_template_input_format.reference b/tests/queries/0_stateless/00938_template_input_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00938_template_input_format.reference rename to tests/queries/0_stateless/00938_template_input_format.reference diff --git a/dbms/tests/queries/0_stateless/00938_template_input_format.sh b/tests/queries/0_stateless/00938_template_input_format.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00938_template_input_format.sh rename to tests/queries/0_stateless/00938_template_input_format.sh diff --git a/dbms/tests/queries/0_stateless/00938_test_retention_function.reference b/tests/queries/0_stateless/00938_test_retention_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00938_test_retention_function.reference rename to tests/queries/0_stateless/00938_test_retention_function.reference diff --git a/dbms/tests/queries/0_stateless/00938_test_retention_function.sql b/tests/queries/0_stateless/00938_test_retention_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00938_test_retention_function.sql rename to tests/queries/0_stateless/00938_test_retention_function.sql diff --git a/dbms/tests/queries/0_stateless/00939_limit_by_offset.reference b/tests/queries/0_stateless/00939_limit_by_offset.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00939_limit_by_offset.reference rename to tests/queries/0_stateless/00939_limit_by_offset.reference diff --git a/dbms/tests/queries/0_stateless/00939_limit_by_offset.sql b/tests/queries/0_stateless/00939_limit_by_offset.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00939_limit_by_offset.sql rename to tests/queries/0_stateless/00939_limit_by_offset.sql diff --git a/dbms/tests/queries/0_stateless/00939_test_null_in.reference b/tests/queries/0_stateless/00939_test_null_in.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00939_test_null_in.reference rename to tests/queries/0_stateless/00939_test_null_in.reference diff --git a/dbms/tests/queries/0_stateless/00939_test_null_in.sql b/tests/queries/0_stateless/00939_test_null_in.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00939_test_null_in.sql rename to tests/queries/0_stateless/00939_test_null_in.sql diff --git a/dbms/tests/queries/0_stateless/00940_max_parts_in_total.reference b/tests/queries/0_stateless/00940_max_parts_in_total.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00940_max_parts_in_total.reference rename to tests/queries/0_stateless/00940_max_parts_in_total.reference diff --git a/dbms/tests/queries/0_stateless/00940_max_parts_in_total.sql b/tests/queries/0_stateless/00940_max_parts_in_total.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00940_max_parts_in_total.sql rename to tests/queries/0_stateless/00940_max_parts_in_total.sql diff --git a/dbms/tests/queries/0_stateless/00940_order_by_read_in_order.reference b/tests/queries/0_stateless/00940_order_by_read_in_order.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00940_order_by_read_in_order.reference rename to tests/queries/0_stateless/00940_order_by_read_in_order.reference diff --git a/dbms/tests/queries/0_stateless/00940_order_by_read_in_order.sql b/tests/queries/0_stateless/00940_order_by_read_in_order.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00940_order_by_read_in_order.sql rename to tests/queries/0_stateless/00940_order_by_read_in_order.sql diff --git a/dbms/tests/queries/0_stateless/00941_system_columns_race_condition.reference b/tests/queries/0_stateless/00941_system_columns_race_condition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00941_system_columns_race_condition.reference rename to tests/queries/0_stateless/00941_system_columns_race_condition.reference diff --git a/dbms/tests/queries/0_stateless/00941_system_columns_race_condition.sh b/tests/queries/0_stateless/00941_system_columns_race_condition.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00941_system_columns_race_condition.sh rename to tests/queries/0_stateless/00941_system_columns_race_condition.sh diff --git a/dbms/tests/queries/0_stateless/00941_to_custom_week.reference b/tests/queries/0_stateless/00941_to_custom_week.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00941_to_custom_week.reference rename to tests/queries/0_stateless/00941_to_custom_week.reference diff --git a/dbms/tests/queries/0_stateless/00941_to_custom_week.sql b/tests/queries/0_stateless/00941_to_custom_week.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00941_to_custom_week.sql rename to tests/queries/0_stateless/00941_to_custom_week.sql diff --git a/dbms/tests/queries/0_stateless/00942_dataparts_500.reference b/tests/queries/0_stateless/00942_dataparts_500.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00942_dataparts_500.reference rename to tests/queries/0_stateless/00942_dataparts_500.reference diff --git a/dbms/tests/queries/0_stateless/00942_dataparts_500.sh b/tests/queries/0_stateless/00942_dataparts_500.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00942_dataparts_500.sh rename to tests/queries/0_stateless/00942_dataparts_500.sh diff --git a/dbms/tests/queries/0_stateless/00942_mutate_index.reference b/tests/queries/0_stateless/00942_mutate_index.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00942_mutate_index.reference rename to tests/queries/0_stateless/00942_mutate_index.reference diff --git a/dbms/tests/queries/0_stateless/00942_mutate_index.sh b/tests/queries/0_stateless/00942_mutate_index.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00942_mutate_index.sh rename to tests/queries/0_stateless/00942_mutate_index.sh diff --git a/dbms/tests/queries/0_stateless/00942_mv_rename_table.reference b/tests/queries/0_stateless/00942_mv_rename_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00942_mv_rename_table.reference rename to tests/queries/0_stateless/00942_mv_rename_table.reference diff --git a/dbms/tests/queries/0_stateless/00942_mv_rename_table.sql b/tests/queries/0_stateless/00942_mv_rename_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00942_mv_rename_table.sql rename to tests/queries/0_stateless/00942_mv_rename_table.sql diff --git a/dbms/tests/queries/0_stateless/00943_materialize_index.reference b/tests/queries/0_stateless/00943_materialize_index.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00943_materialize_index.reference rename to tests/queries/0_stateless/00943_materialize_index.reference diff --git a/dbms/tests/queries/0_stateless/00943_materialize_index.sh b/tests/queries/0_stateless/00943_materialize_index.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00943_materialize_index.sh rename to tests/queries/0_stateless/00943_materialize_index.sh diff --git a/dbms/tests/queries/0_stateless/00943_mv_rename_without_inner_table.reference b/tests/queries/0_stateless/00943_mv_rename_without_inner_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00943_mv_rename_without_inner_table.reference rename to tests/queries/0_stateless/00943_mv_rename_without_inner_table.reference diff --git a/dbms/tests/queries/0_stateless/00943_mv_rename_without_inner_table.sql b/tests/queries/0_stateless/00943_mv_rename_without_inner_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00943_mv_rename_without_inner_table.sql rename to tests/queries/0_stateless/00943_mv_rename_without_inner_table.sql diff --git a/dbms/tests/queries/0_stateless/00944_clear_index_in_partition.reference b/tests/queries/0_stateless/00944_clear_index_in_partition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00944_clear_index_in_partition.reference rename to tests/queries/0_stateless/00944_clear_index_in_partition.reference diff --git a/dbms/tests/queries/0_stateless/00944_clear_index_in_partition.sh b/tests/queries/0_stateless/00944_clear_index_in_partition.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00944_clear_index_in_partition.sh rename to tests/queries/0_stateless/00944_clear_index_in_partition.sh diff --git a/dbms/tests/queries/0_stateless/00944_create_bloom_filter_index_with_merge_tree.reference b/tests/queries/0_stateless/00944_create_bloom_filter_index_with_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00944_create_bloom_filter_index_with_merge_tree.reference rename to tests/queries/0_stateless/00944_create_bloom_filter_index_with_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00944_create_bloom_filter_index_with_merge_tree.sh b/tests/queries/0_stateless/00944_create_bloom_filter_index_with_merge_tree.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00944_create_bloom_filter_index_with_merge_tree.sh rename to tests/queries/0_stateless/00944_create_bloom_filter_index_with_merge_tree.sh diff --git a/dbms/tests/queries/0_stateless/00944_minmax_null.reference b/tests/queries/0_stateless/00944_minmax_null.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00944_minmax_null.reference rename to tests/queries/0_stateless/00944_minmax_null.reference diff --git a/dbms/tests/queries/0_stateless/00944_minmax_null.sql b/tests/queries/0_stateless/00944_minmax_null.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00944_minmax_null.sql rename to tests/queries/0_stateless/00944_minmax_null.sql diff --git a/dbms/tests/queries/0_stateless/00944_ml_test.reference b/tests/queries/0_stateless/00944_ml_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00944_ml_test.reference rename to tests/queries/0_stateless/00944_ml_test.reference diff --git a/dbms/tests/queries/0_stateless/00944_ml_test.sql b/tests/queries/0_stateless/00944_ml_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00944_ml_test.sql rename to tests/queries/0_stateless/00944_ml_test.sql diff --git a/dbms/tests/queries/0_stateless/00945_bloom_filter_index.reference b/tests/queries/0_stateless/00945_bloom_filter_index.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00945_bloom_filter_index.reference rename to tests/queries/0_stateless/00945_bloom_filter_index.reference diff --git a/dbms/tests/queries/0_stateless/00945_bloom_filter_index.sql b/tests/queries/0_stateless/00945_bloom_filter_index.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00945_bloom_filter_index.sql rename to tests/queries/0_stateless/00945_bloom_filter_index.sql diff --git a/dbms/tests/queries/0_stateless/00945_ml_test.reference b/tests/queries/0_stateless/00945_ml_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00945_ml_test.reference rename to tests/queries/0_stateless/00945_ml_test.reference diff --git a/dbms/tests/queries/0_stateless/00945_ml_test.sql b/tests/queries/0_stateless/00945_ml_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00945_ml_test.sql rename to tests/queries/0_stateless/00945_ml_test.sql diff --git a/dbms/tests/queries/0_stateless/00946_ml_test.reference b/tests/queries/0_stateless/00946_ml_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00946_ml_test.reference rename to tests/queries/0_stateless/00946_ml_test.reference diff --git a/dbms/tests/queries/0_stateless/00946_ml_test.sql b/tests/queries/0_stateless/00946_ml_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00946_ml_test.sql rename to tests/queries/0_stateless/00946_ml_test.sql diff --git a/dbms/tests/queries/0_stateless/00947_ml_test.reference b/tests/queries/0_stateless/00947_ml_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00947_ml_test.reference rename to tests/queries/0_stateless/00947_ml_test.reference diff --git a/dbms/tests/queries/0_stateless/00947_ml_test.sql b/tests/queries/0_stateless/00947_ml_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00947_ml_test.sql rename to tests/queries/0_stateless/00947_ml_test.sql diff --git a/dbms/tests/queries/0_stateless/00948_format_in_with_single_element.reference b/tests/queries/0_stateless/00948_format_in_with_single_element.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00948_format_in_with_single_element.reference rename to tests/queries/0_stateless/00948_format_in_with_single_element.reference diff --git a/dbms/tests/queries/0_stateless/00948_format_in_with_single_element.sh b/tests/queries/0_stateless/00948_format_in_with_single_element.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00948_format_in_with_single_element.sh rename to tests/queries/0_stateless/00948_format_in_with_single_element.sh diff --git a/dbms/tests/queries/0_stateless/00948_to_valid_utf8.reference b/tests/queries/0_stateless/00948_to_valid_utf8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00948_to_valid_utf8.reference rename to tests/queries/0_stateless/00948_to_valid_utf8.reference diff --git a/dbms/tests/queries/0_stateless/00948_to_valid_utf8.sql b/tests/queries/0_stateless/00948_to_valid_utf8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00948_to_valid_utf8.sql rename to tests/queries/0_stateless/00948_to_valid_utf8.sql diff --git a/dbms/tests/queries/0_stateless/00948_values_interpreter_template.reference b/tests/queries/0_stateless/00948_values_interpreter_template.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00948_values_interpreter_template.reference rename to tests/queries/0_stateless/00948_values_interpreter_template.reference diff --git a/dbms/tests/queries/0_stateless/00948_values_interpreter_template.sql b/tests/queries/0_stateless/00948_values_interpreter_template.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00948_values_interpreter_template.sql rename to tests/queries/0_stateless/00948_values_interpreter_template.sql diff --git a/dbms/tests/queries/0_stateless/00949_format.reference b/tests/queries/0_stateless/00949_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00949_format.reference rename to tests/queries/0_stateless/00949_format.reference diff --git a/dbms/tests/queries/0_stateless/00949_format.sql b/tests/queries/0_stateless/00949_format.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00949_format.sql rename to tests/queries/0_stateless/00949_format.sql diff --git a/dbms/tests/queries/0_stateless/00950_bad_alloc_when_truncate_join_storage.reference b/tests/queries/0_stateless/00950_bad_alloc_when_truncate_join_storage.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00950_bad_alloc_when_truncate_join_storage.reference rename to tests/queries/0_stateless/00950_bad_alloc_when_truncate_join_storage.reference diff --git a/dbms/tests/queries/0_stateless/00950_bad_alloc_when_truncate_join_storage.sql b/tests/queries/0_stateless/00950_bad_alloc_when_truncate_join_storage.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00950_bad_alloc_when_truncate_join_storage.sql rename to tests/queries/0_stateless/00950_bad_alloc_when_truncate_join_storage.sql diff --git a/dbms/tests/queries/0_stateless/00950_default_prewhere.reference b/tests/queries/0_stateless/00950_default_prewhere.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00950_default_prewhere.reference rename to tests/queries/0_stateless/00950_default_prewhere.reference diff --git a/dbms/tests/queries/0_stateless/00950_default_prewhere.sql b/tests/queries/0_stateless/00950_default_prewhere.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00950_default_prewhere.sql rename to tests/queries/0_stateless/00950_default_prewhere.sql diff --git a/dbms/tests/queries/0_stateless/00950_dict_get.reference b/tests/queries/0_stateless/00950_dict_get.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00950_dict_get.reference rename to tests/queries/0_stateless/00950_dict_get.reference diff --git a/dbms/tests/queries/0_stateless/00950_dict_get.sql b/tests/queries/0_stateless/00950_dict_get.sql similarity index 99% rename from dbms/tests/queries/0_stateless/00950_dict_get.sql rename to tests/queries/0_stateless/00950_dict_get.sql index 2483a21c0d3..73fddce91c7 100644 --- a/dbms/tests/queries/0_stateless/00950_dict_get.sql +++ b/tests/queries/0_stateless/00950_dict_get.sql @@ -1,4 +1,4 @@ --- Must use `test_00950` database and these tables - they're configured in dbms/tests/*_dictionary.xml +-- Must use `test_00950` database and these tables - they're configured in tests/*_dictionary.xml create database if not exists test_00950; use test_00950; drop table if exists ints; diff --git a/dbms/tests/queries/0_stateless/00950_test_double_delta_codec.reference b/tests/queries/0_stateless/00950_test_double_delta_codec.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00950_test_double_delta_codec.reference rename to tests/queries/0_stateless/00950_test_double_delta_codec.reference diff --git a/dbms/tests/queries/0_stateless/00950_test_double_delta_codec.sql b/tests/queries/0_stateless/00950_test_double_delta_codec.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00950_test_double_delta_codec.sql rename to tests/queries/0_stateless/00950_test_double_delta_codec.sql diff --git a/dbms/tests/queries/0_stateless/00950_test_gorilla_codec.reference b/tests/queries/0_stateless/00950_test_gorilla_codec.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00950_test_gorilla_codec.reference rename to tests/queries/0_stateless/00950_test_gorilla_codec.reference diff --git a/dbms/tests/queries/0_stateless/00950_test_gorilla_codec.sql b/tests/queries/0_stateless/00950_test_gorilla_codec.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00950_test_gorilla_codec.sql rename to tests/queries/0_stateless/00950_test_gorilla_codec.sql diff --git a/dbms/tests/queries/0_stateless/00951_ngram_search.reference b/tests/queries/0_stateless/00951_ngram_search.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00951_ngram_search.reference rename to tests/queries/0_stateless/00951_ngram_search.reference diff --git a/dbms/tests/queries/0_stateless/00951_ngram_search.sql b/tests/queries/0_stateless/00951_ngram_search.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00951_ngram_search.sql rename to tests/queries/0_stateless/00951_ngram_search.sql diff --git a/dbms/tests/queries/0_stateless/00952_basic_constraints.reference b/tests/queries/0_stateless/00952_basic_constraints.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00952_basic_constraints.reference rename to tests/queries/0_stateless/00952_basic_constraints.reference diff --git a/dbms/tests/queries/0_stateless/00952_basic_constraints.sh b/tests/queries/0_stateless/00952_basic_constraints.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00952_basic_constraints.sh rename to tests/queries/0_stateless/00952_basic_constraints.sh diff --git a/dbms/tests/queries/0_stateless/00952_input_function.reference b/tests/queries/0_stateless/00952_input_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00952_input_function.reference rename to tests/queries/0_stateless/00952_input_function.reference diff --git a/dbms/tests/queries/0_stateless/00952_input_function.sh b/tests/queries/0_stateless/00952_input_function.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00952_input_function.sh rename to tests/queries/0_stateless/00952_input_function.sh diff --git a/dbms/tests/queries/0_stateless/00952_insert_into_distributed_with_materialized_column.reference b/tests/queries/0_stateless/00952_insert_into_distributed_with_materialized_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00952_insert_into_distributed_with_materialized_column.reference rename to tests/queries/0_stateless/00952_insert_into_distributed_with_materialized_column.reference diff --git a/dbms/tests/queries/0_stateless/00952_insert_into_distributed_with_materialized_column.sql b/tests/queries/0_stateless/00952_insert_into_distributed_with_materialized_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00952_insert_into_distributed_with_materialized_column.sql rename to tests/queries/0_stateless/00952_insert_into_distributed_with_materialized_column.sql diff --git a/dbms/tests/queries/0_stateless/00952_part_frozen_info.reference b/tests/queries/0_stateless/00952_part_frozen_info.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00952_part_frozen_info.reference rename to tests/queries/0_stateless/00952_part_frozen_info.reference diff --git a/dbms/tests/queries/0_stateless/00952_part_frozen_info.sql b/tests/queries/0_stateless/00952_part_frozen_info.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00952_part_frozen_info.sql rename to tests/queries/0_stateless/00952_part_frozen_info.sql diff --git a/dbms/tests/queries/0_stateless/00953_constraints_operations.reference b/tests/queries/0_stateless/00953_constraints_operations.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00953_constraints_operations.reference rename to tests/queries/0_stateless/00953_constraints_operations.reference diff --git a/dbms/tests/queries/0_stateless/00953_constraints_operations.sh b/tests/queries/0_stateless/00953_constraints_operations.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00953_constraints_operations.sh rename to tests/queries/0_stateless/00953_constraints_operations.sh diff --git a/dbms/tests/queries/0_stateless/00953_indices_alter_exceptions.reference b/tests/queries/0_stateless/00953_indices_alter_exceptions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00953_indices_alter_exceptions.reference rename to tests/queries/0_stateless/00953_indices_alter_exceptions.reference diff --git a/dbms/tests/queries/0_stateless/00953_indices_alter_exceptions.sh b/tests/queries/0_stateless/00953_indices_alter_exceptions.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00953_indices_alter_exceptions.sh rename to tests/queries/0_stateless/00953_indices_alter_exceptions.sh diff --git a/dbms/tests/queries/0_stateless/00953_moving_functions.reference b/tests/queries/0_stateless/00953_moving_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00953_moving_functions.reference rename to tests/queries/0_stateless/00953_moving_functions.reference diff --git a/dbms/tests/queries/0_stateless/00953_moving_functions.sql b/tests/queries/0_stateless/00953_moving_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00953_moving_functions.sql rename to tests/queries/0_stateless/00953_moving_functions.sql diff --git a/dbms/tests/queries/0_stateless/00953_zookeeper_suetin_deduplication_bug.reference b/tests/queries/0_stateless/00953_zookeeper_suetin_deduplication_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00953_zookeeper_suetin_deduplication_bug.reference rename to tests/queries/0_stateless/00953_zookeeper_suetin_deduplication_bug.reference diff --git a/dbms/tests/queries/0_stateless/00953_zookeeper_suetin_deduplication_bug.sh b/tests/queries/0_stateless/00953_zookeeper_suetin_deduplication_bug.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00953_zookeeper_suetin_deduplication_bug.sh rename to tests/queries/0_stateless/00953_zookeeper_suetin_deduplication_bug.sh diff --git a/dbms/tests/queries/0_stateless/00954_client_prepared_statements.reference b/tests/queries/0_stateless/00954_client_prepared_statements.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00954_client_prepared_statements.reference rename to tests/queries/0_stateless/00954_client_prepared_statements.reference diff --git a/dbms/tests/queries/0_stateless/00954_client_prepared_statements.sh b/tests/queries/0_stateless/00954_client_prepared_statements.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00954_client_prepared_statements.sh rename to tests/queries/0_stateless/00954_client_prepared_statements.sh diff --git a/dbms/tests/queries/0_stateless/00954_resample_combinator.reference b/tests/queries/0_stateless/00954_resample_combinator.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00954_resample_combinator.reference rename to tests/queries/0_stateless/00954_resample_combinator.reference diff --git a/dbms/tests/queries/0_stateless/00954_resample_combinator.sql b/tests/queries/0_stateless/00954_resample_combinator.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00954_resample_combinator.sql rename to tests/queries/0_stateless/00954_resample_combinator.sql diff --git a/dbms/tests/queries/0_stateless/00955_complex_prepared_statements.reference b/tests/queries/0_stateless/00955_complex_prepared_statements.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00955_complex_prepared_statements.reference rename to tests/queries/0_stateless/00955_complex_prepared_statements.reference diff --git a/dbms/tests/queries/0_stateless/00955_complex_prepared_statements.sh b/tests/queries/0_stateless/00955_complex_prepared_statements.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00955_complex_prepared_statements.sh rename to tests/queries/0_stateless/00955_complex_prepared_statements.sh diff --git a/dbms/tests/queries/0_stateless/00955_test_final_mark.reference b/tests/queries/0_stateless/00955_test_final_mark.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00955_test_final_mark.reference rename to tests/queries/0_stateless/00955_test_final_mark.reference diff --git a/dbms/tests/queries/0_stateless/00955_test_final_mark.sql b/tests/queries/0_stateless/00955_test_final_mark.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00955_test_final_mark.sql rename to tests/queries/0_stateless/00955_test_final_mark.sql diff --git a/dbms/tests/queries/0_stateless/00955_test_final_mark_use.reference b/tests/queries/0_stateless/00955_test_final_mark_use.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00955_test_final_mark_use.reference rename to tests/queries/0_stateless/00955_test_final_mark_use.reference diff --git a/dbms/tests/queries/0_stateless/00955_test_final_mark_use.sh b/tests/queries/0_stateless/00955_test_final_mark_use.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00955_test_final_mark_use.sh rename to tests/queries/0_stateless/00955_test_final_mark_use.sh diff --git a/dbms/tests/queries/0_stateless/00956_http_prepared_statements.reference b/tests/queries/0_stateless/00956_http_prepared_statements.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00956_http_prepared_statements.reference rename to tests/queries/0_stateless/00956_http_prepared_statements.reference diff --git a/dbms/tests/queries/0_stateless/00956_http_prepared_statements.sh b/tests/queries/0_stateless/00956_http_prepared_statements.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00956_http_prepared_statements.sh rename to tests/queries/0_stateless/00956_http_prepared_statements.sh diff --git a/dbms/tests/queries/0_stateless/00956_join_use_nulls_with_array_column.reference b/tests/queries/0_stateless/00956_join_use_nulls_with_array_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00956_join_use_nulls_with_array_column.reference rename to tests/queries/0_stateless/00956_join_use_nulls_with_array_column.reference diff --git a/dbms/tests/queries/0_stateless/00956_join_use_nulls_with_array_column.sql b/tests/queries/0_stateless/00956_join_use_nulls_with_array_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00956_join_use_nulls_with_array_column.sql rename to tests/queries/0_stateless/00956_join_use_nulls_with_array_column.sql diff --git a/dbms/tests/queries/0_stateless/00956_sensitive_data_masking.reference b/tests/queries/0_stateless/00956_sensitive_data_masking.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00956_sensitive_data_masking.reference rename to tests/queries/0_stateless/00956_sensitive_data_masking.reference diff --git a/dbms/tests/queries/0_stateless/00956_sensitive_data_masking.sh b/tests/queries/0_stateless/00956_sensitive_data_masking.sh similarity index 97% rename from dbms/tests/queries/0_stateless/00956_sensitive_data_masking.sh rename to tests/queries/0_stateless/00956_sensitive_data_masking.sh index 0c5bd753f26..0f76c34eaff 100755 --- a/dbms/tests/queries/0_stateless/00956_sensitive_data_masking.sh +++ b/tests/queries/0_stateless/00956_sensitive_data_masking.sh @@ -2,9 +2,9 @@ # Get all server logs export CLICKHOUSE_CLIENT_SERVER_LOGS_LEVEL="trace" -#export CLICKHOUSE_BINARY='../../../../build-vscode/Debug/dbms/programs/clickhouse' +#export CLICKHOUSE_BINARY='../../../../build-vscode/Debug/programs/clickhouse' #export CLICKHOUSE_PORT_TCP=59000 -#export CLICKHOUSE_CLIENT_BINARY='../../../../cmake-build-debug/dbms/programs/clickhouse client' +#export CLICKHOUSE_CLIENT_BINARY='../../../../cmake-build-debug/programs/clickhouse client' CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . $CURDIR/../shell_config.sh diff --git a/dbms/tests/queries/0_stateless/00957_coalesce_const_nullable_crash.reference b/tests/queries/0_stateless/00957_coalesce_const_nullable_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00957_coalesce_const_nullable_crash.reference rename to tests/queries/0_stateless/00957_coalesce_const_nullable_crash.reference diff --git a/dbms/tests/queries/0_stateless/00957_coalesce_const_nullable_crash.sql b/tests/queries/0_stateless/00957_coalesce_const_nullable_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00957_coalesce_const_nullable_crash.sql rename to tests/queries/0_stateless/00957_coalesce_const_nullable_crash.sql diff --git a/dbms/tests/queries/0_stateless/00957_delta_diff_bug.reference b/tests/queries/0_stateless/00957_delta_diff_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00957_delta_diff_bug.reference rename to tests/queries/0_stateless/00957_delta_diff_bug.reference diff --git a/dbms/tests/queries/0_stateless/00957_delta_diff_bug.sql b/tests/queries/0_stateless/00957_delta_diff_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00957_delta_diff_bug.sql rename to tests/queries/0_stateless/00957_delta_diff_bug.sql diff --git a/dbms/tests/queries/0_stateless/00957_format_with_clashed_aliases.reference b/tests/queries/0_stateless/00957_format_with_clashed_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00957_format_with_clashed_aliases.reference rename to tests/queries/0_stateless/00957_format_with_clashed_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00957_format_with_clashed_aliases.sh b/tests/queries/0_stateless/00957_format_with_clashed_aliases.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00957_format_with_clashed_aliases.sh rename to tests/queries/0_stateless/00957_format_with_clashed_aliases.sh diff --git a/dbms/tests/queries/0_stateless/00957_neighbor.reference b/tests/queries/0_stateless/00957_neighbor.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00957_neighbor.reference rename to tests/queries/0_stateless/00957_neighbor.reference diff --git a/dbms/tests/queries/0_stateless/00957_neighbor.sql b/tests/queries/0_stateless/00957_neighbor.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00957_neighbor.sql rename to tests/queries/0_stateless/00957_neighbor.sql diff --git a/dbms/tests/queries/0_stateless/00958_format_of_tuple_array_element.reference b/tests/queries/0_stateless/00958_format_of_tuple_array_element.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00958_format_of_tuple_array_element.reference rename to tests/queries/0_stateless/00958_format_of_tuple_array_element.reference diff --git a/dbms/tests/queries/0_stateless/00958_format_of_tuple_array_element.sh b/tests/queries/0_stateless/00958_format_of_tuple_array_element.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00958_format_of_tuple_array_element.sh rename to tests/queries/0_stateless/00958_format_of_tuple_array_element.sh diff --git a/dbms/tests/queries/0_stateless/00959_format_with_different_aliases.reference b/tests/queries/0_stateless/00959_format_with_different_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00959_format_with_different_aliases.reference rename to tests/queries/0_stateless/00959_format_with_different_aliases.reference diff --git a/dbms/tests/queries/0_stateless/00959_format_with_different_aliases.sh b/tests/queries/0_stateless/00959_format_with_different_aliases.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00959_format_with_different_aliases.sh rename to tests/queries/0_stateless/00959_format_with_different_aliases.sh diff --git a/dbms/tests/queries/0_stateless/00960_eval_ml_method_const.reference b/tests/queries/0_stateless/00960_eval_ml_method_const.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00960_eval_ml_method_const.reference rename to tests/queries/0_stateless/00960_eval_ml_method_const.reference diff --git a/dbms/tests/queries/0_stateless/00960_eval_ml_method_const.sql b/tests/queries/0_stateless/00960_eval_ml_method_const.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00960_eval_ml_method_const.sql rename to tests/queries/0_stateless/00960_eval_ml_method_const.sql diff --git a/dbms/tests/queries/0_stateless/00960_live_view_watch_events_live.py b/tests/queries/0_stateless/00960_live_view_watch_events_live.py similarity index 100% rename from dbms/tests/queries/0_stateless/00960_live_view_watch_events_live.py rename to tests/queries/0_stateless/00960_live_view_watch_events_live.py diff --git a/dbms/tests/queries/0_stateless/00960_live_view_watch_events_live.reference b/tests/queries/0_stateless/00960_live_view_watch_events_live.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00960_live_view_watch_events_live.reference rename to tests/queries/0_stateless/00960_live_view_watch_events_live.reference diff --git a/dbms/tests/queries/0_stateless/00961_check_table.reference b/tests/queries/0_stateless/00961_check_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00961_check_table.reference rename to tests/queries/0_stateless/00961_check_table.reference diff --git a/dbms/tests/queries/0_stateless/00961_check_table.sql b/tests/queries/0_stateless/00961_check_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00961_check_table.sql rename to tests/queries/0_stateless/00961_check_table.sql diff --git a/dbms/tests/queries/0_stateless/00961_checksums_in_system_parts_columns_table.reference b/tests/queries/0_stateless/00961_checksums_in_system_parts_columns_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00961_checksums_in_system_parts_columns_table.reference rename to tests/queries/0_stateless/00961_checksums_in_system_parts_columns_table.reference diff --git a/dbms/tests/queries/0_stateless/00961_checksums_in_system_parts_columns_table.sql b/tests/queries/0_stateless/00961_checksums_in_system_parts_columns_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00961_checksums_in_system_parts_columns_table.sql rename to tests/queries/0_stateless/00961_checksums_in_system_parts_columns_table.sql diff --git a/dbms/tests/queries/0_stateless/00961_temporary_live_view_watch.reference b/tests/queries/0_stateless/00961_temporary_live_view_watch.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00961_temporary_live_view_watch.reference rename to tests/queries/0_stateless/00961_temporary_live_view_watch.reference diff --git a/dbms/tests/queries/0_stateless/00961_temporary_live_view_watch.sql b/tests/queries/0_stateless/00961_temporary_live_view_watch.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00961_temporary_live_view_watch.sql rename to tests/queries/0_stateless/00961_temporary_live_view_watch.sql diff --git a/dbms/tests/queries/0_stateless/00961_visit_param_buffer_underflow.reference b/tests/queries/0_stateless/00961_visit_param_buffer_underflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00961_visit_param_buffer_underflow.reference rename to tests/queries/0_stateless/00961_visit_param_buffer_underflow.reference diff --git a/dbms/tests/queries/0_stateless/00961_visit_param_buffer_underflow.sql b/tests/queries/0_stateless/00961_visit_param_buffer_underflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00961_visit_param_buffer_underflow.sql rename to tests/queries/0_stateless/00961_visit_param_buffer_underflow.sql diff --git a/dbms/tests/queries/0_stateless/00962_enumNotExect.reference b/tests/queries/0_stateless/00962_enumNotExect.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00962_enumNotExect.reference rename to tests/queries/0_stateless/00962_enumNotExect.reference diff --git a/dbms/tests/queries/0_stateless/00962_enumNotExect.sql b/tests/queries/0_stateless/00962_enumNotExect.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00962_enumNotExect.sql rename to tests/queries/0_stateless/00962_enumNotExect.sql diff --git a/dbms/tests/queries/0_stateless/00962_temporary_live_view_watch_live.py b/tests/queries/0_stateless/00962_temporary_live_view_watch_live.py similarity index 100% rename from dbms/tests/queries/0_stateless/00962_temporary_live_view_watch_live.py rename to tests/queries/0_stateless/00962_temporary_live_view_watch_live.py diff --git a/dbms/tests/queries/0_stateless/00962_temporary_live_view_watch_live.reference b/tests/queries/0_stateless/00962_temporary_live_view_watch_live.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00962_temporary_live_view_watch_live.reference rename to tests/queries/0_stateless/00962_temporary_live_view_watch_live.reference diff --git a/dbms/tests/queries/0_stateless/00962_visit_param_various.reference b/tests/queries/0_stateless/00962_visit_param_various.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00962_visit_param_various.reference rename to tests/queries/0_stateless/00962_visit_param_various.reference diff --git a/dbms/tests/queries/0_stateless/00962_visit_param_various.sql b/tests/queries/0_stateless/00962_visit_param_various.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00962_visit_param_various.sql rename to tests/queries/0_stateless/00962_visit_param_various.sql diff --git a/dbms/tests/queries/0_stateless/00963_achimbab.reference b/tests/queries/0_stateless/00963_achimbab.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00963_achimbab.reference rename to tests/queries/0_stateless/00963_achimbab.reference diff --git a/dbms/tests/queries/0_stateless/00963_achimbab.sql b/tests/queries/0_stateless/00963_achimbab.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00963_achimbab.sql rename to tests/queries/0_stateless/00963_achimbab.sql diff --git a/dbms/tests/queries/0_stateless/00963_startsWith_force_primary_key.reference b/tests/queries/0_stateless/00963_startsWith_force_primary_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00963_startsWith_force_primary_key.reference rename to tests/queries/0_stateless/00963_startsWith_force_primary_key.reference diff --git a/dbms/tests/queries/0_stateless/00963_startsWith_force_primary_key.sql b/tests/queries/0_stateless/00963_startsWith_force_primary_key.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00963_startsWith_force_primary_key.sql rename to tests/queries/0_stateless/00963_startsWith_force_primary_key.sql diff --git a/dbms/tests/queries/0_stateless/00963_temporary_live_view_watch_live_timeout.py.disabled b/tests/queries/0_stateless/00963_temporary_live_view_watch_live_timeout.py.disabled similarity index 100% rename from dbms/tests/queries/0_stateless/00963_temporary_live_view_watch_live_timeout.py.disabled rename to tests/queries/0_stateless/00963_temporary_live_view_watch_live_timeout.py.disabled diff --git a/dbms/tests/queries/0_stateless/00963_temporary_live_view_watch_live_timeout.reference b/tests/queries/0_stateless/00963_temporary_live_view_watch_live_timeout.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00963_temporary_live_view_watch_live_timeout.reference rename to tests/queries/0_stateless/00963_temporary_live_view_watch_live_timeout.reference diff --git a/dbms/tests/queries/0_stateless/00964_bloom_index_string_functions.reference b/tests/queries/0_stateless/00964_bloom_index_string_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00964_bloom_index_string_functions.reference rename to tests/queries/0_stateless/00964_bloom_index_string_functions.reference diff --git a/dbms/tests/queries/0_stateless/00964_bloom_index_string_functions.sh b/tests/queries/0_stateless/00964_bloom_index_string_functions.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00964_bloom_index_string_functions.sh rename to tests/queries/0_stateless/00964_bloom_index_string_functions.sh diff --git a/dbms/tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.py b/tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.py similarity index 100% rename from dbms/tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.py rename to tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.py diff --git a/dbms/tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.reference b/tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.reference rename to tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.reference diff --git a/dbms/tests/queries/0_stateless/00964_os_thread_priority.reference b/tests/queries/0_stateless/00964_os_thread_priority.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00964_os_thread_priority.reference rename to tests/queries/0_stateless/00964_os_thread_priority.reference diff --git a/dbms/tests/queries/0_stateless/00964_os_thread_priority.sql b/tests/queries/0_stateless/00964_os_thread_priority.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00964_os_thread_priority.sql rename to tests/queries/0_stateless/00964_os_thread_priority.sql diff --git a/dbms/tests/queries/0_stateless/00965_live_view_watch_heartbeat.py b/tests/queries/0_stateless/00965_live_view_watch_heartbeat.py similarity index 100% rename from dbms/tests/queries/0_stateless/00965_live_view_watch_heartbeat.py rename to tests/queries/0_stateless/00965_live_view_watch_heartbeat.py diff --git a/dbms/tests/queries/0_stateless/00965_live_view_watch_heartbeat.reference b/tests/queries/0_stateless/00965_live_view_watch_heartbeat.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00965_live_view_watch_heartbeat.reference rename to tests/queries/0_stateless/00965_live_view_watch_heartbeat.reference diff --git a/dbms/tests/queries/0_stateless/00965_logs_level_bugfix.reference b/tests/queries/0_stateless/00965_logs_level_bugfix.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00965_logs_level_bugfix.reference rename to tests/queries/0_stateless/00965_logs_level_bugfix.reference diff --git a/dbms/tests/queries/0_stateless/00965_logs_level_bugfix.sh b/tests/queries/0_stateless/00965_logs_level_bugfix.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00965_logs_level_bugfix.sh rename to tests/queries/0_stateless/00965_logs_level_bugfix.sh diff --git a/dbms/tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.reference b/tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.reference rename to tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.reference diff --git a/dbms/tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.sh b/tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.sh rename to tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.sh diff --git a/dbms/tests/queries/0_stateless/00965_set_index_string_functions.reference b/tests/queries/0_stateless/00965_set_index_string_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00965_set_index_string_functions.reference rename to tests/queries/0_stateless/00965_set_index_string_functions.reference diff --git a/dbms/tests/queries/0_stateless/00965_set_index_string_functions.sh b/tests/queries/0_stateless/00965_set_index_string_functions.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00965_set_index_string_functions.sh rename to tests/queries/0_stateless/00965_set_index_string_functions.sh diff --git a/dbms/tests/queries/0_stateless/00965_shard_unresolvable_addresses.reference b/tests/queries/0_stateless/00965_shard_unresolvable_addresses.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00965_shard_unresolvable_addresses.reference rename to tests/queries/0_stateless/00965_shard_unresolvable_addresses.reference diff --git a/dbms/tests/queries/0_stateless/00965_shard_unresolvable_addresses.sql b/tests/queries/0_stateless/00965_shard_unresolvable_addresses.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00965_shard_unresolvable_addresses.sql rename to tests/queries/0_stateless/00965_shard_unresolvable_addresses.sql diff --git a/dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.reference b/tests/queries/0_stateless/00966_invalid_json_must_not_parse.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.reference rename to tests/queries/0_stateless/00966_invalid_json_must_not_parse.reference diff --git a/dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.sql b/tests/queries/0_stateless/00966_invalid_json_must_not_parse.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00966_invalid_json_must_not_parse.sql rename to tests/queries/0_stateless/00966_invalid_json_must_not_parse.sql diff --git a/dbms/tests/queries/0_stateless/00966_live_view_watch_events_http.py b/tests/queries/0_stateless/00966_live_view_watch_events_http.py similarity index 100% rename from dbms/tests/queries/0_stateless/00966_live_view_watch_events_http.py rename to tests/queries/0_stateless/00966_live_view_watch_events_http.py diff --git a/dbms/tests/queries/0_stateless/00966_live_view_watch_events_http.reference b/tests/queries/0_stateless/00966_live_view_watch_events_http.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00966_live_view_watch_events_http.reference rename to tests/queries/0_stateless/00966_live_view_watch_events_http.reference diff --git a/dbms/tests/queries/0_stateless/00967_live_view_watch_http.py b/tests/queries/0_stateless/00967_live_view_watch_http.py similarity index 100% rename from dbms/tests/queries/0_stateless/00967_live_view_watch_http.py rename to tests/queries/0_stateless/00967_live_view_watch_http.py diff --git a/dbms/tests/queries/0_stateless/00967_live_view_watch_http.reference b/tests/queries/0_stateless/00967_live_view_watch_http.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00967_live_view_watch_http.reference rename to tests/queries/0_stateless/00967_live_view_watch_http.reference diff --git a/dbms/tests/queries/0_stateless/00967_ubsan_bit_test.reference b/tests/queries/0_stateless/00967_ubsan_bit_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00967_ubsan_bit_test.reference rename to tests/queries/0_stateless/00967_ubsan_bit_test.reference diff --git a/dbms/tests/queries/0_stateless/00967_ubsan_bit_test.sql b/tests/queries/0_stateless/00967_ubsan_bit_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00967_ubsan_bit_test.sql rename to tests/queries/0_stateless/00967_ubsan_bit_test.sql diff --git a/dbms/tests/queries/0_stateless/00968_file_engine_in_subquery.reference b/tests/queries/0_stateless/00968_file_engine_in_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00968_file_engine_in_subquery.reference rename to tests/queries/0_stateless/00968_file_engine_in_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00968_file_engine_in_subquery.sql b/tests/queries/0_stateless/00968_file_engine_in_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00968_file_engine_in_subquery.sql rename to tests/queries/0_stateless/00968_file_engine_in_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00968_live_view_select_format_jsoneachrowwithprogress.reference b/tests/queries/0_stateless/00968_live_view_select_format_jsoneachrowwithprogress.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00968_live_view_select_format_jsoneachrowwithprogress.reference rename to tests/queries/0_stateless/00968_live_view_select_format_jsoneachrowwithprogress.reference diff --git a/dbms/tests/queries/0_stateless/00968_live_view_select_format_jsoneachrowwithprogress.sql b/tests/queries/0_stateless/00968_live_view_select_format_jsoneachrowwithprogress.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00968_live_view_select_format_jsoneachrowwithprogress.sql rename to tests/queries/0_stateless/00968_live_view_select_format_jsoneachrowwithprogress.sql diff --git a/dbms/tests/queries/0_stateless/00968_roundAge.reference b/tests/queries/0_stateless/00968_roundAge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00968_roundAge.reference rename to tests/queries/0_stateless/00968_roundAge.reference diff --git a/dbms/tests/queries/0_stateless/00968_roundAge.sql b/tests/queries/0_stateless/00968_roundAge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00968_roundAge.sql rename to tests/queries/0_stateless/00968_roundAge.sql diff --git a/dbms/tests/queries/0_stateless/00969_columns_clause.reference b/tests/queries/0_stateless/00969_columns_clause.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00969_columns_clause.reference rename to tests/queries/0_stateless/00969_columns_clause.reference diff --git a/dbms/tests/queries/0_stateless/00969_columns_clause.sql b/tests/queries/0_stateless/00969_columns_clause.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00969_columns_clause.sql rename to tests/queries/0_stateless/00969_columns_clause.sql diff --git a/dbms/tests/queries/0_stateless/00969_live_view_watch_format_jsoneachrowwithprogress.reference b/tests/queries/0_stateless/00969_live_view_watch_format_jsoneachrowwithprogress.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00969_live_view_watch_format_jsoneachrowwithprogress.reference rename to tests/queries/0_stateless/00969_live_view_watch_format_jsoneachrowwithprogress.reference diff --git a/dbms/tests/queries/0_stateless/00969_live_view_watch_format_jsoneachrowwithprogress.sql b/tests/queries/0_stateless/00969_live_view_watch_format_jsoneachrowwithprogress.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00969_live_view_watch_format_jsoneachrowwithprogress.sql rename to tests/queries/0_stateless/00969_live_view_watch_format_jsoneachrowwithprogress.sql diff --git a/dbms/tests/queries/0_stateless/00969_roundDuration.reference b/tests/queries/0_stateless/00969_roundDuration.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00969_roundDuration.reference rename to tests/queries/0_stateless/00969_roundDuration.reference diff --git a/dbms/tests/queries/0_stateless/00969_roundDuration.sql b/tests/queries/0_stateless/00969_roundDuration.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00969_roundDuration.sql rename to tests/queries/0_stateless/00969_roundDuration.sql diff --git a/dbms/tests/queries/0_stateless/00970_live_view_watch_events_http_heartbeat.py b/tests/queries/0_stateless/00970_live_view_watch_events_http_heartbeat.py similarity index 100% rename from dbms/tests/queries/0_stateless/00970_live_view_watch_events_http_heartbeat.py rename to tests/queries/0_stateless/00970_live_view_watch_events_http_heartbeat.py diff --git a/dbms/tests/queries/0_stateless/00970_live_view_watch_events_http_heartbeat.reference b/tests/queries/0_stateless/00970_live_view_watch_events_http_heartbeat.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00970_live_view_watch_events_http_heartbeat.reference rename to tests/queries/0_stateless/00970_live_view_watch_events_http_heartbeat.reference diff --git a/dbms/tests/queries/0_stateless/00970_substring_arg_validation.reference b/tests/queries/0_stateless/00970_substring_arg_validation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00970_substring_arg_validation.reference rename to tests/queries/0_stateless/00970_substring_arg_validation.reference diff --git a/dbms/tests/queries/0_stateless/00970_substring_arg_validation.sql b/tests/queries/0_stateless/00970_substring_arg_validation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00970_substring_arg_validation.sql rename to tests/queries/0_stateless/00970_substring_arg_validation.sql diff --git a/dbms/tests/queries/0_stateless/00971_live_view_watch_http_heartbeat.py b/tests/queries/0_stateless/00971_live_view_watch_http_heartbeat.py similarity index 100% rename from dbms/tests/queries/0_stateless/00971_live_view_watch_http_heartbeat.py rename to tests/queries/0_stateless/00971_live_view_watch_http_heartbeat.py diff --git a/dbms/tests/queries/0_stateless/00971_live_view_watch_http_heartbeat.reference b/tests/queries/0_stateless/00971_live_view_watch_http_heartbeat.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00971_live_view_watch_http_heartbeat.reference rename to tests/queries/0_stateless/00971_live_view_watch_http_heartbeat.reference diff --git a/dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.reference b/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.reference rename to tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.reference diff --git a/dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.sql b/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.sql rename to tests/queries/0_stateless/00971_merge_tree_uniform_read_distribution_and_max_rows_to_read.sql diff --git a/dbms/tests/queries/0_stateless/00971_query_id_in_logs.reference b/tests/queries/0_stateless/00971_query_id_in_logs.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00971_query_id_in_logs.reference rename to tests/queries/0_stateless/00971_query_id_in_logs.reference diff --git a/dbms/tests/queries/0_stateless/00971_query_id_in_logs.sh b/tests/queries/0_stateless/00971_query_id_in_logs.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00971_query_id_in_logs.sh rename to tests/queries/0_stateless/00971_query_id_in_logs.sh diff --git a/dbms/tests/queries/0_stateless/00972_desc_table_virtual_columns.reference b/tests/queries/0_stateless/00972_desc_table_virtual_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00972_desc_table_virtual_columns.reference rename to tests/queries/0_stateless/00972_desc_table_virtual_columns.reference diff --git a/dbms/tests/queries/0_stateless/00972_desc_table_virtual_columns.sql b/tests/queries/0_stateless/00972_desc_table_virtual_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00972_desc_table_virtual_columns.sql rename to tests/queries/0_stateless/00972_desc_table_virtual_columns.sql diff --git a/dbms/tests/queries/0_stateless/00972_geohashesInBox.reference b/tests/queries/0_stateless/00972_geohashesInBox.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00972_geohashesInBox.reference rename to tests/queries/0_stateless/00972_geohashesInBox.reference diff --git a/dbms/tests/queries/0_stateless/00972_geohashesInBox.sql b/tests/queries/0_stateless/00972_geohashesInBox.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00972_geohashesInBox.sql rename to tests/queries/0_stateless/00972_geohashesInBox.sql diff --git a/dbms/tests/queries/0_stateless/00972_live_view_select_1.reference b/tests/queries/0_stateless/00972_live_view_select_1.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00972_live_view_select_1.reference rename to tests/queries/0_stateless/00972_live_view_select_1.reference diff --git a/dbms/tests/queries/0_stateless/00972_live_view_select_1.sql b/tests/queries/0_stateless/00972_live_view_select_1.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00972_live_view_select_1.sql rename to tests/queries/0_stateless/00972_live_view_select_1.sql diff --git a/dbms/tests/queries/0_stateless/00973_create_table_as_table_function.reference b/tests/queries/0_stateless/00973_create_table_as_table_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_create_table_as_table_function.reference rename to tests/queries/0_stateless/00973_create_table_as_table_function.reference diff --git a/dbms/tests/queries/0_stateless/00973_create_table_as_table_function.sql b/tests/queries/0_stateless/00973_create_table_as_table_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_create_table_as_table_function.sql rename to tests/queries/0_stateless/00973_create_table_as_table_function.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_select.reference b/tests/queries/0_stateless/00973_live_view_select.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_select.reference rename to tests/queries/0_stateless/00973_live_view_select.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_select.sql b/tests/queries/0_stateless/00973_live_view_select.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_select.sql rename to tests/queries/0_stateless/00973_live_view_select.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select.reference b/tests/queries/0_stateless/00973_live_view_with_subquery_select.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select.reference rename to tests/queries/0_stateless/00973_live_view_with_subquery_select.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select.sql b/tests/queries/0_stateless/00973_live_view_with_subquery_select.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select.sql rename to tests/queries/0_stateless/00973_live_view_with_subquery_select.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_join.reference b/tests/queries/0_stateless/00973_live_view_with_subquery_select_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_join.reference rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_join.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_join.sql b/tests/queries/0_stateless/00973_live_view_with_subquery_select_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_join.sql rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_join.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_join_no_alias.reference b/tests/queries/0_stateless/00973_live_view_with_subquery_select_join_no_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_join_no_alias.reference rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_join_no_alias.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_join_no_alias.sql b/tests/queries/0_stateless/00973_live_view_with_subquery_select_join_no_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_join_no_alias.sql rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_join_no_alias.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested.reference b/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested.reference rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_nested.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested.sql b/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested.sql rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_nested.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation.reference b/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation.reference rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation.sql b/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation.sql rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation_table_alias.reference b/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation_table_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation_table_alias.reference rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation_table_alias.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation_table_alias.sql b/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation_table_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation_table_alias.sql rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_nested_with_aggregation_table_alias.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_table_alias.reference b/tests/queries/0_stateless/00973_live_view_with_subquery_select_table_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_table_alias.reference rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_table_alias.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_table_alias.sql b/tests/queries/0_stateless/00973_live_view_with_subquery_select_table_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_table_alias.sql rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_table_alias.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation.reference b/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation.reference rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation.sql b/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation.sql rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation.sql diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation_in_subquery.reference b/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation_in_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation_in_subquery.reference rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation_in_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation_in_subquery.sql b/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation_in_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation_in_subquery.sql rename to tests/queries/0_stateless/00973_live_view_with_subquery_select_with_aggregation_in_subquery.sql diff --git a/dbms/tests/queries/0_stateless/00973_uniq_non_associativity.reference b/tests/queries/0_stateless/00973_uniq_non_associativity.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00973_uniq_non_associativity.reference rename to tests/queries/0_stateless/00973_uniq_non_associativity.reference diff --git a/dbms/tests/queries/0_stateless/00973_uniq_non_associativity.sql b/tests/queries/0_stateless/00973_uniq_non_associativity.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00973_uniq_non_associativity.sql rename to tests/queries/0_stateless/00973_uniq_non_associativity.sql diff --git a/dbms/tests/queries/0_stateless/00974_adaptive_granularity_secondary_index.reference b/tests/queries/0_stateless/00974_adaptive_granularity_secondary_index.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_adaptive_granularity_secondary_index.reference rename to tests/queries/0_stateless/00974_adaptive_granularity_secondary_index.reference diff --git a/dbms/tests/queries/0_stateless/00974_adaptive_granularity_secondary_index.sql b/tests/queries/0_stateless/00974_adaptive_granularity_secondary_index.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00974_adaptive_granularity_secondary_index.sql rename to tests/queries/0_stateless/00974_adaptive_granularity_secondary_index.sql diff --git a/dbms/tests/queries/0_stateless/00974_bitmapContains_with_primary_key.reference b/tests/queries/0_stateless/00974_bitmapContains_with_primary_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_bitmapContains_with_primary_key.reference rename to tests/queries/0_stateless/00974_bitmapContains_with_primary_key.reference diff --git a/dbms/tests/queries/0_stateless/00974_bitmapContains_with_primary_key.sql b/tests/queries/0_stateless/00974_bitmapContains_with_primary_key.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00974_bitmapContains_with_primary_key.sql rename to tests/queries/0_stateless/00974_bitmapContains_with_primary_key.sql diff --git a/dbms/tests/queries/0_stateless/00974_distributed_join_on.reference b/tests/queries/0_stateless/00974_distributed_join_on.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_distributed_join_on.reference rename to tests/queries/0_stateless/00974_distributed_join_on.reference diff --git a/dbms/tests/queries/0_stateless/00974_distributed_join_on.sql b/tests/queries/0_stateless/00974_distributed_join_on.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00974_distributed_join_on.sql rename to tests/queries/0_stateless/00974_distributed_join_on.sql diff --git a/dbms/tests/queries/0_stateless/00974_final_predicate_push_down.reference b/tests/queries/0_stateless/00974_final_predicate_push_down.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_final_predicate_push_down.reference rename to tests/queries/0_stateless/00974_final_predicate_push_down.reference diff --git a/dbms/tests/queries/0_stateless/00974_final_predicate_push_down.sql b/tests/queries/0_stateless/00974_final_predicate_push_down.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00974_final_predicate_push_down.sql rename to tests/queries/0_stateless/00974_final_predicate_push_down.sql diff --git a/dbms/tests/queries/0_stateless/00974_fix_join_on.reference b/tests/queries/0_stateless/00974_fix_join_on.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_fix_join_on.reference rename to tests/queries/0_stateless/00974_fix_join_on.reference diff --git a/dbms/tests/queries/0_stateless/00974_fix_join_on.sql b/tests/queries/0_stateless/00974_fix_join_on.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00974_fix_join_on.sql rename to tests/queries/0_stateless/00974_fix_join_on.sql diff --git a/dbms/tests/queries/0_stateless/00974_full_outer_join.reference b/tests/queries/0_stateless/00974_full_outer_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_full_outer_join.reference rename to tests/queries/0_stateless/00974_full_outer_join.reference diff --git a/dbms/tests/queries/0_stateless/00974_full_outer_join.sql b/tests/queries/0_stateless/00974_full_outer_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00974_full_outer_join.sql rename to tests/queries/0_stateless/00974_full_outer_join.sql diff --git a/dbms/tests/queries/0_stateless/00974_live_view_select_with_aggregation.reference b/tests/queries/0_stateless/00974_live_view_select_with_aggregation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_live_view_select_with_aggregation.reference rename to tests/queries/0_stateless/00974_live_view_select_with_aggregation.reference diff --git a/dbms/tests/queries/0_stateless/00974_live_view_select_with_aggregation.sql b/tests/queries/0_stateless/00974_live_view_select_with_aggregation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00974_live_view_select_with_aggregation.sql rename to tests/queries/0_stateless/00974_live_view_select_with_aggregation.sql diff --git a/dbms/tests/queries/0_stateless/00974_low_cardinality_cast.reference b/tests/queries/0_stateless/00974_low_cardinality_cast.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_low_cardinality_cast.reference rename to tests/queries/0_stateless/00974_low_cardinality_cast.reference diff --git a/dbms/tests/queries/0_stateless/00974_low_cardinality_cast.sql b/tests/queries/0_stateless/00974_low_cardinality_cast.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00974_low_cardinality_cast.sql rename to tests/queries/0_stateless/00974_low_cardinality_cast.sql diff --git a/dbms/tests/queries/0_stateless/00974_primary_key_for_lowCardinality.reference b/tests/queries/0_stateless/00974_primary_key_for_lowCardinality.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_primary_key_for_lowCardinality.reference rename to tests/queries/0_stateless/00974_primary_key_for_lowCardinality.reference diff --git a/dbms/tests/queries/0_stateless/00974_primary_key_for_lowCardinality.sh b/tests/queries/0_stateless/00974_primary_key_for_lowCardinality.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00974_primary_key_for_lowCardinality.sh rename to tests/queries/0_stateless/00974_primary_key_for_lowCardinality.sh diff --git a/dbms/tests/queries/0_stateless/00974_query_profiler.reference b/tests/queries/0_stateless/00974_query_profiler.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_query_profiler.reference rename to tests/queries/0_stateless/00974_query_profiler.reference diff --git a/dbms/tests/queries/0_stateless/00974_query_profiler.sql b/tests/queries/0_stateless/00974_query_profiler.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00974_query_profiler.sql rename to tests/queries/0_stateless/00974_query_profiler.sql diff --git a/dbms/tests/queries/0_stateless/00974_text_log_table_not_empty.reference b/tests/queries/0_stateless/00974_text_log_table_not_empty.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00974_text_log_table_not_empty.reference rename to tests/queries/0_stateless/00974_text_log_table_not_empty.reference diff --git a/dbms/tests/queries/0_stateless/00974_text_log_table_not_empty.sh b/tests/queries/0_stateless/00974_text_log_table_not_empty.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00974_text_log_table_not_empty.sh rename to tests/queries/0_stateless/00974_text_log_table_not_empty.sh diff --git a/dbms/tests/queries/0_stateless/00975_indices_mutation_replicated_zookeeper.reference b/tests/queries/0_stateless/00975_indices_mutation_replicated_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00975_indices_mutation_replicated_zookeeper.reference rename to tests/queries/0_stateless/00975_indices_mutation_replicated_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00975_indices_mutation_replicated_zookeeper.sh b/tests/queries/0_stateless/00975_indices_mutation_replicated_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00975_indices_mutation_replicated_zookeeper.sh rename to tests/queries/0_stateless/00975_indices_mutation_replicated_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00975_json_hang.reference b/tests/queries/0_stateless/00975_json_hang.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00975_json_hang.reference rename to tests/queries/0_stateless/00975_json_hang.reference diff --git a/dbms/tests/queries/0_stateless/00975_json_hang.sql b/tests/queries/0_stateless/00975_json_hang.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00975_json_hang.sql rename to tests/queries/0_stateless/00975_json_hang.sql diff --git a/dbms/tests/queries/0_stateless/00975_live_view_create.reference b/tests/queries/0_stateless/00975_live_view_create.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00975_live_view_create.reference rename to tests/queries/0_stateless/00975_live_view_create.reference diff --git a/dbms/tests/queries/0_stateless/00975_live_view_create.sql b/tests/queries/0_stateless/00975_live_view_create.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00975_live_view_create.sql rename to tests/queries/0_stateless/00975_live_view_create.sql diff --git a/dbms/tests/queries/0_stateless/00975_move_partition_merge_tree.reference b/tests/queries/0_stateless/00975_move_partition_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00975_move_partition_merge_tree.reference rename to tests/queries/0_stateless/00975_move_partition_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/00975_move_partition_merge_tree.sql b/tests/queries/0_stateless/00975_move_partition_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00975_move_partition_merge_tree.sql rename to tests/queries/0_stateless/00975_move_partition_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/00975_recursive_materialized_view.reference b/tests/queries/0_stateless/00975_recursive_materialized_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00975_recursive_materialized_view.reference rename to tests/queries/0_stateless/00975_recursive_materialized_view.reference diff --git a/dbms/tests/queries/0_stateless/00975_recursive_materialized_view.sql b/tests/queries/0_stateless/00975_recursive_materialized_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00975_recursive_materialized_view.sql rename to tests/queries/0_stateless/00975_recursive_materialized_view.sql diff --git a/dbms/tests/queries/0_stateless/00975_sample_prewhere_distributed.reference b/tests/queries/0_stateless/00975_sample_prewhere_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00975_sample_prewhere_distributed.reference rename to tests/queries/0_stateless/00975_sample_prewhere_distributed.reference diff --git a/dbms/tests/queries/0_stateless/00975_sample_prewhere_distributed.sql b/tests/queries/0_stateless/00975_sample_prewhere_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00975_sample_prewhere_distributed.sql rename to tests/queries/0_stateless/00975_sample_prewhere_distributed.sql diff --git a/dbms/tests/queries/0_stateless/00975_values_list.reference b/tests/queries/0_stateless/00975_values_list.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00975_values_list.reference rename to tests/queries/0_stateless/00975_values_list.reference diff --git a/dbms/tests/queries/0_stateless/00975_values_list.sql b/tests/queries/0_stateless/00975_values_list.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00975_values_list.sql rename to tests/queries/0_stateless/00975_values_list.sql diff --git a/dbms/tests/queries/0_stateless/00976_asof_join_on.reference b/tests/queries/0_stateless/00976_asof_join_on.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00976_asof_join_on.reference rename to tests/queries/0_stateless/00976_asof_join_on.reference diff --git a/dbms/tests/queries/0_stateless/00976_asof_join_on.sql b/tests/queries/0_stateless/00976_asof_join_on.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00976_asof_join_on.sql rename to tests/queries/0_stateless/00976_asof_join_on.sql diff --git a/dbms/tests/queries/0_stateless/00976_live_view_select_version.reference b/tests/queries/0_stateless/00976_live_view_select_version.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00976_live_view_select_version.reference rename to tests/queries/0_stateless/00976_live_view_select_version.reference diff --git a/dbms/tests/queries/0_stateless/00976_live_view_select_version.sql b/tests/queries/0_stateless/00976_live_view_select_version.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00976_live_view_select_version.sql rename to tests/queries/0_stateless/00976_live_view_select_version.sql diff --git a/dbms/tests/queries/0_stateless/00976_max_execution_speed.reference b/tests/queries/0_stateless/00976_max_execution_speed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00976_max_execution_speed.reference rename to tests/queries/0_stateless/00976_max_execution_speed.reference diff --git a/dbms/tests/queries/0_stateless/00976_max_execution_speed.sql b/tests/queries/0_stateless/00976_max_execution_speed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00976_max_execution_speed.sql rename to tests/queries/0_stateless/00976_max_execution_speed.sql diff --git a/dbms/tests/queries/0_stateless/00976_shard_low_cardinality_achimbab.reference b/tests/queries/0_stateless/00976_shard_low_cardinality_achimbab.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00976_shard_low_cardinality_achimbab.reference rename to tests/queries/0_stateless/00976_shard_low_cardinality_achimbab.reference diff --git a/dbms/tests/queries/0_stateless/00976_shard_low_cardinality_achimbab.sql b/tests/queries/0_stateless/00976_shard_low_cardinality_achimbab.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00976_shard_low_cardinality_achimbab.sql rename to tests/queries/0_stateless/00976_shard_low_cardinality_achimbab.sql diff --git a/dbms/tests/queries/0_stateless/00976_system_stop_ttl_merges.reference b/tests/queries/0_stateless/00976_system_stop_ttl_merges.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00976_system_stop_ttl_merges.reference rename to tests/queries/0_stateless/00976_system_stop_ttl_merges.reference diff --git a/dbms/tests/queries/0_stateless/00976_system_stop_ttl_merges.sql b/tests/queries/0_stateless/00976_system_stop_ttl_merges.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00976_system_stop_ttl_merges.sql rename to tests/queries/0_stateless/00976_system_stop_ttl_merges.sql diff --git a/dbms/tests/queries/0_stateless/00976_ttl_with_old_parts.reference b/tests/queries/0_stateless/00976_ttl_with_old_parts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00976_ttl_with_old_parts.reference rename to tests/queries/0_stateless/00976_ttl_with_old_parts.reference diff --git a/dbms/tests/queries/0_stateless/00976_ttl_with_old_parts.sql b/tests/queries/0_stateless/00976_ttl_with_old_parts.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00976_ttl_with_old_parts.sql rename to tests/queries/0_stateless/00976_ttl_with_old_parts.sql diff --git a/dbms/tests/queries/0_stateless/00977_int_div.reference b/tests/queries/0_stateless/00977_int_div.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00977_int_div.reference rename to tests/queries/0_stateless/00977_int_div.reference diff --git a/dbms/tests/queries/0_stateless/00977_int_div.sql b/tests/queries/0_stateless/00977_int_div.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00977_int_div.sql rename to tests/queries/0_stateless/00977_int_div.sql diff --git a/dbms/tests/queries/0_stateless/00977_join_use_nulls_denny_crane.reference b/tests/queries/0_stateless/00977_join_use_nulls_denny_crane.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00977_join_use_nulls_denny_crane.reference rename to tests/queries/0_stateless/00977_join_use_nulls_denny_crane.reference diff --git a/dbms/tests/queries/0_stateless/00977_join_use_nulls_denny_crane.sql b/tests/queries/0_stateless/00977_join_use_nulls_denny_crane.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00977_join_use_nulls_denny_crane.sql rename to tests/queries/0_stateless/00977_join_use_nulls_denny_crane.sql diff --git a/dbms/tests/queries/0_stateless/00977_live_view_watch_events.reference b/tests/queries/0_stateless/00977_live_view_watch_events.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00977_live_view_watch_events.reference rename to tests/queries/0_stateless/00977_live_view_watch_events.reference diff --git a/dbms/tests/queries/0_stateless/00977_live_view_watch_events.sql b/tests/queries/0_stateless/00977_live_view_watch_events.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00977_live_view_watch_events.sql rename to tests/queries/0_stateless/00977_live_view_watch_events.sql diff --git a/dbms/tests/queries/0_stateless/00978_live_view_watch.reference b/tests/queries/0_stateless/00978_live_view_watch.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00978_live_view_watch.reference rename to tests/queries/0_stateless/00978_live_view_watch.reference diff --git a/dbms/tests/queries/0_stateless/00978_live_view_watch.sql b/tests/queries/0_stateless/00978_live_view_watch.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00978_live_view_watch.sql rename to tests/queries/0_stateless/00978_live_view_watch.sql diff --git a/dbms/tests/queries/0_stateless/00978_ml_math.reference b/tests/queries/0_stateless/00978_ml_math.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00978_ml_math.reference rename to tests/queries/0_stateless/00978_ml_math.reference diff --git a/dbms/tests/queries/0_stateless/00978_ml_math.sql b/tests/queries/0_stateless/00978_ml_math.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00978_ml_math.sql rename to tests/queries/0_stateless/00978_ml_math.sql diff --git a/dbms/tests/queries/0_stateless/00978_sum_map_bugfix.reference b/tests/queries/0_stateless/00978_sum_map_bugfix.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00978_sum_map_bugfix.reference rename to tests/queries/0_stateless/00978_sum_map_bugfix.reference diff --git a/dbms/tests/queries/0_stateless/00978_sum_map_bugfix.sql b/tests/queries/0_stateless/00978_sum_map_bugfix.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00978_sum_map_bugfix.sql rename to tests/queries/0_stateless/00978_sum_map_bugfix.sql diff --git a/dbms/tests/queries/0_stateless/00978_table_function_values_alias.reference b/tests/queries/0_stateless/00978_table_function_values_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00978_table_function_values_alias.reference rename to tests/queries/0_stateless/00978_table_function_values_alias.reference diff --git a/dbms/tests/queries/0_stateless/00978_table_function_values_alias.sql b/tests/queries/0_stateless/00978_table_function_values_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00978_table_function_values_alias.sql rename to tests/queries/0_stateless/00978_table_function_values_alias.sql diff --git a/dbms/tests/queries/0_stateless/00979_live_view_watch_live.py b/tests/queries/0_stateless/00979_live_view_watch_live.py similarity index 100% rename from dbms/tests/queries/0_stateless/00979_live_view_watch_live.py rename to tests/queries/0_stateless/00979_live_view_watch_live.py diff --git a/dbms/tests/queries/0_stateless/00979_live_view_watch_live.reference b/tests/queries/0_stateless/00979_live_view_watch_live.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00979_live_view_watch_live.reference rename to tests/queries/0_stateless/00979_live_view_watch_live.reference diff --git a/dbms/tests/queries/0_stateless/00979_live_view_watch_live_moving_avg.py b/tests/queries/0_stateless/00979_live_view_watch_live_moving_avg.py similarity index 100% rename from dbms/tests/queries/0_stateless/00979_live_view_watch_live_moving_avg.py rename to tests/queries/0_stateless/00979_live_view_watch_live_moving_avg.py diff --git a/dbms/tests/queries/0_stateless/00979_live_view_watch_live_moving_avg.reference b/tests/queries/0_stateless/00979_live_view_watch_live_moving_avg.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00979_live_view_watch_live_moving_avg.reference rename to tests/queries/0_stateless/00979_live_view_watch_live_moving_avg.reference diff --git a/dbms/tests/queries/0_stateless/00979_live_view_watch_live_with_subquery.py b/tests/queries/0_stateless/00979_live_view_watch_live_with_subquery.py similarity index 100% rename from dbms/tests/queries/0_stateless/00979_live_view_watch_live_with_subquery.py rename to tests/queries/0_stateless/00979_live_view_watch_live_with_subquery.py diff --git a/dbms/tests/queries/0_stateless/00979_live_view_watch_live_with_subquery.reference b/tests/queries/0_stateless/00979_live_view_watch_live_with_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00979_live_view_watch_live_with_subquery.reference rename to tests/queries/0_stateless/00979_live_view_watch_live_with_subquery.reference diff --git a/dbms/tests/queries/0_stateless/00979_quantileExcatExclusive_and_Inclusive.reference b/tests/queries/0_stateless/00979_quantileExcatExclusive_and_Inclusive.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00979_quantileExcatExclusive_and_Inclusive.reference rename to tests/queries/0_stateless/00979_quantileExcatExclusive_and_Inclusive.reference diff --git a/dbms/tests/queries/0_stateless/00979_quantileExcatExclusive_and_Inclusive.sql b/tests/queries/0_stateless/00979_quantileExcatExclusive_and_Inclusive.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00979_quantileExcatExclusive_and_Inclusive.sql rename to tests/queries/0_stateless/00979_quantileExcatExclusive_and_Inclusive.sql diff --git a/dbms/tests/queries/0_stateless/00979_set_index_not.reference b/tests/queries/0_stateless/00979_set_index_not.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00979_set_index_not.reference rename to tests/queries/0_stateless/00979_set_index_not.reference diff --git a/dbms/tests/queries/0_stateless/00979_set_index_not.sql b/tests/queries/0_stateless/00979_set_index_not.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00979_set_index_not.sql rename to tests/queries/0_stateless/00979_set_index_not.sql diff --git a/dbms/tests/queries/0_stateless/00979_toFloat_monotonicity.reference b/tests/queries/0_stateless/00979_toFloat_monotonicity.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00979_toFloat_monotonicity.reference rename to tests/queries/0_stateless/00979_toFloat_monotonicity.reference diff --git a/dbms/tests/queries/0_stateless/00979_toFloat_monotonicity.sql b/tests/queries/0_stateless/00979_toFloat_monotonicity.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00979_toFloat_monotonicity.sql rename to tests/queries/0_stateless/00979_toFloat_monotonicity.sql diff --git a/dbms/tests/queries/0_stateless/00979_yandex_consistent_hash_fpe.reference b/tests/queries/0_stateless/00979_yandex_consistent_hash_fpe.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00979_yandex_consistent_hash_fpe.reference rename to tests/queries/0_stateless/00979_yandex_consistent_hash_fpe.reference diff --git a/dbms/tests/queries/0_stateless/00979_yandex_consistent_hash_fpe.sql b/tests/queries/0_stateless/00979_yandex_consistent_hash_fpe.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00979_yandex_consistent_hash_fpe.sql rename to tests/queries/0_stateless/00979_yandex_consistent_hash_fpe.sql diff --git a/dbms/tests/queries/0_stateless/00980_alter_settings_race.reference b/tests/queries/0_stateless/00980_alter_settings_race.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00980_alter_settings_race.reference rename to tests/queries/0_stateless/00980_alter_settings_race.reference diff --git a/dbms/tests/queries/0_stateless/00980_alter_settings_race.sh b/tests/queries/0_stateless/00980_alter_settings_race.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00980_alter_settings_race.sh rename to tests/queries/0_stateless/00980_alter_settings_race.sh diff --git a/dbms/tests/queries/0_stateless/00980_crash_nullable_decimal.reference b/tests/queries/0_stateless/00980_crash_nullable_decimal.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00980_crash_nullable_decimal.reference rename to tests/queries/0_stateless/00980_crash_nullable_decimal.reference diff --git a/dbms/tests/queries/0_stateless/00980_crash_nullable_decimal.sql b/tests/queries/0_stateless/00980_crash_nullable_decimal.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00980_crash_nullable_decimal.sql rename to tests/queries/0_stateless/00980_crash_nullable_decimal.sql diff --git a/dbms/tests/queries/0_stateless/00980_create_temporary_live_view.reference b/tests/queries/0_stateless/00980_create_temporary_live_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00980_create_temporary_live_view.reference rename to tests/queries/0_stateless/00980_create_temporary_live_view.reference diff --git a/dbms/tests/queries/0_stateless/00980_create_temporary_live_view.sql b/tests/queries/0_stateless/00980_create_temporary_live_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00980_create_temporary_live_view.sql rename to tests/queries/0_stateless/00980_create_temporary_live_view.sql diff --git a/dbms/tests/queries/0_stateless/00980_full_join_crash_fancyqlx.reference b/tests/queries/0_stateless/00980_full_join_crash_fancyqlx.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00980_full_join_crash_fancyqlx.reference rename to tests/queries/0_stateless/00980_full_join_crash_fancyqlx.reference diff --git a/dbms/tests/queries/0_stateless/00980_full_join_crash_fancyqlx.sql b/tests/queries/0_stateless/00980_full_join_crash_fancyqlx.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00980_full_join_crash_fancyqlx.sql rename to tests/queries/0_stateless/00980_full_join_crash_fancyqlx.sql diff --git a/dbms/tests/queries/0_stateless/00980_merge_alter_settings.reference b/tests/queries/0_stateless/00980_merge_alter_settings.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00980_merge_alter_settings.reference rename to tests/queries/0_stateless/00980_merge_alter_settings.reference diff --git a/dbms/tests/queries/0_stateless/00980_merge_alter_settings.sql b/tests/queries/0_stateless/00980_merge_alter_settings.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00980_merge_alter_settings.sql rename to tests/queries/0_stateless/00980_merge_alter_settings.sql diff --git a/dbms/tests/queries/0_stateless/00980_shard_aggregation_state_deserialization.reference b/tests/queries/0_stateless/00980_shard_aggregation_state_deserialization.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00980_shard_aggregation_state_deserialization.reference rename to tests/queries/0_stateless/00980_shard_aggregation_state_deserialization.reference diff --git a/dbms/tests/queries/0_stateless/00980_shard_aggregation_state_deserialization.sql b/tests/queries/0_stateless/00980_shard_aggregation_state_deserialization.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00980_shard_aggregation_state_deserialization.sql rename to tests/queries/0_stateless/00980_shard_aggregation_state_deserialization.sql diff --git a/dbms/tests/queries/0_stateless/00980_skip_unused_shards_without_sharding_key.reference b/tests/queries/0_stateless/00980_skip_unused_shards_without_sharding_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00980_skip_unused_shards_without_sharding_key.reference rename to tests/queries/0_stateless/00980_skip_unused_shards_without_sharding_key.reference diff --git a/dbms/tests/queries/0_stateless/00980_skip_unused_shards_without_sharding_key.sql b/tests/queries/0_stateless/00980_skip_unused_shards_without_sharding_key.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00980_skip_unused_shards_without_sharding_key.sql rename to tests/queries/0_stateless/00980_skip_unused_shards_without_sharding_key.sql diff --git a/dbms/tests/queries/0_stateless/00980_zookeeper_merge_tree_alter_settings.reference b/tests/queries/0_stateless/00980_zookeeper_merge_tree_alter_settings.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00980_zookeeper_merge_tree_alter_settings.reference rename to tests/queries/0_stateless/00980_zookeeper_merge_tree_alter_settings.reference diff --git a/dbms/tests/queries/0_stateless/00980_zookeeper_merge_tree_alter_settings.sql b/tests/queries/0_stateless/00980_zookeeper_merge_tree_alter_settings.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00980_zookeeper_merge_tree_alter_settings.sql rename to tests/queries/0_stateless/00980_zookeeper_merge_tree_alter_settings.sql diff --git a/dbms/tests/queries/0_stateless/00981_in_subquery_with_tuple.reference b/tests/queries/0_stateless/00981_in_subquery_with_tuple.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00981_in_subquery_with_tuple.reference rename to tests/queries/0_stateless/00981_in_subquery_with_tuple.reference diff --git a/dbms/tests/queries/0_stateless/00981_in_subquery_with_tuple.sh b/tests/queries/0_stateless/00981_in_subquery_with_tuple.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00981_in_subquery_with_tuple.sh rename to tests/queries/0_stateless/00981_in_subquery_with_tuple.sh diff --git a/dbms/tests/queries/0_stateless/00981_no_virtual_columns.reference b/tests/queries/0_stateless/00981_no_virtual_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00981_no_virtual_columns.reference rename to tests/queries/0_stateless/00981_no_virtual_columns.reference diff --git a/dbms/tests/queries/0_stateless/00981_no_virtual_columns.sql b/tests/queries/0_stateless/00981_no_virtual_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00981_no_virtual_columns.sql rename to tests/queries/0_stateless/00981_no_virtual_columns.sql diff --git a/dbms/tests/queries/0_stateless/00981_topK_topKWeighted_long.reference b/tests/queries/0_stateless/00981_topK_topKWeighted_long.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00981_topK_topKWeighted_long.reference rename to tests/queries/0_stateless/00981_topK_topKWeighted_long.reference diff --git a/dbms/tests/queries/0_stateless/00981_topK_topKWeighted_long.sql b/tests/queries/0_stateless/00981_topK_topKWeighted_long.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00981_topK_topKWeighted_long.sql rename to tests/queries/0_stateless/00981_topK_topKWeighted_long.sql diff --git a/dbms/tests/queries/0_stateless/00982_array_enumerate_uniq_ranked.reference b/tests/queries/0_stateless/00982_array_enumerate_uniq_ranked.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00982_array_enumerate_uniq_ranked.reference rename to tests/queries/0_stateless/00982_array_enumerate_uniq_ranked.reference diff --git a/dbms/tests/queries/0_stateless/00982_array_enumerate_uniq_ranked.sql b/tests/queries/0_stateless/00982_array_enumerate_uniq_ranked.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00982_array_enumerate_uniq_ranked.sql rename to tests/queries/0_stateless/00982_array_enumerate_uniq_ranked.sql diff --git a/dbms/tests/queries/0_stateless/00982_low_cardinality_setting_in_mv.reference b/tests/queries/0_stateless/00982_low_cardinality_setting_in_mv.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00982_low_cardinality_setting_in_mv.reference rename to tests/queries/0_stateless/00982_low_cardinality_setting_in_mv.reference diff --git a/dbms/tests/queries/0_stateless/00982_low_cardinality_setting_in_mv.sql b/tests/queries/0_stateless/00982_low_cardinality_setting_in_mv.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00982_low_cardinality_setting_in_mv.sql rename to tests/queries/0_stateless/00982_low_cardinality_setting_in_mv.sql diff --git a/dbms/tests/queries/0_stateless/00983_summing_merge_tree_not_an_identifier.reference b/tests/queries/0_stateless/00983_summing_merge_tree_not_an_identifier.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00983_summing_merge_tree_not_an_identifier.reference rename to tests/queries/0_stateless/00983_summing_merge_tree_not_an_identifier.reference diff --git a/dbms/tests/queries/0_stateless/00983_summing_merge_tree_not_an_identifier.sql b/tests/queries/0_stateless/00983_summing_merge_tree_not_an_identifier.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00983_summing_merge_tree_not_an_identifier.sql rename to tests/queries/0_stateless/00983_summing_merge_tree_not_an_identifier.sql diff --git a/dbms/tests/queries/0_stateless/00984_materialized_view_to_columns.reference b/tests/queries/0_stateless/00984_materialized_view_to_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00984_materialized_view_to_columns.reference rename to tests/queries/0_stateless/00984_materialized_view_to_columns.reference diff --git a/dbms/tests/queries/0_stateless/00984_materialized_view_to_columns.sql b/tests/queries/0_stateless/00984_materialized_view_to_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00984_materialized_view_to_columns.sql rename to tests/queries/0_stateless/00984_materialized_view_to_columns.sql diff --git a/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.reference b/tests/queries/0_stateless/00984_parser_stack_overflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00984_parser_stack_overflow.reference rename to tests/queries/0_stateless/00984_parser_stack_overflow.reference diff --git a/dbms/tests/queries/0_stateless/00984_parser_stack_overflow.sh b/tests/queries/0_stateless/00984_parser_stack_overflow.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00984_parser_stack_overflow.sh rename to tests/queries/0_stateless/00984_parser_stack_overflow.sh diff --git a/dbms/tests/queries/0_stateless/00985_merge_stack_overflow.reference b/tests/queries/0_stateless/00985_merge_stack_overflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00985_merge_stack_overflow.reference rename to tests/queries/0_stateless/00985_merge_stack_overflow.reference diff --git a/dbms/tests/queries/0_stateless/00985_merge_stack_overflow.sql b/tests/queries/0_stateless/00985_merge_stack_overflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00985_merge_stack_overflow.sql rename to tests/queries/0_stateless/00985_merge_stack_overflow.sql diff --git a/dbms/tests/queries/0_stateless/00986_materialized_view_stack_overflow.reference b/tests/queries/0_stateless/00986_materialized_view_stack_overflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00986_materialized_view_stack_overflow.reference rename to tests/queries/0_stateless/00986_materialized_view_stack_overflow.reference diff --git a/dbms/tests/queries/0_stateless/00986_materialized_view_stack_overflow.sql b/tests/queries/0_stateless/00986_materialized_view_stack_overflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00986_materialized_view_stack_overflow.sql rename to tests/queries/0_stateless/00986_materialized_view_stack_overflow.sql diff --git a/dbms/tests/queries/0_stateless/00987_distributed_stack_overflow.reference b/tests/queries/0_stateless/00987_distributed_stack_overflow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00987_distributed_stack_overflow.reference rename to tests/queries/0_stateless/00987_distributed_stack_overflow.reference diff --git a/dbms/tests/queries/0_stateless/00987_distributed_stack_overflow.sql b/tests/queries/0_stateless/00987_distributed_stack_overflow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00987_distributed_stack_overflow.sql rename to tests/queries/0_stateless/00987_distributed_stack_overflow.sql diff --git a/dbms/tests/queries/0_stateless/00988_constraints_replication_zookeeper.reference b/tests/queries/0_stateless/00988_constraints_replication_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00988_constraints_replication_zookeeper.reference rename to tests/queries/0_stateless/00988_constraints_replication_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00988_constraints_replication_zookeeper.sql b/tests/queries/0_stateless/00988_constraints_replication_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00988_constraints_replication_zookeeper.sql rename to tests/queries/0_stateless/00988_constraints_replication_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/00988_expansion_aliases_limit.reference b/tests/queries/0_stateless/00988_expansion_aliases_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00988_expansion_aliases_limit.reference rename to tests/queries/0_stateless/00988_expansion_aliases_limit.reference diff --git a/dbms/tests/queries/0_stateless/00988_expansion_aliases_limit.sql b/tests/queries/0_stateless/00988_expansion_aliases_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00988_expansion_aliases_limit.sql rename to tests/queries/0_stateless/00988_expansion_aliases_limit.sql diff --git a/dbms/tests/queries/0_stateless/00988_parallel_parts_removal.reference b/tests/queries/0_stateless/00988_parallel_parts_removal.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00988_parallel_parts_removal.reference rename to tests/queries/0_stateless/00988_parallel_parts_removal.reference diff --git a/dbms/tests/queries/0_stateless/00988_parallel_parts_removal.sql b/tests/queries/0_stateless/00988_parallel_parts_removal.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00988_parallel_parts_removal.sql rename to tests/queries/0_stateless/00988_parallel_parts_removal.sql diff --git a/dbms/tests/queries/0_stateless/00989_parallel_parts_loading.reference b/tests/queries/0_stateless/00989_parallel_parts_loading.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00989_parallel_parts_loading.reference rename to tests/queries/0_stateless/00989_parallel_parts_loading.reference diff --git a/dbms/tests/queries/0_stateless/00989_parallel_parts_loading.sql b/tests/queries/0_stateless/00989_parallel_parts_loading.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00989_parallel_parts_loading.sql rename to tests/queries/0_stateless/00989_parallel_parts_loading.sql diff --git a/dbms/tests/queries/0_stateless/00990_function_current_user.reference b/tests/queries/0_stateless/00990_function_current_user.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00990_function_current_user.reference rename to tests/queries/0_stateless/00990_function_current_user.reference diff --git a/dbms/tests/queries/0_stateless/00990_function_current_user.sql b/tests/queries/0_stateless/00990_function_current_user.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00990_function_current_user.sql rename to tests/queries/0_stateless/00990_function_current_user.sql diff --git a/dbms/tests/queries/0_stateless/00990_hasToken.python b/tests/queries/0_stateless/00990_hasToken.python similarity index 100% rename from dbms/tests/queries/0_stateless/00990_hasToken.python rename to tests/queries/0_stateless/00990_hasToken.python diff --git a/dbms/tests/queries/0_stateless/00990_hasToken.reference b/tests/queries/0_stateless/00990_hasToken.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00990_hasToken.reference rename to tests/queries/0_stateless/00990_hasToken.reference diff --git a/dbms/tests/queries/0_stateless/00990_hasToken.sh b/tests/queries/0_stateless/00990_hasToken.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00990_hasToken.sh rename to tests/queries/0_stateless/00990_hasToken.sh diff --git a/dbms/tests/queries/0_stateless/00990_hasToken_and_tokenbf.reference b/tests/queries/0_stateless/00990_hasToken_and_tokenbf.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00990_hasToken_and_tokenbf.reference rename to tests/queries/0_stateless/00990_hasToken_and_tokenbf.reference diff --git a/dbms/tests/queries/0_stateless/00990_hasToken_and_tokenbf.sql b/tests/queries/0_stateless/00990_hasToken_and_tokenbf.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00990_hasToken_and_tokenbf.sql rename to tests/queries/0_stateless/00990_hasToken_and_tokenbf.sql diff --git a/dbms/tests/queries/0_stateless/00990_metric_log_table_not_empty.reference b/tests/queries/0_stateless/00990_metric_log_table_not_empty.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00990_metric_log_table_not_empty.reference rename to tests/queries/0_stateless/00990_metric_log_table_not_empty.reference diff --git a/dbms/tests/queries/0_stateless/00990_metric_log_table_not_empty.sql b/tests/queries/0_stateless/00990_metric_log_table_not_empty.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00990_metric_log_table_not_empty.sql rename to tests/queries/0_stateless/00990_metric_log_table_not_empty.sql diff --git a/dbms/tests/queries/0_stateless/00990_request_splitting.reference b/tests/queries/0_stateless/00990_request_splitting.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00990_request_splitting.reference rename to tests/queries/0_stateless/00990_request_splitting.reference diff --git a/dbms/tests/queries/0_stateless/00990_request_splitting.sql b/tests/queries/0_stateless/00990_request_splitting.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00990_request_splitting.sql rename to tests/queries/0_stateless/00990_request_splitting.sql diff --git a/dbms/tests/queries/0_stateless/00991_live_view_watch_event_live.python b/tests/queries/0_stateless/00991_live_view_watch_event_live.python similarity index 100% rename from dbms/tests/queries/0_stateless/00991_live_view_watch_event_live.python rename to tests/queries/0_stateless/00991_live_view_watch_event_live.python diff --git a/dbms/tests/queries/0_stateless/00991_live_view_watch_event_live.reference b/tests/queries/0_stateless/00991_live_view_watch_event_live.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00991_live_view_watch_event_live.reference rename to tests/queries/0_stateless/00991_live_view_watch_event_live.reference diff --git a/dbms/tests/queries/0_stateless/00991_live_view_watch_event_live.sh.disabled b/tests/queries/0_stateless/00991_live_view_watch_event_live.sh.disabled similarity index 100% rename from dbms/tests/queries/0_stateless/00991_live_view_watch_event_live.sh.disabled rename to tests/queries/0_stateless/00991_live_view_watch_event_live.sh.disabled diff --git a/dbms/tests/queries/0_stateless/00991_live_view_watch_http.python b/tests/queries/0_stateless/00991_live_view_watch_http.python similarity index 100% rename from dbms/tests/queries/0_stateless/00991_live_view_watch_http.python rename to tests/queries/0_stateless/00991_live_view_watch_http.python diff --git a/dbms/tests/queries/0_stateless/00991_live_view_watch_http.reference b/tests/queries/0_stateless/00991_live_view_watch_http.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00991_live_view_watch_http.reference rename to tests/queries/0_stateless/00991_live_view_watch_http.reference diff --git a/dbms/tests/queries/0_stateless/00991_live_view_watch_http.sh.disabled b/tests/queries/0_stateless/00991_live_view_watch_http.sh.disabled similarity index 100% rename from dbms/tests/queries/0_stateless/00991_live_view_watch_http.sh.disabled rename to tests/queries/0_stateless/00991_live_view_watch_http.sh.disabled diff --git a/dbms/tests/queries/0_stateless/00991_system_parts_race_condition.reference b/tests/queries/0_stateless/00991_system_parts_race_condition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00991_system_parts_race_condition.reference rename to tests/queries/0_stateless/00991_system_parts_race_condition.reference diff --git a/dbms/tests/queries/0_stateless/00991_system_parts_race_condition.sh b/tests/queries/0_stateless/00991_system_parts_race_condition.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00991_system_parts_race_condition.sh rename to tests/queries/0_stateless/00991_system_parts_race_condition.sh diff --git a/dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.python b/tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.python similarity index 100% rename from dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.python rename to tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.python diff --git a/dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.reference b/tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.reference rename to tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.reference diff --git a/dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.sh.disabled b/tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.sh.disabled similarity index 100% rename from dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.sh.disabled rename to tests/queries/0_stateless/00991_temporary_live_view_watch_events_heartbeat.sh.disabled diff --git a/dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_live.python b/tests/queries/0_stateless/00991_temporary_live_view_watch_live.python similarity index 100% rename from dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_live.python rename to tests/queries/0_stateless/00991_temporary_live_view_watch_live.python diff --git a/dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_live.reference b/tests/queries/0_stateless/00991_temporary_live_view_watch_live.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_live.reference rename to tests/queries/0_stateless/00991_temporary_live_view_watch_live.reference diff --git a/dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_live.sh.disabled b/tests/queries/0_stateless/00991_temporary_live_view_watch_live.sh.disabled similarity index 100% rename from dbms/tests/queries/0_stateless/00991_temporary_live_view_watch_live.sh.disabled rename to tests/queries/0_stateless/00991_temporary_live_view_watch_live.sh.disabled diff --git a/dbms/tests/queries/0_stateless/00992_system_parts_race_condition_zookeeper.reference b/tests/queries/0_stateless/00992_system_parts_race_condition_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00992_system_parts_race_condition_zookeeper.reference rename to tests/queries/0_stateless/00992_system_parts_race_condition_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00992_system_parts_race_condition_zookeeper.sh b/tests/queries/0_stateless/00992_system_parts_race_condition_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00992_system_parts_race_condition_zookeeper.sh rename to tests/queries/0_stateless/00992_system_parts_race_condition_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00993_system_parts_race_condition_drop_zookeeper.reference b/tests/queries/0_stateless/00993_system_parts_race_condition_drop_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00993_system_parts_race_condition_drop_zookeeper.reference rename to tests/queries/0_stateless/00993_system_parts_race_condition_drop_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/00993_system_parts_race_condition_drop_zookeeper.sh b/tests/queries/0_stateless/00993_system_parts_race_condition_drop_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00993_system_parts_race_condition_drop_zookeeper.sh rename to tests/queries/0_stateless/00993_system_parts_race_condition_drop_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/00994_table_function_numbers_mt.reference b/tests/queries/0_stateless/00994_table_function_numbers_mt.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00994_table_function_numbers_mt.reference rename to tests/queries/0_stateless/00994_table_function_numbers_mt.reference diff --git a/dbms/tests/queries/0_stateless/00994_table_function_numbers_mt.sql b/tests/queries/0_stateless/00994_table_function_numbers_mt.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00994_table_function_numbers_mt.sql rename to tests/queries/0_stateless/00994_table_function_numbers_mt.sql diff --git a/dbms/tests/queries/0_stateless/00995_exception_while_insert.reference b/tests/queries/0_stateless/00995_exception_while_insert.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00995_exception_while_insert.reference rename to tests/queries/0_stateless/00995_exception_while_insert.reference diff --git a/dbms/tests/queries/0_stateless/00995_exception_while_insert.sh b/tests/queries/0_stateless/00995_exception_while_insert.sh similarity index 100% rename from dbms/tests/queries/0_stateless/00995_exception_while_insert.sh rename to tests/queries/0_stateless/00995_exception_while_insert.sh diff --git a/dbms/tests/queries/0_stateless/00995_optimize_read_in_order_with_aggregation.reference b/tests/queries/0_stateless/00995_optimize_read_in_order_with_aggregation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00995_optimize_read_in_order_with_aggregation.reference rename to tests/queries/0_stateless/00995_optimize_read_in_order_with_aggregation.reference diff --git a/dbms/tests/queries/0_stateless/00995_optimize_read_in_order_with_aggregation.sql b/tests/queries/0_stateless/00995_optimize_read_in_order_with_aggregation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00995_optimize_read_in_order_with_aggregation.sql rename to tests/queries/0_stateless/00995_optimize_read_in_order_with_aggregation.sql diff --git a/dbms/tests/queries/0_stateless/00995_order_by_with_fill.reference b/tests/queries/0_stateless/00995_order_by_with_fill.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00995_order_by_with_fill.reference rename to tests/queries/0_stateless/00995_order_by_with_fill.reference diff --git a/dbms/tests/queries/0_stateless/00995_order_by_with_fill.sql b/tests/queries/0_stateless/00995_order_by_with_fill.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00995_order_by_with_fill.sql rename to tests/queries/0_stateless/00995_order_by_with_fill.sql diff --git a/dbms/tests/queries/0_stateless/00996_limit_with_ties.reference b/tests/queries/0_stateless/00996_limit_with_ties.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00996_limit_with_ties.reference rename to tests/queries/0_stateless/00996_limit_with_ties.reference diff --git a/dbms/tests/queries/0_stateless/00996_limit_with_ties.sql b/tests/queries/0_stateless/00996_limit_with_ties.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00996_limit_with_ties.sql rename to tests/queries/0_stateless/00996_limit_with_ties.sql diff --git a/dbms/tests/queries/0_stateless/00996_neighbor.reference b/tests/queries/0_stateless/00996_neighbor.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00996_neighbor.reference rename to tests/queries/0_stateless/00996_neighbor.reference diff --git a/dbms/tests/queries/0_stateless/00996_neighbor.sql b/tests/queries/0_stateless/00996_neighbor.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00996_neighbor.sql rename to tests/queries/0_stateless/00996_neighbor.sql diff --git a/dbms/tests/queries/0_stateless/00997_extract_all_crash_6627.reference b/tests/queries/0_stateless/00997_extract_all_crash_6627.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00997_extract_all_crash_6627.reference rename to tests/queries/0_stateless/00997_extract_all_crash_6627.reference diff --git a/dbms/tests/queries/0_stateless/00997_extract_all_crash_6627.sql b/tests/queries/0_stateless/00997_extract_all_crash_6627.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00997_extract_all_crash_6627.sql rename to tests/queries/0_stateless/00997_extract_all_crash_6627.sql diff --git a/dbms/tests/queries/0_stateless/00997_set_index_array.reference b/tests/queries/0_stateless/00997_set_index_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00997_set_index_array.reference rename to tests/queries/0_stateless/00997_set_index_array.reference diff --git a/dbms/tests/queries/0_stateless/00997_set_index_array.sql b/tests/queries/0_stateless/00997_set_index_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00997_set_index_array.sql rename to tests/queries/0_stateless/00997_set_index_array.sql diff --git a/dbms/tests/queries/0_stateless/00997_trim.reference b/tests/queries/0_stateless/00997_trim.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00997_trim.reference rename to tests/queries/0_stateless/00997_trim.reference diff --git a/dbms/tests/queries/0_stateless/00997_trim.sql b/tests/queries/0_stateless/00997_trim.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00997_trim.sql rename to tests/queries/0_stateless/00997_trim.sql diff --git a/dbms/tests/queries/0_stateless/00998_constraints_all_tables.reference b/tests/queries/0_stateless/00998_constraints_all_tables.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00998_constraints_all_tables.reference rename to tests/queries/0_stateless/00998_constraints_all_tables.reference diff --git a/dbms/tests/queries/0_stateless/00998_constraints_all_tables.sql b/tests/queries/0_stateless/00998_constraints_all_tables.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00998_constraints_all_tables.sql rename to tests/queries/0_stateless/00998_constraints_all_tables.sql diff --git a/dbms/tests/queries/0_stateless/00999_full_join_dup_keys_crash.reference b/tests/queries/0_stateless/00999_full_join_dup_keys_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00999_full_join_dup_keys_crash.reference rename to tests/queries/0_stateless/00999_full_join_dup_keys_crash.reference diff --git a/dbms/tests/queries/0_stateless/00999_full_join_dup_keys_crash.sql b/tests/queries/0_stateless/00999_full_join_dup_keys_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00999_full_join_dup_keys_crash.sql rename to tests/queries/0_stateless/00999_full_join_dup_keys_crash.sql diff --git a/dbms/tests/queries/0_stateless/00999_join_not_nullable_types.reference b/tests/queries/0_stateless/00999_join_not_nullable_types.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00999_join_not_nullable_types.reference rename to tests/queries/0_stateless/00999_join_not_nullable_types.reference diff --git a/dbms/tests/queries/0_stateless/00999_join_not_nullable_types.sql b/tests/queries/0_stateless/00999_join_not_nullable_types.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00999_join_not_nullable_types.sql rename to tests/queries/0_stateless/00999_join_not_nullable_types.sql diff --git a/dbms/tests/queries/0_stateless/00999_join_on_expression.reference b/tests/queries/0_stateless/00999_join_on_expression.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00999_join_on_expression.reference rename to tests/queries/0_stateless/00999_join_on_expression.reference diff --git a/dbms/tests/queries/0_stateless/00999_join_on_expression.sql b/tests/queries/0_stateless/00999_join_on_expression.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00999_join_on_expression.sql rename to tests/queries/0_stateless/00999_join_on_expression.sql diff --git a/dbms/tests/queries/0_stateless/00999_nullable_nested_types_4877.reference b/tests/queries/0_stateless/00999_nullable_nested_types_4877.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00999_nullable_nested_types_4877.reference rename to tests/queries/0_stateless/00999_nullable_nested_types_4877.reference diff --git a/dbms/tests/queries/0_stateless/00999_nullable_nested_types_4877.sql b/tests/queries/0_stateless/00999_nullable_nested_types_4877.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00999_nullable_nested_types_4877.sql rename to tests/queries/0_stateless/00999_nullable_nested_types_4877.sql diff --git a/dbms/tests/queries/0_stateless/00999_settings_no_extra_quotes.reference b/tests/queries/0_stateless/00999_settings_no_extra_quotes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00999_settings_no_extra_quotes.reference rename to tests/queries/0_stateless/00999_settings_no_extra_quotes.reference diff --git a/dbms/tests/queries/0_stateless/00999_settings_no_extra_quotes.sql b/tests/queries/0_stateless/00999_settings_no_extra_quotes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00999_settings_no_extra_quotes.sql rename to tests/queries/0_stateless/00999_settings_no_extra_quotes.sql diff --git a/dbms/tests/queries/0_stateless/00999_test_skip_indices_with_alter_and_merge.reference b/tests/queries/0_stateless/00999_test_skip_indices_with_alter_and_merge.reference similarity index 100% rename from dbms/tests/queries/0_stateless/00999_test_skip_indices_with_alter_and_merge.reference rename to tests/queries/0_stateless/00999_test_skip_indices_with_alter_and_merge.reference diff --git a/dbms/tests/queries/0_stateless/00999_test_skip_indices_with_alter_and_merge.sql b/tests/queries/0_stateless/00999_test_skip_indices_with_alter_and_merge.sql similarity index 100% rename from dbms/tests/queries/0_stateless/00999_test_skip_indices_with_alter_and_merge.sql rename to tests/queries/0_stateless/00999_test_skip_indices_with_alter_and_merge.sql diff --git a/dbms/tests/queries/0_stateless/01000_bad_size_of_marks_skip_idx.reference b/tests/queries/0_stateless/01000_bad_size_of_marks_skip_idx.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01000_bad_size_of_marks_skip_idx.reference rename to tests/queries/0_stateless/01000_bad_size_of_marks_skip_idx.reference diff --git a/dbms/tests/queries/0_stateless/01000_bad_size_of_marks_skip_idx.sql b/tests/queries/0_stateless/01000_bad_size_of_marks_skip_idx.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01000_bad_size_of_marks_skip_idx.sql rename to tests/queries/0_stateless/01000_bad_size_of_marks_skip_idx.sql diff --git a/dbms/tests/queries/0_stateless/01000_subquery_requires_alias.reference b/tests/queries/0_stateless/01000_subquery_requires_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01000_subquery_requires_alias.reference rename to tests/queries/0_stateless/01000_subquery_requires_alias.reference diff --git a/dbms/tests/queries/0_stateless/01000_subquery_requires_alias.sql b/tests/queries/0_stateless/01000_subquery_requires_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01000_subquery_requires_alias.sql rename to tests/queries/0_stateless/01000_subquery_requires_alias.sql diff --git a/dbms/tests/queries/0_stateless/01000_unneeded_substitutions_client.reference b/tests/queries/0_stateless/01000_unneeded_substitutions_client.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01000_unneeded_substitutions_client.reference rename to tests/queries/0_stateless/01000_unneeded_substitutions_client.reference diff --git a/dbms/tests/queries/0_stateless/01000_unneeded_substitutions_client.sh b/tests/queries/0_stateless/01000_unneeded_substitutions_client.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01000_unneeded_substitutions_client.sh rename to tests/queries/0_stateless/01000_unneeded_substitutions_client.sh diff --git a/dbms/tests/queries/0_stateless/01001_enums_in_in_section.reference b/tests/queries/0_stateless/01001_enums_in_in_section.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01001_enums_in_in_section.reference rename to tests/queries/0_stateless/01001_enums_in_in_section.reference diff --git a/dbms/tests/queries/0_stateless/01001_enums_in_in_section.sql b/tests/queries/0_stateless/01001_enums_in_in_section.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01001_enums_in_in_section.sql rename to tests/queries/0_stateless/01001_enums_in_in_section.sql diff --git a/dbms/tests/queries/0_stateless/01001_rename_merge_race_condition.reference b/tests/queries/0_stateless/01001_rename_merge_race_condition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01001_rename_merge_race_condition.reference rename to tests/queries/0_stateless/01001_rename_merge_race_condition.reference diff --git a/dbms/tests/queries/0_stateless/01001_rename_merge_race_condition.sh b/tests/queries/0_stateless/01001_rename_merge_race_condition.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01001_rename_merge_race_condition.sh rename to tests/queries/0_stateless/01001_rename_merge_race_condition.sh diff --git a/dbms/tests/queries/0_stateless/01002_alter_nullable_adaptive_granularity_long.reference b/tests/queries/0_stateless/01002_alter_nullable_adaptive_granularity_long.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01002_alter_nullable_adaptive_granularity_long.reference rename to tests/queries/0_stateless/01002_alter_nullable_adaptive_granularity_long.reference diff --git a/dbms/tests/queries/0_stateless/01002_alter_nullable_adaptive_granularity_long.sh b/tests/queries/0_stateless/01002_alter_nullable_adaptive_granularity_long.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01002_alter_nullable_adaptive_granularity_long.sh rename to tests/queries/0_stateless/01002_alter_nullable_adaptive_granularity_long.sh diff --git a/dbms/tests/queries/0_stateless/01003_kill_query_race_condition.reference b/tests/queries/0_stateless/01003_kill_query_race_condition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01003_kill_query_race_condition.reference rename to tests/queries/0_stateless/01003_kill_query_race_condition.reference diff --git a/dbms/tests/queries/0_stateless/01003_kill_query_race_condition.sh b/tests/queries/0_stateless/01003_kill_query_race_condition.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01003_kill_query_race_condition.sh rename to tests/queries/0_stateless/01003_kill_query_race_condition.sh diff --git a/dbms/tests/queries/0_stateless/01004_rename_deadlock.reference b/tests/queries/0_stateless/01004_rename_deadlock.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01004_rename_deadlock.reference rename to tests/queries/0_stateless/01004_rename_deadlock.reference diff --git a/dbms/tests/queries/0_stateless/01004_rename_deadlock.sh b/tests/queries/0_stateless/01004_rename_deadlock.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01004_rename_deadlock.sh rename to tests/queries/0_stateless/01004_rename_deadlock.sh diff --git a/dbms/tests/queries/0_stateless/01005_rwr_shard_deadlock.reference b/tests/queries/0_stateless/01005_rwr_shard_deadlock.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01005_rwr_shard_deadlock.reference rename to tests/queries/0_stateless/01005_rwr_shard_deadlock.reference diff --git a/dbms/tests/queries/0_stateless/01005_rwr_shard_deadlock.sh b/tests/queries/0_stateless/01005_rwr_shard_deadlock.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01005_rwr_shard_deadlock.sh rename to tests/queries/0_stateless/01005_rwr_shard_deadlock.sh diff --git a/dbms/tests/queries/0_stateless/01006_simpod_empty_part_single_column_write.reference b/tests/queries/0_stateless/01006_simpod_empty_part_single_column_write.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01006_simpod_empty_part_single_column_write.reference rename to tests/queries/0_stateless/01006_simpod_empty_part_single_column_write.reference diff --git a/dbms/tests/queries/0_stateless/01006_simpod_empty_part_single_column_write.sh b/tests/queries/0_stateless/01006_simpod_empty_part_single_column_write.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01006_simpod_empty_part_single_column_write.sh rename to tests/queries/0_stateless/01006_simpod_empty_part_single_column_write.sh diff --git a/dbms/tests/queries/0_stateless/01006_ttl_with_default_2.reference b/tests/queries/0_stateless/01006_ttl_with_default_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01006_ttl_with_default_2.reference rename to tests/queries/0_stateless/01006_ttl_with_default_2.reference diff --git a/dbms/tests/queries/0_stateless/01006_ttl_with_default_2.sql b/tests/queries/0_stateless/01006_ttl_with_default_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01006_ttl_with_default_2.sql rename to tests/queries/0_stateless/01006_ttl_with_default_2.sql diff --git a/dbms/tests/queries/0_stateless/01007_r1r2_w_r2r1_deadlock.reference b/tests/queries/0_stateless/01007_r1r2_w_r2r1_deadlock.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01007_r1r2_w_r2r1_deadlock.reference rename to tests/queries/0_stateless/01007_r1r2_w_r2r1_deadlock.reference diff --git a/dbms/tests/queries/0_stateless/01007_r1r2_w_r2r1_deadlock.sh b/tests/queries/0_stateless/01007_r1r2_w_r2r1_deadlock.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01007_r1r2_w_r2r1_deadlock.sh rename to tests/queries/0_stateless/01007_r1r2_w_r2r1_deadlock.sh diff --git a/dbms/tests/queries/0_stateless/01008_materialized_view_henyihanwobushi.reference b/tests/queries/0_stateless/01008_materialized_view_henyihanwobushi.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01008_materialized_view_henyihanwobushi.reference rename to tests/queries/0_stateless/01008_materialized_view_henyihanwobushi.reference diff --git a/dbms/tests/queries/0_stateless/01008_materialized_view_henyihanwobushi.sql b/tests/queries/0_stateless/01008_materialized_view_henyihanwobushi.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01008_materialized_view_henyihanwobushi.sql rename to tests/queries/0_stateless/01008_materialized_view_henyihanwobushi.sql diff --git a/dbms/tests/queries/0_stateless/01009_global_array_join_names.reference b/tests/queries/0_stateless/01009_global_array_join_names.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01009_global_array_join_names.reference rename to tests/queries/0_stateless/01009_global_array_join_names.reference diff --git a/dbms/tests/queries/0_stateless/01009_global_array_join_names.sql b/tests/queries/0_stateless/01009_global_array_join_names.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01009_global_array_join_names.sql rename to tests/queries/0_stateless/01009_global_array_join_names.sql diff --git a/dbms/tests/queries/0_stateless/01009_insert_select_data_loss.reference b/tests/queries/0_stateless/01009_insert_select_data_loss.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01009_insert_select_data_loss.reference rename to tests/queries/0_stateless/01009_insert_select_data_loss.reference diff --git a/dbms/tests/queries/0_stateless/01009_insert_select_data_loss.sql b/tests/queries/0_stateless/01009_insert_select_data_loss.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01009_insert_select_data_loss.sql rename to tests/queries/0_stateless/01009_insert_select_data_loss.sql diff --git a/dbms/tests/queries/0_stateless/01009_insert_select_nicelulu.reference b/tests/queries/0_stateless/01009_insert_select_nicelulu.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01009_insert_select_nicelulu.reference rename to tests/queries/0_stateless/01009_insert_select_nicelulu.reference diff --git a/dbms/tests/queries/0_stateless/01009_insert_select_nicelulu.sql b/tests/queries/0_stateless/01009_insert_select_nicelulu.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01009_insert_select_nicelulu.sql rename to tests/queries/0_stateless/01009_insert_select_nicelulu.sql diff --git a/dbms/tests/queries/0_stateless/01010_low_cardinality_and_native_http.reference b/tests/queries/0_stateless/01010_low_cardinality_and_native_http.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01010_low_cardinality_and_native_http.reference rename to tests/queries/0_stateless/01010_low_cardinality_and_native_http.reference diff --git a/dbms/tests/queries/0_stateless/01010_low_cardinality_and_native_http.sh b/tests/queries/0_stateless/01010_low_cardinality_and_native_http.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01010_low_cardinality_and_native_http.sh rename to tests/queries/0_stateless/01010_low_cardinality_and_native_http.sh diff --git a/dbms/tests/queries/0_stateless/01010_partial_merge_join.reference b/tests/queries/0_stateless/01010_partial_merge_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01010_partial_merge_join.reference rename to tests/queries/0_stateless/01010_partial_merge_join.reference diff --git a/dbms/tests/queries/0_stateless/01010_partial_merge_join.sql b/tests/queries/0_stateless/01010_partial_merge_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01010_partial_merge_join.sql rename to tests/queries/0_stateless/01010_partial_merge_join.sql diff --git a/dbms/tests/queries/0_stateless/01010_partial_merge_join_const_and_lc.reference b/tests/queries/0_stateless/01010_partial_merge_join_const_and_lc.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01010_partial_merge_join_const_and_lc.reference rename to tests/queries/0_stateless/01010_partial_merge_join_const_and_lc.reference diff --git a/dbms/tests/queries/0_stateless/01010_partial_merge_join_const_and_lc.sql b/tests/queries/0_stateless/01010_partial_merge_join_const_and_lc.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01010_partial_merge_join_const_and_lc.sql rename to tests/queries/0_stateless/01010_partial_merge_join_const_and_lc.sql diff --git a/dbms/tests/queries/0_stateless/01010_partial_merge_join_negative.reference b/tests/queries/0_stateless/01010_partial_merge_join_negative.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01010_partial_merge_join_negative.reference rename to tests/queries/0_stateless/01010_partial_merge_join_negative.reference diff --git a/dbms/tests/queries/0_stateless/01010_partial_merge_join_negative.sql b/tests/queries/0_stateless/01010_partial_merge_join_negative.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01010_partial_merge_join_negative.sql rename to tests/queries/0_stateless/01010_partial_merge_join_negative.sql diff --git a/dbms/tests/queries/0_stateless/01010_pm_join_all_join_bug.reference b/tests/queries/0_stateless/01010_pm_join_all_join_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pm_join_all_join_bug.reference rename to tests/queries/0_stateless/01010_pm_join_all_join_bug.reference diff --git a/dbms/tests/queries/0_stateless/01010_pm_join_all_join_bug.sql b/tests/queries/0_stateless/01010_pm_join_all_join_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pm_join_all_join_bug.sql rename to tests/queries/0_stateless/01010_pm_join_all_join_bug.sql diff --git a/dbms/tests/queries/0_stateless/01010_pmj_on_disk.reference b/tests/queries/0_stateless/01010_pmj_on_disk.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pmj_on_disk.reference rename to tests/queries/0_stateless/01010_pmj_on_disk.reference diff --git a/dbms/tests/queries/0_stateless/01010_pmj_on_disk.sql b/tests/queries/0_stateless/01010_pmj_on_disk.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pmj_on_disk.sql rename to tests/queries/0_stateless/01010_pmj_on_disk.sql diff --git a/dbms/tests/queries/0_stateless/01010_pmj_one_row_blocks.reference b/tests/queries/0_stateless/01010_pmj_one_row_blocks.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pmj_one_row_blocks.reference rename to tests/queries/0_stateless/01010_pmj_one_row_blocks.reference diff --git a/dbms/tests/queries/0_stateless/01010_pmj_one_row_blocks.sql b/tests/queries/0_stateless/01010_pmj_one_row_blocks.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pmj_one_row_blocks.sql rename to tests/queries/0_stateless/01010_pmj_one_row_blocks.sql diff --git a/dbms/tests/queries/0_stateless/01010_pmj_right_table_memory_limits.reference b/tests/queries/0_stateless/01010_pmj_right_table_memory_limits.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pmj_right_table_memory_limits.reference rename to tests/queries/0_stateless/01010_pmj_right_table_memory_limits.reference diff --git a/dbms/tests/queries/0_stateless/01010_pmj_right_table_memory_limits.sql b/tests/queries/0_stateless/01010_pmj_right_table_memory_limits.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pmj_right_table_memory_limits.sql rename to tests/queries/0_stateless/01010_pmj_right_table_memory_limits.sql diff --git a/dbms/tests/queries/0_stateless/01010_pmj_skip_blocks.reference b/tests/queries/0_stateless/01010_pmj_skip_blocks.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pmj_skip_blocks.reference rename to tests/queries/0_stateless/01010_pmj_skip_blocks.reference diff --git a/dbms/tests/queries/0_stateless/01010_pmj_skip_blocks.sql b/tests/queries/0_stateless/01010_pmj_skip_blocks.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01010_pmj_skip_blocks.sql rename to tests/queries/0_stateless/01010_pmj_skip_blocks.sql diff --git a/dbms/tests/queries/0_stateless/01011_group_uniq_array_memsan.reference b/tests/queries/0_stateless/01011_group_uniq_array_memsan.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01011_group_uniq_array_memsan.reference rename to tests/queries/0_stateless/01011_group_uniq_array_memsan.reference diff --git a/dbms/tests/queries/0_stateless/01011_group_uniq_array_memsan.sql b/tests/queries/0_stateless/01011_group_uniq_array_memsan.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01011_group_uniq_array_memsan.sql rename to tests/queries/0_stateless/01011_group_uniq_array_memsan.sql diff --git a/dbms/tests/queries/0_stateless/01011_test_create_as_skip_indices.reference b/tests/queries/0_stateless/01011_test_create_as_skip_indices.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01011_test_create_as_skip_indices.reference rename to tests/queries/0_stateless/01011_test_create_as_skip_indices.reference diff --git a/dbms/tests/queries/0_stateless/01011_test_create_as_skip_indices.sql b/tests/queries/0_stateless/01011_test_create_as_skip_indices.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01011_test_create_as_skip_indices.sql rename to tests/queries/0_stateless/01011_test_create_as_skip_indices.sql diff --git a/dbms/tests/queries/0_stateless/01012_reset_running_accumulate.reference b/tests/queries/0_stateless/01012_reset_running_accumulate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01012_reset_running_accumulate.reference rename to tests/queries/0_stateless/01012_reset_running_accumulate.reference diff --git a/dbms/tests/queries/0_stateless/01012_reset_running_accumulate.sql b/tests/queries/0_stateless/01012_reset_running_accumulate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01012_reset_running_accumulate.sql rename to tests/queries/0_stateless/01012_reset_running_accumulate.sql diff --git a/dbms/tests/queries/0_stateless/01012_select_limit_x_0.reference b/tests/queries/0_stateless/01012_select_limit_x_0.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01012_select_limit_x_0.reference rename to tests/queries/0_stateless/01012_select_limit_x_0.reference diff --git a/dbms/tests/queries/0_stateless/01012_select_limit_x_0.sql b/tests/queries/0_stateless/01012_select_limit_x_0.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01012_select_limit_x_0.sql rename to tests/queries/0_stateless/01012_select_limit_x_0.sql diff --git a/dbms/tests/queries/0_stateless/01012_serialize_array_memory_usage.reference b/tests/queries/0_stateless/01012_serialize_array_memory_usage.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01012_serialize_array_memory_usage.reference rename to tests/queries/0_stateless/01012_serialize_array_memory_usage.reference diff --git a/dbms/tests/queries/0_stateless/01012_serialize_array_memory_usage.sql b/tests/queries/0_stateless/01012_serialize_array_memory_usage.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01012_serialize_array_memory_usage.sql rename to tests/queries/0_stateless/01012_serialize_array_memory_usage.sql diff --git a/dbms/tests/queries/0_stateless/01012_show_tables_limit.reference b/tests/queries/0_stateless/01012_show_tables_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01012_show_tables_limit.reference rename to tests/queries/0_stateless/01012_show_tables_limit.reference diff --git a/dbms/tests/queries/0_stateless/01012_show_tables_limit.sql b/tests/queries/0_stateless/01012_show_tables_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01012_show_tables_limit.sql rename to tests/queries/0_stateless/01012_show_tables_limit.sql diff --git a/dbms/tests/queries/0_stateless/01013_hex_decimal.reference b/tests/queries/0_stateless/01013_hex_decimal.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01013_hex_decimal.reference rename to tests/queries/0_stateless/01013_hex_decimal.reference diff --git a/dbms/tests/queries/0_stateless/01013_hex_decimal.sql b/tests/queries/0_stateless/01013_hex_decimal.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01013_hex_decimal.sql rename to tests/queries/0_stateless/01013_hex_decimal.sql diff --git a/dbms/tests/queries/0_stateless/01013_hex_float.reference b/tests/queries/0_stateless/01013_hex_float.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01013_hex_float.reference rename to tests/queries/0_stateless/01013_hex_float.reference diff --git a/dbms/tests/queries/0_stateless/01013_hex_float.sql b/tests/queries/0_stateless/01013_hex_float.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01013_hex_float.sql rename to tests/queries/0_stateless/01013_hex_float.sql diff --git a/dbms/tests/queries/0_stateless/01013_repeat_function.reference b/tests/queries/0_stateless/01013_repeat_function.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01013_repeat_function.reference rename to tests/queries/0_stateless/01013_repeat_function.reference diff --git a/dbms/tests/queries/0_stateless/01013_repeat_function.sql b/tests/queries/0_stateless/01013_repeat_function.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01013_repeat_function.sql rename to tests/queries/0_stateless/01013_repeat_function.sql diff --git a/dbms/tests/queries/0_stateless/01013_sync_replica_timeout_zookeeper.reference b/tests/queries/0_stateless/01013_sync_replica_timeout_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01013_sync_replica_timeout_zookeeper.reference rename to tests/queries/0_stateless/01013_sync_replica_timeout_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01013_sync_replica_timeout_zookeeper.sh b/tests/queries/0_stateless/01013_sync_replica_timeout_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01013_sync_replica_timeout_zookeeper.sh rename to tests/queries/0_stateless/01013_sync_replica_timeout_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01013_totals_without_aggregation.reference b/tests/queries/0_stateless/01013_totals_without_aggregation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01013_totals_without_aggregation.reference rename to tests/queries/0_stateless/01013_totals_without_aggregation.reference diff --git a/dbms/tests/queries/0_stateless/01013_totals_without_aggregation.sql b/tests/queries/0_stateless/01013_totals_without_aggregation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01013_totals_without_aggregation.sql rename to tests/queries/0_stateless/01013_totals_without_aggregation.sql diff --git a/dbms/tests/queries/0_stateless/01014_count_of_merges_metrics.reference b/tests/queries/0_stateless/01014_count_of_merges_metrics.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01014_count_of_merges_metrics.reference rename to tests/queries/0_stateless/01014_count_of_merges_metrics.reference diff --git a/dbms/tests/queries/0_stateless/01014_count_of_merges_metrics.sql b/tests/queries/0_stateless/01014_count_of_merges_metrics.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01014_count_of_merges_metrics.sql rename to tests/queries/0_stateless/01014_count_of_merges_metrics.sql diff --git a/dbms/tests/queries/0_stateless/01014_format_custom_separated.reference b/tests/queries/0_stateless/01014_format_custom_separated.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01014_format_custom_separated.reference rename to tests/queries/0_stateless/01014_format_custom_separated.reference diff --git a/dbms/tests/queries/0_stateless/01014_format_custom_separated.sh b/tests/queries/0_stateless/01014_format_custom_separated.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01014_format_custom_separated.sh rename to tests/queries/0_stateless/01014_format_custom_separated.sh diff --git a/dbms/tests/queries/0_stateless/01014_function_repeat_corner_cases.reference b/tests/queries/0_stateless/01014_function_repeat_corner_cases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01014_function_repeat_corner_cases.reference rename to tests/queries/0_stateless/01014_function_repeat_corner_cases.reference diff --git a/dbms/tests/queries/0_stateless/01014_function_repeat_corner_cases.sql b/tests/queries/0_stateless/01014_function_repeat_corner_cases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01014_function_repeat_corner_cases.sql rename to tests/queries/0_stateless/01014_function_repeat_corner_cases.sql diff --git a/dbms/tests/queries/0_stateless/01014_lazy_database_basic.reference b/tests/queries/0_stateless/01014_lazy_database_basic.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01014_lazy_database_basic.reference rename to tests/queries/0_stateless/01014_lazy_database_basic.reference diff --git a/dbms/tests/queries/0_stateless/01014_lazy_database_basic.sh b/tests/queries/0_stateless/01014_lazy_database_basic.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01014_lazy_database_basic.sh rename to tests/queries/0_stateless/01014_lazy_database_basic.sh diff --git a/dbms/tests/queries/0_stateless/01015_array_split.reference b/tests/queries/0_stateless/01015_array_split.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01015_array_split.reference rename to tests/queries/0_stateless/01015_array_split.reference diff --git a/dbms/tests/queries/0_stateless/01015_array_split.sql b/tests/queries/0_stateless/01015_array_split.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01015_array_split.sql rename to tests/queries/0_stateless/01015_array_split.sql diff --git a/dbms/tests/queries/0_stateless/01015_attach_part.reference b/tests/queries/0_stateless/01015_attach_part.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01015_attach_part.reference rename to tests/queries/0_stateless/01015_attach_part.reference diff --git a/dbms/tests/queries/0_stateless/01015_attach_part.sql b/tests/queries/0_stateless/01015_attach_part.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01015_attach_part.sql rename to tests/queries/0_stateless/01015_attach_part.sql diff --git a/dbms/tests/queries/0_stateless/01015_database_bad_tables.reference b/tests/queries/0_stateless/01015_database_bad_tables.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01015_database_bad_tables.reference rename to tests/queries/0_stateless/01015_database_bad_tables.reference diff --git a/dbms/tests/queries/0_stateless/01015_database_bad_tables.sql b/tests/queries/0_stateless/01015_database_bad_tables.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01015_database_bad_tables.sql rename to tests/queries/0_stateless/01015_database_bad_tables.sql diff --git a/dbms/tests/queries/0_stateless/01015_empty_in_inner_right_join.reference b/tests/queries/0_stateless/01015_empty_in_inner_right_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01015_empty_in_inner_right_join.reference rename to tests/queries/0_stateless/01015_empty_in_inner_right_join.reference diff --git a/dbms/tests/queries/0_stateless/01015_empty_in_inner_right_join.sql b/tests/queries/0_stateless/01015_empty_in_inner_right_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01015_empty_in_inner_right_join.sql rename to tests/queries/0_stateless/01015_empty_in_inner_right_join.sql diff --git a/dbms/tests/queries/0_stateless/01015_insert_values_parametrized.reference b/tests/queries/0_stateless/01015_insert_values_parametrized.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01015_insert_values_parametrized.reference rename to tests/queries/0_stateless/01015_insert_values_parametrized.reference diff --git a/dbms/tests/queries/0_stateless/01015_insert_values_parametrized.sh b/tests/queries/0_stateless/01015_insert_values_parametrized.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01015_insert_values_parametrized.sh rename to tests/queries/0_stateless/01015_insert_values_parametrized.sh diff --git a/dbms/tests/queries/0_stateless/01015_random_constant.reference b/tests/queries/0_stateless/01015_random_constant.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01015_random_constant.reference rename to tests/queries/0_stateless/01015_random_constant.reference diff --git a/dbms/tests/queries/0_stateless/01015_random_constant.sql b/tests/queries/0_stateless/01015_random_constant.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01015_random_constant.sql rename to tests/queries/0_stateless/01015_random_constant.sql diff --git a/dbms/tests/queries/0_stateless/01016_index_tuple_field_type.reference b/tests/queries/0_stateless/01016_index_tuple_field_type.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01016_index_tuple_field_type.reference rename to tests/queries/0_stateless/01016_index_tuple_field_type.reference diff --git a/dbms/tests/queries/0_stateless/01016_index_tuple_field_type.sql b/tests/queries/0_stateless/01016_index_tuple_field_type.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01016_index_tuple_field_type.sql rename to tests/queries/0_stateless/01016_index_tuple_field_type.sql diff --git a/dbms/tests/queries/0_stateless/01016_input_null_as_default.reference b/tests/queries/0_stateless/01016_input_null_as_default.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01016_input_null_as_default.reference rename to tests/queries/0_stateless/01016_input_null_as_default.reference diff --git a/dbms/tests/queries/0_stateless/01016_input_null_as_default.sh b/tests/queries/0_stateless/01016_input_null_as_default.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01016_input_null_as_default.sh rename to tests/queries/0_stateless/01016_input_null_as_default.sh diff --git a/dbms/tests/queries/0_stateless/01016_macros.reference b/tests/queries/0_stateless/01016_macros.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01016_macros.reference rename to tests/queries/0_stateless/01016_macros.reference diff --git a/dbms/tests/queries/0_stateless/01016_macros.sql b/tests/queries/0_stateless/01016_macros.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01016_macros.sql rename to tests/queries/0_stateless/01016_macros.sql diff --git a/dbms/tests/queries/0_stateless/01016_null_part_minmax.reference b/tests/queries/0_stateless/01016_null_part_minmax.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01016_null_part_minmax.reference rename to tests/queries/0_stateless/01016_null_part_minmax.reference diff --git a/dbms/tests/queries/0_stateless/01016_null_part_minmax.sql b/tests/queries/0_stateless/01016_null_part_minmax.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01016_null_part_minmax.sql rename to tests/queries/0_stateless/01016_null_part_minmax.sql diff --git a/dbms/tests/queries/0_stateless/01016_uniqCombined64.reference b/tests/queries/0_stateless/01016_uniqCombined64.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01016_uniqCombined64.reference rename to tests/queries/0_stateless/01016_uniqCombined64.reference diff --git a/dbms/tests/queries/0_stateless/01016_uniqCombined64.sql b/tests/queries/0_stateless/01016_uniqCombined64.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01016_uniqCombined64.sql rename to tests/queries/0_stateless/01016_uniqCombined64.sql diff --git a/dbms/tests/queries/0_stateless/01017_in_unconvertible_complex_type.reference b/tests/queries/0_stateless/01017_in_unconvertible_complex_type.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01017_in_unconvertible_complex_type.reference rename to tests/queries/0_stateless/01017_in_unconvertible_complex_type.reference diff --git a/dbms/tests/queries/0_stateless/01017_in_unconvertible_complex_type.sql b/tests/queries/0_stateless/01017_in_unconvertible_complex_type.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01017_in_unconvertible_complex_type.sql rename to tests/queries/0_stateless/01017_in_unconvertible_complex_type.sql diff --git a/dbms/tests/queries/0_stateless/01017_mutations_with_nondeterministic_functions_zookeeper.reference b/tests/queries/0_stateless/01017_mutations_with_nondeterministic_functions_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01017_mutations_with_nondeterministic_functions_zookeeper.reference rename to tests/queries/0_stateless/01017_mutations_with_nondeterministic_functions_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01017_mutations_with_nondeterministic_functions_zookeeper.sh b/tests/queries/0_stateless/01017_mutations_with_nondeterministic_functions_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01017_mutations_with_nondeterministic_functions_zookeeper.sh rename to tests/queries/0_stateless/01017_mutations_with_nondeterministic_functions_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01017_tsv_empty_as_default.reference b/tests/queries/0_stateless/01017_tsv_empty_as_default.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01017_tsv_empty_as_default.reference rename to tests/queries/0_stateless/01017_tsv_empty_as_default.reference diff --git a/dbms/tests/queries/0_stateless/01017_tsv_empty_as_default.sh b/tests/queries/0_stateless/01017_tsv_empty_as_default.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01017_tsv_empty_as_default.sh rename to tests/queries/0_stateless/01017_tsv_empty_as_default.sh diff --git a/dbms/tests/queries/0_stateless/01017_uniqCombined_memory_usage.reference b/tests/queries/0_stateless/01017_uniqCombined_memory_usage.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01017_uniqCombined_memory_usage.reference rename to tests/queries/0_stateless/01017_uniqCombined_memory_usage.reference diff --git a/dbms/tests/queries/0_stateless/01017_uniqCombined_memory_usage.sql b/tests/queries/0_stateless/01017_uniqCombined_memory_usage.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01017_uniqCombined_memory_usage.sql rename to tests/queries/0_stateless/01017_uniqCombined_memory_usage.sql diff --git a/dbms/tests/queries/0_stateless/01018_Distributed__shard_num.reference b/tests/queries/0_stateless/01018_Distributed__shard_num.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_Distributed__shard_num.reference rename to tests/queries/0_stateless/01018_Distributed__shard_num.reference diff --git a/dbms/tests/queries/0_stateless/01018_Distributed__shard_num.sql b/tests/queries/0_stateless/01018_Distributed__shard_num.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01018_Distributed__shard_num.sql rename to tests/queries/0_stateless/01018_Distributed__shard_num.sql diff --git a/dbms/tests/queries/0_stateless/01018_ambiguous_column.reference b/tests/queries/0_stateless/01018_ambiguous_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ambiguous_column.reference rename to tests/queries/0_stateless/01018_ambiguous_column.reference diff --git a/dbms/tests/queries/0_stateless/01018_ambiguous_column.sql b/tests/queries/0_stateless/01018_ambiguous_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ambiguous_column.sql rename to tests/queries/0_stateless/01018_ambiguous_column.sql diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_bad_queries.reference b/tests/queries/0_stateless/01018_ddl_dictionaries_bad_queries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_bad_queries.reference rename to tests/queries/0_stateless/01018_ddl_dictionaries_bad_queries.reference diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_bad_queries.sh b/tests/queries/0_stateless/01018_ddl_dictionaries_bad_queries.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_bad_queries.sh rename to tests/queries/0_stateless/01018_ddl_dictionaries_bad_queries.sh diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_concurrent_requrests.reference b/tests/queries/0_stateless/01018_ddl_dictionaries_concurrent_requrests.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_concurrent_requrests.reference rename to tests/queries/0_stateless/01018_ddl_dictionaries_concurrent_requrests.reference diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_concurrent_requrests.sh b/tests/queries/0_stateless/01018_ddl_dictionaries_concurrent_requrests.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_concurrent_requrests.sh rename to tests/queries/0_stateless/01018_ddl_dictionaries_concurrent_requrests.sh diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_create.reference b/tests/queries/0_stateless/01018_ddl_dictionaries_create.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_create.reference rename to tests/queries/0_stateless/01018_ddl_dictionaries_create.reference diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_create.sql b/tests/queries/0_stateless/01018_ddl_dictionaries_create.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_create.sql rename to tests/queries/0_stateless/01018_ddl_dictionaries_create.sql diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_select.reference b/tests/queries/0_stateless/01018_ddl_dictionaries_select.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_select.reference rename to tests/queries/0_stateless/01018_ddl_dictionaries_select.reference diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_select.sql b/tests/queries/0_stateless/01018_ddl_dictionaries_select.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_select.sql rename to tests/queries/0_stateless/01018_ddl_dictionaries_select.sql diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_special.reference b/tests/queries/0_stateless/01018_ddl_dictionaries_special.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_special.reference rename to tests/queries/0_stateless/01018_ddl_dictionaries_special.reference diff --git a/dbms/tests/queries/0_stateless/01018_ddl_dictionaries_special.sql b/tests/queries/0_stateless/01018_ddl_dictionaries_special.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01018_ddl_dictionaries_special.sql rename to tests/queries/0_stateless/01018_ddl_dictionaries_special.sql diff --git a/dbms/tests/queries/0_stateless/01018_dictionaries_from_dictionaries.reference b/tests/queries/0_stateless/01018_dictionaries_from_dictionaries.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_dictionaries_from_dictionaries.reference rename to tests/queries/0_stateless/01018_dictionaries_from_dictionaries.reference diff --git a/dbms/tests/queries/0_stateless/01018_dictionaries_from_dictionaries.sql b/tests/queries/0_stateless/01018_dictionaries_from_dictionaries.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01018_dictionaries_from_dictionaries.sql rename to tests/queries/0_stateless/01018_dictionaries_from_dictionaries.sql diff --git a/dbms/tests/queries/0_stateless/01018_empty_aggregation_filling.reference b/tests/queries/0_stateless/01018_empty_aggregation_filling.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_empty_aggregation_filling.reference rename to tests/queries/0_stateless/01018_empty_aggregation_filling.reference diff --git a/dbms/tests/queries/0_stateless/01018_empty_aggregation_filling.sql b/tests/queries/0_stateless/01018_empty_aggregation_filling.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01018_empty_aggregation_filling.sql rename to tests/queries/0_stateless/01018_empty_aggregation_filling.sql diff --git a/dbms/tests/queries/0_stateless/01018_insert_multiple_blocks_with_defaults.reference b/tests/queries/0_stateless/01018_insert_multiple_blocks_with_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_insert_multiple_blocks_with_defaults.reference rename to tests/queries/0_stateless/01018_insert_multiple_blocks_with_defaults.reference diff --git a/dbms/tests/queries/0_stateless/01018_insert_multiple_blocks_with_defaults.sh b/tests/queries/0_stateless/01018_insert_multiple_blocks_with_defaults.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01018_insert_multiple_blocks_with_defaults.sh rename to tests/queries/0_stateless/01018_insert_multiple_blocks_with_defaults.sh diff --git a/dbms/tests/queries/0_stateless/01018_optimize_read_in_order_with_in_subquery.reference b/tests/queries/0_stateless/01018_optimize_read_in_order_with_in_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01018_optimize_read_in_order_with_in_subquery.reference rename to tests/queries/0_stateless/01018_optimize_read_in_order_with_in_subquery.reference diff --git a/dbms/tests/queries/0_stateless/01018_optimize_read_in_order_with_in_subquery.sql b/tests/queries/0_stateless/01018_optimize_read_in_order_with_in_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01018_optimize_read_in_order_with_in_subquery.sql rename to tests/queries/0_stateless/01018_optimize_read_in_order_with_in_subquery.sql diff --git a/dbms/tests/queries/0_stateless/01019_Buffer_and_max_memory_usage.reference b/tests/queries/0_stateless/01019_Buffer_and_max_memory_usage.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01019_Buffer_and_max_memory_usage.reference rename to tests/queries/0_stateless/01019_Buffer_and_max_memory_usage.reference diff --git a/dbms/tests/queries/0_stateless/01019_Buffer_and_max_memory_usage.sql b/tests/queries/0_stateless/01019_Buffer_and_max_memory_usage.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01019_Buffer_and_max_memory_usage.sql rename to tests/queries/0_stateless/01019_Buffer_and_max_memory_usage.sql diff --git a/dbms/tests/queries/0_stateless/01019_alter_materialized_view_atomic.reference b/tests/queries/0_stateless/01019_alter_materialized_view_atomic.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01019_alter_materialized_view_atomic.reference rename to tests/queries/0_stateless/01019_alter_materialized_view_atomic.reference diff --git a/dbms/tests/queries/0_stateless/01019_alter_materialized_view_atomic.sh b/tests/queries/0_stateless/01019_alter_materialized_view_atomic.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01019_alter_materialized_view_atomic.sh rename to tests/queries/0_stateless/01019_alter_materialized_view_atomic.sh diff --git a/dbms/tests/queries/0_stateless/01019_alter_materialized_view_consistent.reference b/tests/queries/0_stateless/01019_alter_materialized_view_consistent.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01019_alter_materialized_view_consistent.reference rename to tests/queries/0_stateless/01019_alter_materialized_view_consistent.reference diff --git a/dbms/tests/queries/0_stateless/01019_alter_materialized_view_consistent.sh b/tests/queries/0_stateless/01019_alter_materialized_view_consistent.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01019_alter_materialized_view_consistent.sh rename to tests/queries/0_stateless/01019_alter_materialized_view_consistent.sh diff --git a/dbms/tests/queries/0_stateless/01019_alter_materialized_view_query.reference b/tests/queries/0_stateless/01019_alter_materialized_view_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01019_alter_materialized_view_query.reference rename to tests/queries/0_stateless/01019_alter_materialized_view_query.reference diff --git a/dbms/tests/queries/0_stateless/01019_alter_materialized_view_query.sql b/tests/queries/0_stateless/01019_alter_materialized_view_query.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01019_alter_materialized_view_query.sql rename to tests/queries/0_stateless/01019_alter_materialized_view_query.sql diff --git a/dbms/tests/queries/0_stateless/01019_array_fill.reference b/tests/queries/0_stateless/01019_array_fill.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01019_array_fill.reference rename to tests/queries/0_stateless/01019_array_fill.reference diff --git a/dbms/tests/queries/0_stateless/01019_array_fill.sql b/tests/queries/0_stateless/01019_array_fill.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01019_array_fill.sql rename to tests/queries/0_stateless/01019_array_fill.sql diff --git a/dbms/tests/queries/0_stateless/01019_materialized_view_select_extra_columns.reference b/tests/queries/0_stateless/01019_materialized_view_select_extra_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01019_materialized_view_select_extra_columns.reference rename to tests/queries/0_stateless/01019_materialized_view_select_extra_columns.reference diff --git a/dbms/tests/queries/0_stateless/01019_materialized_view_select_extra_columns.sql b/tests/queries/0_stateless/01019_materialized_view_select_extra_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01019_materialized_view_select_extra_columns.sql rename to tests/queries/0_stateless/01019_materialized_view_select_extra_columns.sql diff --git a/dbms/tests/queries/0_stateless/01019_parallel_parsing_cancel.reference b/tests/queries/0_stateless/01019_parallel_parsing_cancel.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01019_parallel_parsing_cancel.reference rename to tests/queries/0_stateless/01019_parallel_parsing_cancel.reference diff --git a/dbms/tests/queries/0_stateless/01019_parallel_parsing_cancel.sh b/tests/queries/0_stateless/01019_parallel_parsing_cancel.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01019_parallel_parsing_cancel.sh rename to tests/queries/0_stateless/01019_parallel_parsing_cancel.sh diff --git a/dbms/tests/queries/0_stateless/01020_function_array_compact.reference b/tests/queries/0_stateless/01020_function_array_compact.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01020_function_array_compact.reference rename to tests/queries/0_stateless/01020_function_array_compact.reference diff --git a/dbms/tests/queries/0_stateless/01020_function_array_compact.sql b/tests/queries/0_stateless/01020_function_array_compact.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01020_function_array_compact.sql rename to tests/queries/0_stateless/01020_function_array_compact.sql diff --git a/dbms/tests/queries/0_stateless/01020_function_char.reference b/tests/queries/0_stateless/01020_function_char.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01020_function_char.reference rename to tests/queries/0_stateless/01020_function_char.reference diff --git a/dbms/tests/queries/0_stateless/01020_function_char.sql b/tests/queries/0_stateless/01020_function_char.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01020_function_char.sql rename to tests/queries/0_stateless/01020_function_char.sql diff --git a/dbms/tests/queries/0_stateless/01020_having_without_group_by.reference b/tests/queries/0_stateless/01020_having_without_group_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01020_having_without_group_by.reference rename to tests/queries/0_stateless/01020_having_without_group_by.reference diff --git a/dbms/tests/queries/0_stateless/01020_having_without_group_by.sql b/tests/queries/0_stateless/01020_having_without_group_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01020_having_without_group_by.sql rename to tests/queries/0_stateless/01020_having_without_group_by.sql diff --git a/dbms/tests/queries/0_stateless/01021_create_as_select.reference b/tests/queries/0_stateless/01021_create_as_select.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01021_create_as_select.reference rename to tests/queries/0_stateless/01021_create_as_select.reference diff --git a/dbms/tests/queries/0_stateless/01021_create_as_select.sql b/tests/queries/0_stateless/01021_create_as_select.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01021_create_as_select.sql rename to tests/queries/0_stateless/01021_create_as_select.sql diff --git a/dbms/tests/queries/0_stateless/01021_only_tuple_columns.reference b/tests/queries/0_stateless/01021_only_tuple_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01021_only_tuple_columns.reference rename to tests/queries/0_stateless/01021_only_tuple_columns.reference diff --git a/dbms/tests/queries/0_stateless/01021_only_tuple_columns.sql b/tests/queries/0_stateless/01021_only_tuple_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01021_only_tuple_columns.sql rename to tests/queries/0_stateless/01021_only_tuple_columns.sql diff --git a/dbms/tests/queries/0_stateless/01021_tuple_parser.reference b/tests/queries/0_stateless/01021_tuple_parser.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01021_tuple_parser.reference rename to tests/queries/0_stateless/01021_tuple_parser.reference diff --git a/dbms/tests/queries/0_stateless/01021_tuple_parser.sql b/tests/queries/0_stateless/01021_tuple_parser.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01021_tuple_parser.sql rename to tests/queries/0_stateless/01021_tuple_parser.sql diff --git a/dbms/tests/queries/0_stateless/01023_materialized_view_query_context.reference b/tests/queries/0_stateless/01023_materialized_view_query_context.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01023_materialized_view_query_context.reference rename to tests/queries/0_stateless/01023_materialized_view_query_context.reference diff --git a/dbms/tests/queries/0_stateless/01023_materialized_view_query_context.sql b/tests/queries/0_stateless/01023_materialized_view_query_context.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01023_materialized_view_query_context.sql rename to tests/queries/0_stateless/01023_materialized_view_query_context.sql diff --git a/dbms/tests/queries/0_stateless/01024__getScalar.reference b/tests/queries/0_stateless/01024__getScalar.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01024__getScalar.reference rename to tests/queries/0_stateless/01024__getScalar.reference diff --git a/dbms/tests/queries/0_stateless/01024__getScalar.sql b/tests/queries/0_stateless/01024__getScalar.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01024__getScalar.sql rename to tests/queries/0_stateless/01024__getScalar.sql diff --git a/dbms/tests/queries/0_stateless/01025_array_compact_generic.reference b/tests/queries/0_stateless/01025_array_compact_generic.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01025_array_compact_generic.reference rename to tests/queries/0_stateless/01025_array_compact_generic.reference diff --git a/dbms/tests/queries/0_stateless/01025_array_compact_generic.sql b/tests/queries/0_stateless/01025_array_compact_generic.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01025_array_compact_generic.sql rename to tests/queries/0_stateless/01025_array_compact_generic.sql diff --git a/dbms/tests/queries/0_stateless/01026_char_utf8.reference b/tests/queries/0_stateless/01026_char_utf8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01026_char_utf8.reference rename to tests/queries/0_stateless/01026_char_utf8.reference diff --git a/dbms/tests/queries/0_stateless/01026_char_utf8.sql b/tests/queries/0_stateless/01026_char_utf8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01026_char_utf8.sql rename to tests/queries/0_stateless/01026_char_utf8.sql diff --git a/dbms/tests/queries/0_stateless/01029_early_constant_folding.reference b/tests/queries/0_stateless/01029_early_constant_folding.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01029_early_constant_folding.reference rename to tests/queries/0_stateless/01029_early_constant_folding.reference diff --git a/dbms/tests/queries/0_stateless/01029_early_constant_folding.sql b/tests/queries/0_stateless/01029_early_constant_folding.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01029_early_constant_folding.sql rename to tests/queries/0_stateless/01029_early_constant_folding.sql diff --git a/dbms/tests/queries/0_stateless/01030_concatenate_equal_fixed_strings.reference b/tests/queries/0_stateless/01030_concatenate_equal_fixed_strings.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01030_concatenate_equal_fixed_strings.reference rename to tests/queries/0_stateless/01030_concatenate_equal_fixed_strings.reference diff --git a/dbms/tests/queries/0_stateless/01030_concatenate_equal_fixed_strings.sql b/tests/queries/0_stateless/01030_concatenate_equal_fixed_strings.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01030_concatenate_equal_fixed_strings.sql rename to tests/queries/0_stateless/01030_concatenate_equal_fixed_strings.sql diff --git a/dbms/tests/queries/0_stateless/01030_final_mark_empty_primary_key.reference b/tests/queries/0_stateless/01030_final_mark_empty_primary_key.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01030_final_mark_empty_primary_key.reference rename to tests/queries/0_stateless/01030_final_mark_empty_primary_key.reference diff --git a/dbms/tests/queries/0_stateless/01030_final_mark_empty_primary_key.sql b/tests/queries/0_stateless/01030_final_mark_empty_primary_key.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01030_final_mark_empty_primary_key.sql rename to tests/queries/0_stateless/01030_final_mark_empty_primary_key.sql diff --git a/dbms/tests/queries/0_stateless/01030_incorrect_count_summing_merge_tree.reference b/tests/queries/0_stateless/01030_incorrect_count_summing_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01030_incorrect_count_summing_merge_tree.reference rename to tests/queries/0_stateless/01030_incorrect_count_summing_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/01030_incorrect_count_summing_merge_tree.sql b/tests/queries/0_stateless/01030_incorrect_count_summing_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01030_incorrect_count_summing_merge_tree.sql rename to tests/queries/0_stateless/01030_incorrect_count_summing_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/01030_limit_by_with_ties_error.reference b/tests/queries/0_stateless/01030_limit_by_with_ties_error.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01030_limit_by_with_ties_error.reference rename to tests/queries/0_stateless/01030_limit_by_with_ties_error.reference diff --git a/dbms/tests/queries/0_stateless/01030_limit_by_with_ties_error.sh b/tests/queries/0_stateless/01030_limit_by_with_ties_error.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01030_limit_by_with_ties_error.sh rename to tests/queries/0_stateless/01030_limit_by_with_ties_error.sh diff --git a/dbms/tests/queries/0_stateless/01030_storage_hdfs_syntax.reference b/tests/queries/0_stateless/01030_storage_hdfs_syntax.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01030_storage_hdfs_syntax.reference rename to tests/queries/0_stateless/01030_storage_hdfs_syntax.reference diff --git a/dbms/tests/queries/0_stateless/01030_storage_hdfs_syntax.sql b/tests/queries/0_stateless/01030_storage_hdfs_syntax.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01030_storage_hdfs_syntax.sql rename to tests/queries/0_stateless/01030_storage_hdfs_syntax.sql diff --git a/dbms/tests/queries/0_stateless/01030_storage_set_supports_read.reference b/tests/queries/0_stateless/01030_storage_set_supports_read.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01030_storage_set_supports_read.reference rename to tests/queries/0_stateless/01030_storage_set_supports_read.reference diff --git a/dbms/tests/queries/0_stateless/01030_storage_set_supports_read.sql b/tests/queries/0_stateless/01030_storage_set_supports_read.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01030_storage_set_supports_read.sql rename to tests/queries/0_stateless/01030_storage_set_supports_read.sql diff --git a/dbms/tests/queries/0_stateless/01030_storage_url_syntax.reference b/tests/queries/0_stateless/01030_storage_url_syntax.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01030_storage_url_syntax.reference rename to tests/queries/0_stateless/01030_storage_url_syntax.reference diff --git a/dbms/tests/queries/0_stateless/01030_storage_url_syntax.sql b/tests/queries/0_stateless/01030_storage_url_syntax.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01030_storage_url_syntax.sql rename to tests/queries/0_stateless/01030_storage_url_syntax.sql diff --git a/dbms/tests/queries/0_stateless/01031_mutations_interpreter_and_context.reference b/tests/queries/0_stateless/01031_mutations_interpreter_and_context.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01031_mutations_interpreter_and_context.reference rename to tests/queries/0_stateless/01031_mutations_interpreter_and_context.reference diff --git a/dbms/tests/queries/0_stateless/01031_mutations_interpreter_and_context.sh b/tests/queries/0_stateless/01031_mutations_interpreter_and_context.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01031_mutations_interpreter_and_context.sh rename to tests/queries/0_stateless/01031_mutations_interpreter_and_context.sh diff --git a/dbms/tests/queries/0_stateless/01031_new_any_join.reference b/tests/queries/0_stateless/01031_new_any_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01031_new_any_join.reference rename to tests/queries/0_stateless/01031_new_any_join.reference diff --git a/dbms/tests/queries/0_stateless/01031_new_any_join.sql b/tests/queries/0_stateless/01031_new_any_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01031_new_any_join.sql rename to tests/queries/0_stateless/01031_new_any_join.sql diff --git a/dbms/tests/queries/0_stateless/01031_pmj_new_any_semi_join.reference b/tests/queries/0_stateless/01031_pmj_new_any_semi_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01031_pmj_new_any_semi_join.reference rename to tests/queries/0_stateless/01031_pmj_new_any_semi_join.reference diff --git a/dbms/tests/queries/0_stateless/01031_pmj_new_any_semi_join.sql b/tests/queries/0_stateless/01031_pmj_new_any_semi_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01031_pmj_new_any_semi_join.sql rename to tests/queries/0_stateless/01031_pmj_new_any_semi_join.sql diff --git a/dbms/tests/queries/0_stateless/01031_semi_anti_join.reference b/tests/queries/0_stateless/01031_semi_anti_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01031_semi_anti_join.reference rename to tests/queries/0_stateless/01031_semi_anti_join.reference diff --git a/dbms/tests/queries/0_stateless/01031_semi_anti_join.sql b/tests/queries/0_stateless/01031_semi_anti_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01031_semi_anti_join.sql rename to tests/queries/0_stateless/01031_semi_anti_join.sql diff --git a/dbms/tests/queries/0_stateless/01032_cityHash64_for_UUID.reference b/tests/queries/0_stateless/01032_cityHash64_for_UUID.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01032_cityHash64_for_UUID.reference rename to tests/queries/0_stateless/01032_cityHash64_for_UUID.reference diff --git a/dbms/tests/queries/0_stateless/01032_cityHash64_for_UUID.sql b/tests/queries/0_stateless/01032_cityHash64_for_UUID.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01032_cityHash64_for_UUID.sql rename to tests/queries/0_stateless/01032_cityHash64_for_UUID.sql diff --git a/dbms/tests/queries/0_stateless/01032_cityHash64_for_decimal.reference b/tests/queries/0_stateless/01032_cityHash64_for_decimal.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01032_cityHash64_for_decimal.reference rename to tests/queries/0_stateless/01032_cityHash64_for_decimal.reference diff --git a/dbms/tests/queries/0_stateless/01032_cityHash64_for_decimal.sql b/tests/queries/0_stateless/01032_cityHash64_for_decimal.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01032_cityHash64_for_decimal.sql rename to tests/queries/0_stateless/01032_cityHash64_for_decimal.sql diff --git a/dbms/tests/queries/0_stateless/01032_duplicate_column_insert_query.reference b/tests/queries/0_stateless/01032_duplicate_column_insert_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01032_duplicate_column_insert_query.reference rename to tests/queries/0_stateless/01032_duplicate_column_insert_query.reference diff --git a/dbms/tests/queries/0_stateless/01032_duplicate_column_insert_query.sql b/tests/queries/0_stateless/01032_duplicate_column_insert_query.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01032_duplicate_column_insert_query.sql rename to tests/queries/0_stateless/01032_duplicate_column_insert_query.sql diff --git a/dbms/tests/queries/0_stateless/01033_dictionaries_lifetime.reference b/tests/queries/0_stateless/01033_dictionaries_lifetime.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01033_dictionaries_lifetime.reference rename to tests/queries/0_stateless/01033_dictionaries_lifetime.reference diff --git a/dbms/tests/queries/0_stateless/01033_dictionaries_lifetime.sql b/tests/queries/0_stateless/01033_dictionaries_lifetime.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01033_dictionaries_lifetime.sql rename to tests/queries/0_stateless/01033_dictionaries_lifetime.sql diff --git a/dbms/tests/queries/0_stateless/01033_quota_dcl.reference b/tests/queries/0_stateless/01033_quota_dcl.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01033_quota_dcl.reference rename to tests/queries/0_stateless/01033_quota_dcl.reference diff --git a/dbms/tests/queries/0_stateless/01033_quota_dcl.sql b/tests/queries/0_stateless/01033_quota_dcl.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01033_quota_dcl.sql rename to tests/queries/0_stateless/01033_quota_dcl.sql diff --git a/dbms/tests/queries/0_stateless/01033_storage_odbc_parsing_exception_check.reference b/tests/queries/0_stateless/01033_storage_odbc_parsing_exception_check.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01033_storage_odbc_parsing_exception_check.reference rename to tests/queries/0_stateless/01033_storage_odbc_parsing_exception_check.reference diff --git a/dbms/tests/queries/0_stateless/01033_storage_odbc_parsing_exception_check.sql b/tests/queries/0_stateless/01033_storage_odbc_parsing_exception_check.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01033_storage_odbc_parsing_exception_check.sql rename to tests/queries/0_stateless/01033_storage_odbc_parsing_exception_check.sql diff --git a/dbms/tests/queries/0_stateless/01033_substr_negative_size_arg.reference b/tests/queries/0_stateless/01033_substr_negative_size_arg.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01033_substr_negative_size_arg.reference rename to tests/queries/0_stateless/01033_substr_negative_size_arg.reference diff --git a/dbms/tests/queries/0_stateless/01033_substr_negative_size_arg.sql b/tests/queries/0_stateless/01033_substr_negative_size_arg.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01033_substr_negative_size_arg.sql rename to tests/queries/0_stateless/01033_substr_negative_size_arg.sql diff --git a/dbms/tests/queries/0_stateless/01034_JSONCompactEachRow.reference b/tests/queries/0_stateless/01034_JSONCompactEachRow.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01034_JSONCompactEachRow.reference rename to tests/queries/0_stateless/01034_JSONCompactEachRow.reference diff --git a/dbms/tests/queries/0_stateless/01034_JSONCompactEachRow.sql b/tests/queries/0_stateless/01034_JSONCompactEachRow.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01034_JSONCompactEachRow.sql rename to tests/queries/0_stateless/01034_JSONCompactEachRow.sql diff --git a/dbms/tests/queries/0_stateless/01034_move_partition_from_table_zookeeper.reference b/tests/queries/0_stateless/01034_move_partition_from_table_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01034_move_partition_from_table_zookeeper.reference rename to tests/queries/0_stateless/01034_move_partition_from_table_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01034_move_partition_from_table_zookeeper.sh b/tests/queries/0_stateless/01034_move_partition_from_table_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01034_move_partition_from_table_zookeeper.sh rename to tests/queries/0_stateless/01034_move_partition_from_table_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01034_order_by_pk_prefix.reference b/tests/queries/0_stateless/01034_order_by_pk_prefix.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01034_order_by_pk_prefix.reference rename to tests/queries/0_stateless/01034_order_by_pk_prefix.reference diff --git a/dbms/tests/queries/0_stateless/01034_order_by_pk_prefix.sql b/tests/queries/0_stateless/01034_order_by_pk_prefix.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01034_order_by_pk_prefix.sql rename to tests/queries/0_stateless/01034_order_by_pk_prefix.sql diff --git a/dbms/tests/queries/0_stateless/01034_prewhere_max_parallel_replicas_distributed.reference b/tests/queries/0_stateless/01034_prewhere_max_parallel_replicas_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01034_prewhere_max_parallel_replicas_distributed.reference rename to tests/queries/0_stateless/01034_prewhere_max_parallel_replicas_distributed.reference diff --git a/dbms/tests/queries/0_stateless/01034_prewhere_max_parallel_replicas_distributed.sql b/tests/queries/0_stateless/01034_prewhere_max_parallel_replicas_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01034_prewhere_max_parallel_replicas_distributed.sql rename to tests/queries/0_stateless/01034_prewhere_max_parallel_replicas_distributed.sql diff --git a/dbms/tests/queries/0_stateless/01034_sample_final_distributed.reference b/tests/queries/0_stateless/01034_sample_final_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01034_sample_final_distributed.reference rename to tests/queries/0_stateless/01034_sample_final_distributed.reference diff --git a/dbms/tests/queries/0_stateless/01034_sample_final_distributed.sql b/tests/queries/0_stateless/01034_sample_final_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01034_sample_final_distributed.sql rename to tests/queries/0_stateless/01034_sample_final_distributed.sql diff --git a/dbms/tests/queries/0_stateless/01034_unknown_qualified_column_in_join.reference b/tests/queries/0_stateless/01034_unknown_qualified_column_in_join.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01034_unknown_qualified_column_in_join.reference rename to tests/queries/0_stateless/01034_unknown_qualified_column_in_join.reference diff --git a/dbms/tests/queries/0_stateless/01034_unknown_qualified_column_in_join.sql b/tests/queries/0_stateless/01034_unknown_qualified_column_in_join.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01034_unknown_qualified_column_in_join.sql rename to tests/queries/0_stateless/01034_unknown_qualified_column_in_join.sql diff --git a/dbms/tests/queries/0_stateless/01034_values_parse_float_bug.reference b/tests/queries/0_stateless/01034_values_parse_float_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01034_values_parse_float_bug.reference rename to tests/queries/0_stateless/01034_values_parse_float_bug.reference diff --git a/dbms/tests/queries/0_stateless/01034_values_parse_float_bug.sh b/tests/queries/0_stateless/01034_values_parse_float_bug.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01034_values_parse_float_bug.sh rename to tests/queries/0_stateless/01034_values_parse_float_bug.sh diff --git a/dbms/tests/queries/0_stateless/01034_with_fill_and_push_down_predicate.reference b/tests/queries/0_stateless/01034_with_fill_and_push_down_predicate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01034_with_fill_and_push_down_predicate.reference rename to tests/queries/0_stateless/01034_with_fill_and_push_down_predicate.reference diff --git a/dbms/tests/queries/0_stateless/01034_with_fill_and_push_down_predicate.sql b/tests/queries/0_stateless/01034_with_fill_and_push_down_predicate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01034_with_fill_and_push_down_predicate.sql rename to tests/queries/0_stateless/01034_with_fill_and_push_down_predicate.sql diff --git a/dbms/tests/queries/0_stateless/01035_avg_weighted.reference b/tests/queries/0_stateless/01035_avg_weighted.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01035_avg_weighted.reference rename to tests/queries/0_stateless/01035_avg_weighted.reference diff --git a/dbms/tests/queries/0_stateless/01035_avg_weighted.sh b/tests/queries/0_stateless/01035_avg_weighted.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01035_avg_weighted.sh rename to tests/queries/0_stateless/01035_avg_weighted.sh diff --git a/dbms/tests/queries/0_stateless/01035_concurrent_move_partition_from_table_zookeeper.reference b/tests/queries/0_stateless/01035_concurrent_move_partition_from_table_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01035_concurrent_move_partition_from_table_zookeeper.reference rename to tests/queries/0_stateless/01035_concurrent_move_partition_from_table_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01035_concurrent_move_partition_from_table_zookeeper.sh b/tests/queries/0_stateless/01035_concurrent_move_partition_from_table_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01035_concurrent_move_partition_from_table_zookeeper.sh rename to tests/queries/0_stateless/01035_concurrent_move_partition_from_table_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01035_enum_conversion_native_format.reference b/tests/queries/0_stateless/01035_enum_conversion_native_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01035_enum_conversion_native_format.reference rename to tests/queries/0_stateless/01035_enum_conversion_native_format.reference diff --git a/dbms/tests/queries/0_stateless/01035_enum_conversion_native_format.sh b/tests/queries/0_stateless/01035_enum_conversion_native_format.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01035_enum_conversion_native_format.sh rename to tests/queries/0_stateless/01035_enum_conversion_native_format.sh diff --git a/dbms/tests/queries/0_stateless/01035_lc_empty_part_bug.reference b/tests/queries/0_stateless/01035_lc_empty_part_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01035_lc_empty_part_bug.reference rename to tests/queries/0_stateless/01035_lc_empty_part_bug.reference diff --git a/dbms/tests/queries/0_stateless/01035_lc_empty_part_bug.sh b/tests/queries/0_stateless/01035_lc_empty_part_bug.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01035_lc_empty_part_bug.sh rename to tests/queries/0_stateless/01035_lc_empty_part_bug.sh diff --git a/dbms/tests/queries/0_stateless/01035_prewhere_with_alias.reference b/tests/queries/0_stateless/01035_prewhere_with_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01035_prewhere_with_alias.reference rename to tests/queries/0_stateless/01035_prewhere_with_alias.reference diff --git a/dbms/tests/queries/0_stateless/01035_prewhere_with_alias.sql b/tests/queries/0_stateless/01035_prewhere_with_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01035_prewhere_with_alias.sql rename to tests/queries/0_stateless/01035_prewhere_with_alias.sql diff --git a/dbms/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database.reference b/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database.reference rename to tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database.reference diff --git a/dbms/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database.sql b/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database.sql rename to tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database.sql diff --git a/dbms/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database_2.reference b/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database_2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database_2.reference rename to tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database_2.reference diff --git a/dbms/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database_2.sql b/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database_2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database_2.sql rename to tests/queries/0_stateless/01036_no_superfluous_dict_reload_on_create_database_2.sql diff --git a/dbms/tests/queries/0_stateless/01036_union_different_columns.reference b/tests/queries/0_stateless/01036_union_different_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01036_union_different_columns.reference rename to tests/queries/0_stateless/01036_union_different_columns.reference diff --git a/dbms/tests/queries/0_stateless/01036_union_different_columns.sql b/tests/queries/0_stateless/01036_union_different_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01036_union_different_columns.sql rename to tests/queries/0_stateless/01036_union_different_columns.sql diff --git a/dbms/tests/queries/0_stateless/01037_polygon_dict_multi_polygons.reference b/tests/queries/0_stateless/01037_polygon_dict_multi_polygons.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01037_polygon_dict_multi_polygons.reference rename to tests/queries/0_stateless/01037_polygon_dict_multi_polygons.reference diff --git a/dbms/tests/queries/0_stateless/01037_polygon_dict_multi_polygons.sql b/tests/queries/0_stateless/01037_polygon_dict_multi_polygons.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01037_polygon_dict_multi_polygons.sql rename to tests/queries/0_stateless/01037_polygon_dict_multi_polygons.sql diff --git a/dbms/tests/queries/0_stateless/01037_polygon_dict_simple_polygons.reference b/tests/queries/0_stateless/01037_polygon_dict_simple_polygons.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01037_polygon_dict_simple_polygons.reference rename to tests/queries/0_stateless/01037_polygon_dict_simple_polygons.reference diff --git a/dbms/tests/queries/0_stateless/01037_polygon_dict_simple_polygons.sql b/tests/queries/0_stateless/01037_polygon_dict_simple_polygons.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01037_polygon_dict_simple_polygons.sql rename to tests/queries/0_stateless/01037_polygon_dict_simple_polygons.sql diff --git a/dbms/tests/queries/0_stateless/01037_zookeeper_check_table_empty_pk.reference b/tests/queries/0_stateless/01037_zookeeper_check_table_empty_pk.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01037_zookeeper_check_table_empty_pk.reference rename to tests/queries/0_stateless/01037_zookeeper_check_table_empty_pk.reference diff --git a/dbms/tests/queries/0_stateless/01037_zookeeper_check_table_empty_pk.sql b/tests/queries/0_stateless/01037_zookeeper_check_table_empty_pk.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01037_zookeeper_check_table_empty_pk.sql rename to tests/queries/0_stateless/01037_zookeeper_check_table_empty_pk.sql diff --git a/dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.reference b/tests/queries/0_stateless/01038_array_of_unnamed_tuples.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.reference rename to tests/queries/0_stateless/01038_array_of_unnamed_tuples.reference diff --git a/dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.sql b/tests/queries/0_stateless/01038_array_of_unnamed_tuples.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01038_array_of_unnamed_tuples.sql rename to tests/queries/0_stateless/01038_array_of_unnamed_tuples.sql diff --git a/dbms/tests/queries/0_stateless/01038_dictionary_lifetime_min_zero_sec.reference b/tests/queries/0_stateless/01038_dictionary_lifetime_min_zero_sec.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01038_dictionary_lifetime_min_zero_sec.reference rename to tests/queries/0_stateless/01038_dictionary_lifetime_min_zero_sec.reference diff --git a/dbms/tests/queries/0_stateless/01038_dictionary_lifetime_min_zero_sec.sh b/tests/queries/0_stateless/01038_dictionary_lifetime_min_zero_sec.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01038_dictionary_lifetime_min_zero_sec.sh rename to tests/queries/0_stateless/01038_dictionary_lifetime_min_zero_sec.sh diff --git a/dbms/tests/queries/0_stateless/01039_mergetree_exec_time.reference b/tests/queries/0_stateless/01039_mergetree_exec_time.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01039_mergetree_exec_time.reference rename to tests/queries/0_stateless/01039_mergetree_exec_time.reference diff --git a/dbms/tests/queries/0_stateless/01039_mergetree_exec_time.sql b/tests/queries/0_stateless/01039_mergetree_exec_time.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01039_mergetree_exec_time.sql rename to tests/queries/0_stateless/01039_mergetree_exec_time.sql diff --git a/dbms/tests/queries/0_stateless/01039_row_policy_dcl.reference b/tests/queries/0_stateless/01039_row_policy_dcl.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01039_row_policy_dcl.reference rename to tests/queries/0_stateless/01039_row_policy_dcl.reference diff --git a/dbms/tests/queries/0_stateless/01039_row_policy_dcl.sql b/tests/queries/0_stateless/01039_row_policy_dcl.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01039_row_policy_dcl.sql rename to tests/queries/0_stateless/01039_row_policy_dcl.sql diff --git a/dbms/tests/queries/0_stateless/01039_test_setting_parse.reference b/tests/queries/0_stateless/01039_test_setting_parse.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01039_test_setting_parse.reference rename to tests/queries/0_stateless/01039_test_setting_parse.reference diff --git a/dbms/tests/queries/0_stateless/01039_test_setting_parse.sql b/tests/queries/0_stateless/01039_test_setting_parse.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01039_test_setting_parse.sql rename to tests/queries/0_stateless/01039_test_setting_parse.sql diff --git a/dbms/tests/queries/0_stateless/01040_dictionary_invalidate_query_switchover_long.reference b/tests/queries/0_stateless/01040_dictionary_invalidate_query_switchover_long.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01040_dictionary_invalidate_query_switchover_long.reference rename to tests/queries/0_stateless/01040_dictionary_invalidate_query_switchover_long.reference diff --git a/dbms/tests/queries/0_stateless/01040_dictionary_invalidate_query_switchover_long.sh b/tests/queries/0_stateless/01040_dictionary_invalidate_query_switchover_long.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01040_dictionary_invalidate_query_switchover_long.sh rename to tests/queries/0_stateless/01040_dictionary_invalidate_query_switchover_long.sh diff --git a/dbms/tests/queries/0_stateless/01040_distributed_directory_monitor_batch_inserts.reference b/tests/queries/0_stateless/01040_distributed_directory_monitor_batch_inserts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01040_distributed_directory_monitor_batch_inserts.reference rename to tests/queries/0_stateless/01040_distributed_directory_monitor_batch_inserts.reference diff --git a/dbms/tests/queries/0_stateless/01040_distributed_directory_monitor_batch_inserts.sql b/tests/queries/0_stateless/01040_distributed_directory_monitor_batch_inserts.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01040_distributed_directory_monitor_batch_inserts.sql rename to tests/queries/0_stateless/01040_distributed_directory_monitor_batch_inserts.sql diff --git a/dbms/tests/queries/0_stateless/01040_h3_get_resolution.reference b/tests/queries/0_stateless/01040_h3_get_resolution.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01040_h3_get_resolution.reference rename to tests/queries/0_stateless/01040_h3_get_resolution.reference diff --git a/dbms/tests/queries/0_stateless/01040_h3_get_resolution.sql b/tests/queries/0_stateless/01040_h3_get_resolution.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01040_h3_get_resolution.sql rename to tests/queries/0_stateless/01040_h3_get_resolution.sql diff --git a/dbms/tests/queries/0_stateless/01041_create_dictionary_if_not_exists.reference b/tests/queries/0_stateless/01041_create_dictionary_if_not_exists.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01041_create_dictionary_if_not_exists.reference rename to tests/queries/0_stateless/01041_create_dictionary_if_not_exists.reference diff --git a/dbms/tests/queries/0_stateless/01041_create_dictionary_if_not_exists.sql b/tests/queries/0_stateless/01041_create_dictionary_if_not_exists.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01041_create_dictionary_if_not_exists.sql rename to tests/queries/0_stateless/01041_create_dictionary_if_not_exists.sql diff --git a/dbms/tests/queries/0_stateless/01041_h3_is_valid.reference b/tests/queries/0_stateless/01041_h3_is_valid.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01041_h3_is_valid.reference rename to tests/queries/0_stateless/01041_h3_is_valid.reference diff --git a/dbms/tests/queries/0_stateless/01041_h3_is_valid.sql b/tests/queries/0_stateless/01041_h3_is_valid.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01041_h3_is_valid.sql rename to tests/queries/0_stateless/01041_h3_is_valid.sql diff --git a/dbms/tests/queries/0_stateless/01042_check_query_and_last_granule_size.reference b/tests/queries/0_stateless/01042_check_query_and_last_granule_size.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01042_check_query_and_last_granule_size.reference rename to tests/queries/0_stateless/01042_check_query_and_last_granule_size.reference diff --git a/dbms/tests/queries/0_stateless/01042_check_query_and_last_granule_size.sql b/tests/queries/0_stateless/01042_check_query_and_last_granule_size.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01042_check_query_and_last_granule_size.sql rename to tests/queries/0_stateless/01042_check_query_and_last_granule_size.sql diff --git a/dbms/tests/queries/0_stateless/01042_h3_k_ring.reference b/tests/queries/0_stateless/01042_h3_k_ring.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01042_h3_k_ring.reference rename to tests/queries/0_stateless/01042_h3_k_ring.reference diff --git a/dbms/tests/queries/0_stateless/01042_h3_k_ring.sql b/tests/queries/0_stateless/01042_h3_k_ring.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01042_h3_k_ring.sql rename to tests/queries/0_stateless/01042_h3_k_ring.sql diff --git a/dbms/tests/queries/0_stateless/01042_system_reload_dictionary_reloads_completely.reference b/tests/queries/0_stateless/01042_system_reload_dictionary_reloads_completely.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01042_system_reload_dictionary_reloads_completely.reference rename to tests/queries/0_stateless/01042_system_reload_dictionary_reloads_completely.reference diff --git a/dbms/tests/queries/0_stateless/01042_system_reload_dictionary_reloads_completely.sh b/tests/queries/0_stateless/01042_system_reload_dictionary_reloads_completely.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01042_system_reload_dictionary_reloads_completely.sh rename to tests/queries/0_stateless/01042_system_reload_dictionary_reloads_completely.sh diff --git a/dbms/tests/queries/0_stateless/01043_categorical_iv.reference b/tests/queries/0_stateless/01043_categorical_iv.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01043_categorical_iv.reference rename to tests/queries/0_stateless/01043_categorical_iv.reference diff --git a/dbms/tests/queries/0_stateless/01043_categorical_iv.sql b/tests/queries/0_stateless/01043_categorical_iv.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01043_categorical_iv.sql rename to tests/queries/0_stateless/01043_categorical_iv.sql diff --git a/dbms/tests/queries/0_stateless/01043_dictionary_attribute_properties_values.reference b/tests/queries/0_stateless/01043_dictionary_attribute_properties_values.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01043_dictionary_attribute_properties_values.reference rename to tests/queries/0_stateless/01043_dictionary_attribute_properties_values.reference diff --git a/dbms/tests/queries/0_stateless/01043_dictionary_attribute_properties_values.sql b/tests/queries/0_stateless/01043_dictionary_attribute_properties_values.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01043_dictionary_attribute_properties_values.sql rename to tests/queries/0_stateless/01043_dictionary_attribute_properties_values.sql diff --git a/dbms/tests/queries/0_stateless/01043_geo_distance.reference b/tests/queries/0_stateless/01043_geo_distance.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01043_geo_distance.reference rename to tests/queries/0_stateless/01043_geo_distance.reference diff --git a/dbms/tests/queries/0_stateless/01043_geo_distance.sql b/tests/queries/0_stateless/01043_geo_distance.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01043_geo_distance.sql rename to tests/queries/0_stateless/01043_geo_distance.sql diff --git a/dbms/tests/queries/0_stateless/01043_h3_edge_length_m.reference b/tests/queries/0_stateless/01043_h3_edge_length_m.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01043_h3_edge_length_m.reference rename to tests/queries/0_stateless/01043_h3_edge_length_m.reference diff --git a/dbms/tests/queries/0_stateless/01043_h3_edge_length_m.sql b/tests/queries/0_stateless/01043_h3_edge_length_m.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01043_h3_edge_length_m.sql rename to tests/queries/0_stateless/01043_h3_edge_length_m.sql diff --git a/dbms/tests/queries/0_stateless/01044_great_circle_angle.reference b/tests/queries/0_stateless/01044_great_circle_angle.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01044_great_circle_angle.reference rename to tests/queries/0_stateless/01044_great_circle_angle.reference diff --git a/dbms/tests/queries/0_stateless/01044_great_circle_angle.sql b/tests/queries/0_stateless/01044_great_circle_angle.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01044_great_circle_angle.sql rename to tests/queries/0_stateless/01044_great_circle_angle.sql diff --git a/dbms/tests/queries/0_stateless/01044_h3_edge_angle.reference b/tests/queries/0_stateless/01044_h3_edge_angle.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01044_h3_edge_angle.reference rename to tests/queries/0_stateless/01044_h3_edge_angle.reference diff --git a/dbms/tests/queries/0_stateless/01044_h3_edge_angle.sql b/tests/queries/0_stateless/01044_h3_edge_angle.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01044_h3_edge_angle.sql rename to tests/queries/0_stateless/01044_h3_edge_angle.sql diff --git a/dbms/tests/queries/0_stateless/01045_array_zip.reference b/tests/queries/0_stateless/01045_array_zip.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01045_array_zip.reference rename to tests/queries/0_stateless/01045_array_zip.reference diff --git a/dbms/tests/queries/0_stateless/01045_array_zip.sql b/tests/queries/0_stateless/01045_array_zip.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01045_array_zip.sql rename to tests/queries/0_stateless/01045_array_zip.sql diff --git a/dbms/tests/queries/0_stateless/01045_bloom_filter_null_array.reference b/tests/queries/0_stateless/01045_bloom_filter_null_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01045_bloom_filter_null_array.reference rename to tests/queries/0_stateless/01045_bloom_filter_null_array.reference diff --git a/dbms/tests/queries/0_stateless/01045_bloom_filter_null_array.sql b/tests/queries/0_stateless/01045_bloom_filter_null_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01045_bloom_filter_null_array.sql rename to tests/queries/0_stateless/01045_bloom_filter_null_array.sql diff --git a/dbms/tests/queries/0_stateless/01045_dictionaries_restrictions.reference b/tests/queries/0_stateless/01045_dictionaries_restrictions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01045_dictionaries_restrictions.reference rename to tests/queries/0_stateless/01045_dictionaries_restrictions.reference diff --git a/dbms/tests/queries/0_stateless/01045_dictionaries_restrictions.sql b/tests/queries/0_stateless/01045_dictionaries_restrictions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01045_dictionaries_restrictions.sql rename to tests/queries/0_stateless/01045_dictionaries_restrictions.sql diff --git a/dbms/tests/queries/0_stateless/01045_order_by_pk_special_storages.reference b/tests/queries/0_stateless/01045_order_by_pk_special_storages.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01045_order_by_pk_special_storages.reference rename to tests/queries/0_stateless/01045_order_by_pk_special_storages.reference diff --git a/dbms/tests/queries/0_stateless/01045_order_by_pk_special_storages.sh b/tests/queries/0_stateless/01045_order_by_pk_special_storages.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01045_order_by_pk_special_storages.sh rename to tests/queries/0_stateless/01045_order_by_pk_special_storages.sh diff --git a/dbms/tests/queries/0_stateless/01045_zookeeper_system_mutations_with_parts_names.reference b/tests/queries/0_stateless/01045_zookeeper_system_mutations_with_parts_names.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01045_zookeeper_system_mutations_with_parts_names.reference rename to tests/queries/0_stateless/01045_zookeeper_system_mutations_with_parts_names.reference diff --git a/dbms/tests/queries/0_stateless/01045_zookeeper_system_mutations_with_parts_names.sh b/tests/queries/0_stateless/01045_zookeeper_system_mutations_with_parts_names.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01045_zookeeper_system_mutations_with_parts_names.sh rename to tests/queries/0_stateless/01045_zookeeper_system_mutations_with_parts_names.sh diff --git a/dbms/tests/queries/0_stateless/01046_materialized_view_with_join_over_distributed.reference b/tests/queries/0_stateless/01046_materialized_view_with_join_over_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01046_materialized_view_with_join_over_distributed.reference rename to tests/queries/0_stateless/01046_materialized_view_with_join_over_distributed.reference diff --git a/dbms/tests/queries/0_stateless/01046_materialized_view_with_join_over_distributed.sql b/tests/queries/0_stateless/01046_materialized_view_with_join_over_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01046_materialized_view_with_join_over_distributed.sql rename to tests/queries/0_stateless/01046_materialized_view_with_join_over_distributed.sql diff --git a/dbms/tests/queries/0_stateless/01046_trivial_count_query_distributed.reference b/tests/queries/0_stateless/01046_trivial_count_query_distributed.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01046_trivial_count_query_distributed.reference rename to tests/queries/0_stateless/01046_trivial_count_query_distributed.reference diff --git a/dbms/tests/queries/0_stateless/01046_trivial_count_query_distributed.sql b/tests/queries/0_stateless/01046_trivial_count_query_distributed.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01046_trivial_count_query_distributed.sql rename to tests/queries/0_stateless/01046_trivial_count_query_distributed.sql diff --git a/dbms/tests/queries/0_stateless/01047_no_alias_columns_with_table_aliases.reference b/tests/queries/0_stateless/01047_no_alias_columns_with_table_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01047_no_alias_columns_with_table_aliases.reference rename to tests/queries/0_stateless/01047_no_alias_columns_with_table_aliases.reference diff --git a/dbms/tests/queries/0_stateless/01047_no_alias_columns_with_table_aliases.sql b/tests/queries/0_stateless/01047_no_alias_columns_with_table_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01047_no_alias_columns_with_table_aliases.sql rename to tests/queries/0_stateless/01047_no_alias_columns_with_table_aliases.sql diff --git a/dbms/tests/queries/0_stateless/01047_nullable_rand.reference b/tests/queries/0_stateless/01047_nullable_rand.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01047_nullable_rand.reference rename to tests/queries/0_stateless/01047_nullable_rand.reference diff --git a/dbms/tests/queries/0_stateless/01047_nullable_rand.sql b/tests/queries/0_stateless/01047_nullable_rand.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01047_nullable_rand.sql rename to tests/queries/0_stateless/01047_nullable_rand.sql diff --git a/dbms/tests/queries/0_stateless/01047_simple_aggregate_sizes_of_columns_bug.reference b/tests/queries/0_stateless/01047_simple_aggregate_sizes_of_columns_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01047_simple_aggregate_sizes_of_columns_bug.reference rename to tests/queries/0_stateless/01047_simple_aggregate_sizes_of_columns_bug.reference diff --git a/dbms/tests/queries/0_stateless/01047_simple_aggregate_sizes_of_columns_bug.sql b/tests/queries/0_stateless/01047_simple_aggregate_sizes_of_columns_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01047_simple_aggregate_sizes_of_columns_bug.sql rename to tests/queries/0_stateless/01047_simple_aggregate_sizes_of_columns_bug.sql diff --git a/dbms/tests/queries/0_stateless/01048_exists_query.reference b/tests/queries/0_stateless/01048_exists_query.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01048_exists_query.reference rename to tests/queries/0_stateless/01048_exists_query.reference diff --git a/dbms/tests/queries/0_stateless/01048_exists_query.sql b/tests/queries/0_stateless/01048_exists_query.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01048_exists_query.sql rename to tests/queries/0_stateless/01048_exists_query.sql diff --git a/dbms/tests/queries/0_stateless/01049_join_low_card_bug.reference b/tests/queries/0_stateless/01049_join_low_card_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01049_join_low_card_bug.reference rename to tests/queries/0_stateless/01049_join_low_card_bug.reference diff --git a/dbms/tests/queries/0_stateless/01049_join_low_card_bug.sql b/tests/queries/0_stateless/01049_join_low_card_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01049_join_low_card_bug.sql rename to tests/queries/0_stateless/01049_join_low_card_bug.sql diff --git a/dbms/tests/queries/0_stateless/01049_join_low_card_crash.reference b/tests/queries/0_stateless/01049_join_low_card_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01049_join_low_card_crash.reference rename to tests/queries/0_stateless/01049_join_low_card_crash.reference diff --git a/dbms/tests/queries/0_stateless/01049_join_low_card_crash.sql b/tests/queries/0_stateless/01049_join_low_card_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01049_join_low_card_crash.sql rename to tests/queries/0_stateless/01049_join_low_card_crash.sql diff --git a/dbms/tests/queries/0_stateless/01049_zookeeper_synchronous_mutations.reference b/tests/queries/0_stateless/01049_zookeeper_synchronous_mutations.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01049_zookeeper_synchronous_mutations.reference rename to tests/queries/0_stateless/01049_zookeeper_synchronous_mutations.reference diff --git a/dbms/tests/queries/0_stateless/01049_zookeeper_synchronous_mutations.sql b/tests/queries/0_stateless/01049_zookeeper_synchronous_mutations.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01049_zookeeper_synchronous_mutations.sql rename to tests/queries/0_stateless/01049_zookeeper_synchronous_mutations.sql diff --git a/dbms/tests/queries/0_stateless/01050_clickhouse_dict_source_with_subquery.reference b/tests/queries/0_stateless/01050_clickhouse_dict_source_with_subquery.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01050_clickhouse_dict_source_with_subquery.reference rename to tests/queries/0_stateless/01050_clickhouse_dict_source_with_subquery.reference diff --git a/dbms/tests/queries/0_stateless/01050_clickhouse_dict_source_with_subquery.sql b/tests/queries/0_stateless/01050_clickhouse_dict_source_with_subquery.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01050_clickhouse_dict_source_with_subquery.sql rename to tests/queries/0_stateless/01050_clickhouse_dict_source_with_subquery.sql diff --git a/dbms/tests/queries/0_stateless/01050_engine_join_crash.reference b/tests/queries/0_stateless/01050_engine_join_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01050_engine_join_crash.reference rename to tests/queries/0_stateless/01050_engine_join_crash.reference diff --git a/dbms/tests/queries/0_stateless/01050_engine_join_crash.sql b/tests/queries/0_stateless/01050_engine_join_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01050_engine_join_crash.sql rename to tests/queries/0_stateless/01050_engine_join_crash.sql diff --git a/dbms/tests/queries/0_stateless/01050_engine_join_view_crash.reference b/tests/queries/0_stateless/01050_engine_join_view_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01050_engine_join_view_crash.reference rename to tests/queries/0_stateless/01050_engine_join_view_crash.reference diff --git a/dbms/tests/queries/0_stateless/01050_engine_join_view_crash.sql b/tests/queries/0_stateless/01050_engine_join_view_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01050_engine_join_view_crash.sql rename to tests/queries/0_stateless/01050_engine_join_view_crash.sql diff --git a/dbms/tests/queries/0_stateless/01050_group_array_sample.reference b/tests/queries/0_stateless/01050_group_array_sample.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01050_group_array_sample.reference rename to tests/queries/0_stateless/01050_group_array_sample.reference diff --git a/dbms/tests/queries/0_stateless/01050_group_array_sample.sql b/tests/queries/0_stateless/01050_group_array_sample.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01050_group_array_sample.sql rename to tests/queries/0_stateless/01050_group_array_sample.sql diff --git a/dbms/tests/queries/0_stateless/01051_aggregate_function_crash.reference b/tests/queries/0_stateless/01051_aggregate_function_crash.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01051_aggregate_function_crash.reference rename to tests/queries/0_stateless/01051_aggregate_function_crash.reference diff --git a/dbms/tests/queries/0_stateless/01051_aggregate_function_crash.sql b/tests/queries/0_stateless/01051_aggregate_function_crash.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01051_aggregate_function_crash.sql rename to tests/queries/0_stateless/01051_aggregate_function_crash.sql diff --git a/dbms/tests/queries/0_stateless/01051_all_join_engine.reference b/tests/queries/0_stateless/01051_all_join_engine.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01051_all_join_engine.reference rename to tests/queries/0_stateless/01051_all_join_engine.reference diff --git a/dbms/tests/queries/0_stateless/01051_all_join_engine.sql b/tests/queries/0_stateless/01051_all_join_engine.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01051_all_join_engine.sql rename to tests/queries/0_stateless/01051_all_join_engine.sql diff --git a/dbms/tests/queries/0_stateless/01051_new_any_join_engine.reference b/tests/queries/0_stateless/01051_new_any_join_engine.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01051_new_any_join_engine.reference rename to tests/queries/0_stateless/01051_new_any_join_engine.reference diff --git a/dbms/tests/queries/0_stateless/01051_new_any_join_engine.sql b/tests/queries/0_stateless/01051_new_any_join_engine.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01051_new_any_join_engine.sql rename to tests/queries/0_stateless/01051_new_any_join_engine.sql diff --git a/dbms/tests/queries/0_stateless/01051_random_printable_ascii.reference b/tests/queries/0_stateless/01051_random_printable_ascii.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01051_random_printable_ascii.reference rename to tests/queries/0_stateless/01051_random_printable_ascii.reference diff --git a/dbms/tests/queries/0_stateless/01051_random_printable_ascii.sql b/tests/queries/0_stateless/01051_random_printable_ascii.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01051_random_printable_ascii.sql rename to tests/queries/0_stateless/01051_random_printable_ascii.sql diff --git a/dbms/tests/queries/0_stateless/01051_same_name_alias_with_joins.reference b/tests/queries/0_stateless/01051_same_name_alias_with_joins.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01051_same_name_alias_with_joins.reference rename to tests/queries/0_stateless/01051_same_name_alias_with_joins.reference diff --git a/dbms/tests/queries/0_stateless/01051_same_name_alias_with_joins.sql b/tests/queries/0_stateless/01051_same_name_alias_with_joins.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01051_same_name_alias_with_joins.sql rename to tests/queries/0_stateless/01051_same_name_alias_with_joins.sql diff --git a/dbms/tests/queries/0_stateless/01052_array_reduce_exception.reference b/tests/queries/0_stateless/01052_array_reduce_exception.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01052_array_reduce_exception.reference rename to tests/queries/0_stateless/01052_array_reduce_exception.reference diff --git a/dbms/tests/queries/0_stateless/01052_array_reduce_exception.sql b/tests/queries/0_stateless/01052_array_reduce_exception.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01052_array_reduce_exception.sql rename to tests/queries/0_stateless/01052_array_reduce_exception.sql diff --git a/dbms/tests/queries/0_stateless/01052_compression_buffer_overrun.reference b/tests/queries/0_stateless/01052_compression_buffer_overrun.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01052_compression_buffer_overrun.reference rename to tests/queries/0_stateless/01052_compression_buffer_overrun.reference diff --git a/dbms/tests/queries/0_stateless/01052_compression_buffer_overrun.sh b/tests/queries/0_stateless/01052_compression_buffer_overrun.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01052_compression_buffer_overrun.sh rename to tests/queries/0_stateless/01052_compression_buffer_overrun.sh diff --git a/dbms/tests/queries/0_stateless/01053_drop_database_mat_view.reference b/tests/queries/0_stateless/01053_drop_database_mat_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01053_drop_database_mat_view.reference rename to tests/queries/0_stateless/01053_drop_database_mat_view.reference diff --git a/dbms/tests/queries/0_stateless/01053_drop_database_mat_view.sql b/tests/queries/0_stateless/01053_drop_database_mat_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01053_drop_database_mat_view.sql rename to tests/queries/0_stateless/01053_drop_database_mat_view.sql diff --git a/dbms/tests/queries/0_stateless/01053_if_chain_check.reference b/tests/queries/0_stateless/01053_if_chain_check.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01053_if_chain_check.reference rename to tests/queries/0_stateless/01053_if_chain_check.reference diff --git a/dbms/tests/queries/0_stateless/01053_if_chain_check.sql b/tests/queries/0_stateless/01053_if_chain_check.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01053_if_chain_check.sql rename to tests/queries/0_stateless/01053_if_chain_check.sql diff --git a/dbms/tests/queries/0_stateless/01054_cache_dictionary_bunch_update.reference b/tests/queries/0_stateless/01054_cache_dictionary_bunch_update.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01054_cache_dictionary_bunch_update.reference rename to tests/queries/0_stateless/01054_cache_dictionary_bunch_update.reference diff --git a/dbms/tests/queries/0_stateless/01054_cache_dictionary_bunch_update.sh b/tests/queries/0_stateless/01054_cache_dictionary_bunch_update.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01054_cache_dictionary_bunch_update.sh rename to tests/queries/0_stateless/01054_cache_dictionary_bunch_update.sh diff --git a/dbms/tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.reference b/tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.reference rename to tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.reference diff --git a/dbms/tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.sql b/tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.sql rename to tests/queries/0_stateless/01054_cache_dictionary_overflow_cell.sql diff --git a/dbms/tests/queries/0_stateless/01054_random_printable_ascii_ubsan.reference b/tests/queries/0_stateless/01054_random_printable_ascii_ubsan.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01054_random_printable_ascii_ubsan.reference rename to tests/queries/0_stateless/01054_random_printable_ascii_ubsan.reference diff --git a/dbms/tests/queries/0_stateless/01054_random_printable_ascii_ubsan.sh b/tests/queries/0_stateless/01054_random_printable_ascii_ubsan.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01054_random_printable_ascii_ubsan.sh rename to tests/queries/0_stateless/01054_random_printable_ascii_ubsan.sh diff --git a/dbms/tests/queries/0_stateless/01055_compact_parts.reference b/tests/queries/0_stateless/01055_compact_parts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01055_compact_parts.reference rename to tests/queries/0_stateless/01055_compact_parts.reference diff --git a/dbms/tests/queries/0_stateless/01055_compact_parts.sql b/tests/queries/0_stateless/01055_compact_parts.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01055_compact_parts.sql rename to tests/queries/0_stateless/01055_compact_parts.sql diff --git a/dbms/tests/queries/0_stateless/01055_compact_parts_1.reference b/tests/queries/0_stateless/01055_compact_parts_1.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01055_compact_parts_1.reference rename to tests/queries/0_stateless/01055_compact_parts_1.reference diff --git a/dbms/tests/queries/0_stateless/01055_compact_parts_1.sql b/tests/queries/0_stateless/01055_compact_parts_1.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01055_compact_parts_1.sql rename to tests/queries/0_stateless/01055_compact_parts_1.sql diff --git a/dbms/tests/queries/0_stateless/01055_compact_parts_granularity.reference b/tests/queries/0_stateless/01055_compact_parts_granularity.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01055_compact_parts_granularity.reference rename to tests/queries/0_stateless/01055_compact_parts_granularity.reference diff --git a/dbms/tests/queries/0_stateless/01055_compact_parts_granularity.sh b/tests/queries/0_stateless/01055_compact_parts_granularity.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01055_compact_parts_granularity.sh rename to tests/queries/0_stateless/01055_compact_parts_granularity.sh diff --git a/dbms/tests/queries/0_stateless/01055_minmax_index_compact_parts.reference b/tests/queries/0_stateless/01055_minmax_index_compact_parts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01055_minmax_index_compact_parts.reference rename to tests/queries/0_stateless/01055_minmax_index_compact_parts.reference diff --git a/dbms/tests/queries/0_stateless/01055_minmax_index_compact_parts.sh b/tests/queries/0_stateless/01055_minmax_index_compact_parts.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01055_minmax_index_compact_parts.sh rename to tests/queries/0_stateless/01055_minmax_index_compact_parts.sh diff --git a/dbms/tests/queries/0_stateless/01055_prewhere_bugs.reference b/tests/queries/0_stateless/01055_prewhere_bugs.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01055_prewhere_bugs.reference rename to tests/queries/0_stateless/01055_prewhere_bugs.reference diff --git a/dbms/tests/queries/0_stateless/01055_prewhere_bugs.sql b/tests/queries/0_stateless/01055_prewhere_bugs.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01055_prewhere_bugs.sql rename to tests/queries/0_stateless/01055_prewhere_bugs.sql diff --git a/dbms/tests/queries/0_stateless/01056_create_table_as.reference b/tests/queries/0_stateless/01056_create_table_as.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01056_create_table_as.reference rename to tests/queries/0_stateless/01056_create_table_as.reference diff --git a/dbms/tests/queries/0_stateless/01056_create_table_as.sql b/tests/queries/0_stateless/01056_create_table_as.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01056_create_table_as.sql rename to tests/queries/0_stateless/01056_create_table_as.sql diff --git a/dbms/tests/queries/0_stateless/01056_negative_with_bloom_filter.reference b/tests/queries/0_stateless/01056_negative_with_bloom_filter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01056_negative_with_bloom_filter.reference rename to tests/queries/0_stateless/01056_negative_with_bloom_filter.reference diff --git a/dbms/tests/queries/0_stateless/01056_negative_with_bloom_filter.sql b/tests/queries/0_stateless/01056_negative_with_bloom_filter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01056_negative_with_bloom_filter.sql rename to tests/queries/0_stateless/01056_negative_with_bloom_filter.sql diff --git a/dbms/tests/queries/0_stateless/01056_predicate_optimizer_bugs.reference b/tests/queries/0_stateless/01056_predicate_optimizer_bugs.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01056_predicate_optimizer_bugs.reference rename to tests/queries/0_stateless/01056_predicate_optimizer_bugs.reference diff --git a/dbms/tests/queries/0_stateless/01056_predicate_optimizer_bugs.sql b/tests/queries/0_stateless/01056_predicate_optimizer_bugs.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01056_predicate_optimizer_bugs.sql rename to tests/queries/0_stateless/01056_predicate_optimizer_bugs.sql diff --git a/dbms/tests/queries/0_stateless/01056_prepared_statements_null_and_escaping.reference b/tests/queries/0_stateless/01056_prepared_statements_null_and_escaping.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01056_prepared_statements_null_and_escaping.reference rename to tests/queries/0_stateless/01056_prepared_statements_null_and_escaping.reference diff --git a/dbms/tests/queries/0_stateless/01056_prepared_statements_null_and_escaping.sh b/tests/queries/0_stateless/01056_prepared_statements_null_and_escaping.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01056_prepared_statements_null_and_escaping.sh rename to tests/queries/0_stateless/01056_prepared_statements_null_and_escaping.sh diff --git a/dbms/tests/queries/0_stateless/01057_http_compression_prefer_brotli.reference b/tests/queries/0_stateless/01057_http_compression_prefer_brotli.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01057_http_compression_prefer_brotli.reference rename to tests/queries/0_stateless/01057_http_compression_prefer_brotli.reference diff --git a/dbms/tests/queries/0_stateless/01057_http_compression_prefer_brotli.sh b/tests/queries/0_stateless/01057_http_compression_prefer_brotli.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01057_http_compression_prefer_brotli.sh rename to tests/queries/0_stateless/01057_http_compression_prefer_brotli.sh diff --git a/dbms/tests/queries/0_stateless/01058_zlib_ng_level1_bug.reference b/tests/queries/0_stateless/01058_zlib_ng_level1_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01058_zlib_ng_level1_bug.reference rename to tests/queries/0_stateless/01058_zlib_ng_level1_bug.reference diff --git a/dbms/tests/queries/0_stateless/01058_zlib_ng_level1_bug.sh b/tests/queries/0_stateless/01058_zlib_ng_level1_bug.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01058_zlib_ng_level1_bug.sh rename to tests/queries/0_stateless/01058_zlib_ng_level1_bug.sh diff --git a/dbms/tests/queries/0_stateless/01059_storage_file_brotli.reference b/tests/queries/0_stateless/01059_storage_file_brotli.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01059_storage_file_brotli.reference rename to tests/queries/0_stateless/01059_storage_file_brotli.reference diff --git a/dbms/tests/queries/0_stateless/01059_storage_file_brotli.sql b/tests/queries/0_stateless/01059_storage_file_brotli.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01059_storage_file_brotli.sql rename to tests/queries/0_stateless/01059_storage_file_brotli.sql diff --git a/dbms/tests/queries/0_stateless/01060_avro.reference b/tests/queries/0_stateless/01060_avro.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01060_avro.reference rename to tests/queries/0_stateless/01060_avro.reference diff --git a/dbms/tests/queries/0_stateless/01060_avro.sh b/tests/queries/0_stateless/01060_avro.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01060_avro.sh rename to tests/queries/0_stateless/01060_avro.sh diff --git a/dbms/tests/queries/0_stateless/01060_defaults_all_columns.reference b/tests/queries/0_stateless/01060_defaults_all_columns.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01060_defaults_all_columns.reference rename to tests/queries/0_stateless/01060_defaults_all_columns.reference diff --git a/dbms/tests/queries/0_stateless/01060_defaults_all_columns.sql b/tests/queries/0_stateless/01060_defaults_all_columns.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01060_defaults_all_columns.sql rename to tests/queries/0_stateless/01060_defaults_all_columns.sql diff --git a/dbms/tests/queries/0_stateless/01060_shutdown_table_after_detach.reference b/tests/queries/0_stateless/01060_shutdown_table_after_detach.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01060_shutdown_table_after_detach.reference rename to tests/queries/0_stateless/01060_shutdown_table_after_detach.reference diff --git a/dbms/tests/queries/0_stateless/01060_shutdown_table_after_detach.sql b/tests/queries/0_stateless/01060_shutdown_table_after_detach.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01060_shutdown_table_after_detach.sql rename to tests/queries/0_stateless/01060_shutdown_table_after_detach.sql diff --git a/dbms/tests/queries/0_stateless/01060_substring_negative_size.reference b/tests/queries/0_stateless/01060_substring_negative_size.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01060_substring_negative_size.reference rename to tests/queries/0_stateless/01060_substring_negative_size.reference diff --git a/dbms/tests/queries/0_stateless/01060_substring_negative_size.sql b/tests/queries/0_stateless/01060_substring_negative_size.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01060_substring_negative_size.sql rename to tests/queries/0_stateless/01060_substring_negative_size.sql diff --git a/dbms/tests/queries/0_stateless/01061_alter_codec_with_type.reference b/tests/queries/0_stateless/01061_alter_codec_with_type.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01061_alter_codec_with_type.reference rename to tests/queries/0_stateless/01061_alter_codec_with_type.reference diff --git a/dbms/tests/queries/0_stateless/01061_alter_codec_with_type.sql b/tests/queries/0_stateless/01061_alter_codec_with_type.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01061_alter_codec_with_type.sql rename to tests/queries/0_stateless/01061_alter_codec_with_type.sql diff --git a/dbms/tests/queries/0_stateless/01062_alter_on_mutataion.reference b/tests/queries/0_stateless/01062_alter_on_mutataion.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01062_alter_on_mutataion.reference rename to tests/queries/0_stateless/01062_alter_on_mutataion.reference diff --git a/dbms/tests/queries/0_stateless/01062_alter_on_mutataion.sql b/tests/queries/0_stateless/01062_alter_on_mutataion.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01062_alter_on_mutataion.sql rename to tests/queries/0_stateless/01062_alter_on_mutataion.sql diff --git a/dbms/tests/queries/0_stateless/01062_max_parser_depth.reference b/tests/queries/0_stateless/01062_max_parser_depth.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01062_max_parser_depth.reference rename to tests/queries/0_stateless/01062_max_parser_depth.reference diff --git a/dbms/tests/queries/0_stateless/01062_max_parser_depth.sh b/tests/queries/0_stateless/01062_max_parser_depth.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01062_max_parser_depth.sh rename to tests/queries/0_stateless/01062_max_parser_depth.sh diff --git a/dbms/tests/queries/0_stateless/01062_pm_all_join_with_block_continuation.reference b/tests/queries/0_stateless/01062_pm_all_join_with_block_continuation.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01062_pm_all_join_with_block_continuation.reference rename to tests/queries/0_stateless/01062_pm_all_join_with_block_continuation.reference diff --git a/dbms/tests/queries/0_stateless/01062_pm_all_join_with_block_continuation.sql b/tests/queries/0_stateless/01062_pm_all_join_with_block_continuation.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01062_pm_all_join_with_block_continuation.sql rename to tests/queries/0_stateless/01062_pm_all_join_with_block_continuation.sql diff --git a/dbms/tests/queries/0_stateless/01062_pm_multiple_all_join_same_value.reference b/tests/queries/0_stateless/01062_pm_multiple_all_join_same_value.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01062_pm_multiple_all_join_same_value.reference rename to tests/queries/0_stateless/01062_pm_multiple_all_join_same_value.reference diff --git a/dbms/tests/queries/0_stateless/01062_pm_multiple_all_join_same_value.sql b/tests/queries/0_stateless/01062_pm_multiple_all_join_same_value.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01062_pm_multiple_all_join_same_value.sql rename to tests/queries/0_stateless/01062_pm_multiple_all_join_same_value.sql diff --git a/dbms/tests/queries/0_stateless/01063_create_column_set.reference b/tests/queries/0_stateless/01063_create_column_set.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01063_create_column_set.reference rename to tests/queries/0_stateless/01063_create_column_set.reference diff --git a/dbms/tests/queries/0_stateless/01063_create_column_set.sql b/tests/queries/0_stateless/01063_create_column_set.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01063_create_column_set.sql rename to tests/queries/0_stateless/01063_create_column_set.sql diff --git a/dbms/tests/queries/0_stateless/01064_array_auc.reference b/tests/queries/0_stateless/01064_array_auc.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01064_array_auc.reference rename to tests/queries/0_stateless/01064_array_auc.reference diff --git a/dbms/tests/queries/0_stateless/01064_array_auc.sql b/tests/queries/0_stateless/01064_array_auc.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01064_array_auc.sql rename to tests/queries/0_stateless/01064_array_auc.sql diff --git a/dbms/tests/queries/0_stateless/01064_incremental_streaming_from_2_src_with_feedback.reference b/tests/queries/0_stateless/01064_incremental_streaming_from_2_src_with_feedback.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01064_incremental_streaming_from_2_src_with_feedback.reference rename to tests/queries/0_stateless/01064_incremental_streaming_from_2_src_with_feedback.reference diff --git a/dbms/tests/queries/0_stateless/01064_incremental_streaming_from_2_src_with_feedback.sql b/tests/queries/0_stateless/01064_incremental_streaming_from_2_src_with_feedback.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01064_incremental_streaming_from_2_src_with_feedback.sql rename to tests/queries/0_stateless/01064_incremental_streaming_from_2_src_with_feedback.sql diff --git a/dbms/tests/queries/0_stateless/01064_pm_all_join_const_and_nullable.reference b/tests/queries/0_stateless/01064_pm_all_join_const_and_nullable.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01064_pm_all_join_const_and_nullable.reference rename to tests/queries/0_stateless/01064_pm_all_join_const_and_nullable.reference diff --git a/dbms/tests/queries/0_stateless/01064_pm_all_join_const_and_nullable.sql b/tests/queries/0_stateless/01064_pm_all_join_const_and_nullable.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01064_pm_all_join_const_and_nullable.sql rename to tests/queries/0_stateless/01064_pm_all_join_const_and_nullable.sql diff --git a/dbms/tests/queries/0_stateless/01065_array_zip_mixed_const.reference b/tests/queries/0_stateless/01065_array_zip_mixed_const.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01065_array_zip_mixed_const.reference rename to tests/queries/0_stateless/01065_array_zip_mixed_const.reference diff --git a/dbms/tests/queries/0_stateless/01065_array_zip_mixed_const.sql b/tests/queries/0_stateless/01065_array_zip_mixed_const.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01065_array_zip_mixed_const.sql rename to tests/queries/0_stateless/01065_array_zip_mixed_const.sql diff --git a/dbms/tests/queries/0_stateless/01065_if_not_finite.reference b/tests/queries/0_stateless/01065_if_not_finite.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01065_if_not_finite.reference rename to tests/queries/0_stateless/01065_if_not_finite.reference diff --git a/dbms/tests/queries/0_stateless/01065_if_not_finite.sql b/tests/queries/0_stateless/01065_if_not_finite.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01065_if_not_finite.sql rename to tests/queries/0_stateless/01065_if_not_finite.sql diff --git a/dbms/tests/queries/0_stateless/01066_bit_count.reference b/tests/queries/0_stateless/01066_bit_count.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01066_bit_count.reference rename to tests/queries/0_stateless/01066_bit_count.reference diff --git a/dbms/tests/queries/0_stateless/01066_bit_count.sql b/tests/queries/0_stateless/01066_bit_count.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01066_bit_count.sql rename to tests/queries/0_stateless/01066_bit_count.sql diff --git a/dbms/tests/queries/0_stateless/01067_join_null.reference b/tests/queries/0_stateless/01067_join_null.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01067_join_null.reference rename to tests/queries/0_stateless/01067_join_null.reference diff --git a/dbms/tests/queries/0_stateless/01067_join_null.sql b/tests/queries/0_stateless/01067_join_null.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01067_join_null.sql rename to tests/queries/0_stateless/01067_join_null.sql diff --git a/dbms/tests/queries/0_stateless/01068_parens.reference b/tests/queries/0_stateless/01068_parens.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01068_parens.reference rename to tests/queries/0_stateless/01068_parens.reference diff --git a/dbms/tests/queries/0_stateless/01068_parens.sql b/tests/queries/0_stateless/01068_parens.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01068_parens.sql rename to tests/queries/0_stateless/01068_parens.sql diff --git a/dbms/tests/queries/0_stateless/01069_database_memory.reference b/tests/queries/0_stateless/01069_database_memory.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01069_database_memory.reference rename to tests/queries/0_stateless/01069_database_memory.reference diff --git a/dbms/tests/queries/0_stateless/01069_database_memory.sql b/tests/queries/0_stateless/01069_database_memory.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01069_database_memory.sql rename to tests/queries/0_stateless/01069_database_memory.sql diff --git a/dbms/tests/queries/0_stateless/01069_insert_float_as_nullable_unit8.reference b/tests/queries/0_stateless/01069_insert_float_as_nullable_unit8.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01069_insert_float_as_nullable_unit8.reference rename to tests/queries/0_stateless/01069_insert_float_as_nullable_unit8.reference diff --git a/dbms/tests/queries/0_stateless/01069_insert_float_as_nullable_unit8.sql b/tests/queries/0_stateless/01069_insert_float_as_nullable_unit8.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01069_insert_float_as_nullable_unit8.sql rename to tests/queries/0_stateless/01069_insert_float_as_nullable_unit8.sql diff --git a/dbms/tests/queries/0_stateless/01069_materialized_view_alter_target_table.reference b/tests/queries/0_stateless/01069_materialized_view_alter_target_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01069_materialized_view_alter_target_table.reference rename to tests/queries/0_stateless/01069_materialized_view_alter_target_table.reference diff --git a/dbms/tests/queries/0_stateless/01069_materialized_view_alter_target_table.sql b/tests/queries/0_stateless/01069_materialized_view_alter_target_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01069_materialized_view_alter_target_table.sql rename to tests/queries/0_stateless/01069_materialized_view_alter_target_table.sql diff --git a/dbms/tests/queries/0_stateless/01069_materialized_view_alter_target_table_with_default_expression.reference b/tests/queries/0_stateless/01069_materialized_view_alter_target_table_with_default_expression.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01069_materialized_view_alter_target_table_with_default_expression.reference rename to tests/queries/0_stateless/01069_materialized_view_alter_target_table_with_default_expression.reference diff --git a/dbms/tests/queries/0_stateless/01069_materialized_view_alter_target_table_with_default_expression.sql b/tests/queries/0_stateless/01069_materialized_view_alter_target_table_with_default_expression.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01069_materialized_view_alter_target_table_with_default_expression.sql rename to tests/queries/0_stateless/01069_materialized_view_alter_target_table_with_default_expression.sql diff --git a/dbms/tests/queries/0_stateless/01069_set_in_group_by.reference b/tests/queries/0_stateless/01069_set_in_group_by.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01069_set_in_group_by.reference rename to tests/queries/0_stateless/01069_set_in_group_by.reference diff --git a/dbms/tests/queries/0_stateless/01069_set_in_group_by.sql b/tests/queries/0_stateless/01069_set_in_group_by.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01069_set_in_group_by.sql rename to tests/queries/0_stateless/01069_set_in_group_by.sql diff --git a/dbms/tests/queries/0_stateless/01070_alter_with_ttl.reference b/tests/queries/0_stateless/01070_alter_with_ttl.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_alter_with_ttl.reference rename to tests/queries/0_stateless/01070_alter_with_ttl.reference diff --git a/dbms/tests/queries/0_stateless/01070_alter_with_ttl.sql b/tests/queries/0_stateless/01070_alter_with_ttl.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_alter_with_ttl.sql rename to tests/queries/0_stateless/01070_alter_with_ttl.sql diff --git a/dbms/tests/queries/0_stateless/01070_exception_code_in_query_log_table.reference b/tests/queries/0_stateless/01070_exception_code_in_query_log_table.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_exception_code_in_query_log_table.reference rename to tests/queries/0_stateless/01070_exception_code_in_query_log_table.reference diff --git a/dbms/tests/queries/0_stateless/01070_exception_code_in_query_log_table.sql b/tests/queries/0_stateless/01070_exception_code_in_query_log_table.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_exception_code_in_query_log_table.sql rename to tests/queries/0_stateless/01070_exception_code_in_query_log_table.sql diff --git a/dbms/tests/queries/0_stateless/01070_h3_get_base_cell.reference b/tests/queries/0_stateless/01070_h3_get_base_cell.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_get_base_cell.reference rename to tests/queries/0_stateless/01070_h3_get_base_cell.reference diff --git a/dbms/tests/queries/0_stateless/01070_h3_get_base_cell.sql b/tests/queries/0_stateless/01070_h3_get_base_cell.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_get_base_cell.sql rename to tests/queries/0_stateless/01070_h3_get_base_cell.sql diff --git a/dbms/tests/queries/0_stateless/01070_h3_hex_area_m2.reference b/tests/queries/0_stateless/01070_h3_hex_area_m2.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_hex_area_m2.reference rename to tests/queries/0_stateless/01070_h3_hex_area_m2.reference diff --git a/dbms/tests/queries/0_stateless/01070_h3_hex_area_m2.sql b/tests/queries/0_stateless/01070_h3_hex_area_m2.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_hex_area_m2.sql rename to tests/queries/0_stateless/01070_h3_hex_area_m2.sql diff --git a/dbms/tests/queries/0_stateless/01070_h3_indexes_are_neighbors.reference b/tests/queries/0_stateless/01070_h3_indexes_are_neighbors.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_indexes_are_neighbors.reference rename to tests/queries/0_stateless/01070_h3_indexes_are_neighbors.reference diff --git a/dbms/tests/queries/0_stateless/01070_h3_indexes_are_neighbors.sql b/tests/queries/0_stateless/01070_h3_indexes_are_neighbors.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_indexes_are_neighbors.sql rename to tests/queries/0_stateless/01070_h3_indexes_are_neighbors.sql diff --git a/dbms/tests/queries/0_stateless/01070_h3_to_children.reference b/tests/queries/0_stateless/01070_h3_to_children.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_to_children.reference rename to tests/queries/0_stateless/01070_h3_to_children.reference diff --git a/dbms/tests/queries/0_stateless/01070_h3_to_children.sql b/tests/queries/0_stateless/01070_h3_to_children.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_to_children.sql rename to tests/queries/0_stateless/01070_h3_to_children.sql diff --git a/dbms/tests/queries/0_stateless/01070_h3_to_parent.reference b/tests/queries/0_stateless/01070_h3_to_parent.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_to_parent.reference rename to tests/queries/0_stateless/01070_h3_to_parent.reference diff --git a/dbms/tests/queries/0_stateless/01070_h3_to_parent.sql b/tests/queries/0_stateless/01070_h3_to_parent.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_to_parent.sql rename to tests/queries/0_stateless/01070_h3_to_parent.sql diff --git a/dbms/tests/queries/0_stateless/01070_h3_to_string.reference b/tests/queries/0_stateless/01070_h3_to_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_to_string.reference rename to tests/queries/0_stateless/01070_h3_to_string.reference diff --git a/dbms/tests/queries/0_stateless/01070_h3_to_string.sql b/tests/queries/0_stateless/01070_h3_to_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_h3_to_string.sql rename to tests/queries/0_stateless/01070_h3_to_string.sql diff --git a/dbms/tests/queries/0_stateless/01070_materialize_ttl.reference b/tests/queries/0_stateless/01070_materialize_ttl.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_materialize_ttl.reference rename to tests/queries/0_stateless/01070_materialize_ttl.reference diff --git a/dbms/tests/queries/0_stateless/01070_materialize_ttl.sql b/tests/queries/0_stateless/01070_materialize_ttl.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_materialize_ttl.sql rename to tests/queries/0_stateless/01070_materialize_ttl.sql diff --git a/dbms/tests/queries/0_stateless/01070_mutations_with_dependencies.reference b/tests/queries/0_stateless/01070_mutations_with_dependencies.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_mutations_with_dependencies.reference rename to tests/queries/0_stateless/01070_mutations_with_dependencies.reference diff --git a/dbms/tests/queries/0_stateless/01070_mutations_with_dependencies.sql b/tests/queries/0_stateless/01070_mutations_with_dependencies.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_mutations_with_dependencies.sql rename to tests/queries/0_stateless/01070_mutations_with_dependencies.sql diff --git a/dbms/tests/queries/0_stateless/01070_string_to_h3.reference b/tests/queries/0_stateless/01070_string_to_h3.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_string_to_h3.reference rename to tests/queries/0_stateless/01070_string_to_h3.reference diff --git a/dbms/tests/queries/0_stateless/01070_string_to_h3.sql b/tests/queries/0_stateless/01070_string_to_h3.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_string_to_h3.sql rename to tests/queries/0_stateless/01070_string_to_h3.sql diff --git a/dbms/tests/queries/0_stateless/01070_template_empty_file.reference b/tests/queries/0_stateless/01070_template_empty_file.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_template_empty_file.reference rename to tests/queries/0_stateless/01070_template_empty_file.reference diff --git a/dbms/tests/queries/0_stateless/01070_template_empty_file.sql b/tests/queries/0_stateless/01070_template_empty_file.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_template_empty_file.sql rename to tests/queries/0_stateless/01070_template_empty_file.sql diff --git a/dbms/tests/queries/0_stateless/01070_to_decimal_or_null_exception.reference b/tests/queries/0_stateless/01070_to_decimal_or_null_exception.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01070_to_decimal_or_null_exception.reference rename to tests/queries/0_stateless/01070_to_decimal_or_null_exception.reference diff --git a/dbms/tests/queries/0_stateless/01070_to_decimal_or_null_exception.sql b/tests/queries/0_stateless/01070_to_decimal_or_null_exception.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01070_to_decimal_or_null_exception.sql rename to tests/queries/0_stateless/01070_to_decimal_or_null_exception.sql diff --git a/dbms/tests/queries/0_stateless/01071_force_optimize_skip_unused_shards.reference b/tests/queries/0_stateless/01071_force_optimize_skip_unused_shards.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01071_force_optimize_skip_unused_shards.reference rename to tests/queries/0_stateless/01071_force_optimize_skip_unused_shards.reference diff --git a/dbms/tests/queries/0_stateless/01071_force_optimize_skip_unused_shards.sql b/tests/queries/0_stateless/01071_force_optimize_skip_unused_shards.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01071_force_optimize_skip_unused_shards.sql rename to tests/queries/0_stateless/01071_force_optimize_skip_unused_shards.sql diff --git a/dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference b/tests/queries/0_stateless/01071_http_header_exception_code.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference rename to tests/queries/0_stateless/01071_http_header_exception_code.reference diff --git a/dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh b/tests/queries/0_stateless/01071_http_header_exception_code.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh rename to tests/queries/0_stateless/01071_http_header_exception_code.sh diff --git a/dbms/tests/queries/0_stateless/01071_in_array.reference b/tests/queries/0_stateless/01071_in_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01071_in_array.reference rename to tests/queries/0_stateless/01071_in_array.reference diff --git a/dbms/tests/queries/0_stateless/01071_in_array.sql b/tests/queries/0_stateless/01071_in_array.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01071_in_array.sql rename to tests/queries/0_stateless/01071_in_array.sql diff --git a/dbms/tests/queries/0_stateless/01071_live_view_detach_dependency.reference b/tests/queries/0_stateless/01071_live_view_detach_dependency.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01071_live_view_detach_dependency.reference rename to tests/queries/0_stateless/01071_live_view_detach_dependency.reference diff --git a/dbms/tests/queries/0_stateless/01071_live_view_detach_dependency.sql b/tests/queries/0_stateless/01071_live_view_detach_dependency.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01071_live_view_detach_dependency.sql rename to tests/queries/0_stateless/01071_live_view_detach_dependency.sql diff --git a/dbms/tests/queries/0_stateless/01071_prohibition_secondary_index_with_old_format_merge_tree.reference b/tests/queries/0_stateless/01071_prohibition_secondary_index_with_old_format_merge_tree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01071_prohibition_secondary_index_with_old_format_merge_tree.reference rename to tests/queries/0_stateless/01071_prohibition_secondary_index_with_old_format_merge_tree.reference diff --git a/dbms/tests/queries/0_stateless/01071_prohibition_secondary_index_with_old_format_merge_tree.sql b/tests/queries/0_stateless/01071_prohibition_secondary_index_with_old_format_merge_tree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01071_prohibition_secondary_index_with_old_format_merge_tree.sql rename to tests/queries/0_stateless/01071_prohibition_secondary_index_with_old_format_merge_tree.sql diff --git a/dbms/tests/queries/0_stateless/01072_drop_temporary_table_with_same_name.reference b/tests/queries/0_stateless/01072_drop_temporary_table_with_same_name.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01072_drop_temporary_table_with_same_name.reference rename to tests/queries/0_stateless/01072_drop_temporary_table_with_same_name.reference diff --git a/dbms/tests/queries/0_stateless/01072_drop_temporary_table_with_same_name.sql b/tests/queries/0_stateless/01072_drop_temporary_table_with_same_name.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01072_drop_temporary_table_with_same_name.sql rename to tests/queries/0_stateless/01072_drop_temporary_table_with_same_name.sql diff --git a/dbms/tests/queries/0_stateless/01072_json_each_row_data_in_square_brackets.reference b/tests/queries/0_stateless/01072_json_each_row_data_in_square_brackets.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01072_json_each_row_data_in_square_brackets.reference rename to tests/queries/0_stateless/01072_json_each_row_data_in_square_brackets.reference diff --git a/dbms/tests/queries/0_stateless/01072_json_each_row_data_in_square_brackets.sql b/tests/queries/0_stateless/01072_json_each_row_data_in_square_brackets.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01072_json_each_row_data_in_square_brackets.sql rename to tests/queries/0_stateless/01072_json_each_row_data_in_square_brackets.sql diff --git a/dbms/tests/queries/0_stateless/01072_nullable_jit.reference b/tests/queries/0_stateless/01072_nullable_jit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01072_nullable_jit.reference rename to tests/queries/0_stateless/01072_nullable_jit.reference diff --git a/dbms/tests/queries/0_stateless/01072_nullable_jit.sql b/tests/queries/0_stateless/01072_nullable_jit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01072_nullable_jit.sql rename to tests/queries/0_stateless/01072_nullable_jit.sql diff --git a/dbms/tests/queries/0_stateless/01072_optimize_skip_unused_shards_const_expr_eval.reference b/tests/queries/0_stateless/01072_optimize_skip_unused_shards_const_expr_eval.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01072_optimize_skip_unused_shards_const_expr_eval.reference rename to tests/queries/0_stateless/01072_optimize_skip_unused_shards_const_expr_eval.reference diff --git a/dbms/tests/queries/0_stateless/01072_optimize_skip_unused_shards_const_expr_eval.sql b/tests/queries/0_stateless/01072_optimize_skip_unused_shards_const_expr_eval.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01072_optimize_skip_unused_shards_const_expr_eval.sql rename to tests/queries/0_stateless/01072_optimize_skip_unused_shards_const_expr_eval.sql diff --git a/dbms/tests/queries/0_stateless/01072_select_constant_limit.reference b/tests/queries/0_stateless/01072_select_constant_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01072_select_constant_limit.reference rename to tests/queries/0_stateless/01072_select_constant_limit.reference diff --git a/dbms/tests/queries/0_stateless/01072_select_constant_limit.sql b/tests/queries/0_stateless/01072_select_constant_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01072_select_constant_limit.sql rename to tests/queries/0_stateless/01072_select_constant_limit.sql diff --git a/dbms/tests/queries/0_stateless/01073_attach_if_not_exists.reference b/tests/queries/0_stateless/01073_attach_if_not_exists.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01073_attach_if_not_exists.reference rename to tests/queries/0_stateless/01073_attach_if_not_exists.reference diff --git a/dbms/tests/queries/0_stateless/01073_attach_if_not_exists.sql b/tests/queries/0_stateless/01073_attach_if_not_exists.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01073_attach_if_not_exists.sql rename to tests/queries/0_stateless/01073_attach_if_not_exists.sql diff --git a/dbms/tests/queries/0_stateless/01073_bad_alter_partition.reference b/tests/queries/0_stateless/01073_bad_alter_partition.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01073_bad_alter_partition.reference rename to tests/queries/0_stateless/01073_bad_alter_partition.reference diff --git a/dbms/tests/queries/0_stateless/01073_bad_alter_partition.sql b/tests/queries/0_stateless/01073_bad_alter_partition.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01073_bad_alter_partition.sql rename to tests/queries/0_stateless/01073_bad_alter_partition.sql diff --git a/dbms/tests/queries/0_stateless/01073_blockSerializedSize.reference b/tests/queries/0_stateless/01073_blockSerializedSize.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01073_blockSerializedSize.reference rename to tests/queries/0_stateless/01073_blockSerializedSize.reference diff --git a/dbms/tests/queries/0_stateless/01073_blockSerializedSize.sql b/tests/queries/0_stateless/01073_blockSerializedSize.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01073_blockSerializedSize.sql rename to tests/queries/0_stateless/01073_blockSerializedSize.sql diff --git a/dbms/tests/queries/0_stateless/01073_crlf_end_of_line.reference b/tests/queries/0_stateless/01073_crlf_end_of_line.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01073_crlf_end_of_line.reference rename to tests/queries/0_stateless/01073_crlf_end_of_line.reference diff --git a/dbms/tests/queries/0_stateless/01073_crlf_end_of_line.sql b/tests/queries/0_stateless/01073_crlf_end_of_line.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01073_crlf_end_of_line.sql rename to tests/queries/0_stateless/01073_crlf_end_of_line.sql diff --git a/dbms/tests/queries/0_stateless/01073_grant_and_revoke.reference b/tests/queries/0_stateless/01073_grant_and_revoke.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01073_grant_and_revoke.reference rename to tests/queries/0_stateless/01073_grant_and_revoke.reference diff --git a/dbms/tests/queries/0_stateless/01073_grant_and_revoke.sql b/tests/queries/0_stateless/01073_grant_and_revoke.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01073_grant_and_revoke.sql rename to tests/queries/0_stateless/01073_grant_and_revoke.sql diff --git a/dbms/tests/queries/0_stateless/01073_show_tables_not_like.reference b/tests/queries/0_stateless/01073_show_tables_not_like.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01073_show_tables_not_like.reference rename to tests/queries/0_stateless/01073_show_tables_not_like.reference diff --git a/dbms/tests/queries/0_stateless/01073_show_tables_not_like.sql b/tests/queries/0_stateless/01073_show_tables_not_like.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01073_show_tables_not_like.sql rename to tests/queries/0_stateless/01073_show_tables_not_like.sql diff --git a/dbms/tests/queries/0_stateless/01074_h3_range_check.reference b/tests/queries/0_stateless/01074_h3_range_check.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01074_h3_range_check.reference rename to tests/queries/0_stateless/01074_h3_range_check.reference diff --git a/dbms/tests/queries/0_stateless/01074_h3_range_check.sql b/tests/queries/0_stateless/01074_h3_range_check.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01074_h3_range_check.sql rename to tests/queries/0_stateless/01074_h3_range_check.sql diff --git a/dbms/tests/queries/0_stateless/01074_partial_revokes.reference b/tests/queries/0_stateless/01074_partial_revokes.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01074_partial_revokes.reference rename to tests/queries/0_stateless/01074_partial_revokes.reference diff --git a/dbms/tests/queries/0_stateless/01074_partial_revokes.sql b/tests/queries/0_stateless/01074_partial_revokes.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01074_partial_revokes.sql rename to tests/queries/0_stateless/01074_partial_revokes.sql diff --git a/dbms/tests/queries/0_stateless/01075_allowed_client_hosts.reference b/tests/queries/0_stateless/01075_allowed_client_hosts.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01075_allowed_client_hosts.reference rename to tests/queries/0_stateless/01075_allowed_client_hosts.reference diff --git a/dbms/tests/queries/0_stateless/01075_allowed_client_hosts.sql b/tests/queries/0_stateless/01075_allowed_client_hosts.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01075_allowed_client_hosts.sql rename to tests/queries/0_stateless/01075_allowed_client_hosts.sql diff --git a/dbms/tests/queries/0_stateless/01075_in_arrays_enmk.reference b/tests/queries/0_stateless/01075_in_arrays_enmk.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01075_in_arrays_enmk.reference rename to tests/queries/0_stateless/01075_in_arrays_enmk.reference diff --git a/dbms/tests/queries/0_stateless/01075_in_arrays_enmk.sql b/tests/queries/0_stateless/01075_in_arrays_enmk.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01075_in_arrays_enmk.sql rename to tests/queries/0_stateless/01075_in_arrays_enmk.sql diff --git a/dbms/tests/queries/0_stateless/01076_array_join_prewhere_const_folding.reference b/tests/queries/0_stateless/01076_array_join_prewhere_const_folding.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01076_array_join_prewhere_const_folding.reference rename to tests/queries/0_stateless/01076_array_join_prewhere_const_folding.reference diff --git a/dbms/tests/queries/0_stateless/01076_array_join_prewhere_const_folding.sql b/tests/queries/0_stateless/01076_array_join_prewhere_const_folding.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01076_array_join_prewhere_const_folding.sql rename to tests/queries/0_stateless/01076_array_join_prewhere_const_folding.sql diff --git a/dbms/tests/queries/0_stateless/01076_cache_dictionary_datarace_exception_ptr.reference b/tests/queries/0_stateless/01076_cache_dictionary_datarace_exception_ptr.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01076_cache_dictionary_datarace_exception_ptr.reference rename to tests/queries/0_stateless/01076_cache_dictionary_datarace_exception_ptr.reference diff --git a/dbms/tests/queries/0_stateless/01076_cache_dictionary_datarace_exception_ptr.sh b/tests/queries/0_stateless/01076_cache_dictionary_datarace_exception_ptr.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01076_cache_dictionary_datarace_exception_ptr.sh rename to tests/queries/0_stateless/01076_cache_dictionary_datarace_exception_ptr.sh diff --git a/dbms/tests/queries/0_stateless/01076_json_each_row_array.reference b/tests/queries/0_stateless/01076_json_each_row_array.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01076_json_each_row_array.reference rename to tests/queries/0_stateless/01076_json_each_row_array.reference diff --git a/dbms/tests/queries/0_stateless/01076_json_each_row_array.sh b/tests/queries/0_stateless/01076_json_each_row_array.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01076_json_each_row_array.sh rename to tests/queries/0_stateless/01076_json_each_row_array.sh diff --git a/dbms/tests/queries/0_stateless/01076_parallel_alter_replicated_zookeeper.reference b/tests/queries/0_stateless/01076_parallel_alter_replicated_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01076_parallel_alter_replicated_zookeeper.reference rename to tests/queries/0_stateless/01076_parallel_alter_replicated_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01076_parallel_alter_replicated_zookeeper.sh b/tests/queries/0_stateless/01076_parallel_alter_replicated_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01076_parallel_alter_replicated_zookeeper.sh rename to tests/queries/0_stateless/01076_parallel_alter_replicated_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01076_predicate_optimizer_with_view.reference b/tests/queries/0_stateless/01076_predicate_optimizer_with_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01076_predicate_optimizer_with_view.reference rename to tests/queries/0_stateless/01076_predicate_optimizer_with_view.reference diff --git a/dbms/tests/queries/0_stateless/01076_predicate_optimizer_with_view.sql b/tests/queries/0_stateless/01076_predicate_optimizer_with_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01076_predicate_optimizer_with_view.sql rename to tests/queries/0_stateless/01076_predicate_optimizer_with_view.sql diff --git a/dbms/tests/queries/0_stateless/01076_range_reader_segfault.reference b/tests/queries/0_stateless/01076_range_reader_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01076_range_reader_segfault.reference rename to tests/queries/0_stateless/01076_range_reader_segfault.reference diff --git a/dbms/tests/queries/0_stateless/01076_range_reader_segfault.sql b/tests/queries/0_stateless/01076_range_reader_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01076_range_reader_segfault.sql rename to tests/queries/0_stateless/01076_range_reader_segfault.sql diff --git a/dbms/tests/queries/0_stateless/01077_mutations_index_consistency.reference b/tests/queries/0_stateless/01077_mutations_index_consistency.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01077_mutations_index_consistency.reference rename to tests/queries/0_stateless/01077_mutations_index_consistency.reference diff --git a/dbms/tests/queries/0_stateless/01077_mutations_index_consistency.sh b/tests/queries/0_stateless/01077_mutations_index_consistency.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01077_mutations_index_consistency.sh rename to tests/queries/0_stateless/01077_mutations_index_consistency.sh diff --git a/dbms/tests/queries/0_stateless/01077_yet_another_prewhere_test.reference b/tests/queries/0_stateless/01077_yet_another_prewhere_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01077_yet_another_prewhere_test.reference rename to tests/queries/0_stateless/01077_yet_another_prewhere_test.reference diff --git a/dbms/tests/queries/0_stateless/01077_yet_another_prewhere_test.sql b/tests/queries/0_stateless/01077_yet_another_prewhere_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01077_yet_another_prewhere_test.sql rename to tests/queries/0_stateless/01077_yet_another_prewhere_test.sql diff --git a/dbms/tests/queries/0_stateless/01078_bloom_filter_operator_not_has.reference b/tests/queries/0_stateless/01078_bloom_filter_operator_not_has.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01078_bloom_filter_operator_not_has.reference rename to tests/queries/0_stateless/01078_bloom_filter_operator_not_has.reference diff --git a/dbms/tests/queries/0_stateless/01078_bloom_filter_operator_not_has.sql b/tests/queries/0_stateless/01078_bloom_filter_operator_not_has.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01078_bloom_filter_operator_not_has.sql rename to tests/queries/0_stateless/01078_bloom_filter_operator_not_has.sql diff --git a/dbms/tests/queries/0_stateless/01078_merge_tree_read_one_thread.reference b/tests/queries/0_stateless/01078_merge_tree_read_one_thread.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01078_merge_tree_read_one_thread.reference rename to tests/queries/0_stateless/01078_merge_tree_read_one_thread.reference diff --git a/dbms/tests/queries/0_stateless/01078_merge_tree_read_one_thread.sql b/tests/queries/0_stateless/01078_merge_tree_read_one_thread.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01078_merge_tree_read_one_thread.sql rename to tests/queries/0_stateless/01078_merge_tree_read_one_thread.sql diff --git a/dbms/tests/queries/0_stateless/01079_alter_default_zookeeper.reference b/tests/queries/0_stateless/01079_alter_default_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01079_alter_default_zookeeper.reference rename to tests/queries/0_stateless/01079_alter_default_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01079_alter_default_zookeeper.sql b/tests/queries/0_stateless/01079_alter_default_zookeeper.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01079_alter_default_zookeeper.sql rename to tests/queries/0_stateless/01079_alter_default_zookeeper.sql diff --git a/dbms/tests/queries/0_stateless/01079_bad_alters_zookeeper.reference b/tests/queries/0_stateless/01079_bad_alters_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01079_bad_alters_zookeeper.reference rename to tests/queries/0_stateless/01079_bad_alters_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01079_bad_alters_zookeeper.sh b/tests/queries/0_stateless/01079_bad_alters_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01079_bad_alters_zookeeper.sh rename to tests/queries/0_stateless/01079_bad_alters_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01079_bit_operations_using_bitset.reference b/tests/queries/0_stateless/01079_bit_operations_using_bitset.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01079_bit_operations_using_bitset.reference rename to tests/queries/0_stateless/01079_bit_operations_using_bitset.reference diff --git a/dbms/tests/queries/0_stateless/01079_bit_operations_using_bitset.sql b/tests/queries/0_stateless/01079_bit_operations_using_bitset.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01079_bit_operations_using_bitset.sql rename to tests/queries/0_stateless/01079_bit_operations_using_bitset.sql diff --git a/dbms/tests/queries/0_stateless/01079_new_range_reader_segfault.reference b/tests/queries/0_stateless/01079_new_range_reader_segfault.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01079_new_range_reader_segfault.reference rename to tests/queries/0_stateless/01079_new_range_reader_segfault.reference diff --git a/dbms/tests/queries/0_stateless/01079_new_range_reader_segfault.sql b/tests/queries/0_stateless/01079_new_range_reader_segfault.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01079_new_range_reader_segfault.sql rename to tests/queries/0_stateless/01079_new_range_reader_segfault.sql diff --git a/dbms/tests/queries/0_stateless/01079_order_by_pk.reference b/tests/queries/0_stateless/01079_order_by_pk.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01079_order_by_pk.reference rename to tests/queries/0_stateless/01079_order_by_pk.reference diff --git a/dbms/tests/queries/0_stateless/01079_order_by_pk.sql b/tests/queries/0_stateless/01079_order_by_pk.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01079_order_by_pk.sql rename to tests/queries/0_stateless/01079_order_by_pk.sql diff --git a/dbms/tests/queries/0_stateless/01079_parallel_alter_add_drop_column_zookeeper.reference b/tests/queries/0_stateless/01079_parallel_alter_add_drop_column_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01079_parallel_alter_add_drop_column_zookeeper.reference rename to tests/queries/0_stateless/01079_parallel_alter_add_drop_column_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01079_parallel_alter_add_drop_column_zookeeper.sh b/tests/queries/0_stateless/01079_parallel_alter_add_drop_column_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01079_parallel_alter_add_drop_column_zookeeper.sh rename to tests/queries/0_stateless/01079_parallel_alter_add_drop_column_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01079_parallel_alter_detach_table_zookeeper.reference b/tests/queries/0_stateless/01079_parallel_alter_detach_table_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01079_parallel_alter_detach_table_zookeeper.reference rename to tests/queries/0_stateless/01079_parallel_alter_detach_table_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01079_parallel_alter_detach_table_zookeeper.sh b/tests/queries/0_stateless/01079_parallel_alter_detach_table_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01079_parallel_alter_detach_table_zookeeper.sh rename to tests/queries/0_stateless/01079_parallel_alter_detach_table_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.referece b/tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.referece similarity index 100% rename from dbms/tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.referece rename to tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.referece diff --git a/dbms/tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.reference b/tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.reference rename to tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.sh b/tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.sh rename to tests/queries/0_stateless/01079_parallel_alter_modify_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01079_reinterpret_as_fixed_string.reference b/tests/queries/0_stateless/01079_reinterpret_as_fixed_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01079_reinterpret_as_fixed_string.reference rename to tests/queries/0_stateless/01079_reinterpret_as_fixed_string.reference diff --git a/dbms/tests/queries/0_stateless/01079_reinterpret_as_fixed_string.sql b/tests/queries/0_stateless/01079_reinterpret_as_fixed_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01079_reinterpret_as_fixed_string.sql rename to tests/queries/0_stateless/01079_reinterpret_as_fixed_string.sql diff --git a/dbms/tests/queries/0_stateless/01080_check_for_error_incorrect_size_of_nested_column.reference b/tests/queries/0_stateless/01080_check_for_error_incorrect_size_of_nested_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01080_check_for_error_incorrect_size_of_nested_column.reference rename to tests/queries/0_stateless/01080_check_for_error_incorrect_size_of_nested_column.reference diff --git a/dbms/tests/queries/0_stateless/01080_check_for_error_incorrect_size_of_nested_column.sql b/tests/queries/0_stateless/01080_check_for_error_incorrect_size_of_nested_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01080_check_for_error_incorrect_size_of_nested_column.sql rename to tests/queries/0_stateless/01080_check_for_error_incorrect_size_of_nested_column.sql diff --git a/dbms/tests/queries/0_stateless/01080_engine_merge_prewhere_tupleelement_error.reference b/tests/queries/0_stateless/01080_engine_merge_prewhere_tupleelement_error.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01080_engine_merge_prewhere_tupleelement_error.reference rename to tests/queries/0_stateless/01080_engine_merge_prewhere_tupleelement_error.reference diff --git a/dbms/tests/queries/0_stateless/01080_engine_merge_prewhere_tupleelement_error.sql b/tests/queries/0_stateless/01080_engine_merge_prewhere_tupleelement_error.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01080_engine_merge_prewhere_tupleelement_error.sql rename to tests/queries/0_stateless/01080_engine_merge_prewhere_tupleelement_error.sql diff --git a/dbms/tests/queries/0_stateless/01080_join_get_null.reference b/tests/queries/0_stateless/01080_join_get_null.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01080_join_get_null.reference rename to tests/queries/0_stateless/01080_join_get_null.reference diff --git a/dbms/tests/queries/0_stateless/01080_join_get_null.sql b/tests/queries/0_stateless/01080_join_get_null.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01080_join_get_null.sql rename to tests/queries/0_stateless/01080_join_get_null.sql diff --git a/dbms/tests/queries/0_stateless/01081_PartialSortingTransform_full_column.reference b/tests/queries/0_stateless/01081_PartialSortingTransform_full_column.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01081_PartialSortingTransform_full_column.reference rename to tests/queries/0_stateless/01081_PartialSortingTransform_full_column.reference diff --git a/dbms/tests/queries/0_stateless/01081_PartialSortingTransform_full_column.sql b/tests/queries/0_stateless/01081_PartialSortingTransform_full_column.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01081_PartialSortingTransform_full_column.sql rename to tests/queries/0_stateless/01081_PartialSortingTransform_full_column.sql diff --git a/dbms/tests/queries/0_stateless/01081_demangle.reference b/tests/queries/0_stateless/01081_demangle.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01081_demangle.reference rename to tests/queries/0_stateless/01081_demangle.reference diff --git a/dbms/tests/queries/0_stateless/01081_demangle.sql b/tests/queries/0_stateless/01081_demangle.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01081_demangle.sql rename to tests/queries/0_stateless/01081_demangle.sql diff --git a/dbms/tests/queries/0_stateless/01081_keywords_formatting.reference b/tests/queries/0_stateless/01081_keywords_formatting.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01081_keywords_formatting.reference rename to tests/queries/0_stateless/01081_keywords_formatting.reference diff --git a/dbms/tests/queries/0_stateless/01081_keywords_formatting.sql b/tests/queries/0_stateless/01081_keywords_formatting.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01081_keywords_formatting.sql rename to tests/queries/0_stateless/01081_keywords_formatting.sql diff --git a/dbms/tests/queries/0_stateless/01082_bit_test_out_of_bound.reference b/tests/queries/0_stateless/01082_bit_test_out_of_bound.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01082_bit_test_out_of_bound.reference rename to tests/queries/0_stateless/01082_bit_test_out_of_bound.reference diff --git a/dbms/tests/queries/0_stateless/01082_bit_test_out_of_bound.sql b/tests/queries/0_stateless/01082_bit_test_out_of_bound.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01082_bit_test_out_of_bound.sql rename to tests/queries/0_stateless/01082_bit_test_out_of_bound.sql diff --git a/dbms/tests/queries/0_stateless/01083_aggregation_memory_efficient_bug.reference b/tests/queries/0_stateless/01083_aggregation_memory_efficient_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01083_aggregation_memory_efficient_bug.reference rename to tests/queries/0_stateless/01083_aggregation_memory_efficient_bug.reference diff --git a/dbms/tests/queries/0_stateless/01083_aggregation_memory_efficient_bug.sql b/tests/queries/0_stateless/01083_aggregation_memory_efficient_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01083_aggregation_memory_efficient_bug.sql rename to tests/queries/0_stateless/01083_aggregation_memory_efficient_bug.sql diff --git a/dbms/tests/queries/0_stateless/01083_cross_to_inner_with_in_bug.reference b/tests/queries/0_stateless/01083_cross_to_inner_with_in_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01083_cross_to_inner_with_in_bug.reference rename to tests/queries/0_stateless/01083_cross_to_inner_with_in_bug.reference diff --git a/dbms/tests/queries/0_stateless/01083_cross_to_inner_with_in_bug.sql b/tests/queries/0_stateless/01083_cross_to_inner_with_in_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01083_cross_to_inner_with_in_bug.sql rename to tests/queries/0_stateless/01083_cross_to_inner_with_in_bug.sql diff --git a/dbms/tests/queries/0_stateless/01083_cross_to_inner_with_like.reference b/tests/queries/0_stateless/01083_cross_to_inner_with_like.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01083_cross_to_inner_with_like.reference rename to tests/queries/0_stateless/01083_cross_to_inner_with_like.reference diff --git a/dbms/tests/queries/0_stateless/01083_cross_to_inner_with_like.sql b/tests/queries/0_stateless/01083_cross_to_inner_with_like.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01083_cross_to_inner_with_like.sql rename to tests/queries/0_stateless/01083_cross_to_inner_with_like.sql diff --git a/dbms/tests/queries/0_stateless/01083_expressions_in_engine_arguments.reference b/tests/queries/0_stateless/01083_expressions_in_engine_arguments.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01083_expressions_in_engine_arguments.reference rename to tests/queries/0_stateless/01083_expressions_in_engine_arguments.reference diff --git a/dbms/tests/queries/0_stateless/01083_expressions_in_engine_arguments.sql b/tests/queries/0_stateless/01083_expressions_in_engine_arguments.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01083_expressions_in_engine_arguments.sql rename to tests/queries/0_stateless/01083_expressions_in_engine_arguments.sql diff --git a/dbms/tests/queries/0_stateless/01083_functional_index_in_mergetree.reference b/tests/queries/0_stateless/01083_functional_index_in_mergetree.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01083_functional_index_in_mergetree.reference rename to tests/queries/0_stateless/01083_functional_index_in_mergetree.reference diff --git a/dbms/tests/queries/0_stateless/01083_functional_index_in_mergetree.sql b/tests/queries/0_stateless/01083_functional_index_in_mergetree.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01083_functional_index_in_mergetree.sql rename to tests/queries/0_stateless/01083_functional_index_in_mergetree.sql diff --git a/dbms/tests/queries/0_stateless/01083_log_family_disk_memory.reference b/tests/queries/0_stateless/01083_log_family_disk_memory.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01083_log_family_disk_memory.reference rename to tests/queries/0_stateless/01083_log_family_disk_memory.reference diff --git a/dbms/tests/queries/0_stateless/01083_log_family_disk_memory.sql b/tests/queries/0_stateless/01083_log_family_disk_memory.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01083_log_family_disk_memory.sql rename to tests/queries/0_stateless/01083_log_family_disk_memory.sql diff --git a/dbms/tests/queries/0_stateless/01083_log_first_column_alias.reference b/tests/queries/0_stateless/01083_log_first_column_alias.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01083_log_first_column_alias.reference rename to tests/queries/0_stateless/01083_log_first_column_alias.reference diff --git a/dbms/tests/queries/0_stateless/01083_log_first_column_alias.sql b/tests/queries/0_stateless/01083_log_first_column_alias.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01083_log_first_column_alias.sql rename to tests/queries/0_stateless/01083_log_first_column_alias.sql diff --git a/dbms/tests/queries/0_stateless/01083_match_zero_byte.reference b/tests/queries/0_stateless/01083_match_zero_byte.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01083_match_zero_byte.reference rename to tests/queries/0_stateless/01083_match_zero_byte.reference diff --git a/dbms/tests/queries/0_stateless/01083_match_zero_byte.sql b/tests/queries/0_stateless/01083_match_zero_byte.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01083_match_zero_byte.sql rename to tests/queries/0_stateless/01083_match_zero_byte.sql diff --git a/dbms/tests/queries/0_stateless/01084_defaults_on_aliases.reference b/tests/queries/0_stateless/01084_defaults_on_aliases.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01084_defaults_on_aliases.reference rename to tests/queries/0_stateless/01084_defaults_on_aliases.reference diff --git a/dbms/tests/queries/0_stateless/01084_defaults_on_aliases.sql b/tests/queries/0_stateless/01084_defaults_on_aliases.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01084_defaults_on_aliases.sql rename to tests/queries/0_stateless/01084_defaults_on_aliases.sql diff --git a/dbms/tests/queries/0_stateless/01084_regexp_empty.reference b/tests/queries/0_stateless/01084_regexp_empty.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01084_regexp_empty.reference rename to tests/queries/0_stateless/01084_regexp_empty.reference diff --git a/dbms/tests/queries/0_stateless/01084_regexp_empty.sql b/tests/queries/0_stateless/01084_regexp_empty.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01084_regexp_empty.sql rename to tests/queries/0_stateless/01084_regexp_empty.sql diff --git a/dbms/tests/queries/0_stateless/01085_datetime_arithmetic_preserve_timezone.reference b/tests/queries/0_stateless/01085_datetime_arithmetic_preserve_timezone.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01085_datetime_arithmetic_preserve_timezone.reference rename to tests/queries/0_stateless/01085_datetime_arithmetic_preserve_timezone.reference diff --git a/dbms/tests/queries/0_stateless/01085_datetime_arithmetic_preserve_timezone.sql b/tests/queries/0_stateless/01085_datetime_arithmetic_preserve_timezone.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01085_datetime_arithmetic_preserve_timezone.sql rename to tests/queries/0_stateless/01085_datetime_arithmetic_preserve_timezone.sql diff --git a/dbms/tests/queries/0_stateless/01085_extract_all_empty.reference b/tests/queries/0_stateless/01085_extract_all_empty.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01085_extract_all_empty.reference rename to tests/queries/0_stateless/01085_extract_all_empty.reference diff --git a/dbms/tests/queries/0_stateless/01085_extract_all_empty.sql b/tests/queries/0_stateless/01085_extract_all_empty.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01085_extract_all_empty.sql rename to tests/queries/0_stateless/01085_extract_all_empty.sql diff --git a/dbms/tests/queries/0_stateless/01085_max_distributed_connections.reference b/tests/queries/0_stateless/01085_max_distributed_connections.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01085_max_distributed_connections.reference rename to tests/queries/0_stateless/01085_max_distributed_connections.reference diff --git a/dbms/tests/queries/0_stateless/01085_max_distributed_connections.sh b/tests/queries/0_stateless/01085_max_distributed_connections.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01085_max_distributed_connections.sh rename to tests/queries/0_stateless/01085_max_distributed_connections.sh diff --git a/dbms/tests/queries/0_stateless/01085_max_distributed_connections_http.reference b/tests/queries/0_stateless/01085_max_distributed_connections_http.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01085_max_distributed_connections_http.reference rename to tests/queries/0_stateless/01085_max_distributed_connections_http.reference diff --git a/dbms/tests/queries/0_stateless/01085_max_distributed_connections_http.sh b/tests/queries/0_stateless/01085_max_distributed_connections_http.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01085_max_distributed_connections_http.sh rename to tests/queries/0_stateless/01085_max_distributed_connections_http.sh diff --git a/dbms/tests/queries/0_stateless/01085_regexp_input_format.reference b/tests/queries/0_stateless/01085_regexp_input_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01085_regexp_input_format.reference rename to tests/queries/0_stateless/01085_regexp_input_format.reference diff --git a/dbms/tests/queries/0_stateless/01085_regexp_input_format.sh b/tests/queries/0_stateless/01085_regexp_input_format.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01085_regexp_input_format.sh rename to tests/queries/0_stateless/01085_regexp_input_format.sh diff --git a/dbms/tests/queries/0_stateless/01085_simdjson_uint64.reference b/tests/queries/0_stateless/01085_simdjson_uint64.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01085_simdjson_uint64.reference rename to tests/queries/0_stateless/01085_simdjson_uint64.reference diff --git a/dbms/tests/queries/0_stateless/01085_simdjson_uint64.sql b/tests/queries/0_stateless/01085_simdjson_uint64.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01085_simdjson_uint64.sql rename to tests/queries/0_stateless/01085_simdjson_uint64.sql diff --git a/dbms/tests/queries/0_stateless/01086_modulo_or_zero.reference b/tests/queries/0_stateless/01086_modulo_or_zero.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01086_modulo_or_zero.reference rename to tests/queries/0_stateless/01086_modulo_or_zero.reference diff --git a/dbms/tests/queries/0_stateless/01086_modulo_or_zero.sql b/tests/queries/0_stateless/01086_modulo_or_zero.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01086_modulo_or_zero.sql rename to tests/queries/0_stateless/01086_modulo_or_zero.sql diff --git a/dbms/tests/queries/0_stateless/01086_odbc_roundtrip.reference b/tests/queries/0_stateless/01086_odbc_roundtrip.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01086_odbc_roundtrip.reference rename to tests/queries/0_stateless/01086_odbc_roundtrip.reference diff --git a/dbms/tests/queries/0_stateless/01086_odbc_roundtrip.sql b/tests/queries/0_stateless/01086_odbc_roundtrip.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01086_odbc_roundtrip.sql rename to tests/queries/0_stateless/01086_odbc_roundtrip.sql diff --git a/dbms/tests/queries/0_stateless/01086_regexp_input_format_skip_unmatched.reference b/tests/queries/0_stateless/01086_regexp_input_format_skip_unmatched.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01086_regexp_input_format_skip_unmatched.reference rename to tests/queries/0_stateless/01086_regexp_input_format_skip_unmatched.reference diff --git a/dbms/tests/queries/0_stateless/01086_regexp_input_format_skip_unmatched.sh b/tests/queries/0_stateless/01086_regexp_input_format_skip_unmatched.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01086_regexp_input_format_skip_unmatched.sh rename to tests/queries/0_stateless/01086_regexp_input_format_skip_unmatched.sh diff --git a/dbms/tests/queries/0_stateless/01087_index_set_ubsan.reference b/tests/queries/0_stateless/01087_index_set_ubsan.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01087_index_set_ubsan.reference rename to tests/queries/0_stateless/01087_index_set_ubsan.reference diff --git a/dbms/tests/queries/0_stateless/01087_index_set_ubsan.sql b/tests/queries/0_stateless/01087_index_set_ubsan.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01087_index_set_ubsan.sql rename to tests/queries/0_stateless/01087_index_set_ubsan.sql diff --git a/dbms/tests/queries/0_stateless/01087_storage_generate.reference b/tests/queries/0_stateless/01087_storage_generate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01087_storage_generate.reference rename to tests/queries/0_stateless/01087_storage_generate.reference diff --git a/dbms/tests/queries/0_stateless/01087_storage_generate.sql b/tests/queries/0_stateless/01087_storage_generate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01087_storage_generate.sql rename to tests/queries/0_stateless/01087_storage_generate.sql diff --git a/dbms/tests/queries/0_stateless/01087_table_function_generate.reference b/tests/queries/0_stateless/01087_table_function_generate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01087_table_function_generate.reference rename to tests/queries/0_stateless/01087_table_function_generate.reference diff --git a/dbms/tests/queries/0_stateless/01087_table_function_generate.sql b/tests/queries/0_stateless/01087_table_function_generate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01087_table_function_generate.sql rename to tests/queries/0_stateless/01087_table_function_generate.sql diff --git a/dbms/tests/queries/0_stateless/01088_array_slice_of_aggregate_functions.reference b/tests/queries/0_stateless/01088_array_slice_of_aggregate_functions.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01088_array_slice_of_aggregate_functions.reference rename to tests/queries/0_stateless/01088_array_slice_of_aggregate_functions.reference diff --git a/dbms/tests/queries/0_stateless/01088_array_slice_of_aggregate_functions.sql b/tests/queries/0_stateless/01088_array_slice_of_aggregate_functions.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01088_array_slice_of_aggregate_functions.sql rename to tests/queries/0_stateless/01088_array_slice_of_aggregate_functions.sql diff --git a/dbms/tests/queries/0_stateless/01088_benchmark_query_id.reference b/tests/queries/0_stateless/01088_benchmark_query_id.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01088_benchmark_query_id.reference rename to tests/queries/0_stateless/01088_benchmark_query_id.reference diff --git a/dbms/tests/queries/0_stateless/01088_benchmark_query_id.sh b/tests/queries/0_stateless/01088_benchmark_query_id.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01088_benchmark_query_id.sh rename to tests/queries/0_stateless/01088_benchmark_query_id.sh diff --git a/dbms/tests/queries/0_stateless/01089_alter_settings_old_format.reference b/tests/queries/0_stateless/01089_alter_settings_old_format.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01089_alter_settings_old_format.reference rename to tests/queries/0_stateless/01089_alter_settings_old_format.reference diff --git a/dbms/tests/queries/0_stateless/01089_alter_settings_old_format.sql b/tests/queries/0_stateless/01089_alter_settings_old_format.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01089_alter_settings_old_format.sql rename to tests/queries/0_stateless/01089_alter_settings_old_format.sql diff --git a/dbms/tests/queries/0_stateless/01090_fixed_string_bit_ops.reference b/tests/queries/0_stateless/01090_fixed_string_bit_ops.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01090_fixed_string_bit_ops.reference rename to tests/queries/0_stateless/01090_fixed_string_bit_ops.reference diff --git a/dbms/tests/queries/0_stateless/01090_fixed_string_bit_ops.sql b/tests/queries/0_stateless/01090_fixed_string_bit_ops.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01090_fixed_string_bit_ops.sql rename to tests/queries/0_stateless/01090_fixed_string_bit_ops.sql diff --git a/dbms/tests/queries/0_stateless/01090_zookeeper_mutations_and_insert_quorum.reference b/tests/queries/0_stateless/01090_zookeeper_mutations_and_insert_quorum.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01090_zookeeper_mutations_and_insert_quorum.reference rename to tests/queries/0_stateless/01090_zookeeper_mutations_and_insert_quorum.reference diff --git a/dbms/tests/queries/0_stateless/01090_zookeeper_mutations_and_insert_quorum.sql b/tests/queries/0_stateless/01090_zookeeper_mutations_and_insert_quorum.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01090_zookeeper_mutations_and_insert_quorum.sql rename to tests/queries/0_stateless/01090_zookeeper_mutations_and_insert_quorum.sql diff --git a/dbms/tests/queries/0_stateless/01091_insert_with_default_json.reference b/tests/queries/0_stateless/01091_insert_with_default_json.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01091_insert_with_default_json.reference rename to tests/queries/0_stateless/01091_insert_with_default_json.reference diff --git a/dbms/tests/queries/0_stateless/01091_insert_with_default_json.sql b/tests/queries/0_stateless/01091_insert_with_default_json.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01091_insert_with_default_json.sql rename to tests/queries/0_stateless/01091_insert_with_default_json.sql diff --git a/dbms/tests/queries/0_stateless/01091_num_threads.reference b/tests/queries/0_stateless/01091_num_threads.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01091_num_threads.reference rename to tests/queries/0_stateless/01091_num_threads.reference diff --git a/dbms/tests/queries/0_stateless/01091_num_threads.sql b/tests/queries/0_stateless/01091_num_threads.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01091_num_threads.sql rename to tests/queries/0_stateless/01091_num_threads.sql diff --git a/dbms/tests/queries/0_stateless/01091_query_profiler_does_not_hang.reference b/tests/queries/0_stateless/01091_query_profiler_does_not_hang.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01091_query_profiler_does_not_hang.reference rename to tests/queries/0_stateless/01091_query_profiler_does_not_hang.reference diff --git a/dbms/tests/queries/0_stateless/01091_query_profiler_does_not_hang.sql b/tests/queries/0_stateless/01091_query_profiler_does_not_hang.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01091_query_profiler_does_not_hang.sql rename to tests/queries/0_stateless/01091_query_profiler_does_not_hang.sql diff --git a/dbms/tests/queries/0_stateless/01092_base64.reference b/tests/queries/0_stateless/01092_base64.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01092_base64.reference rename to tests/queries/0_stateless/01092_base64.reference diff --git a/dbms/tests/queries/0_stateless/01092_base64.sql b/tests/queries/0_stateless/01092_base64.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01092_base64.sql rename to tests/queries/0_stateless/01092_base64.sql diff --git a/dbms/tests/queries/0_stateless/01092_memory_profiler.reference b/tests/queries/0_stateless/01092_memory_profiler.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01092_memory_profiler.reference rename to tests/queries/0_stateless/01092_memory_profiler.reference diff --git a/dbms/tests/queries/0_stateless/01092_memory_profiler.sql b/tests/queries/0_stateless/01092_memory_profiler.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01092_memory_profiler.sql rename to tests/queries/0_stateless/01092_memory_profiler.sql diff --git a/dbms/tests/queries/0_stateless/01093_cyclic_defaults_filimonov.reference b/tests/queries/0_stateless/01093_cyclic_defaults_filimonov.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01093_cyclic_defaults_filimonov.reference rename to tests/queries/0_stateless/01093_cyclic_defaults_filimonov.reference diff --git a/dbms/tests/queries/0_stateless/01093_cyclic_defaults_filimonov.sql b/tests/queries/0_stateless/01093_cyclic_defaults_filimonov.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01093_cyclic_defaults_filimonov.sql rename to tests/queries/0_stateless/01093_cyclic_defaults_filimonov.sql diff --git a/dbms/tests/queries/0_stateless/01095_tpch_like_smoke.reference b/tests/queries/0_stateless/01095_tpch_like_smoke.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01095_tpch_like_smoke.reference rename to tests/queries/0_stateless/01095_tpch_like_smoke.reference diff --git a/dbms/tests/queries/0_stateless/01095_tpch_like_smoke.sql b/tests/queries/0_stateless/01095_tpch_like_smoke.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01095_tpch_like_smoke.sql rename to tests/queries/0_stateless/01095_tpch_like_smoke.sql diff --git a/dbms/tests/queries/0_stateless/01096_array_reduce_in_ranges.reference b/tests/queries/0_stateless/01096_array_reduce_in_ranges.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01096_array_reduce_in_ranges.reference rename to tests/queries/0_stateless/01096_array_reduce_in_ranges.reference diff --git a/dbms/tests/queries/0_stateless/01096_array_reduce_in_ranges.sql b/tests/queries/0_stateless/01096_array_reduce_in_ranges.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01096_array_reduce_in_ranges.sql rename to tests/queries/0_stateless/01096_array_reduce_in_ranges.sql diff --git a/dbms/tests/queries/0_stateless/01096_block_serialized_state.reference b/tests/queries/0_stateless/01096_block_serialized_state.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01096_block_serialized_state.reference rename to tests/queries/0_stateless/01096_block_serialized_state.reference diff --git a/dbms/tests/queries/0_stateless/01096_block_serialized_state.sql b/tests/queries/0_stateless/01096_block_serialized_state.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01096_block_serialized_state.sql rename to tests/queries/0_stateless/01096_block_serialized_state.sql diff --git a/dbms/tests/queries/0_stateless/01096_zeros.reference b/tests/queries/0_stateless/01096_zeros.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01096_zeros.reference rename to tests/queries/0_stateless/01096_zeros.reference diff --git a/dbms/tests/queries/0_stateless/01096_zeros.sql b/tests/queries/0_stateless/01096_zeros.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01096_zeros.sql rename to tests/queries/0_stateless/01096_zeros.sql diff --git a/dbms/tests/queries/0_stateless/01097_cyclic_defaults.reference b/tests/queries/0_stateless/01097_cyclic_defaults.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01097_cyclic_defaults.reference rename to tests/queries/0_stateless/01097_cyclic_defaults.reference diff --git a/dbms/tests/queries/0_stateless/01097_cyclic_defaults.sql b/tests/queries/0_stateless/01097_cyclic_defaults.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01097_cyclic_defaults.sql rename to tests/queries/0_stateless/01097_cyclic_defaults.sql diff --git a/dbms/tests/queries/0_stateless/01097_one_more_range_reader_test.reference b/tests/queries/0_stateless/01097_one_more_range_reader_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01097_one_more_range_reader_test.reference rename to tests/queries/0_stateless/01097_one_more_range_reader_test.reference diff --git a/dbms/tests/queries/0_stateless/01097_one_more_range_reader_test.sql b/tests/queries/0_stateless/01097_one_more_range_reader_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01097_one_more_range_reader_test.sql rename to tests/queries/0_stateless/01097_one_more_range_reader_test.sql diff --git a/dbms/tests/queries/0_stateless/01097_pre_limit.reference b/tests/queries/0_stateless/01097_pre_limit.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01097_pre_limit.reference rename to tests/queries/0_stateless/01097_pre_limit.reference diff --git a/dbms/tests/queries/0_stateless/01097_pre_limit.sql b/tests/queries/0_stateless/01097_pre_limit.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01097_pre_limit.sql rename to tests/queries/0_stateless/01097_pre_limit.sql diff --git a/dbms/tests/queries/0_stateless/01098_sum.reference b/tests/queries/0_stateless/01098_sum.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01098_sum.reference rename to tests/queries/0_stateless/01098_sum.reference diff --git a/dbms/tests/queries/0_stateless/01098_sum.sql b/tests/queries/0_stateless/01098_sum.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01098_sum.sql rename to tests/queries/0_stateless/01098_sum.sql diff --git a/dbms/tests/queries/0_stateless/01098_temporary_and_external_tables.reference b/tests/queries/0_stateless/01098_temporary_and_external_tables.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01098_temporary_and_external_tables.reference rename to tests/queries/0_stateless/01098_temporary_and_external_tables.reference diff --git a/dbms/tests/queries/0_stateless/01098_temporary_and_external_tables.sh b/tests/queries/0_stateless/01098_temporary_and_external_tables.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01098_temporary_and_external_tables.sh rename to tests/queries/0_stateless/01098_temporary_and_external_tables.sh diff --git a/dbms/tests/queries/0_stateless/01099_operators_date_and_timestamp.reference b/tests/queries/0_stateless/01099_operators_date_and_timestamp.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01099_operators_date_and_timestamp.reference rename to tests/queries/0_stateless/01099_operators_date_and_timestamp.reference diff --git a/dbms/tests/queries/0_stateless/01099_operators_date_and_timestamp.sql b/tests/queries/0_stateless/01099_operators_date_and_timestamp.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01099_operators_date_and_timestamp.sql rename to tests/queries/0_stateless/01099_operators_date_and_timestamp.sql diff --git a/dbms/tests/queries/0_stateless/01099_parallel_distributed_insert_select.reference b/tests/queries/0_stateless/01099_parallel_distributed_insert_select.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01099_parallel_distributed_insert_select.reference rename to tests/queries/0_stateless/01099_parallel_distributed_insert_select.reference diff --git a/dbms/tests/queries/0_stateless/01099_parallel_distributed_insert_select.sql b/tests/queries/0_stateless/01099_parallel_distributed_insert_select.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01099_parallel_distributed_insert_select.sql rename to tests/queries/0_stateless/01099_parallel_distributed_insert_select.sql diff --git a/dbms/tests/queries/0_stateless/01100_split_by_string.reference b/tests/queries/0_stateless/01100_split_by_string.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01100_split_by_string.reference rename to tests/queries/0_stateless/01100_split_by_string.reference diff --git a/dbms/tests/queries/0_stateless/01100_split_by_string.sql b/tests/queries/0_stateless/01100_split_by_string.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01100_split_by_string.sql rename to tests/queries/0_stateless/01100_split_by_string.sql diff --git a/dbms/tests/queries/0_stateless/01101_prewhere_after_alter.reference b/tests/queries/0_stateless/01101_prewhere_after_alter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01101_prewhere_after_alter.reference rename to tests/queries/0_stateless/01101_prewhere_after_alter.reference diff --git a/dbms/tests/queries/0_stateless/01101_prewhere_after_alter.sql b/tests/queries/0_stateless/01101_prewhere_after_alter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01101_prewhere_after_alter.sql rename to tests/queries/0_stateless/01101_prewhere_after_alter.sql diff --git a/dbms/tests/queries/0_stateless/01102_distributed_local_in_bug.reference b/tests/queries/0_stateless/01102_distributed_local_in_bug.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01102_distributed_local_in_bug.reference rename to tests/queries/0_stateless/01102_distributed_local_in_bug.reference diff --git a/dbms/tests/queries/0_stateless/01102_distributed_local_in_bug.sql b/tests/queries/0_stateless/01102_distributed_local_in_bug.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01102_distributed_local_in_bug.sql rename to tests/queries/0_stateless/01102_distributed_local_in_bug.sql diff --git a/dbms/tests/queries/0_stateless/01103_check_cpu_instructions_at_startup.reference b/tests/queries/0_stateless/01103_check_cpu_instructions_at_startup.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01103_check_cpu_instructions_at_startup.reference rename to tests/queries/0_stateless/01103_check_cpu_instructions_at_startup.reference diff --git a/dbms/tests/queries/0_stateless/01103_check_cpu_instructions_at_startup.sh b/tests/queries/0_stateless/01103_check_cpu_instructions_at_startup.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01103_check_cpu_instructions_at_startup.sh rename to tests/queries/0_stateless/01103_check_cpu_instructions_at_startup.sh diff --git a/dbms/tests/queries/0_stateless/01103_distributed_product_mode_local_column_renames.reference b/tests/queries/0_stateless/01103_distributed_product_mode_local_column_renames.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01103_distributed_product_mode_local_column_renames.reference rename to tests/queries/0_stateless/01103_distributed_product_mode_local_column_renames.reference diff --git a/dbms/tests/queries/0_stateless/01103_distributed_product_mode_local_column_renames.sql b/tests/queries/0_stateless/01103_distributed_product_mode_local_column_renames.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01103_distributed_product_mode_local_column_renames.sql rename to tests/queries/0_stateless/01103_distributed_product_mode_local_column_renames.sql diff --git a/dbms/tests/queries/0_stateless/01103_optimize_drop_race_zookeeper.reference b/tests/queries/0_stateless/01103_optimize_drop_race_zookeeper.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01103_optimize_drop_race_zookeeper.reference rename to tests/queries/0_stateless/01103_optimize_drop_race_zookeeper.reference diff --git a/dbms/tests/queries/0_stateless/01103_optimize_drop_race_zookeeper.sh b/tests/queries/0_stateless/01103_optimize_drop_race_zookeeper.sh similarity index 100% rename from dbms/tests/queries/0_stateless/01103_optimize_drop_race_zookeeper.sh rename to tests/queries/0_stateless/01103_optimize_drop_race_zookeeper.sh diff --git a/dbms/tests/queries/0_stateless/01104_distributed_numbers_test.reference b/tests/queries/0_stateless/01104_distributed_numbers_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01104_distributed_numbers_test.reference rename to tests/queries/0_stateless/01104_distributed_numbers_test.reference diff --git a/dbms/tests/queries/0_stateless/01104_distributed_numbers_test.sql b/tests/queries/0_stateless/01104_distributed_numbers_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01104_distributed_numbers_test.sql rename to tests/queries/0_stateless/01104_distributed_numbers_test.sql diff --git a/dbms/tests/queries/0_stateless/01104_distributed_one_test.reference b/tests/queries/0_stateless/01104_distributed_one_test.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01104_distributed_one_test.reference rename to tests/queries/0_stateless/01104_distributed_one_test.reference diff --git a/dbms/tests/queries/0_stateless/01104_distributed_one_test.sql b/tests/queries/0_stateless/01104_distributed_one_test.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01104_distributed_one_test.sql rename to tests/queries/0_stateless/01104_distributed_one_test.sql diff --git a/dbms/tests/queries/0_stateless/01104_fixed_string_like.reference b/tests/queries/0_stateless/01104_fixed_string_like.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01104_fixed_string_like.reference rename to tests/queries/0_stateless/01104_fixed_string_like.reference diff --git a/dbms/tests/queries/0_stateless/01104_fixed_string_like.sql b/tests/queries/0_stateless/01104_fixed_string_like.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01104_fixed_string_like.sql rename to tests/queries/0_stateless/01104_fixed_string_like.sql diff --git a/dbms/tests/queries/0_stateless/01105_string_like.reference b/tests/queries/0_stateless/01105_string_like.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01105_string_like.reference rename to tests/queries/0_stateless/01105_string_like.reference diff --git a/dbms/tests/queries/0_stateless/01105_string_like.sql b/tests/queries/0_stateless/01105_string_like.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01105_string_like.sql rename to tests/queries/0_stateless/01105_string_like.sql diff --git a/dbms/tests/queries/0_stateless/01106_const_fixed_string_like.reference b/tests/queries/0_stateless/01106_const_fixed_string_like.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01106_const_fixed_string_like.reference rename to tests/queries/0_stateless/01106_const_fixed_string_like.reference diff --git a/dbms/tests/queries/0_stateless/01106_const_fixed_string_like.sql b/tests/queries/0_stateless/01106_const_fixed_string_like.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01106_const_fixed_string_like.sql rename to tests/queries/0_stateless/01106_const_fixed_string_like.sql diff --git a/dbms/tests/queries/0_stateless/01200_mutations_memory_consumption.reference b/tests/queries/0_stateless/01200_mutations_memory_consumption.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01200_mutations_memory_consumption.reference rename to tests/queries/0_stateless/01200_mutations_memory_consumption.reference diff --git a/dbms/tests/queries/0_stateless/01200_mutations_memory_consumption.sql b/tests/queries/0_stateless/01200_mutations_memory_consumption.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01200_mutations_memory_consumption.sql rename to tests/queries/0_stateless/01200_mutations_memory_consumption.sql diff --git a/dbms/tests/queries/0_stateless/01201_drop_column_compact_part_replicated.reference b/tests/queries/0_stateless/01201_drop_column_compact_part_replicated.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01201_drop_column_compact_part_replicated.reference rename to tests/queries/0_stateless/01201_drop_column_compact_part_replicated.reference diff --git a/dbms/tests/queries/0_stateless/01201_drop_column_compact_part_replicated.sql b/tests/queries/0_stateless/01201_drop_column_compact_part_replicated.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01201_drop_column_compact_part_replicated.sql rename to tests/queries/0_stateless/01201_drop_column_compact_part_replicated.sql diff --git a/dbms/tests/queries/0_stateless/01202_array_auc_special.reference b/tests/queries/0_stateless/01202_array_auc_special.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01202_array_auc_special.reference rename to tests/queries/0_stateless/01202_array_auc_special.reference diff --git a/dbms/tests/queries/0_stateless/01202_array_auc_special.sql b/tests/queries/0_stateless/01202_array_auc_special.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01202_array_auc_special.sql rename to tests/queries/0_stateless/01202_array_auc_special.sql diff --git a/dbms/tests/queries/0_stateless/01210_drop_view.reference b/tests/queries/0_stateless/01210_drop_view.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01210_drop_view.reference rename to tests/queries/0_stateless/01210_drop_view.reference diff --git a/dbms/tests/queries/0_stateless/01210_drop_view.sql b/tests/queries/0_stateless/01210_drop_view.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01210_drop_view.sql rename to tests/queries/0_stateless/01210_drop_view.sql diff --git a/dbms/tests/queries/0_stateless/01211_optimize_skip_unused_shards_type_mismatch.reference b/tests/queries/0_stateless/01211_optimize_skip_unused_shards_type_mismatch.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01211_optimize_skip_unused_shards_type_mismatch.reference rename to tests/queries/0_stateless/01211_optimize_skip_unused_shards_type_mismatch.reference diff --git a/dbms/tests/queries/0_stateless/01211_optimize_skip_unused_shards_type_mismatch.sql b/tests/queries/0_stateless/01211_optimize_skip_unused_shards_type_mismatch.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01211_optimize_skip_unused_shards_type_mismatch.sql rename to tests/queries/0_stateless/01211_optimize_skip_unused_shards_type_mismatch.sql diff --git a/dbms/tests/queries/0_stateless/01212_empty_join_and_totals.reference b/tests/queries/0_stateless/01212_empty_join_and_totals.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01212_empty_join_and_totals.reference rename to tests/queries/0_stateless/01212_empty_join_and_totals.reference diff --git a/dbms/tests/queries/0_stateless/01212_empty_join_and_totals.sql b/tests/queries/0_stateless/01212_empty_join_and_totals.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01212_empty_join_and_totals.sql rename to tests/queries/0_stateless/01212_empty_join_and_totals.sql diff --git a/dbms/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.reference b/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.reference rename to tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.reference diff --git a/dbms/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.sql b/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.sql rename to tests/queries/0_stateless/01213_optimize_skip_unused_shards_DISTINCT.sql diff --git a/dbms/tests/queries/0_stateless/01213_point_in_Myanmar.reference b/tests/queries/0_stateless/01213_point_in_Myanmar.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01213_point_in_Myanmar.reference rename to tests/queries/0_stateless/01213_point_in_Myanmar.reference diff --git a/dbms/tests/queries/0_stateless/01213_point_in_Myanmar.sql b/tests/queries/0_stateless/01213_point_in_Myanmar.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01213_point_in_Myanmar.sql rename to tests/queries/0_stateless/01213_point_in_Myanmar.sql diff --git a/dbms/tests/queries/0_stateless/01214_point_in_Mecca.reference b/tests/queries/0_stateless/01214_point_in_Mecca.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01214_point_in_Mecca.reference rename to tests/queries/0_stateless/01214_point_in_Mecca.reference diff --git a/dbms/tests/queries/0_stateless/01214_point_in_Mecca.sql b/tests/queries/0_stateless/01214_point_in_Mecca.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01214_point_in_Mecca.sql rename to tests/queries/0_stateless/01214_point_in_Mecca.sql diff --git a/dbms/tests/queries/0_stateless/01220_scalar_optimization_in_alter.reference b/tests/queries/0_stateless/01220_scalar_optimization_in_alter.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01220_scalar_optimization_in_alter.reference rename to tests/queries/0_stateless/01220_scalar_optimization_in_alter.reference diff --git a/dbms/tests/queries/0_stateless/01220_scalar_optimization_in_alter.sql b/tests/queries/0_stateless/01220_scalar_optimization_in_alter.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01220_scalar_optimization_in_alter.sql rename to tests/queries/0_stateless/01220_scalar_optimization_in_alter.sql diff --git a/dbms/tests/queries/0_stateless/01221_system_settings.reference b/tests/queries/0_stateless/01221_system_settings.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01221_system_settings.reference rename to tests/queries/0_stateless/01221_system_settings.reference diff --git a/dbms/tests/queries/0_stateless/01221_system_settings.sql b/tests/queries/0_stateless/01221_system_settings.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01221_system_settings.sql rename to tests/queries/0_stateless/01221_system_settings.sql diff --git a/dbms/tests/queries/0_stateless/01230_join_get_truncate.reference b/tests/queries/0_stateless/01230_join_get_truncate.reference similarity index 100% rename from dbms/tests/queries/0_stateless/01230_join_get_truncate.reference rename to tests/queries/0_stateless/01230_join_get_truncate.reference diff --git a/dbms/tests/queries/0_stateless/01230_join_get_truncate.sql b/tests/queries/0_stateless/01230_join_get_truncate.sql similarity index 100% rename from dbms/tests/queries/0_stateless/01230_join_get_truncate.sql rename to tests/queries/0_stateless/01230_join_get_truncate.sql diff --git a/dbms/tests/queries/0_stateless/data_avro/complex.avro b/tests/queries/0_stateless/data_avro/complex.avro similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/complex.avro rename to tests/queries/0_stateless/data_avro/complex.avro diff --git a/dbms/tests/queries/0_stateless/data_avro/complex.avsc b/tests/queries/0_stateless/data_avro/complex.avsc similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/complex.avsc rename to tests/queries/0_stateless/data_avro/complex.avsc diff --git a/dbms/tests/queries/0_stateless/data_avro/complex.json b/tests/queries/0_stateless/data_avro/complex.json similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/complex.json rename to tests/queries/0_stateless/data_avro/complex.json diff --git a/dbms/tests/queries/0_stateless/data_avro/empty.avro b/tests/queries/0_stateless/data_avro/empty.avro similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/empty.avro rename to tests/queries/0_stateless/data_avro/empty.avro diff --git a/dbms/tests/queries/0_stateless/data_avro/empty.avsc b/tests/queries/0_stateless/data_avro/empty.avsc similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/empty.avsc rename to tests/queries/0_stateless/data_avro/empty.avsc diff --git a/dbms/tests/queries/0_stateless/data_avro/empty.json b/tests/queries/0_stateless/data_avro/empty.json similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/empty.json rename to tests/queries/0_stateless/data_avro/empty.json diff --git a/dbms/tests/queries/0_stateless/data_avro/generate_avro.sh b/tests/queries/0_stateless/data_avro/generate_avro.sh similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/generate_avro.sh rename to tests/queries/0_stateless/data_avro/generate_avro.sh diff --git a/dbms/tests/queries/0_stateless/data_avro/logical_types.avro b/tests/queries/0_stateless/data_avro/logical_types.avro similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/logical_types.avro rename to tests/queries/0_stateless/data_avro/logical_types.avro diff --git a/dbms/tests/queries/0_stateless/data_avro/logical_types.avsc b/tests/queries/0_stateless/data_avro/logical_types.avsc similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/logical_types.avsc rename to tests/queries/0_stateless/data_avro/logical_types.avsc diff --git a/dbms/tests/queries/0_stateless/data_avro/logical_types.json b/tests/queries/0_stateless/data_avro/logical_types.json similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/logical_types.json rename to tests/queries/0_stateless/data_avro/logical_types.json diff --git a/dbms/tests/queries/0_stateless/data_avro/primitive.avro b/tests/queries/0_stateless/data_avro/primitive.avro similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/primitive.avro rename to tests/queries/0_stateless/data_avro/primitive.avro diff --git a/dbms/tests/queries/0_stateless/data_avro/primitive.avsc b/tests/queries/0_stateless/data_avro/primitive.avsc similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/primitive.avsc rename to tests/queries/0_stateless/data_avro/primitive.avsc diff --git a/dbms/tests/queries/0_stateless/data_avro/primitive.json b/tests/queries/0_stateless/data_avro/primitive.json similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/primitive.json rename to tests/queries/0_stateless/data_avro/primitive.json diff --git a/dbms/tests/queries/0_stateless/data_avro/references.avro b/tests/queries/0_stateless/data_avro/references.avro similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/references.avro rename to tests/queries/0_stateless/data_avro/references.avro diff --git a/dbms/tests/queries/0_stateless/data_avro/references.avsc b/tests/queries/0_stateless/data_avro/references.avsc similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/references.avsc rename to tests/queries/0_stateless/data_avro/references.avsc diff --git a/dbms/tests/queries/0_stateless/data_avro/references.json b/tests/queries/0_stateless/data_avro/references.json similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/references.json rename to tests/queries/0_stateless/data_avro/references.json diff --git a/dbms/tests/queries/0_stateless/data_avro/simple.avsc b/tests/queries/0_stateless/data_avro/simple.avsc similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/simple.avsc rename to tests/queries/0_stateless/data_avro/simple.avsc diff --git a/dbms/tests/queries/0_stateless/data_avro/simple.deflate.avro b/tests/queries/0_stateless/data_avro/simple.deflate.avro similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/simple.deflate.avro rename to tests/queries/0_stateless/data_avro/simple.deflate.avro diff --git a/dbms/tests/queries/0_stateless/data_avro/simple.json b/tests/queries/0_stateless/data_avro/simple.json similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/simple.json rename to tests/queries/0_stateless/data_avro/simple.json diff --git a/dbms/tests/queries/0_stateless/data_avro/simple.null.avro b/tests/queries/0_stateless/data_avro/simple.null.avro similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/simple.null.avro rename to tests/queries/0_stateless/data_avro/simple.null.avro diff --git a/dbms/tests/queries/0_stateless/data_avro/simple.snappy.avro b/tests/queries/0_stateless/data_avro/simple.snappy.avro similarity index 100% rename from dbms/tests/queries/0_stateless/data_avro/simple.snappy.avro rename to tests/queries/0_stateless/data_avro/simple.snappy.avro diff --git a/dbms/tests/queries/0_stateless/data_orc/test.orc b/tests/queries/0_stateless/data_orc/test.orc similarity index 100% rename from dbms/tests/queries/0_stateless/data_orc/test.orc rename to tests/queries/0_stateless/data_orc/test.orc diff --git a/dbms/tests/queries/0_stateless/data_parquet/alltypes_dictionary.parquet b/tests/queries/0_stateless/data_parquet/alltypes_dictionary.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/alltypes_dictionary.parquet rename to tests/queries/0_stateless/data_parquet/alltypes_dictionary.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/alltypes_dictionary.parquet.columns b/tests/queries/0_stateless/data_parquet/alltypes_dictionary.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/alltypes_dictionary.parquet.columns rename to tests/queries/0_stateless/data_parquet/alltypes_dictionary.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/alltypes_plain.parquet b/tests/queries/0_stateless/data_parquet/alltypes_plain.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/alltypes_plain.parquet rename to tests/queries/0_stateless/data_parquet/alltypes_plain.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/alltypes_plain.parquet.columns b/tests/queries/0_stateless/data_parquet/alltypes_plain.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/alltypes_plain.parquet.columns rename to tests/queries/0_stateless/data_parquet/alltypes_plain.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/alltypes_plain.snappy.parquet b/tests/queries/0_stateless/data_parquet/alltypes_plain.snappy.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/alltypes_plain.snappy.parquet rename to tests/queries/0_stateless/data_parquet/alltypes_plain.snappy.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/alltypes_plain.snappy.parquet.columns b/tests/queries/0_stateless/data_parquet/alltypes_plain.snappy.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/alltypes_plain.snappy.parquet.columns rename to tests/queries/0_stateless/data_parquet/alltypes_plain.snappy.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/byte_array_decimal.parquet b/tests/queries/0_stateless/data_parquet/byte_array_decimal.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/byte_array_decimal.parquet rename to tests/queries/0_stateless/data_parquet/byte_array_decimal.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/byte_array_decimal.parquet.columns b/tests/queries/0_stateless/data_parquet/byte_array_decimal.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/byte_array_decimal.parquet.columns rename to tests/queries/0_stateless/data_parquet/byte_array_decimal.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/datapage_v2.snappy.parquet b/tests/queries/0_stateless/data_parquet/datapage_v2.snappy.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/datapage_v2.snappy.parquet rename to tests/queries/0_stateless/data_parquet/datapage_v2.snappy.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/datapage_v2.snappy.parquet.columns b/tests/queries/0_stateless/data_parquet/datapage_v2.snappy.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/datapage_v2.snappy.parquet.columns rename to tests/queries/0_stateless/data_parquet/datapage_v2.snappy.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/fixed_length_decimal_1.parquet b/tests/queries/0_stateless/data_parquet/fixed_length_decimal_1.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/fixed_length_decimal_1.parquet rename to tests/queries/0_stateless/data_parquet/fixed_length_decimal_1.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/fixed_length_decimal_1.parquet.columns b/tests/queries/0_stateless/data_parquet/fixed_length_decimal_1.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/fixed_length_decimal_1.parquet.columns rename to tests/queries/0_stateless/data_parquet/fixed_length_decimal_1.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/fixed_length_decimal_legacy.parquet b/tests/queries/0_stateless/data_parquet/fixed_length_decimal_legacy.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/fixed_length_decimal_legacy.parquet rename to tests/queries/0_stateless/data_parquet/fixed_length_decimal_legacy.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/fixed_length_decimal_legacy.parquet.columns b/tests/queries/0_stateless/data_parquet/fixed_length_decimal_legacy.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/fixed_length_decimal_legacy.parquet.columns rename to tests/queries/0_stateless/data_parquet/fixed_length_decimal_legacy.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/int32_decimal.parquet b/tests/queries/0_stateless/data_parquet/int32_decimal.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/int32_decimal.parquet rename to tests/queries/0_stateless/data_parquet/int32_decimal.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/int32_decimal.parquet.columns b/tests/queries/0_stateless/data_parquet/int32_decimal.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/int32_decimal.parquet.columns rename to tests/queries/0_stateless/data_parquet/int32_decimal.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/int64_decimal.parquet b/tests/queries/0_stateless/data_parquet/int64_decimal.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/int64_decimal.parquet rename to tests/queries/0_stateless/data_parquet/int64_decimal.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/int64_decimal.parquet.columns b/tests/queries/0_stateless/data_parquet/int64_decimal.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/int64_decimal.parquet.columns rename to tests/queries/0_stateless/data_parquet/int64_decimal.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/nation.dict-malformed.parquet b/tests/queries/0_stateless/data_parquet/nation.dict-malformed.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nation.dict-malformed.parquet rename to tests/queries/0_stateless/data_parquet/nation.dict-malformed.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/nation.dict-malformed.parquet.columns b/tests/queries/0_stateless/data_parquet/nation.dict-malformed.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nation.dict-malformed.parquet.columns rename to tests/queries/0_stateless/data_parquet/nation.dict-malformed.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/nested_lists.snappy.parquet b/tests/queries/0_stateless/data_parquet/nested_lists.snappy.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nested_lists.snappy.parquet rename to tests/queries/0_stateless/data_parquet/nested_lists.snappy.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/nested_lists.snappy.parquet.columns b/tests/queries/0_stateless/data_parquet/nested_lists.snappy.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nested_lists.snappy.parquet.columns rename to tests/queries/0_stateless/data_parquet/nested_lists.snappy.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/nested_maps.snappy.parquet b/tests/queries/0_stateless/data_parquet/nested_maps.snappy.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nested_maps.snappy.parquet rename to tests/queries/0_stateless/data_parquet/nested_maps.snappy.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/nested_maps.snappy.parquet.columns b/tests/queries/0_stateless/data_parquet/nested_maps.snappy.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nested_maps.snappy.parquet.columns rename to tests/queries/0_stateless/data_parquet/nested_maps.snappy.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/nonnullable.impala.parquet b/tests/queries/0_stateless/data_parquet/nonnullable.impala.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nonnullable.impala.parquet rename to tests/queries/0_stateless/data_parquet/nonnullable.impala.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/nonnullable.impala.parquet.columns b/tests/queries/0_stateless/data_parquet/nonnullable.impala.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nonnullable.impala.parquet.columns rename to tests/queries/0_stateless/data_parquet/nonnullable.impala.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/nullable.impala.parquet b/tests/queries/0_stateless/data_parquet/nullable.impala.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nullable.impala.parquet rename to tests/queries/0_stateless/data_parquet/nullable.impala.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/nullable.impala.parquet.columns b/tests/queries/0_stateless/data_parquet/nullable.impala.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nullable.impala.parquet.columns rename to tests/queries/0_stateless/data_parquet/nullable.impala.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/nulls.snappy.parquet b/tests/queries/0_stateless/data_parquet/nulls.snappy.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nulls.snappy.parquet rename to tests/queries/0_stateless/data_parquet/nulls.snappy.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/nulls.snappy.parquet.columns b/tests/queries/0_stateless/data_parquet/nulls.snappy.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/nulls.snappy.parquet.columns rename to tests/queries/0_stateless/data_parquet/nulls.snappy.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/repeated_no_annotation.parquet b/tests/queries/0_stateless/data_parquet/repeated_no_annotation.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/repeated_no_annotation.parquet rename to tests/queries/0_stateless/data_parquet/repeated_no_annotation.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/repeated_no_annotation.parquet.columns b/tests/queries/0_stateless/data_parquet/repeated_no_annotation.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/repeated_no_annotation.parquet.columns rename to tests/queries/0_stateless/data_parquet/repeated_no_annotation.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata1.parquet b/tests/queries/0_stateless/data_parquet/userdata1.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata1.parquet rename to tests/queries/0_stateless/data_parquet/userdata1.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata1.parquet.columns b/tests/queries/0_stateless/data_parquet/userdata1.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata1.parquet.columns rename to tests/queries/0_stateless/data_parquet/userdata1.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata2.parquet b/tests/queries/0_stateless/data_parquet/userdata2.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata2.parquet rename to tests/queries/0_stateless/data_parquet/userdata2.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata2.parquet.columns b/tests/queries/0_stateless/data_parquet/userdata2.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata2.parquet.columns rename to tests/queries/0_stateless/data_parquet/userdata2.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata3.parquet b/tests/queries/0_stateless/data_parquet/userdata3.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata3.parquet rename to tests/queries/0_stateless/data_parquet/userdata3.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata3.parquet.columns b/tests/queries/0_stateless/data_parquet/userdata3.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata3.parquet.columns rename to tests/queries/0_stateless/data_parquet/userdata3.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata4.parquet b/tests/queries/0_stateless/data_parquet/userdata4.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata4.parquet rename to tests/queries/0_stateless/data_parquet/userdata4.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata4.parquet.columns b/tests/queries/0_stateless/data_parquet/userdata4.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata4.parquet.columns rename to tests/queries/0_stateless/data_parquet/userdata4.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata5.parquet b/tests/queries/0_stateless/data_parquet/userdata5.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata5.parquet rename to tests/queries/0_stateless/data_parquet/userdata5.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/userdata5.parquet.columns b/tests/queries/0_stateless/data_parquet/userdata5.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/userdata5.parquet.columns rename to tests/queries/0_stateless/data_parquet/userdata5.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/v0.7.1.all-named-index.parquet b/tests/queries/0_stateless/data_parquet/v0.7.1.all-named-index.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/v0.7.1.all-named-index.parquet rename to tests/queries/0_stateless/data_parquet/v0.7.1.all-named-index.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/v0.7.1.all-named-index.parquet.columns b/tests/queries/0_stateless/data_parquet/v0.7.1.all-named-index.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/v0.7.1.all-named-index.parquet.columns rename to tests/queries/0_stateless/data_parquet/v0.7.1.all-named-index.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/v0.7.1.column-metadata-handling.parquet b/tests/queries/0_stateless/data_parquet/v0.7.1.column-metadata-handling.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/v0.7.1.column-metadata-handling.parquet rename to tests/queries/0_stateless/data_parquet/v0.7.1.column-metadata-handling.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/v0.7.1.column-metadata-handling.parquet.columns b/tests/queries/0_stateless/data_parquet/v0.7.1.column-metadata-handling.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/v0.7.1.column-metadata-handling.parquet.columns rename to tests/queries/0_stateless/data_parquet/v0.7.1.column-metadata-handling.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/v0.7.1.parquet b/tests/queries/0_stateless/data_parquet/v0.7.1.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/v0.7.1.parquet rename to tests/queries/0_stateless/data_parquet/v0.7.1.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/v0.7.1.parquet.columns b/tests/queries/0_stateless/data_parquet/v0.7.1.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/v0.7.1.parquet.columns rename to tests/queries/0_stateless/data_parquet/v0.7.1.parquet.columns diff --git a/dbms/tests/queries/0_stateless/data_parquet/v0.7.1.some-named-index.parquet b/tests/queries/0_stateless/data_parquet/v0.7.1.some-named-index.parquet similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/v0.7.1.some-named-index.parquet rename to tests/queries/0_stateless/data_parquet/v0.7.1.some-named-index.parquet diff --git a/dbms/tests/queries/0_stateless/data_parquet/v0.7.1.some-named-index.parquet.columns b/tests/queries/0_stateless/data_parquet/v0.7.1.some-named-index.parquet.columns similarity index 100% rename from dbms/tests/queries/0_stateless/data_parquet/v0.7.1.some-named-index.parquet.columns rename to tests/queries/0_stateless/data_parquet/v0.7.1.some-named-index.parquet.columns diff --git a/dbms/tests/queries/0_stateless/helpers/client.py b/tests/queries/0_stateless/helpers/client.py similarity index 100% rename from dbms/tests/queries/0_stateless/helpers/client.py rename to tests/queries/0_stateless/helpers/client.py diff --git a/dbms/tests/queries/0_stateless/helpers/httpclient.py b/tests/queries/0_stateless/helpers/httpclient.py similarity index 100% rename from dbms/tests/queries/0_stateless/helpers/httpclient.py rename to tests/queries/0_stateless/helpers/httpclient.py diff --git a/dbms/tests/queries/0_stateless/helpers/httpexpect.py b/tests/queries/0_stateless/helpers/httpexpect.py similarity index 100% rename from dbms/tests/queries/0_stateless/helpers/httpexpect.py rename to tests/queries/0_stateless/helpers/httpexpect.py diff --git a/dbms/tests/queries/0_stateless/helpers/uexpect.py b/tests/queries/0_stateless/helpers/uexpect.py similarity index 100% rename from dbms/tests/queries/0_stateless/helpers/uexpect.py rename to tests/queries/0_stateless/helpers/uexpect.py diff --git a/dbms/tests/queries/0_stateless/mergetree_mutations.lib b/tests/queries/0_stateless/mergetree_mutations.lib similarity index 100% rename from dbms/tests/queries/0_stateless/mergetree_mutations.lib rename to tests/queries/0_stateless/mergetree_mutations.lib diff --git a/dbms/tests/queries/1_stateful/00001_count_hits.reference b/tests/queries/1_stateful/00001_count_hits.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00001_count_hits.reference rename to tests/queries/1_stateful/00001_count_hits.reference diff --git a/dbms/tests/queries/1_stateful/00001_count_hits.sql b/tests/queries/1_stateful/00001_count_hits.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00001_count_hits.sql rename to tests/queries/1_stateful/00001_count_hits.sql diff --git a/dbms/tests/queries/1_stateful/00002_count_visits.reference b/tests/queries/1_stateful/00002_count_visits.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00002_count_visits.reference rename to tests/queries/1_stateful/00002_count_visits.reference diff --git a/dbms/tests/queries/1_stateful/00002_count_visits.sql b/tests/queries/1_stateful/00002_count_visits.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00002_count_visits.sql rename to tests/queries/1_stateful/00002_count_visits.sql diff --git a/dbms/tests/queries/1_stateful/00004_top_counters.reference b/tests/queries/1_stateful/00004_top_counters.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00004_top_counters.reference rename to tests/queries/1_stateful/00004_top_counters.reference diff --git a/dbms/tests/queries/1_stateful/00004_top_counters.sql b/tests/queries/1_stateful/00004_top_counters.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00004_top_counters.sql rename to tests/queries/1_stateful/00004_top_counters.sql diff --git a/dbms/tests/queries/1_stateful/00005_filtering.reference b/tests/queries/1_stateful/00005_filtering.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00005_filtering.reference rename to tests/queries/1_stateful/00005_filtering.reference diff --git a/dbms/tests/queries/1_stateful/00005_filtering.sql b/tests/queries/1_stateful/00005_filtering.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00005_filtering.sql rename to tests/queries/1_stateful/00005_filtering.sql diff --git a/dbms/tests/queries/1_stateful/00006_agregates.reference b/tests/queries/1_stateful/00006_agregates.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00006_agregates.reference rename to tests/queries/1_stateful/00006_agregates.reference diff --git a/dbms/tests/queries/1_stateful/00006_agregates.sql b/tests/queries/1_stateful/00006_agregates.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00006_agregates.sql rename to tests/queries/1_stateful/00006_agregates.sql diff --git a/dbms/tests/queries/1_stateful/00007_uniq.reference b/tests/queries/1_stateful/00007_uniq.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00007_uniq.reference rename to tests/queries/1_stateful/00007_uniq.reference diff --git a/dbms/tests/queries/1_stateful/00007_uniq.sql b/tests/queries/1_stateful/00007_uniq.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00007_uniq.sql rename to tests/queries/1_stateful/00007_uniq.sql diff --git a/dbms/tests/queries/1_stateful/00008_uniq.reference b/tests/queries/1_stateful/00008_uniq.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00008_uniq.reference rename to tests/queries/1_stateful/00008_uniq.reference diff --git a/dbms/tests/queries/1_stateful/00008_uniq.sql b/tests/queries/1_stateful/00008_uniq.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00008_uniq.sql rename to tests/queries/1_stateful/00008_uniq.sql diff --git a/dbms/tests/queries/1_stateful/00009_uniq_distributed.reference b/tests/queries/1_stateful/00009_uniq_distributed.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00009_uniq_distributed.reference rename to tests/queries/1_stateful/00009_uniq_distributed.reference diff --git a/dbms/tests/queries/1_stateful/00009_uniq_distributed.sql b/tests/queries/1_stateful/00009_uniq_distributed.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00009_uniq_distributed.sql rename to tests/queries/1_stateful/00009_uniq_distributed.sql diff --git a/dbms/tests/queries/1_stateful/00010_quantiles_segfault.reference b/tests/queries/1_stateful/00010_quantiles_segfault.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00010_quantiles_segfault.reference rename to tests/queries/1_stateful/00010_quantiles_segfault.reference diff --git a/dbms/tests/queries/1_stateful/00010_quantiles_segfault.sql b/tests/queries/1_stateful/00010_quantiles_segfault.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00010_quantiles_segfault.sql rename to tests/queries/1_stateful/00010_quantiles_segfault.sql diff --git a/dbms/tests/queries/1_stateful/00011_sorting.reference b/tests/queries/1_stateful/00011_sorting.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00011_sorting.reference rename to tests/queries/1_stateful/00011_sorting.reference diff --git a/dbms/tests/queries/1_stateful/00011_sorting.sql b/tests/queries/1_stateful/00011_sorting.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00011_sorting.sql rename to tests/queries/1_stateful/00011_sorting.sql diff --git a/dbms/tests/queries/1_stateful/00012_sorting_distributed.reference b/tests/queries/1_stateful/00012_sorting_distributed.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00012_sorting_distributed.reference rename to tests/queries/1_stateful/00012_sorting_distributed.reference diff --git a/dbms/tests/queries/1_stateful/00012_sorting_distributed.sql b/tests/queries/1_stateful/00012_sorting_distributed.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00012_sorting_distributed.sql rename to tests/queries/1_stateful/00012_sorting_distributed.sql diff --git a/dbms/tests/queries/1_stateful/00013_sorting_of_nested.reference b/tests/queries/1_stateful/00013_sorting_of_nested.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00013_sorting_of_nested.reference rename to tests/queries/1_stateful/00013_sorting_of_nested.reference diff --git a/dbms/tests/queries/1_stateful/00013_sorting_of_nested.sql b/tests/queries/1_stateful/00013_sorting_of_nested.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00013_sorting_of_nested.sql rename to tests/queries/1_stateful/00013_sorting_of_nested.sql diff --git a/dbms/tests/queries/1_stateful/00014_filtering_arrays.reference b/tests/queries/1_stateful/00014_filtering_arrays.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00014_filtering_arrays.reference rename to tests/queries/1_stateful/00014_filtering_arrays.reference diff --git a/dbms/tests/queries/1_stateful/00014_filtering_arrays.sql b/tests/queries/1_stateful/00014_filtering_arrays.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00014_filtering_arrays.sql rename to tests/queries/1_stateful/00014_filtering_arrays.sql diff --git a/dbms/tests/queries/1_stateful/00015_totals_and_no_aggregate_functions.reference b/tests/queries/1_stateful/00015_totals_and_no_aggregate_functions.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00015_totals_and_no_aggregate_functions.reference rename to tests/queries/1_stateful/00015_totals_and_no_aggregate_functions.reference diff --git a/dbms/tests/queries/1_stateful/00015_totals_and_no_aggregate_functions.sql b/tests/queries/1_stateful/00015_totals_and_no_aggregate_functions.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00015_totals_and_no_aggregate_functions.sql rename to tests/queries/1_stateful/00015_totals_and_no_aggregate_functions.sql diff --git a/dbms/tests/queries/1_stateful/00016_any_if_distributed_cond_always_false.reference b/tests/queries/1_stateful/00016_any_if_distributed_cond_always_false.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00016_any_if_distributed_cond_always_false.reference rename to tests/queries/1_stateful/00016_any_if_distributed_cond_always_false.reference diff --git a/dbms/tests/queries/1_stateful/00016_any_if_distributed_cond_always_false.sql b/tests/queries/1_stateful/00016_any_if_distributed_cond_always_false.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00016_any_if_distributed_cond_always_false.sql rename to tests/queries/1_stateful/00016_any_if_distributed_cond_always_false.sql diff --git a/dbms/tests/queries/1_stateful/00017_aggregation_uninitialized_memory.reference b/tests/queries/1_stateful/00017_aggregation_uninitialized_memory.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00017_aggregation_uninitialized_memory.reference rename to tests/queries/1_stateful/00017_aggregation_uninitialized_memory.reference diff --git a/dbms/tests/queries/1_stateful/00017_aggregation_uninitialized_memory.sql b/tests/queries/1_stateful/00017_aggregation_uninitialized_memory.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00017_aggregation_uninitialized_memory.sql rename to tests/queries/1_stateful/00017_aggregation_uninitialized_memory.sql diff --git a/dbms/tests/queries/1_stateful/00020_distinct_order_by_distributed.reference b/tests/queries/1_stateful/00020_distinct_order_by_distributed.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00020_distinct_order_by_distributed.reference rename to tests/queries/1_stateful/00020_distinct_order_by_distributed.reference diff --git a/dbms/tests/queries/1_stateful/00020_distinct_order_by_distributed.sql b/tests/queries/1_stateful/00020_distinct_order_by_distributed.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00020_distinct_order_by_distributed.sql rename to tests/queries/1_stateful/00020_distinct_order_by_distributed.sql diff --git a/dbms/tests/queries/1_stateful/00021_1_select_with_in.reference b/tests/queries/1_stateful/00021_1_select_with_in.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00021_1_select_with_in.reference rename to tests/queries/1_stateful/00021_1_select_with_in.reference diff --git a/dbms/tests/queries/1_stateful/00021_1_select_with_in.sql b/tests/queries/1_stateful/00021_1_select_with_in.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00021_1_select_with_in.sql rename to tests/queries/1_stateful/00021_1_select_with_in.sql diff --git a/dbms/tests/queries/1_stateful/00021_2_select_with_in.reference b/tests/queries/1_stateful/00021_2_select_with_in.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00021_2_select_with_in.reference rename to tests/queries/1_stateful/00021_2_select_with_in.reference diff --git a/dbms/tests/queries/1_stateful/00021_2_select_with_in.sql b/tests/queries/1_stateful/00021_2_select_with_in.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00021_2_select_with_in.sql rename to tests/queries/1_stateful/00021_2_select_with_in.sql diff --git a/dbms/tests/queries/1_stateful/00021_3_select_with_in.reference b/tests/queries/1_stateful/00021_3_select_with_in.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00021_3_select_with_in.reference rename to tests/queries/1_stateful/00021_3_select_with_in.reference diff --git a/dbms/tests/queries/1_stateful/00021_3_select_with_in.sql b/tests/queries/1_stateful/00021_3_select_with_in.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00021_3_select_with_in.sql rename to tests/queries/1_stateful/00021_3_select_with_in.sql diff --git a/dbms/tests/queries/1_stateful/00022_merge_prewhere.reference b/tests/queries/1_stateful/00022_merge_prewhere.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00022_merge_prewhere.reference rename to tests/queries/1_stateful/00022_merge_prewhere.reference diff --git a/dbms/tests/queries/1_stateful/00022_merge_prewhere.sql b/tests/queries/1_stateful/00022_merge_prewhere.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00022_merge_prewhere.sql rename to tests/queries/1_stateful/00022_merge_prewhere.sql diff --git a/dbms/tests/queries/1_stateful/00023_totals_limit.reference b/tests/queries/1_stateful/00023_totals_limit.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00023_totals_limit.reference rename to tests/queries/1_stateful/00023_totals_limit.reference diff --git a/dbms/tests/queries/1_stateful/00023_totals_limit.sql b/tests/queries/1_stateful/00023_totals_limit.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00023_totals_limit.sql rename to tests/queries/1_stateful/00023_totals_limit.sql diff --git a/dbms/tests/queries/1_stateful/00024_random_counters.reference b/tests/queries/1_stateful/00024_random_counters.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00024_random_counters.reference rename to tests/queries/1_stateful/00024_random_counters.reference diff --git a/dbms/tests/queries/1_stateful/00024_random_counters.sql b/tests/queries/1_stateful/00024_random_counters.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00024_random_counters.sql rename to tests/queries/1_stateful/00024_random_counters.sql diff --git a/dbms/tests/queries/1_stateful/00030_array_enumerate_uniq.reference b/tests/queries/1_stateful/00030_array_enumerate_uniq.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00030_array_enumerate_uniq.reference rename to tests/queries/1_stateful/00030_array_enumerate_uniq.reference diff --git a/dbms/tests/queries/1_stateful/00030_array_enumerate_uniq.sql b/tests/queries/1_stateful/00030_array_enumerate_uniq.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00030_array_enumerate_uniq.sql rename to tests/queries/1_stateful/00030_array_enumerate_uniq.sql diff --git a/dbms/tests/queries/1_stateful/00031_array_enumerate_uniq.reference b/tests/queries/1_stateful/00031_array_enumerate_uniq.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00031_array_enumerate_uniq.reference rename to tests/queries/1_stateful/00031_array_enumerate_uniq.reference diff --git a/dbms/tests/queries/1_stateful/00031_array_enumerate_uniq.sql b/tests/queries/1_stateful/00031_array_enumerate_uniq.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00031_array_enumerate_uniq.sql rename to tests/queries/1_stateful/00031_array_enumerate_uniq.sql diff --git a/dbms/tests/queries/1_stateful/00032_aggregate_key64.reference b/tests/queries/1_stateful/00032_aggregate_key64.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00032_aggregate_key64.reference rename to tests/queries/1_stateful/00032_aggregate_key64.reference diff --git a/dbms/tests/queries/1_stateful/00032_aggregate_key64.sql b/tests/queries/1_stateful/00032_aggregate_key64.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00032_aggregate_key64.sql rename to tests/queries/1_stateful/00032_aggregate_key64.sql diff --git a/dbms/tests/queries/1_stateful/00033_aggregate_key_string.reference b/tests/queries/1_stateful/00033_aggregate_key_string.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00033_aggregate_key_string.reference rename to tests/queries/1_stateful/00033_aggregate_key_string.reference diff --git a/dbms/tests/queries/1_stateful/00033_aggregate_key_string.sql b/tests/queries/1_stateful/00033_aggregate_key_string.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00033_aggregate_key_string.sql rename to tests/queries/1_stateful/00033_aggregate_key_string.sql diff --git a/dbms/tests/queries/1_stateful/00034_aggregate_key_fixed_string.reference b/tests/queries/1_stateful/00034_aggregate_key_fixed_string.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00034_aggregate_key_fixed_string.reference rename to tests/queries/1_stateful/00034_aggregate_key_fixed_string.reference diff --git a/dbms/tests/queries/1_stateful/00034_aggregate_key_fixed_string.sql b/tests/queries/1_stateful/00034_aggregate_key_fixed_string.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00034_aggregate_key_fixed_string.sql rename to tests/queries/1_stateful/00034_aggregate_key_fixed_string.sql diff --git a/dbms/tests/queries/1_stateful/00035_aggregate_keys128.reference b/tests/queries/1_stateful/00035_aggregate_keys128.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00035_aggregate_keys128.reference rename to tests/queries/1_stateful/00035_aggregate_keys128.reference diff --git a/dbms/tests/queries/1_stateful/00035_aggregate_keys128.sql b/tests/queries/1_stateful/00035_aggregate_keys128.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00035_aggregate_keys128.sql rename to tests/queries/1_stateful/00035_aggregate_keys128.sql diff --git a/dbms/tests/queries/1_stateful/00036_aggregate_hashed.reference b/tests/queries/1_stateful/00036_aggregate_hashed.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00036_aggregate_hashed.reference rename to tests/queries/1_stateful/00036_aggregate_hashed.reference diff --git a/dbms/tests/queries/1_stateful/00036_aggregate_hashed.sql b/tests/queries/1_stateful/00036_aggregate_hashed.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00036_aggregate_hashed.sql rename to tests/queries/1_stateful/00036_aggregate_hashed.sql diff --git a/dbms/tests/queries/1_stateful/00037_uniq_state_merge1.reference b/tests/queries/1_stateful/00037_uniq_state_merge1.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00037_uniq_state_merge1.reference rename to tests/queries/1_stateful/00037_uniq_state_merge1.reference diff --git a/dbms/tests/queries/1_stateful/00037_uniq_state_merge1.sql b/tests/queries/1_stateful/00037_uniq_state_merge1.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00037_uniq_state_merge1.sql rename to tests/queries/1_stateful/00037_uniq_state_merge1.sql diff --git a/dbms/tests/queries/1_stateful/00038_uniq_state_merge2.reference b/tests/queries/1_stateful/00038_uniq_state_merge2.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00038_uniq_state_merge2.reference rename to tests/queries/1_stateful/00038_uniq_state_merge2.reference diff --git a/dbms/tests/queries/1_stateful/00038_uniq_state_merge2.sql b/tests/queries/1_stateful/00038_uniq_state_merge2.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00038_uniq_state_merge2.sql rename to tests/queries/1_stateful/00038_uniq_state_merge2.sql diff --git a/dbms/tests/queries/1_stateful/00039_primary_key.reference b/tests/queries/1_stateful/00039_primary_key.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00039_primary_key.reference rename to tests/queries/1_stateful/00039_primary_key.reference diff --git a/dbms/tests/queries/1_stateful/00039_primary_key.sql b/tests/queries/1_stateful/00039_primary_key.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00039_primary_key.sql rename to tests/queries/1_stateful/00039_primary_key.sql diff --git a/dbms/tests/queries/1_stateful/00040_aggregating_materialized_view.reference b/tests/queries/1_stateful/00040_aggregating_materialized_view.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00040_aggregating_materialized_view.reference rename to tests/queries/1_stateful/00040_aggregating_materialized_view.reference diff --git a/dbms/tests/queries/1_stateful/00040_aggregating_materialized_view.sql b/tests/queries/1_stateful/00040_aggregating_materialized_view.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00040_aggregating_materialized_view.sql rename to tests/queries/1_stateful/00040_aggregating_materialized_view.sql diff --git a/dbms/tests/queries/1_stateful/00041_aggregating_materialized_view.reference b/tests/queries/1_stateful/00041_aggregating_materialized_view.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00041_aggregating_materialized_view.reference rename to tests/queries/1_stateful/00041_aggregating_materialized_view.reference diff --git a/dbms/tests/queries/1_stateful/00041_aggregating_materialized_view.sql b/tests/queries/1_stateful/00041_aggregating_materialized_view.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00041_aggregating_materialized_view.sql rename to tests/queries/1_stateful/00041_aggregating_materialized_view.sql diff --git a/dbms/tests/queries/1_stateful/00042_any_left_join.reference b/tests/queries/1_stateful/00042_any_left_join.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00042_any_left_join.reference rename to tests/queries/1_stateful/00042_any_left_join.reference diff --git a/dbms/tests/queries/1_stateful/00042_any_left_join.sql b/tests/queries/1_stateful/00042_any_left_join.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00042_any_left_join.sql rename to tests/queries/1_stateful/00042_any_left_join.sql diff --git a/dbms/tests/queries/1_stateful/00043_any_left_join.reference b/tests/queries/1_stateful/00043_any_left_join.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00043_any_left_join.reference rename to tests/queries/1_stateful/00043_any_left_join.reference diff --git a/dbms/tests/queries/1_stateful/00043_any_left_join.sql b/tests/queries/1_stateful/00043_any_left_join.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00043_any_left_join.sql rename to tests/queries/1_stateful/00043_any_left_join.sql diff --git a/dbms/tests/queries/1_stateful/00044_any_left_join_string.reference b/tests/queries/1_stateful/00044_any_left_join_string.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00044_any_left_join_string.reference rename to tests/queries/1_stateful/00044_any_left_join_string.reference diff --git a/dbms/tests/queries/1_stateful/00044_any_left_join_string.sql b/tests/queries/1_stateful/00044_any_left_join_string.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00044_any_left_join_string.sql rename to tests/queries/1_stateful/00044_any_left_join_string.sql diff --git a/dbms/tests/queries/1_stateful/00045_uniq_upto.reference b/tests/queries/1_stateful/00045_uniq_upto.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00045_uniq_upto.reference rename to tests/queries/1_stateful/00045_uniq_upto.reference diff --git a/dbms/tests/queries/1_stateful/00045_uniq_upto.sql b/tests/queries/1_stateful/00045_uniq_upto.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00045_uniq_upto.sql rename to tests/queries/1_stateful/00045_uniq_upto.sql diff --git a/dbms/tests/queries/1_stateful/00046_uniq_upto_distributed.reference b/tests/queries/1_stateful/00046_uniq_upto_distributed.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00046_uniq_upto_distributed.reference rename to tests/queries/1_stateful/00046_uniq_upto_distributed.reference diff --git a/dbms/tests/queries/1_stateful/00046_uniq_upto_distributed.sql b/tests/queries/1_stateful/00046_uniq_upto_distributed.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00046_uniq_upto_distributed.sql rename to tests/queries/1_stateful/00046_uniq_upto_distributed.sql diff --git a/dbms/tests/queries/1_stateful/00047_bar.reference b/tests/queries/1_stateful/00047_bar.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00047_bar.reference rename to tests/queries/1_stateful/00047_bar.reference diff --git a/dbms/tests/queries/1_stateful/00047_bar.sql b/tests/queries/1_stateful/00047_bar.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00047_bar.sql rename to tests/queries/1_stateful/00047_bar.sql diff --git a/dbms/tests/queries/1_stateful/00048_min_max.reference b/tests/queries/1_stateful/00048_min_max.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00048_min_max.reference rename to tests/queries/1_stateful/00048_min_max.reference diff --git a/dbms/tests/queries/1_stateful/00048_min_max.sql b/tests/queries/1_stateful/00048_min_max.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00048_min_max.sql rename to tests/queries/1_stateful/00048_min_max.sql diff --git a/dbms/tests/queries/1_stateful/00049_max_string_if.reference b/tests/queries/1_stateful/00049_max_string_if.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00049_max_string_if.reference rename to tests/queries/1_stateful/00049_max_string_if.reference diff --git a/dbms/tests/queries/1_stateful/00049_max_string_if.sql b/tests/queries/1_stateful/00049_max_string_if.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00049_max_string_if.sql rename to tests/queries/1_stateful/00049_max_string_if.sql diff --git a/dbms/tests/queries/1_stateful/00050_min_max.reference b/tests/queries/1_stateful/00050_min_max.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00050_min_max.reference rename to tests/queries/1_stateful/00050_min_max.reference diff --git a/dbms/tests/queries/1_stateful/00050_min_max.sql b/tests/queries/1_stateful/00050_min_max.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00050_min_max.sql rename to tests/queries/1_stateful/00050_min_max.sql diff --git a/dbms/tests/queries/1_stateful/00051_min_max_array.reference b/tests/queries/1_stateful/00051_min_max_array.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00051_min_max_array.reference rename to tests/queries/1_stateful/00051_min_max_array.reference diff --git a/dbms/tests/queries/1_stateful/00051_min_max_array.sql b/tests/queries/1_stateful/00051_min_max_array.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00051_min_max_array.sql rename to tests/queries/1_stateful/00051_min_max_array.sql diff --git a/dbms/tests/queries/1_stateful/00052_group_by_in.reference b/tests/queries/1_stateful/00052_group_by_in.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00052_group_by_in.reference rename to tests/queries/1_stateful/00052_group_by_in.reference diff --git a/dbms/tests/queries/1_stateful/00052_group_by_in.sql b/tests/queries/1_stateful/00052_group_by_in.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00052_group_by_in.sql rename to tests/queries/1_stateful/00052_group_by_in.sql diff --git a/dbms/tests/queries/1_stateful/00053_replicate_segfault.reference b/tests/queries/1_stateful/00053_replicate_segfault.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00053_replicate_segfault.reference rename to tests/queries/1_stateful/00053_replicate_segfault.reference diff --git a/dbms/tests/queries/1_stateful/00053_replicate_segfault.sql b/tests/queries/1_stateful/00053_replicate_segfault.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00053_replicate_segfault.sql rename to tests/queries/1_stateful/00053_replicate_segfault.sql diff --git a/dbms/tests/queries/1_stateful/00054_merge_tree_partitions.reference b/tests/queries/1_stateful/00054_merge_tree_partitions.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00054_merge_tree_partitions.reference rename to tests/queries/1_stateful/00054_merge_tree_partitions.reference diff --git a/dbms/tests/queries/1_stateful/00054_merge_tree_partitions.sql b/tests/queries/1_stateful/00054_merge_tree_partitions.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00054_merge_tree_partitions.sql rename to tests/queries/1_stateful/00054_merge_tree_partitions.sql diff --git a/dbms/tests/queries/1_stateful/00055_index_and_not.reference b/tests/queries/1_stateful/00055_index_and_not.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00055_index_and_not.reference rename to tests/queries/1_stateful/00055_index_and_not.reference diff --git a/dbms/tests/queries/1_stateful/00055_index_and_not.sql b/tests/queries/1_stateful/00055_index_and_not.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00055_index_and_not.sql rename to tests/queries/1_stateful/00055_index_and_not.sql diff --git a/dbms/tests/queries/1_stateful/00056_view.reference b/tests/queries/1_stateful/00056_view.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00056_view.reference rename to tests/queries/1_stateful/00056_view.reference diff --git a/dbms/tests/queries/1_stateful/00056_view.sql b/tests/queries/1_stateful/00056_view.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00056_view.sql rename to tests/queries/1_stateful/00056_view.sql diff --git a/dbms/tests/queries/1_stateful/00059_merge_sorting_empty_array_joined.reference b/tests/queries/1_stateful/00059_merge_sorting_empty_array_joined.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00059_merge_sorting_empty_array_joined.reference rename to tests/queries/1_stateful/00059_merge_sorting_empty_array_joined.reference diff --git a/dbms/tests/queries/1_stateful/00059_merge_sorting_empty_array_joined.sql b/tests/queries/1_stateful/00059_merge_sorting_empty_array_joined.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00059_merge_sorting_empty_array_joined.sql rename to tests/queries/1_stateful/00059_merge_sorting_empty_array_joined.sql diff --git a/dbms/tests/queries/1_stateful/00060_move_to_prewhere_and_sets.reference b/tests/queries/1_stateful/00060_move_to_prewhere_and_sets.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00060_move_to_prewhere_and_sets.reference rename to tests/queries/1_stateful/00060_move_to_prewhere_and_sets.reference diff --git a/dbms/tests/queries/1_stateful/00060_move_to_prewhere_and_sets.sql b/tests/queries/1_stateful/00060_move_to_prewhere_and_sets.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00060_move_to_prewhere_and_sets.sql rename to tests/queries/1_stateful/00060_move_to_prewhere_and_sets.sql diff --git a/dbms/tests/queries/1_stateful/00061_storage_buffer.reference b/tests/queries/1_stateful/00061_storage_buffer.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00061_storage_buffer.reference rename to tests/queries/1_stateful/00061_storage_buffer.reference diff --git a/dbms/tests/queries/1_stateful/00061_storage_buffer.sql b/tests/queries/1_stateful/00061_storage_buffer.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00061_storage_buffer.sql rename to tests/queries/1_stateful/00061_storage_buffer.sql diff --git a/dbms/tests/queries/1_stateful/00062_loyalty.reference b/tests/queries/1_stateful/00062_loyalty.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00062_loyalty.reference rename to tests/queries/1_stateful/00062_loyalty.reference diff --git a/dbms/tests/queries/1_stateful/00062_loyalty.sql b/tests/queries/1_stateful/00062_loyalty.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00062_loyalty.sql rename to tests/queries/1_stateful/00062_loyalty.sql diff --git a/dbms/tests/queries/1_stateful/00063_loyalty_joins.reference b/tests/queries/1_stateful/00063_loyalty_joins.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00063_loyalty_joins.reference rename to tests/queries/1_stateful/00063_loyalty_joins.reference diff --git a/dbms/tests/queries/1_stateful/00063_loyalty_joins.sql b/tests/queries/1_stateful/00063_loyalty_joins.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00063_loyalty_joins.sql rename to tests/queries/1_stateful/00063_loyalty_joins.sql diff --git a/dbms/tests/queries/1_stateful/00065_loyalty_with_storage_join.reference b/tests/queries/1_stateful/00065_loyalty_with_storage_join.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00065_loyalty_with_storage_join.reference rename to tests/queries/1_stateful/00065_loyalty_with_storage_join.reference diff --git a/dbms/tests/queries/1_stateful/00065_loyalty_with_storage_join.sql b/tests/queries/1_stateful/00065_loyalty_with_storage_join.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00065_loyalty_with_storage_join.sql rename to tests/queries/1_stateful/00065_loyalty_with_storage_join.sql diff --git a/dbms/tests/queries/1_stateful/00066_sorting_distributed_many_replicas.reference b/tests/queries/1_stateful/00066_sorting_distributed_many_replicas.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00066_sorting_distributed_many_replicas.reference rename to tests/queries/1_stateful/00066_sorting_distributed_many_replicas.reference diff --git a/dbms/tests/queries/1_stateful/00066_sorting_distributed_many_replicas.sql b/tests/queries/1_stateful/00066_sorting_distributed_many_replicas.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00066_sorting_distributed_many_replicas.sql rename to tests/queries/1_stateful/00066_sorting_distributed_many_replicas.sql diff --git a/dbms/tests/queries/1_stateful/00067_union_all.reference b/tests/queries/1_stateful/00067_union_all.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00067_union_all.reference rename to tests/queries/1_stateful/00067_union_all.reference diff --git a/dbms/tests/queries/1_stateful/00067_union_all.sql b/tests/queries/1_stateful/00067_union_all.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00067_union_all.sql rename to tests/queries/1_stateful/00067_union_all.sql diff --git a/dbms/tests/queries/1_stateful/00068_subquery_in_prewhere.reference b/tests/queries/1_stateful/00068_subquery_in_prewhere.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00068_subquery_in_prewhere.reference rename to tests/queries/1_stateful/00068_subquery_in_prewhere.reference diff --git a/dbms/tests/queries/1_stateful/00068_subquery_in_prewhere.sql b/tests/queries/1_stateful/00068_subquery_in_prewhere.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00068_subquery_in_prewhere.sql rename to tests/queries/1_stateful/00068_subquery_in_prewhere.sql diff --git a/dbms/tests/queries/1_stateful/00069_duplicate_aggregation_keys.reference b/tests/queries/1_stateful/00069_duplicate_aggregation_keys.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00069_duplicate_aggregation_keys.reference rename to tests/queries/1_stateful/00069_duplicate_aggregation_keys.reference diff --git a/dbms/tests/queries/1_stateful/00069_duplicate_aggregation_keys.sql b/tests/queries/1_stateful/00069_duplicate_aggregation_keys.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00069_duplicate_aggregation_keys.sql rename to tests/queries/1_stateful/00069_duplicate_aggregation_keys.sql diff --git a/dbms/tests/queries/1_stateful/00071_merge_tree_optimize_aio.reference b/tests/queries/1_stateful/00071_merge_tree_optimize_aio.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00071_merge_tree_optimize_aio.reference rename to tests/queries/1_stateful/00071_merge_tree_optimize_aio.reference diff --git a/dbms/tests/queries/1_stateful/00071_merge_tree_optimize_aio.sql b/tests/queries/1_stateful/00071_merge_tree_optimize_aio.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00071_merge_tree_optimize_aio.sql rename to tests/queries/1_stateful/00071_merge_tree_optimize_aio.sql diff --git a/dbms/tests/queries/1_stateful/00072_compare_date_and_string_index.reference b/tests/queries/1_stateful/00072_compare_date_and_string_index.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00072_compare_date_and_string_index.reference rename to tests/queries/1_stateful/00072_compare_date_and_string_index.reference diff --git a/dbms/tests/queries/1_stateful/00072_compare_date_and_string_index.sql b/tests/queries/1_stateful/00072_compare_date_and_string_index.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00072_compare_date_and_string_index.sql rename to tests/queries/1_stateful/00072_compare_date_and_string_index.sql diff --git a/dbms/tests/queries/1_stateful/00073_uniq_array.reference b/tests/queries/1_stateful/00073_uniq_array.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00073_uniq_array.reference rename to tests/queries/1_stateful/00073_uniq_array.reference diff --git a/dbms/tests/queries/1_stateful/00073_uniq_array.sql b/tests/queries/1_stateful/00073_uniq_array.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00073_uniq_array.sql rename to tests/queries/1_stateful/00073_uniq_array.sql diff --git a/dbms/tests/queries/1_stateful/00074_full_join.reference b/tests/queries/1_stateful/00074_full_join.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00074_full_join.reference rename to tests/queries/1_stateful/00074_full_join.reference diff --git a/dbms/tests/queries/1_stateful/00074_full_join.sql b/tests/queries/1_stateful/00074_full_join.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00074_full_join.sql rename to tests/queries/1_stateful/00074_full_join.sql diff --git a/dbms/tests/queries/1_stateful/00075_left_array_join.reference b/tests/queries/1_stateful/00075_left_array_join.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00075_left_array_join.reference rename to tests/queries/1_stateful/00075_left_array_join.reference diff --git a/dbms/tests/queries/1_stateful/00075_left_array_join.sql b/tests/queries/1_stateful/00075_left_array_join.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00075_left_array_join.sql rename to tests/queries/1_stateful/00075_left_array_join.sql diff --git a/dbms/tests/queries/1_stateful/00076_system_columns_bytes.reference b/tests/queries/1_stateful/00076_system_columns_bytes.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00076_system_columns_bytes.reference rename to tests/queries/1_stateful/00076_system_columns_bytes.reference diff --git a/dbms/tests/queries/1_stateful/00076_system_columns_bytes.sql b/tests/queries/1_stateful/00076_system_columns_bytes.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00076_system_columns_bytes.sql rename to tests/queries/1_stateful/00076_system_columns_bytes.sql diff --git a/dbms/tests/queries/1_stateful/00077_log_tinylog_stripelog.reference b/tests/queries/1_stateful/00077_log_tinylog_stripelog.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00077_log_tinylog_stripelog.reference rename to tests/queries/1_stateful/00077_log_tinylog_stripelog.reference diff --git a/dbms/tests/queries/1_stateful/00077_log_tinylog_stripelog.sql b/tests/queries/1_stateful/00077_log_tinylog_stripelog.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00077_log_tinylog_stripelog.sql rename to tests/queries/1_stateful/00077_log_tinylog_stripelog.sql diff --git a/dbms/tests/queries/1_stateful/00078_group_by_arrays.reference b/tests/queries/1_stateful/00078_group_by_arrays.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00078_group_by_arrays.reference rename to tests/queries/1_stateful/00078_group_by_arrays.reference diff --git a/dbms/tests/queries/1_stateful/00078_group_by_arrays.sql b/tests/queries/1_stateful/00078_group_by_arrays.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00078_group_by_arrays.sql rename to tests/queries/1_stateful/00078_group_by_arrays.sql diff --git a/dbms/tests/queries/1_stateful/00079_array_join_not_used_joined_column.reference b/tests/queries/1_stateful/00079_array_join_not_used_joined_column.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00079_array_join_not_used_joined_column.reference rename to tests/queries/1_stateful/00079_array_join_not_used_joined_column.reference diff --git a/dbms/tests/queries/1_stateful/00079_array_join_not_used_joined_column.sql b/tests/queries/1_stateful/00079_array_join_not_used_joined_column.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00079_array_join_not_used_joined_column.sql rename to tests/queries/1_stateful/00079_array_join_not_used_joined_column.sql diff --git a/dbms/tests/queries/1_stateful/00080_array_join_and_union.reference b/tests/queries/1_stateful/00080_array_join_and_union.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00080_array_join_and_union.reference rename to tests/queries/1_stateful/00080_array_join_and_union.reference diff --git a/dbms/tests/queries/1_stateful/00080_array_join_and_union.sql b/tests/queries/1_stateful/00080_array_join_and_union.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00080_array_join_and_union.sql rename to tests/queries/1_stateful/00080_array_join_and_union.sql diff --git a/dbms/tests/queries/1_stateful/00081_group_by_without_key_and_totals.reference b/tests/queries/1_stateful/00081_group_by_without_key_and_totals.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00081_group_by_without_key_and_totals.reference rename to tests/queries/1_stateful/00081_group_by_without_key_and_totals.reference diff --git a/dbms/tests/queries/1_stateful/00081_group_by_without_key_and_totals.sql b/tests/queries/1_stateful/00081_group_by_without_key_and_totals.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00081_group_by_without_key_and_totals.sql rename to tests/queries/1_stateful/00081_group_by_without_key_and_totals.sql diff --git a/dbms/tests/queries/1_stateful/00082_quantiles.reference b/tests/queries/1_stateful/00082_quantiles.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00082_quantiles.reference rename to tests/queries/1_stateful/00082_quantiles.reference diff --git a/dbms/tests/queries/1_stateful/00082_quantiles.sql b/tests/queries/1_stateful/00082_quantiles.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00082_quantiles.sql rename to tests/queries/1_stateful/00082_quantiles.sql diff --git a/dbms/tests/queries/1_stateful/00083_array_filter.reference b/tests/queries/1_stateful/00083_array_filter.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00083_array_filter.reference rename to tests/queries/1_stateful/00083_array_filter.reference diff --git a/dbms/tests/queries/1_stateful/00083_array_filter.sql b/tests/queries/1_stateful/00083_array_filter.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00083_array_filter.sql rename to tests/queries/1_stateful/00083_array_filter.sql diff --git a/dbms/tests/queries/1_stateful/00084_external_aggregation.reference b/tests/queries/1_stateful/00084_external_aggregation.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00084_external_aggregation.reference rename to tests/queries/1_stateful/00084_external_aggregation.reference diff --git a/dbms/tests/queries/1_stateful/00084_external_aggregation.sql b/tests/queries/1_stateful/00084_external_aggregation.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00084_external_aggregation.sql rename to tests/queries/1_stateful/00084_external_aggregation.sql diff --git a/dbms/tests/queries/1_stateful/00085_monotonic_evaluation_segfault.reference b/tests/queries/1_stateful/00085_monotonic_evaluation_segfault.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00085_monotonic_evaluation_segfault.reference rename to tests/queries/1_stateful/00085_monotonic_evaluation_segfault.reference diff --git a/dbms/tests/queries/1_stateful/00085_monotonic_evaluation_segfault.sql b/tests/queries/1_stateful/00085_monotonic_evaluation_segfault.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00085_monotonic_evaluation_segfault.sql rename to tests/queries/1_stateful/00085_monotonic_evaluation_segfault.sql diff --git a/dbms/tests/queries/1_stateful/00086_array_reduce.reference b/tests/queries/1_stateful/00086_array_reduce.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00086_array_reduce.reference rename to tests/queries/1_stateful/00086_array_reduce.reference diff --git a/dbms/tests/queries/1_stateful/00086_array_reduce.sql b/tests/queries/1_stateful/00086_array_reduce.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00086_array_reduce.sql rename to tests/queries/1_stateful/00086_array_reduce.sql diff --git a/dbms/tests/queries/1_stateful/00087_where_0.reference b/tests/queries/1_stateful/00087_where_0.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00087_where_0.reference rename to tests/queries/1_stateful/00087_where_0.reference diff --git a/dbms/tests/queries/1_stateful/00087_where_0.sql b/tests/queries/1_stateful/00087_where_0.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00087_where_0.sql rename to tests/queries/1_stateful/00087_where_0.sql diff --git a/dbms/tests/queries/1_stateful/00088_global_in_one_shard_and_rows_before_limit.reference b/tests/queries/1_stateful/00088_global_in_one_shard_and_rows_before_limit.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00088_global_in_one_shard_and_rows_before_limit.reference rename to tests/queries/1_stateful/00088_global_in_one_shard_and_rows_before_limit.reference diff --git a/dbms/tests/queries/1_stateful/00088_global_in_one_shard_and_rows_before_limit.sql b/tests/queries/1_stateful/00088_global_in_one_shard_and_rows_before_limit.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00088_global_in_one_shard_and_rows_before_limit.sql rename to tests/queries/1_stateful/00088_global_in_one_shard_and_rows_before_limit.sql diff --git a/dbms/tests/queries/1_stateful/00089_position_functions_with_non_constant_arg.reference b/tests/queries/1_stateful/00089_position_functions_with_non_constant_arg.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00089_position_functions_with_non_constant_arg.reference rename to tests/queries/1_stateful/00089_position_functions_with_non_constant_arg.reference diff --git a/dbms/tests/queries/1_stateful/00089_position_functions_with_non_constant_arg.sql b/tests/queries/1_stateful/00089_position_functions_with_non_constant_arg.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00089_position_functions_with_non_constant_arg.sql rename to tests/queries/1_stateful/00089_position_functions_with_non_constant_arg.sql diff --git a/dbms/tests/queries/1_stateful/00090_thread_pool_deadlock.reference b/tests/queries/1_stateful/00090_thread_pool_deadlock.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00090_thread_pool_deadlock.reference rename to tests/queries/1_stateful/00090_thread_pool_deadlock.reference diff --git a/dbms/tests/queries/1_stateful/00090_thread_pool_deadlock.sh b/tests/queries/1_stateful/00090_thread_pool_deadlock.sh similarity index 100% rename from dbms/tests/queries/1_stateful/00090_thread_pool_deadlock.sh rename to tests/queries/1_stateful/00090_thread_pool_deadlock.sh diff --git a/dbms/tests/queries/1_stateful/00091_prewhere_two_conditions.reference b/tests/queries/1_stateful/00091_prewhere_two_conditions.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00091_prewhere_two_conditions.reference rename to tests/queries/1_stateful/00091_prewhere_two_conditions.reference diff --git a/dbms/tests/queries/1_stateful/00091_prewhere_two_conditions.sql b/tests/queries/1_stateful/00091_prewhere_two_conditions.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00091_prewhere_two_conditions.sql rename to tests/queries/1_stateful/00091_prewhere_two_conditions.sql diff --git a/dbms/tests/queries/1_stateful/00092_obfuscator.reference b/tests/queries/1_stateful/00092_obfuscator.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00092_obfuscator.reference rename to tests/queries/1_stateful/00092_obfuscator.reference diff --git a/dbms/tests/queries/1_stateful/00092_obfuscator.sh b/tests/queries/1_stateful/00092_obfuscator.sh similarity index 100% rename from dbms/tests/queries/1_stateful/00092_obfuscator.sh rename to tests/queries/1_stateful/00092_obfuscator.sh diff --git a/dbms/tests/queries/1_stateful/00139_like.reference b/tests/queries/1_stateful/00139_like.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00139_like.reference rename to tests/queries/1_stateful/00139_like.reference diff --git a/dbms/tests/queries/1_stateful/00139_like.sql b/tests/queries/1_stateful/00139_like.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00139_like.sql rename to tests/queries/1_stateful/00139_like.sql diff --git a/dbms/tests/queries/1_stateful/00140_rename.reference b/tests/queries/1_stateful/00140_rename.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00140_rename.reference rename to tests/queries/1_stateful/00140_rename.reference diff --git a/dbms/tests/queries/1_stateful/00140_rename.sql b/tests/queries/1_stateful/00140_rename.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00140_rename.sql rename to tests/queries/1_stateful/00140_rename.sql diff --git a/dbms/tests/queries/1_stateful/00141_transform.reference b/tests/queries/1_stateful/00141_transform.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00141_transform.reference rename to tests/queries/1_stateful/00141_transform.reference diff --git a/dbms/tests/queries/1_stateful/00141_transform.sql b/tests/queries/1_stateful/00141_transform.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00141_transform.sql rename to tests/queries/1_stateful/00141_transform.sql diff --git a/dbms/tests/queries/1_stateful/00142_system_columns.reference b/tests/queries/1_stateful/00142_system_columns.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00142_system_columns.reference rename to tests/queries/1_stateful/00142_system_columns.reference diff --git a/dbms/tests/queries/1_stateful/00142_system_columns.sql b/tests/queries/1_stateful/00142_system_columns.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00142_system_columns.sql rename to tests/queries/1_stateful/00142_system_columns.sql diff --git a/dbms/tests/queries/1_stateful/00143_transform_non_const_default.reference b/tests/queries/1_stateful/00143_transform_non_const_default.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00143_transform_non_const_default.reference rename to tests/queries/1_stateful/00143_transform_non_const_default.reference diff --git a/dbms/tests/queries/1_stateful/00143_transform_non_const_default.sql b/tests/queries/1_stateful/00143_transform_non_const_default.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00143_transform_non_const_default.sql rename to tests/queries/1_stateful/00143_transform_non_const_default.sql diff --git a/dbms/tests/queries/1_stateful/00144_functions_of_aggregation_states.reference b/tests/queries/1_stateful/00144_functions_of_aggregation_states.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00144_functions_of_aggregation_states.reference rename to tests/queries/1_stateful/00144_functions_of_aggregation_states.reference diff --git a/dbms/tests/queries/1_stateful/00144_functions_of_aggregation_states.sql b/tests/queries/1_stateful/00144_functions_of_aggregation_states.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00144_functions_of_aggregation_states.sql rename to tests/queries/1_stateful/00144_functions_of_aggregation_states.sql diff --git a/dbms/tests/queries/1_stateful/00145_aggregate_functions_statistics.reference b/tests/queries/1_stateful/00145_aggregate_functions_statistics.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00145_aggregate_functions_statistics.reference rename to tests/queries/1_stateful/00145_aggregate_functions_statistics.reference diff --git a/dbms/tests/queries/1_stateful/00145_aggregate_functions_statistics.sql b/tests/queries/1_stateful/00145_aggregate_functions_statistics.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00145_aggregate_functions_statistics.sql rename to tests/queries/1_stateful/00145_aggregate_functions_statistics.sql diff --git a/dbms/tests/queries/1_stateful/00146_aggregate_function_uniq.reference b/tests/queries/1_stateful/00146_aggregate_function_uniq.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00146_aggregate_function_uniq.reference rename to tests/queries/1_stateful/00146_aggregate_function_uniq.reference diff --git a/dbms/tests/queries/1_stateful/00146_aggregate_function_uniq.sql b/tests/queries/1_stateful/00146_aggregate_function_uniq.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00146_aggregate_function_uniq.sql rename to tests/queries/1_stateful/00146_aggregate_function_uniq.sql diff --git a/dbms/tests/queries/1_stateful/00147_global_in_aggregate_function.reference b/tests/queries/1_stateful/00147_global_in_aggregate_function.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00147_global_in_aggregate_function.reference rename to tests/queries/1_stateful/00147_global_in_aggregate_function.reference diff --git a/dbms/tests/queries/1_stateful/00147_global_in_aggregate_function.sql b/tests/queries/1_stateful/00147_global_in_aggregate_function.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00147_global_in_aggregate_function.sql rename to tests/queries/1_stateful/00147_global_in_aggregate_function.sql diff --git a/dbms/tests/queries/1_stateful/00148_monotonic_functions_and_index.reference b/tests/queries/1_stateful/00148_monotonic_functions_and_index.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00148_monotonic_functions_and_index.reference rename to tests/queries/1_stateful/00148_monotonic_functions_and_index.reference diff --git a/dbms/tests/queries/1_stateful/00148_monotonic_functions_and_index.sql b/tests/queries/1_stateful/00148_monotonic_functions_and_index.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00148_monotonic_functions_and_index.sql rename to tests/queries/1_stateful/00148_monotonic_functions_and_index.sql diff --git a/dbms/tests/queries/1_stateful/00149_quantiles_timing_distributed.reference b/tests/queries/1_stateful/00149_quantiles_timing_distributed.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00149_quantiles_timing_distributed.reference rename to tests/queries/1_stateful/00149_quantiles_timing_distributed.reference diff --git a/dbms/tests/queries/1_stateful/00149_quantiles_timing_distributed.sql b/tests/queries/1_stateful/00149_quantiles_timing_distributed.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00149_quantiles_timing_distributed.sql rename to tests/queries/1_stateful/00149_quantiles_timing_distributed.sql diff --git a/dbms/tests/queries/1_stateful/00150_quantiles_timing_precision.reference b/tests/queries/1_stateful/00150_quantiles_timing_precision.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00150_quantiles_timing_precision.reference rename to tests/queries/1_stateful/00150_quantiles_timing_precision.reference diff --git a/dbms/tests/queries/1_stateful/00150_quantiles_timing_precision.sql b/tests/queries/1_stateful/00150_quantiles_timing_precision.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00150_quantiles_timing_precision.sql rename to tests/queries/1_stateful/00150_quantiles_timing_precision.sql diff --git a/dbms/tests/queries/1_stateful/00151_order_by_read_in_order.reference b/tests/queries/1_stateful/00151_order_by_read_in_order.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00151_order_by_read_in_order.reference rename to tests/queries/1_stateful/00151_order_by_read_in_order.reference diff --git a/dbms/tests/queries/1_stateful/00151_order_by_read_in_order.sql b/tests/queries/1_stateful/00151_order_by_read_in_order.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00151_order_by_read_in_order.sql rename to tests/queries/1_stateful/00151_order_by_read_in_order.sql diff --git a/dbms/tests/queries/1_stateful/00151_replace_partition_with_different_granularity.reference b/tests/queries/1_stateful/00151_replace_partition_with_different_granularity.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00151_replace_partition_with_different_granularity.reference rename to tests/queries/1_stateful/00151_replace_partition_with_different_granularity.reference diff --git a/dbms/tests/queries/1_stateful/00151_replace_partition_with_different_granularity.sql b/tests/queries/1_stateful/00151_replace_partition_with_different_granularity.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00151_replace_partition_with_different_granularity.sql rename to tests/queries/1_stateful/00151_replace_partition_with_different_granularity.sql diff --git a/dbms/tests/queries/1_stateful/00152_insert_different_granularity.reference b/tests/queries/1_stateful/00152_insert_different_granularity.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00152_insert_different_granularity.reference rename to tests/queries/1_stateful/00152_insert_different_granularity.reference diff --git a/dbms/tests/queries/1_stateful/00152_insert_different_granularity.sql b/tests/queries/1_stateful/00152_insert_different_granularity.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00152_insert_different_granularity.sql rename to tests/queries/1_stateful/00152_insert_different_granularity.sql diff --git a/dbms/tests/queries/1_stateful/00153_aggregate_arena_race.reference b/tests/queries/1_stateful/00153_aggregate_arena_race.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00153_aggregate_arena_race.reference rename to tests/queries/1_stateful/00153_aggregate_arena_race.reference diff --git a/dbms/tests/queries/1_stateful/00153_aggregate_arena_race.sql b/tests/queries/1_stateful/00153_aggregate_arena_race.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00153_aggregate_arena_race.sql rename to tests/queries/1_stateful/00153_aggregate_arena_race.sql diff --git a/dbms/tests/queries/1_stateful/00154_avro.reference b/tests/queries/1_stateful/00154_avro.reference similarity index 100% rename from dbms/tests/queries/1_stateful/00154_avro.reference rename to tests/queries/1_stateful/00154_avro.reference diff --git a/dbms/tests/queries/1_stateful/00154_avro.sql b/tests/queries/1_stateful/00154_avro.sql similarity index 100% rename from dbms/tests/queries/1_stateful/00154_avro.sql rename to tests/queries/1_stateful/00154_avro.sql diff --git a/dbms/tests/queries/__init__.py b/tests/queries/__init__.py similarity index 100% rename from dbms/tests/queries/__init__.py rename to tests/queries/__init__.py diff --git a/dbms/tests/queries/bugs/00938_client_suggestions.sh b/tests/queries/bugs/00938_client_suggestions.sh similarity index 100% rename from dbms/tests/queries/bugs/00938_client_suggestions.sh rename to tests/queries/bugs/00938_client_suggestions.sh diff --git a/dbms/tests/queries/bugs/01060_defaults_all_columns.reference b/tests/queries/bugs/01060_defaults_all_columns.reference similarity index 100% rename from dbms/tests/queries/bugs/01060_defaults_all_columns.reference rename to tests/queries/bugs/01060_defaults_all_columns.reference diff --git a/dbms/tests/queries/bugs/default_prewhere.sql b/tests/queries/bugs/default_prewhere.sql similarity index 100% rename from dbms/tests/queries/bugs/default_prewhere.sql rename to tests/queries/bugs/default_prewhere.sql diff --git a/dbms/tests/queries/bugs/low_cardinality_remove.sql b/tests/queries/bugs/low_cardinality_remove.sql similarity index 100% rename from dbms/tests/queries/bugs/low_cardinality_remove.sql rename to tests/queries/bugs/low_cardinality_remove.sql diff --git a/dbms/tests/queries/bugs/missing_scalar_subquery_removal.sql b/tests/queries/bugs/missing_scalar_subquery_removal.sql similarity index 100% rename from dbms/tests/queries/bugs/missing_scalar_subquery_removal.sql rename to tests/queries/bugs/missing_scalar_subquery_removal.sql diff --git a/dbms/tests/queries/bugs/position_case_insensitive_utf8.sql b/tests/queries/bugs/position_case_insensitive_utf8.sql similarity index 100% rename from dbms/tests/queries/bugs/position_case_insensitive_utf8.sql rename to tests/queries/bugs/position_case_insensitive_utf8.sql diff --git a/dbms/tests/queries/bugs/remote_scalar_subquery.sql b/tests/queries/bugs/remote_scalar_subquery.sql similarity index 100% rename from dbms/tests/queries/bugs/remote_scalar_subquery.sql rename to tests/queries/bugs/remote_scalar_subquery.sql diff --git a/dbms/tests/queries/bugs/totals_rollup_having_block_header.sql b/tests/queries/bugs/totals_rollup_having_block_header.sql similarity index 100% rename from dbms/tests/queries/bugs/totals_rollup_having_block_header.sql rename to tests/queries/bugs/totals_rollup_having_block_header.sql diff --git a/dbms/tests/queries/bugs/view_bad_types.sql b/tests/queries/bugs/view_bad_types.sql similarity index 100% rename from dbms/tests/queries/bugs/view_bad_types.sql rename to tests/queries/bugs/view_bad_types.sql diff --git a/dbms/tests/queries/conftest.py b/tests/queries/conftest.py similarity index 100% rename from dbms/tests/queries/conftest.py rename to tests/queries/conftest.py diff --git a/dbms/tests/queries/query_test.py b/tests/queries/query_test.py similarity index 100% rename from dbms/tests/queries/query_test.py rename to tests/queries/query_test.py diff --git a/dbms/tests/queries/server.py b/tests/queries/server.py similarity index 100% rename from dbms/tests/queries/server.py rename to tests/queries/server.py diff --git a/dbms/tests/queries/shell_config.sh b/tests/queries/shell_config.sh similarity index 100% rename from dbms/tests/queries/shell_config.sh rename to tests/queries/shell_config.sh diff --git a/dbms/tests/server-test.xml b/tests/server-test.xml similarity index 100% rename from dbms/tests/server-test.xml rename to tests/server-test.xml diff --git a/dbms/tests/stress b/tests/stress similarity index 100% rename from dbms/tests/stress rename to tests/stress diff --git a/dbms/tests/strings_dictionary.xml b/tests/strings_dictionary.xml similarity index 100% rename from dbms/tests/strings_dictionary.xml rename to tests/strings_dictionary.xml diff --git a/dbms/tests/tsan_suppressions.txt b/tests/tsan_suppressions.txt similarity index 100% rename from dbms/tests/tsan_suppressions.txt rename to tests/tsan_suppressions.txt diff --git a/dbms/tests/users.d/readonly.xml b/tests/users.d/readonly.xml similarity index 100% rename from dbms/tests/users.d/readonly.xml rename to tests/users.d/readonly.xml diff --git a/dbms/tests/users.xml b/tests/users.xml similarity index 100% rename from dbms/tests/users.xml rename to tests/users.xml diff --git a/utils/build/build_debian.sh b/utils/build/build_debian.sh index 0767dc53450..0c194fe53db 100755 --- a/utils/build/build_debian.sh +++ b/utils/build/build_debian.sh @@ -29,7 +29,7 @@ cmake --build . cd .. # Run server: -# build/dbms/programs/clickhouse-server --config-file=ClickHouse/dbms/programs/server/config.xml & +# build/programs/clickhouse-server --config-file=ClickHouse/programs/server/config.xml & # Run client: -# build/dbms/programs/clickhouse-client +# build/programs/clickhouse-client diff --git a/utils/build/build_freebsd.sh b/utils/build/build_freebsd.sh index 5f2b9735501..b2bf7243f12 100755 --- a/utils/build/build_freebsd.sh +++ b/utils/build/build_freebsd.sh @@ -44,7 +44,7 @@ cmake --build . cd .. # Run server: -# build/dbms/programs/clickhouse-server --config-file=ClickHouse/dbms/programs/server/config.xml & +# build/programs/clickhouse-server --config-file=ClickHouse/programs/server/config.xml & # Run client: -# build/dbms/programs/clickhouse-client +# build/programs/clickhouse-client diff --git a/utils/build/build_macos.sh b/utils/build/build_macos.sh index 0e9bed37aa2..d27c8cf4367 100755 --- a/utils/build/build_macos.sh +++ b/utils/build/build_macos.sh @@ -43,10 +43,10 @@ cmake --build . cd .. # Run server: -# build/dbms/programs/clickhouse-server --config-file=ClickHouse/dbms/programs/server/config.xml & +# build/programs/clickhouse-server --config-file=ClickHouse/programs/server/config.xml & # Run client: -# build/dbms/programs/clickhouse-client +# build/programs/clickhouse-client ## Caveats diff --git a/utils/check-style/check-include b/utils/check-style/check-include index 3ced75d19d5..9cdcbbaea7b 100755 --- a/utils/check-style/check-include +++ b/utils/check-style/check-include @@ -59,8 +59,8 @@ inc="-I. \ -I./contrib/lz4/lib \ -I./contrib/hyperscan/src \ -I./contrib/simdjson/include \ --I./dbms/src \ --I${BUILD_DIR}/dbms/src" +-I./dbms \ +-I${BUILD_DIR}/dbms" if [ -z $1 ]; then cd ${ROOT_DIR=${CUR_DIR}../..} diff --git a/utils/ci/run-clickhouse-from-binaries.sh b/utils/ci/run-clickhouse-from-binaries.sh index f16d840316a..9b1a3f86b1f 100755 --- a/utils/ci/run-clickhouse-from-binaries.sh +++ b/utils/ci/run-clickhouse-from-binaries.sh @@ -6,8 +6,8 @@ set -e -x source default-config -SERVER_BIN="${WORKSPACE}/build/dbms/src/Server/clickhouse" -SERVER_CONF="${WORKSPACE}/sources/dbms/src/Server/config.xml" +SERVER_BIN="${WORKSPACE}/build/dbms/Server/clickhouse" +SERVER_CONF="${WORKSPACE}/sources/dbms/Server/config.xml" SERVER_DATADIR="${WORKSPACE}/clickhouse" [[ -x "$SERVER_BIN" ]] || die "Run build-normal.sh first" diff --git a/utils/package/arch/PKGBUILD.in b/utils/package/arch/PKGBUILD.in index 20de555f8a7..b5c63a3edea 100644 --- a/utils/package/arch/PKGBUILD.in +++ b/utils/package/arch/PKGBUILD.in @@ -20,11 +20,11 @@ package() { mkdir -p $pkgdir/usr/bin/ mkdir -p $pkgdir/usr/lib/systemd/system ln -s clickhouse-client $pkgdir/usr/bin/clickhouse-server - cp $SRC/dbms/programs/server/config.xml $SRC/dbms/programs/server/users.xml $pkgdir/etc/clickhouse-server/ - cp $BIN/dbms/programs/clickhouse $pkgdir/usr/bin/clickhouse-client + cp $SRC/programs/server/config.xml $SRC/programs/server/users.xml $pkgdir/etc/clickhouse-server/ + cp $BIN/programs/clickhouse $pkgdir/usr/bin/clickhouse-client patchelf --remove-rpath $pkgdir/usr/bin/clickhouse-client patchelf --replace-needed libz.so.1 libz-ng.so.1 $pkgdir/usr/bin/clickhouse-client - cp $SRC/dbms/programs/client/clickhouse-client.xml $pkgdir/etc/clickhouse-client/config.xml + cp $SRC/programs/client/clickhouse-client.xml $pkgdir/etc/clickhouse-client/config.xml compiler="libclickhouse-compiler.so" if ! pacman -Q clang | grep '^clang 7'; then compiler="" diff --git a/utils/release/release_lib.sh b/utils/release/release_lib.sh index ab395c9ad37..14e26631db9 100644 --- a/utils/release/release_lib.sh +++ b/utils/release/release_lib.sh @@ -101,8 +101,8 @@ function gen_revision_author { gen_changelog "$VERSION_STRING" "" "$AUTHOR" "" gen_dockerfiles "$VERSION_STRING" - dbms/src/Storages/System/StorageSystemContributors.sh ||: - git commit -m "$auto_message [$VERSION_STRING] [$VERSION_REVISION]" dbms/cmake/version.cmake debian/changelog docker/*/Dockerfile dbms/src/Storages/System/StorageSystemContributors.generated.cpp + dbms/Storages/System/StorageSystemContributors.sh ||: + git commit -m "$auto_message [$VERSION_STRING] [$VERSION_REVISION]" dbms/cmake/version.cmake debian/changelog docker/*/Dockerfile dbms/Storages/System/StorageSystemContributors.generated.cpp if [ -z $NO_PUSH ]; then git push fi diff --git a/utils/test-data-generator/CMakeLists.txt b/utils/test-data-generator/CMakeLists.txt index 2e11b537873..c46853229d7 100644 --- a/utils/test-data-generator/CMakeLists.txt +++ b/utils/test-data-generator/CMakeLists.txt @@ -1,9 +1,9 @@ if(USE_PROTOBUF) - protobuf_generate_cpp(ProtobufDelimitedMessagesSerializer_Srcs ProtobufDelimitedMessagesSerializer_Hdrs ${CMAKE_CURRENT_SOURCE_DIR}/../../dbms/tests/queries/0_stateless/00825_protobuf_format.proto) - protobuf_generate_cpp(ProtobufDelimitedMessagesSerializer_Srcs2 ProtobufDelimitedMessagesSerializer_Hdrs2 ${CMAKE_CURRENT_SOURCE_DIR}/../../dbms/tests/queries/0_stateless/00825_protobuf_format_syntax2.proto) + protobuf_generate_cpp(ProtobufDelimitedMessagesSerializer_Srcs ProtobufDelimitedMessagesSerializer_Hdrs ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/queries/0_stateless/00825_protobuf_format.proto) + protobuf_generate_cpp(ProtobufDelimitedMessagesSerializer_Srcs2 ProtobufDelimitedMessagesSerializer_Hdrs2 ${CMAKE_CURRENT_SOURCE_DIR}/../../tests/queries/0_stateless/00825_protobuf_format_syntax2.proto) add_executable (ProtobufDelimitedMessagesSerializer ProtobufDelimitedMessagesSerializer.cpp ${ProtobufDelimitedMessagesSerializer_Srcs} ${ProtobufDelimitedMessagesSerializer_Hdrs} ${ProtobufDelimitedMessagesSerializer_Srcs2} ${ProtobufDelimitedMessagesSerializer_Hdrs2}) target_include_directories (ProtobufDelimitedMessagesSerializer SYSTEM BEFORE PRIVATE ${Protobuf_INCLUDE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries (ProtobufDelimitedMessagesSerializer PRIVATE ${Protobuf_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY}) - get_filename_component(ProtobufDelimitedMessagesSerializer_OutputDir "${CMAKE_CURRENT_LIST_DIR}/../../dbms/tests/queries/0_stateless" REALPATH) + get_filename_component(ProtobufDelimitedMessagesSerializer_OutputDir "${CMAKE_CURRENT_LIST_DIR}/../../tests/queries/0_stateless" REALPATH) target_compile_definitions(ProtobufDelimitedMessagesSerializer PRIVATE OUTPUT_DIR="${ProtobufDelimitedMessagesSerializer_OutputDir}") endif() diff --git a/utils/test-data-generator/ProtobufDelimitedMessagesSerializer.cpp b/utils/test-data-generator/ProtobufDelimitedMessagesSerializer.cpp index c956dea8712..d16df83d12f 100644 --- a/utils/test-data-generator/ProtobufDelimitedMessagesSerializer.cpp +++ b/utils/test-data-generator/ProtobufDelimitedMessagesSerializer.cpp @@ -1,5 +1,5 @@ // Generator of protobuf delimited messages used in the protobuf IO tests -// dbms/tests/queries/0_stateless/00825_protobuf_format* +// tests/queries/0_stateless/00825_protobuf_format* #include #include