-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ingest/mongodb): support stateful ingestion #9118
feat(ingest/mongodb): support stateful ingestion #9118
Conversation
@@ -90,6 +103,10 @@ class MongoDBConfig(PlatformInstanceConfigMixin, EnvConfigMixin): | |||
# mongodb only supports 16MB as max size for documents. However, if we try to retrieve a larger document it | |||
# errors out with "16793600" as the maximum size supported. | |||
maxDocumentSize: Optional[PositiveInt] = Field(default=16793600, description="") | |||
ingest_data_platform_instance_aspect: Optional[bool] = Field( | |||
default=False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably want this to be default true, or at least done automatically if platform_instance is set. don't think it makes sense to make it a config option
@TonyOuyangGit one thing - platform_instance support was already added in 8522679 - it looks like this is just doing some refactoring which is great, but I'm going to tweak the PR title accordingly |
Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
@TonyOuyangGit looks like the mongodb tests need to be updated |
@hsheth2 Thank you! Since I refactored to use |
This PR improves the MongoDB ingestion source by adding stateful ingestion and platform instance support and also refactors the existing code to emit
MetadataChangeProposal
instead ofMetadataChangeEvent
which is the current standard way of emitting events.Checklist