feat(ingest/mongodb): support AWS DocumentDB for MongoDB #9201
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Amazon DocumentDB is a fully managed native JSON document database that has MongoDB compatibility and would work with Datahub MongoDB ingestion. However, from the doc Supported MongoDB Operations,
$bsonsize
operation is not supported by DocumentDB and this operation in ingestion code is to filter the document withmax_document_size
which by default is 16MB. Also, as far as I know from research, there's no simple way to implement an operation that can achieve what$bsonsize
would do in aggregation.In order to support the ingestion of DocumentDB, we introduced a new config
hostingEnvironment
and omitted the$bsonsize
operation if the ingestion is for DocumentDB, this will ignore the configmax_document_size
and ingest documents with the default maximum 16MB.Checklist