Skip to content

Unable to insert row in Spanner where column type is FLOAT64 and value is integer #2048

@modeswitch

Description

@modeswitch

My table has a FLOAT64 column, however some of my values happen to be integers (no fractional part). When I try to write these values, I get an error Invalid value for column X in table Y: Expected FLOAT64. If I add 0.0001 to each value before writing then the inserts are successful.

Metadata

Metadata

Labels

api: spannerIssues related to the Spanner API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to 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