From 85631dba5496b37e91e6e8b4f121e7c84860ee25 Mon Sep 17 00:00:00 2001 From: Ilya Golshtein Date: Wed, 20 Nov 2024 18:28:46 +0300 Subject: [PATCH] mv_dependencies: style fixes --- src/Databases/TablesLoader.cpp | 2 -- .../integration/test_async_load_databases/test.py | 14 ++++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Databases/TablesLoader.cpp b/src/Databases/TablesLoader.cpp index d2dc9f05b4e..733e5d53981 100644 --- a/src/Databases/TablesLoader.cpp +++ b/src/Databases/TablesLoader.cpp @@ -107,8 +107,6 @@ LoadTaskPtrs TablesLoader::startupTablesAsync(LoadJobSet startup_after) LoadTaskPtrs result; std::unordered_map startup_database; /// database name -> all its tables startup tasks - - for (const auto & table_id : all_loading_dependencies.getTables()) { // Make startup table task diff --git a/tests/integration/test_async_load_databases/test.py b/tests/integration/test_async_load_databases/test.py index aeb4e947720..bb527c32d9c 100644 --- a/tests/integration/test_async_load_databases/test.py +++ b/tests/integration/test_async_load_databases/test.py @@ -294,15 +294,21 @@ def test_materialzed_views_cascaded_multiple(started_cluster): query("create table test_mv.t (Id UInt64) engine=MergeTree order by Id") query("create table test_mv.a (Id UInt64) engine=MergeTree order by Id") query("create table test_mv.x (IdText String) engine=MergeTree order by IdText") - query("create table test_mv.z (Id UInt64, IdTextLength UInt64) engine=MergeTree order by Id") + query( + "create table test_mv.z (Id UInt64, IdTextLength UInt64) engine=MergeTree order by Id" + ) query("create materialized view t_to_a to test_mv.a as select Id from test_mv.t") - query("create materialized view t_to_x to test_mv.x as select toString(Id) as IdText from test_mv.t") - query("create materialized view ax_to_z to test_mv.z as select Id, (select max(length(IdText)) from test_mv.x) as IdTextLength from test_mv.a") + query( + "create materialized view t_to_x to test_mv.x as select toString(Id) as IdText from test_mv.t" + ) + query( + "create materialized view ax_to_z to test_mv.z as select Id, (select max(length(IdText)) from test_mv.x) as IdTextLength from test_mv.a" + ) node1.restart_clickhouse() query("insert into test_mv.t values(42)") assert query("select * from test_mv.a Format CSV") == "42\n" - assert query("select * from test_mv.x Format CSV") == "\"42\"\n" + assert query("select * from test_mv.x Format CSV") == '"42"\n' assert query("select * from test_mv.z Format CSV") == "42,2\n" query("drop view t_to_a")