Skip to content

fix: query operator $exists does not work correctly with tags (#911)#923

Merged
JoanFM merged 3 commits intodocarray:mainfrom
marcosbodio:fix-array-lookup-911
Dec 12, 2022
Merged

fix: query operator $exists does not work correctly with tags (#911)#923
JoanFM merged 3 commits intodocarray:mainfrom
marcosbodio:fix-array-lookup-911

Conversation

@marcosbodio
Copy link
Copy Markdown
Contributor

See #911.

  • Fix behaviour of $exists operator when applied to fields in tags: {'tags__x': {'$exists': True}} returns True when tags.x is not None
  • Update documentation accordingly.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 9, 2022

Codecov Report

Base: 88.06% // Head: 83.96% // Decreases project coverage by -4.10% ⚠️

Coverage data is based on head (906405b) compared to base (d9e5b26).
Patch coverage: 71.42% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #923      +/-   ##
==========================================
- Coverage   88.06%   83.96%   -4.11%     
==========================================
  Files         138      149      +11     
  Lines        7154     7675     +521     
==========================================
+ Hits         6300     6444     +144     
- Misses        854     1231     +377     
Flag Coverage Δ
docarray 83.96% <71.42%> (-4.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/array/queryset/lookup.py 78.83% <71.42%> (+0.15%) ⬆️
docarray/array/mixins/reduce.py 26.92% <0.00%> (-73.08%) ⬇️
docarray/array/mixins/io/pushpull.py 23.07% <0.00%> (-70.09%) ⬇️
docarray/array/mixins/io/csv.py 23.68% <0.00%> (-65.79%) ⬇️
docarray/array/mixins/io/dataframe.py 41.66% <0.00%> (-58.34%) ⬇️
docarray/array/mixins/io/common.py 26.31% <0.00%> (-42.11%) ⬇️
docarray/array/mixins/plot.py 28.13% <0.00%> (-39.83%) ⬇️
docarray/array/mixins/group.py 63.15% <0.00%> (-26.32%) ⬇️
docarray/array/mixins/io/json.py 68.75% <0.00%> (-25.00%) ⬇️
docarray/array/storage/annlite/backend.py 84.61% <0.00%> (-12.83%) ⬇️
... and 23 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Member

@JohannesMessner JohannesMessner left a comment

Choose a reason for hiding this comment

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

Looks good! just some minor tweaks to the documentation wording.

Signed-off-by: Johannes Messner <[email protected]>
@JoanFM JoanFM merged commit 35f68f9 into docarray:main Dec 12, 2022
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.

4 participants