Skip to content

Commit ef568d3

Browse files
Avogarzvonand
authored andcommitted
Merge pull request ClickHouse#83077 from ClickHouse/Avogar-patch-8
Do not check for cyclic dependencies on create table with no dependencies
1 parent 190e8fc commit ef568d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Interpreters/DatabaseCatalog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,9 @@ void DatabaseCatalog::checkTableCanBeAddedWithNoCyclicDependencies(
15721572
const TableNamesSet & new_referential_dependencies,
15731573
const TableNamesSet & new_loading_dependencies)
15741574
{
1575+
if (new_referential_dependencies.empty() && new_loading_dependencies.empty())
1576+
return;
1577+
15751578
std::lock_guard lock{databases_mutex};
15761579

15771580
StorageID table_id = StorageID{table_name};

0 commit comments

Comments
 (0)