mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 11:49:23 +00:00
fix(ingest/mongodb): schema_metadata referenced before assignment (#10169)
This commit is contained in:
parent
f96abc1cc6
commit
d546f65071
@ -394,6 +394,8 @@ class MongoDBSource(StatefulIngestionSourceBase):
|
||||
customProperties={},
|
||||
)
|
||||
|
||||
schema_metadata: Optional[SchemaMetadata] = None
|
||||
|
||||
if self.config.enableSchemaInference:
|
||||
assert self.config.maxDocumentSize is not None
|
||||
collection_schema = construct_schema_pymongo(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user