这是indexloc提供的服务,不要输入任何密码
Skip to content

skip empty collections when building schemas via database introspection #76

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

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

hallettj
Copy link
Collaborator

@hallettj hallettj commented Jun 12, 2024

If we record an empty schema we get an error tracking models. If a collection is empty there is nothing to sample, and therefore we end up with an empty schema. This change skips empty collections, and prints a warning instead of recording empty schemas.

There is some extra whitespace churn in sampling.rs because I ran rustfmt

MDB-162

@hallettj hallettj requested review from codedmart and dmoverton June 12, 2024 23:16
@hallettj hallettj self-assigned this Jun 12, 2024
@hallettj hallettj force-pushed the jesse/skip-empty-collections branch from 022ea96 to dbad3ee Compare June 12, 2024 23:41
@codedmart codedmart merged commit 99c53af into main Jun 13, 2024
1 check passed
@codedmart codedmart deleted the jesse/skip-empty-collections branch June 13, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants