10000 Investigate if decimal context can be set to match spanner numeric limits · Issue #627 · googleapis/python-spanner-django · GitHub
[go: up one dir, main page]

Skip to content
Investigate if decimal context can be set to match spanner numeric limits #627
Open
@vi3k6i5

Description

@vi3k6i5

Since decimalField/numeric support was added in #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.

Metadata

Metadata

Assignees

Labels

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

    0