Skip to content

Fix timeseries sync crash on NULL/NaN values#1

Merged
velazcod merged 1 commit into
velazcod:masterfrom
zaheerm:fix-timeseries-null-nan-crash
Mar 25, 2026
Merged

Fix timeseries sync crash on NULL/NaN values#1
velazcod merged 1 commit into
velazcod:masterfrom
zaheerm:fix-timeseries-null-nan-crash

Conversation

@zaheerm
Copy link
Copy Markdown

@zaheerm zaheerm commented Mar 5, 2026

SQLAlchemy autoflush was triggering NOT NULL constraint violations when merging timeseries entries with NaN float values. Wrap the batch loop in session.no_autoflush and add math.isnan() check alongside the existing None check to skip invalid entries before they reach the database.

SQLAlchemy autoflush was triggering NOT NULL constraint violations when
merging timeseries entries with NaN float values. Wrap the batch loop in
session.no_autoflush and add math.isnan() check alongside the existing
None check to skip invalid entries before they reach the database.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@velazcod velazcod merged commit df13230 into velazcod:master Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants