Skip to content
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

Return row count when inferring schema from JSON #5008

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

asayers
Copy link
Contributor

@asayers asayers commented Oct 30, 2023

Which issue does this PR close?

Closes #5007.

What changes are included in this PR?

This PR changes the return type of infer_json_schema{,from_seekable}() from Schema to (Schema, usize). These functions are public, so this is a user-facing change. The docs have been updated.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Oct 30, 2023
@tustvold tustvold added the api-change Changes to the arrow API label Oct 30, 2023
Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

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

Could we possibly get a test or two of this?

@asayers
Copy link
Contributor Author

asayers commented Oct 30, 2023

Yes, good call.

@tustvold tustvold merged commit 65f7be8 into apache:master Oct 31, 2023
22 checks passed
@tustvold
Copy link
Contributor

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return row count when inferring schema from JSON
2 participants