We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38301bd commit 409cd24Copy full SHA for 409cd24
1 file changed
sql_redis/translator.py
@@ -416,6 +416,10 @@ def _build_geo_filter_expression(
416
return f"@{alias} >= 0"
417
418
# Convert radius to meters if needed (geodistance() returns meters)
419
+ # At this point, radius is guaranteed to be a float (BETWEEN case handled above)
420
+ if isinstance(geo_cond.radius, tuple):
421
+ # Shouldn't reach here, but handle gracefully
422
+ return f"@{alias} >= 0"
423
radius_m = self._convert_to_meters(geo_cond.radius, geo_cond.unit)
424
425
if geo_cond.operator == ">":
0 commit comments