Skip to content

Commit

Permalink
updated delete_streams_to_overwrite to use the correct stream ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ofermend committed Dec 19, 2023
1 parent f163d47 commit ee1de37
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def __init__(self, client: VectaraClient, text_fields: Optional[List[str]], meta

def delete_streams_to_overwrite(self, catalog: ConfiguredAirbyteCatalog) -> None:
streams_to_overwrite = [
stream.stream.name for stream in catalog.streams if stream.destination_sync_mode == DestinationSyncMode.overwrite
f"{stream.stream.namespace}_{stream.stream.name}"
for stream in catalog.streams if stream.destination_sync_mode == DestinationSyncMode.overwrite
]
if len(streams_to_overwrite):
self.client.delete_doc_by_metadata(metadata_field_name=METADATA_STREAM_FIELD, metadata_field_values=streams_to_overwrite)
Expand Down

0 comments on commit ee1de37

Please sign in to comment.