mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #2448 from LiuYangkuan/fix-issue-2439
fix Exception in issue#2439
This commit is contained in:
commit
f69ecf7a9d
@ -410,6 +410,15 @@ void StorageKafka::streamThread()
|
||||
auto dependencies = context.getDependencies(database_name, table_name);
|
||||
if (dependencies.size() == 0)
|
||||
break;
|
||||
// Check the dependencies are ready?
|
||||
bool ready = true;
|
||||
for (const auto & db_tab : dependencies)
|
||||
{
|
||||
if (!context.tryGetTable(db_tab.first, db_tab.second))
|
||||
ready = false;
|
||||
}
|
||||
if (!ready)
|
||||
break;
|
||||
|
||||
LOG_DEBUG(log, "Started streaming to " << dependencies.size() << " attached views");
|
||||
streamToViews();
|
||||
|
Loading…
Reference in New Issue
Block a user