mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-12 17:34:18 +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={},
|
customProperties={},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
schema_metadata: Optional[SchemaMetadata] = None
|
||||||
|
|
||||||
if self.config.enableSchemaInference:
|
if self.config.enableSchemaInference:
|
||||||
assert self.config.maxDocumentSize is not None
|
assert self.config.maxDocumentSize is not None
|
||||||
collection_schema = construct_schema_pymongo(
|
collection_schema = construct_schema_pymongo(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user