Skip to content

Fix NaN and "None" string serialization in table data API respons#176

Merged
glaubervila merged 1 commit into
mainfrom
175-bug-nan-json
Jun 30, 2026
Merged

Fix NaN and "None" string serialization in table data API respons#176
glaubervila merged 1 commit into
mainfrom
175-bug-nan-json

Conversation

@glaubervila

Copy link
Copy Markdown
Contributor

Replace convert_bigints_to_string with a unified sanitize_rows method that handles three data quality issues in the /data endpoint:

  • Float NaN/Infinity values are now returned as null instead of breaking JSON serialization
  • String literal "None" values (e.g. from TEXT columns) are now returned as null instead of the string "None"
  • meta_id, meta_ra, meta_dec fields no longer convert None to the string "None" when the UCD column is absent

Replace convert_bigints_to_string with a unified sanitize_rows method
that handles three data quality issues in the /data endpoint:

- Float NaN/Infinity values are now returned as null instead of
  breaking JSON serialization
- String literal "None" values (e.g. from TEXT columns) are now
  returned as null instead of the string "None"
- meta_id, meta_ra, meta_dec fields no longer convert None to the
  string "None" when the UCD column is absent
@glaubervila
glaubervila merged commit 010d8d2 into main Jun 30, 2026
0 of 2 checks passed
@glaubervila
glaubervila deleted the 175-bug-nan-json branch June 30, 2026 16:53
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.

Bug: Valores NaN em colunas float causam erro de serialização JSON

1 participant