mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Merge pull request #37224 from Vxider/wv-fix-dependency
Fix addDependency in WindowView
This commit is contained in:
commit
b0c7cf910a
@ -1119,7 +1119,6 @@ StorageWindowView::StorageWindowView(
|
||||
select_table_name = "one";
|
||||
}
|
||||
select_table_id = StorageID(select_database_name, select_table_name);
|
||||
DatabaseCatalog::instance().addDependency(select_table_id, table_id_);
|
||||
|
||||
/// Extract all info from query; substitute Function_tumble and Function_hop with Function_windowID.
|
||||
auto inner_query = innerQueryParser(select_query->as<ASTSelectQuery &>());
|
||||
@ -1474,6 +1473,8 @@ void StorageWindowView::writeIntoWindowView(
|
||||
|
||||
void StorageWindowView::startup()
|
||||
{
|
||||
DatabaseCatalog::instance().addDependency(select_table_id, getStorageID());
|
||||
|
||||
// Start the working thread
|
||||
clean_cache_task->activateAndSchedule();
|
||||
fire_task->activateAndSchedule();
|
||||
|
Loading…
Reference in New Issue
Block a user