google-cloud-go icon indicating copy to clipboard operation
google-cloud-go copied to clipboard

Encode `civil.Time` with microsecond precision.

Open mattmoor opened this issue 3 years ago • 0 comments

This truncates the precision of civil.[Date]Time from nanoseconds to microseconds because that is the precision limit of BigQuery, which these types are intended to work with.

In particular the BigQuery data transfer service rejects records that use these types for JSON encoding today due to the extra precision.

Fixes: https://github.com/googleapis/google-cloud-go/issues/6409

mattmoor avatar Jul 24 '22 17:07 mattmoor