bigquery: Logging field name on error in null value setting to struct field #2612
Labels
api: bigquery
Issues related to the BigQuery API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
An error occurs when the null value of bigquery set to the primitive type field of struct of go, and the following log appears.
google-cloud-go/bigquery/value.go
Line 111 in c4d1534
this error log is abstract and it is difficult to debug.Especially when the number of fields in the struct is large, it takes time to find the offending field.
Describe the solution you'd like
Specifically output to the log which field name(or tag name) the error occurred in mapping.
For example, the following log.
NULL Value cannot assignable to struct field any_field_name of type int.
Describe alternatives you've considered
Add logs to the following parts of the module
google-cloud-go/bigquery/value.go
Line 430 in c4d1534
The text was updated successfully, but these errors were encountered: