mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-19 22:40:40 +00:00
feat: invalidate table cache after altering (#1951)
This commit is contained in:
@@ -515,6 +515,15 @@ impl DistInstance {
|
||||
.await
|
||||
.context(error::RequestMetaSnafu)?;
|
||||
|
||||
let table_info = table.table_info();
|
||||
self.catalog_manager
|
||||
.invalidate_table(
|
||||
&table_info.catalog_name,
|
||||
&table_info.schema_name,
|
||||
&table_info.name,
|
||||
)
|
||||
.await;
|
||||
|
||||
Ok(Output::AffectedRows(0))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user