Open ahmedabu98 opened 9 months ago
We may want to simply not work on this, as Streaming Inserts should not be used in favor of the storage api
In general, streaming inserts issues will not be prioritized, as the storage write api is preferred for streaming writes to BQ.
What happened?
When writing to BQ with streaming inserts, we do some serializing to JSON and int values can have a maximum value of < 2^64. Writing ints of higher value than this results in a
TypeError: Integer exceeds 64-bit range
(as opposed to floats, which can have much higher value).When writing a whole number to a float field, the IO treats it as an int during serialization. This becomes a problem when trying to right a large whole number as a float because it results in the error mentioned above.
Reproduce with this code:
Instead of that float value, the following works:
"float": 18446744073709551615
(below the 2^64 max in value)"float": 18446744073709551616.0
(explicitly setting as a float)Stacktrace:
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components