Skip to content

Commit dd7b86a

Browse files
authored
fix: ignore empty kind on creating legacy source list for compatibility (#909)
1 parent 97090a7 commit dd7b86a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/setup/driver.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,13 @@ pub async fn diff_flow_setup_states(
280280
.possible_versions()
281281
.flat_map(|v| v.sources.iter())
282282
{
283-
existing_source_id_to_name_kind
284-
.entry(setup_state.source_id)
285-
.or_default()
286-
.push((&name, &setup_state.source_kind));
283+
// For backward compatibility, we only process source states for non-empty source kinds.
284+
if !setup_state.source_kind.is_empty() {
285+
existing_source_id_to_name_kind
286+
.entry(setup_state.source_id)
287+
.or_default()
288+
.push((&name, &setup_state.source_kind));
289+
}
287290
}
288291

289292
(existing_source_id_to_name_kind.into_iter())

0 commit comments

Comments
 (0)