Skip to content

Commit

Permalink
fix(storage): fix get_created_table_ids (#16936)
Browse files Browse the repository at this point in the history
  • Loading branch information
Li0k authored May 27, 2024
1 parent e16812b commit cdc9aef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/meta/src/controller/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2709,11 +2709,9 @@ impl CatalogController {
let inner = self.inner.read().await;

// created table ids.
let mut table_ids: Vec<TableId> = Table::find()
let mut table_ids: Vec<TableId> = StreamingJob::find()
.select_only()
.column(table::Column::TableId)
.join(JoinType::LeftJoin, table::Relation::Object1.def())
.join(JoinType::LeftJoin, object::Relation::StreamingJob.def())
.column(streaming_job::Column::JobId)
.filter(streaming_job::Column::JobStatus.eq(JobStatus::Created))
.into_tuple()
.all(&inner.db)
Expand Down

0 comments on commit cdc9aef

Please sign in to comment.