Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@vi3k6i5

Description

@vi3k6i5
Issue body actions

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.Issues related to the googleapis/python-spanner-django API.priority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: questionRequest for information or clarification. Not an issue.Request 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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.