Skip to content

Commit

Permalink
fix: auto created table ttl check
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 committed Dec 19, 2024
1 parent 422d18d commit 795fda9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/operator/src/insert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,9 @@ impl Inserter {

for table in tables {
let table_info = table.table_info();
if table_info.is_ttl_instant_table() {
instant_table_ids.insert(table_info.table_id());
}
table_name_to_ids.insert(table_info.name.clone(), table_info.table_id());
}
}
Expand All @@ -596,6 +599,9 @@ impl Inserter {
.create_physical_table(create_table, ctx, statement_executor)
.await?;
let table_info = table.table_info();
if table_info.is_ttl_instant_table() {
instant_table_ids.insert(table_info.table_id());
}
table_name_to_ids.insert(table_info.name.clone(), table_info.table_id());
}
for alter_expr in alter_tables.into_iter() {
Expand Down

0 comments on commit 795fda9

Please sign in to comment.