FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Investigate if decimal context can be set to match spanner numeric limits · Issue #15946 · googleapis/google-cloud-python · GitHub

Investigate if decimal context can be set to match spanner numeric limits #15946

Description

Since decimalField/numeric support was added in googleapis/python-spanner-django#620 some tests were skipped. One of those tests "db_functions.math.test_degrees.DegreesTests.test_decimal", is failing because spanner numeric fields really aren't precise enough. Computed server-side, spanner's "degrees" isn't almostEqual to Decimal(math.degrees(...)). But what if we changed the precision in the decimal context?

Investigate if we can change the decimal context, so that the precision in the context matches spanner's numeric scale limit before doing any numeric ops.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the Spanner API.priority: p3Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL