-
Notifications
You must be signed in to change notification settings - Fork 33
Labels
api: spannerIssues related to the googleapis/python-spanner-sqlalchemy API.Issues related to the googleapis/python-spanner-sqlalchemy API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- Programming language: Python
- OS: macOS
- Language runtime version: 3.12
- Package version: 1.14.0
Steps to reproduce
- Try to insert a dict in a JSON type column with some specific float values, e.g. 13.7391432
- 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.Issues related to the googleapis/python-spanner-sqlalchemy API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.