mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
Fix for empty sorted_nodes
This commit is contained in:
parent
942addfa8c
commit
d64db12f72
@ -703,6 +703,9 @@ std::vector<std::vector<StorageID>> TablesDependencyGraph::getTablesSplitByDepen
|
||||
{
|
||||
std::vector<std::vector<StorageID>> tables_split_by_level;
|
||||
auto sorted_nodes = getNodesSortedByLevel();
|
||||
if (sorted_nodes.empty())
|
||||
return tables_split_by_level;
|
||||
|
||||
tables_split_by_level.resize(sorted_nodes.back()->level + 1);
|
||||
for (const auto * node : sorted_nodes)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user