-
Notifications
You must be signed in to change notification settings - Fork 182
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
Differentiate between missing values and null values #204
Comments
Just came across this myself. Would a PR be welcome? |
@zalmane @ntextreme3 you might be interested to learn that JMESPath Community supports this scenario - albeit currently in an indirect way. |
That's completely different that what the OP asked... The questions was how search can support None values as well, currently they are discarded. |
Hum 🤔 then maybe I’m missing something…
If you need more downstream processing, you can definitely distinguish between missing values vs
Sure, this is kludgey, but that is definitely something that’s possible today. |
I'm trying to do a search like:
If the
col2
element did not exist, I think the current behavior makes sense. However, I think thatsearch
by default shouldn't also do filtering.For reference:
jmespath.py/jmespath/visitor.py
Lines 134 to 138 in 599b0f7
jmespath.py/jmespath/visitor.py
Lines 279 to 280 in 599b0f7
Thoughts ?
The text was updated successfully, but these errors were encountered: