GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Client.insert_rows throws exception when coercing string to float from release 2.21.0 · Issue #818 · googleapis/python-bigquery
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Client.insert_rows throws exception when coercing string to float from release 2.21.0 #818Copy link Copy link Closed Labels api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionThe behaviour of In 2.20.0, where the schema defines a field to be of type In 2.21.0, where the schema defines a field to be of type I've tracked this down to #728 , where a check is added for def _float_to_json(value): """Coerce 'value' to an JSON-compatible representation.""" if value is None: return None elif math.isnan(value) or math.isinf(value): return str(value) else: return float(value) Environment details
Steps to reproduce
Code examplefrom google.cloud.bigquery import Client client = Client(project='redacted') client.insert_rows(table=client.get_table('python_test.test'), rows=[{'bar': "0.01"}]) Stack traceActivity
MetadataMetadataAssigneesLabelsapi: bigqueryIssues related to the googleapis/python-bigquery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |