Skip to content

Commit

Permalink
fix(ingest/mongodb): Fix downsampling the collection schema output un…
Browse files Browse the repository at this point in the history
…determined (datahub-project#9612)
  • Loading branch information
TonyOuyangGit authored Jan 12, 2024
1 parent 98e3da4 commit 33e3294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata-ingestion/src/datahub/ingestion/source/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def get_workunits_internal(self) -> Iterable[MetadataWorkUnit]:
)
collection_fields = sorted(
collection_schema.values(),
key=lambda x: x["count"],
key=lambda x: (x["count"], x["delimited_name"]),
reverse=True,
)[0:max_schema_size]
# Add this information to the custom properties so user can know they are looking at downsampled schema
Expand Down

0 comments on commit 33e3294

Please sign in to comment.