Skip to content

Allow wide_number_mode parsing of JSON data #735

@anor4k

Description

@anor4k

Environment details

  • Programming language: Python
  • OS: macOS
  • Language runtime version: 3.12
  • Package version: 1.14.0

Steps to reproduce

  1. Try to insert a dict in a JSON type column with some specific float values, e.g. 13.7391432
  2. Spanner raises an error

Apparently this is expected per the spanner specification, but can be worked around by using PARSE_JSON(..., wide_number_mode=>'round'). Would love to be able to always round these when inserting by passing a config to the SQLAlchemy column.

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/python-spanner-sqlalchemy 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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions