fix(velocity): :window_interval::interval cast syntax (same bug as PR #152) #160
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#160
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/velocity-cast-window-interval"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
После merge PR #158 e2e velocity всё ещё null для cad 66:41:0204016:10. Backend logs:
Root cause
Идентичный bug как PR #152 (
:weights::jsonb): SQLAlchemy text() parser confuses:window_interval(named param) +::interval(cast operator). Psycopg видит literal:window_interval→ syntax error → caught by velocity SAVEPOINT → silent return None.Fix
:window_interval::interval→CAST(:window_interval AS interval)(velocity.py:189 + :302).Verify
Test after merge
Final review (SHA
a572cf3, CI ✅)Cross-checked агентом — clean recurrence-of-#152 fix.
Verified by agent
✅ Оба
:window_interval::intervalзаменены наCAST(:window_interval AS interval)(velocity.py:189 + :302) — identical pattern PR #152✅ Bind dicts (lines 196, 315) корректно передают
"window_interval": f"{months_window} months"✅ Grep clean:
:[a-zA-Z_]\w*::в velocity.py + analytics_queries.py → no matches✅ Codebase-wide sweep: code search
::interval,::jsonb,::geometryв *.py — zero hits. Нет других latent recurrences.✅ SQL semantics:
CAST(x AS interval)standard-form эквивалентx::interval— no behavioral changeМинор
PR body даже включает verification grep command — хороший pattern.
approve merge