Skip to content

Commit 870cce2

Browse files
sid-acrylsleeperdeep
authored andcommitted
fix(ingest/mongodb): schema_metadata referenced before assignment (datahub-project#10169)
1 parent 054a7dd commit 870cce2

File tree

1 file changed

+2
-0
lines changed
  • metadata-ingestion/src/datahub/ingestion/source

1 file changed

+2
-0
lines changed

metadata-ingestion/src/datahub/ingestion/source/mongodb.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ def get_workunits_internal(self) -> Iterable[MetadataWorkUnit]:
394394
customProperties={},
395395
)
396396

397+
schema_metadata: Optional[SchemaMetadata] = None
398+
397399
if self.config.enableSchemaInference:
398400
assert self.config.maxDocumentSize is not None
399401
collection_schema = construct_schema_pymongo(

0 commit comments

Comments
 (0)