redis-om-python
redis-om-python copied to clipboard
Set membership (IN, contains) not working for numeric types
in FindQuery.resolve_value() the case for Operators.IN and Operators.NOT_IN is not considered.
- result is syntax error
- recommend having an
else: raise ValueErroron this sort of case statement code
Related concern: how do I search for a range of numeric values?
-
doing
field >= 200andfield < 213works, but is done as:NUMERIC {200.000000 <= @kind <= inf} NUMERIC {-inf <= @kind <= 213.000000}
-
when I can do it manually and get it explained as:
NUMERIC {200.000000 <= @kind <= 213.000000}
Maybe there is no difference in execute time.