Skip to content

Commit 3d85fcd

Browse files
committed
ban in binder
1 parent 26262a6 commit 3d85fcd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/frontend/src/binder/backfill_order_strategy.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,12 @@ fn bind_backfill_relation_id_by_name(session: &SessionImpl, name: ObjectName) ->
134134
fn bind_source_or_table(schema_catalog: &SchemaCatalog, name: &String) -> Result<ObjectId> {
135135
if let Some(table) = schema_catalog.get_created_table_or_any_internal_table_by_name(name) {
136136
Ok(table.id().table_id)
137-
} else if let Some(source) = schema_catalog.get_source_by_name(name) {
138-
Ok(source.id)
139137
} else {
140-
Err(CatalogError::NotFound("table or source", name.to_owned()).into())
138+
Err(CatalogError::NotFound("table", name.to_owned()).into())
141139
}
140+
// TODO: support source catalog
141+
// else if let Some(source) = schema_catalog.get_source_by_name(name) {
142+
// Ok(source.id)
143+
// }
144+
// Err(CatalogError::NotFound("table or source", name.to_owned()).into())
142145
}

0 commit comments

Comments
 (0)