Fixes
Fixes for common sports data pipeline problems.
Each page explains why the problem happens and shows the fix in code, tested against a live API.
- Player ID mismatch: joining box scores and odds. Why a join of player stats and odds returns zero rows, and how to fix it with per-brand ids, a name and team match, and a crosswalk table you own.
- Sports API pagination and timeouts: retry safely. Pull a full season without duplicates or double charges. Use limit, offset and next_offset, retry with a stable x-request-id, and re-pull a date range.
- UTC timezone errors in closing line timestamps. Fix wrong closing lines caused by UTC and local time mix-ups. How captured_at, starts_at and minutes_before_scheduled_start work, with DST examples.