-
Notifications
You must be signed in to change notification settings - Fork 56
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
Throw specific exceptions when attempting filters on empty lists #933
Comments
I tried creating a new feature branch to address this issue but I ran into this during the process: (Edit for context):
reformatted weaviate/collections/filters.py All done! ✨ 🍰 ✨ don't commit to branch...................................................Passed
Static checking ./weaviate: pyright..................................................................Failed
/Users/hurrikane/Desktop/GitHub/Open Source Repos/weaviate-python-client/weaviate/collections/collection.py |
Currently, passing an empty list to any of the methods available on
wvc.query.Filter
throws index out of range errors.Instead, we should catch this edge case and throw a specific exception notifying that filtering empty lists is not supported at all by Weaviate, as first encountered here: #929
The text was updated successfully, but these errors were encountered: