You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Trying to insert a NaN using Client.insert_rows fails. I tracked it down to
def _float_to_json(value):
"""Coerce 'value' to an JSON-compatible representation."""
return value if value is None else float(value)
which should return "NaN" to be compatible with the REST API. Currently it returns an actual nan float value. Probably similar issues occur with other non-finite floats.
Trying to insert a NaN using
Client.insert_rowsfails. I tracked it down towhich should return "NaN" to be compatible with the REST API. Currently it returns an actual nan float value. Probably similar issues occur with other non-finite floats.
Environment details
Python 3.6.8pip 21.1google-cloud-bigqueryversion:2.20.0Steps to reproduce
Code example
Stack trace