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

Add any type #18

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 8 commits into from
Mar 27, 2024
Merged

Add any type #18

merged 8 commits into from
Mar 27, 2024

Conversation

dmoverton
Copy link
Contributor

@dmoverton dmoverton commented Mar 27, 2024

Describe your changes

Introduces a new type any which can be any BSON value. In NDC we represent it as a nullable scalar type called any, but in our internal Type type we keep it separate from the BsonScalarTypes.

When unifying schemas derived from different sample documents, any type mismatches are now represented using any instead of resulting in an error.

Issue ticket number and link

MDB-80

@dmoverton dmoverton requested a review from hallettj March 27, 2024 11:30
Copy link
Collaborator

@hallettj hallettj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@dmoverton dmoverton merged commit f29fa07 into main Mar 27, 2024
@dmoverton dmoverton deleted the dmoverton/any-type branch March 27, 2024 22:27
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.

2 participants