-
Notifications
You must be signed in to change notification settings - Fork 3k
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(ingestion/mongodb) re-order aggregation logic #12428
Open
Haebuk
wants to merge
7
commits into
datahub-project:master
Choose a base branch
from
Haebuk:feature/source-mongodb-aggregation-logic
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat(ingestion/mongodb) re-order aggregation logic #12428
Haebuk
wants to merge
7
commits into
datahub-project:master
from
Haebuk:feature/source-mongodb-aggregation-logic
+4,615
−16
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remove an unnecessary comma in the MongoDB aggregation logic to ensure consistency in the code style. This change does not affect functionality but improves code readability.
Refactor the MongoDB document aggregation process by consolidating the aggregation call into a single location, regardless of the sample size condition. This change enhances code clarity and maintains functionality.
Refactor the MongoDB document aggregation logic to streamline the handling of sampling conditions. The changes ensure that the aggregation process is clearer by consolidating the logic for random sampling and limiting sample size into a more cohesive structure, enhancing code readability while maintaining existing functionality.
Reorganize the logic for adding a document size filter in the MongoDB aggregation process. The changed aggregation order improves MongoDB scanning performance.
github-actions
bot
added
ingestion
PR or Issue related to the ingestion of metadata
community-contribution
PR or Issue raised by member(s) of DataHub Community
labels
Jan 22, 2025
Codecov ReportAll modified and coverable lines are covered by tests ✅
Continue to review full report in Codecov by Sentry.
|
datahub-cyborg
bot
added
the
needs-review
Label for PRs that need review from a maintainer.
label
Jan 22, 2025
Haebuk
changed the title
Feature/source mongodb aggregation logic
feat(ingestion/mongodb) re-order aggregation logic
Jan 23, 2025
…ndom sampling - Introduced a new golden JSON file for MongoDB ingestion without random sampling. - Updated the test suite to include a pipeline that verifies the ingestion process. - Ensured the output is validated against the new golden file to maintain data integrity. This commit enhances the testing framework for MongoDB ingestion, ensuring that the functionality works as expected without random sampling.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
community-contribution
PR or Issue raised by member(s) of DataHub Community
ingestion
PR or Issue related to the ingestion of metadata
needs-review
Label for PRs that need review from a maintainer.
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.
I fix the linked issue by reordering aggregation logics.
It would be sampling first then measuring doc size and filtering so much faster.
Checklist
should_add_document_size_filter
#12427