Open falexwolf opened 2 days ago
expression have length zero here https://github.com/laminlabs/lamindb/blob/ade8f08367a082969b9b1b35d871039bf5285240/lamindb/_query_set.py#L325
so filter
returns self
, but self
here is the the query set constructed so https://github.com/laminlabs/lamindb/blob/ade8f08367a082969b9b1b35d871039bf5285240/lamindb/_record.py#L246
QuerySet(model=cls, using=_using_key)
I think it is equivalent to Record.objects.filter()
Thanks for clarifying! The whole thing should error and ask for passing an expression via Q or kwargs.
Should i fix this?
You're very welcome to fix it, of course! :D
Why does this happen?
Doesn't happen on the Django level