fix(recommend): cad_buildings.floors is INTEGER not TEXT (HOTFIX) #218

Merged
lekss361 merged 1 commit from fix/recommend-mix-floors-integer into main 2026-05-16 16:00:24 +00:00

1 commit

Author SHA1 Message Date
lekss361
fbb76812f4 fix(recommend): cad_buildings.floors is INTEGER, not TEXT
PROD 500 on /api/v1/analytics/recommend/mix:
  psycopg.errors.UndefinedFunction: operator does not exist: integer ~ unknown
  LINE 19: AND ((cb.floors ~ '^[0-9]+$' AND cb.f...

_district_cadastre_baseline use regex \ on cb.floors. Schema is INTEGER
(verified information_schema), so the regex defence against text values
('1-2', '2-3' etc) is misplaced — simplify to floors >= 3 with NULL safety
via OR purpose ILIKE '%многокв%' fallback.
2026-05-16 18:29:35 +03:00