I encounter an InvalidRequest exception something like this:
"InvalidRequest: Error from server: code=2200 [Invalid query] message="Invalid STRING constant (True) for "<boolean_field_name>" of type boolean"
From using <Model>.objects.filter(<boolean_field_name>__in=[True, False])
I tried to same query using cqlsh and had no problems, except only if I used 'True' and 'False' for querying.
Thus, I suspect that the filter in cassandra.cqlengine.query has the query parameters translated into string for me which is wrong.
Can you share your model definition? I tried an example here and it worked as expected:
I reproduced the error using this code, note that the boolean is a partition key:
I'm sorry I forgot to mention the '__in' filter operator in the earlier code.
Thanks for the clarification. I see the issue with the updated example.