We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
json_get(...) is null
json_contains_not_null(...)
We can't replace json_get(x, y) is null with NOT json_contains(x, y) because
json_get(x, y) is null
NOT json_contains(x, y)
select json_get('{"foo": null}', 'foo') is null -- true select not json_contains('{"foo": null}', 'foo') -- false -- or equivilantly select json_get('{"foo": null}', 'foo') is not null -- false select json_contains('{"foo": null}', 'foo') -- true
So we need a new method json_contains_not_null which is true if the value exists in the JSON, but is not null.
json_contains_not_null
null
Then we can do the substitution.
The text was updated successfully, but these errors were encountered:
What about a json_get_default(D, x, y) or similar which allows for json_get_default(false, x, y) is null?
json_get_default(D, x, y)
json_get_default(false, x, y) is null
Sorry, something went wrong.
But that will still require an intermediate vec before this is null.
is null
No branches or pull requests
We can't replace
json_get(x, y) is null
withNOT json_contains(x, y)
becauseSo we need a new method
json_contains_not_null
which is true if the value exists in the JSON, but is notnull
.Then we can do the substitution.
The text was updated successfully, but these errors were encountered: