Skip to content

Make document::is_null behavior consistent with documentation #2258

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 3 commits into from
Sep 21, 2024

Conversation

tobil4sk
Copy link
Contributor

The function documentation states: INCORRECT_TYPE If the JSON value begins with 'n'and is not 'null'., however, it previously failed to return any error.

The behavior has now been corrected and the unit test updated.

According to the docs: `INCORRECT_TYPE If the JSON value begins with 'n'
and is not 'null'.`
@lemire
Copy link
Member

lemire commented Sep 20, 2024

Looks reasonable!!!

@lemire
Copy link
Member

lemire commented Sep 21, 2024

Merging. This will be part of the next release.

@lemire lemire merged commit fd06782 into simdjson:master Sep 21, 2024
69 checks passed
@tobil4sk
Copy link
Contributor Author

Thanks!

@tobil4sk tobil4sk deleted the fix/scalar-null-like branch September 21, 2024 10:38
tobil4sk added a commit to tobil4sk/lua-simdjson that referenced this pull request Sep 24, 2024
For now, we can just manually throw the exception until the next
simdjson bugfix release: simdjson/simdjson#2258
FourierTransformer pushed a commit to FourierTransformer/lua-simdjson that referenced this pull request Sep 26, 2024
* Enable tests for invalid documents starting with n

* Add test for invalid document with trailing text

Oddly, `null trailing` gives an error, but `nully trailing` does not

* Add workaround for scalar document is_null bug

For now, we can just manually throw the exception until the next
simdjson bugfix release: simdjson/simdjson#2258
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