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

Fix incorrect handling of scalar documents with trailing content #92

Merged

Conversation

tobil4sk
Copy link
Contributor

In #90, I changed the convert_ondemand_element_to_table to take document_reference instead of document in order to simplify the function signature. However, it turns out the behaviour of document_reference deviates from document when it comes to handling trailing content after a scalar, see: simdjson/simdjson#2259.

I've changed it back to use the document type and added a test to ensure the trailing content is rejected as expected.

It is not suitable for use here since the behaviour deviates from the
regular document type when it comes to trailing content.
@FourierTransformer
Copy link
Owner

Looks good, makes sense. I'll get it merged.

@FourierTransformer FourierTransformer merged commit 8e18887 into FourierTransformer:master Sep 24, 2024
23 checks passed
@tobil4sk tobil4sk deleted the fix/document-reference branch September 24, 2024 14:20
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