bigquery: Batch load example does not handle errors correctly #2551
Labels
api: bigquery
Issues related to the BigQuery API.
samples
Issues that are directly related to samples.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Currently the Batch load example just logs the AppendResult, but ignores the Error/RowErrors fields. This makes the log look like it succeeded and there were no issues appending your rows. Proposing that the example should be checking the Error field, if there's content, then log all errors relating to the appended rows. E.g. something like:
The text was updated successfully, but these errors were encountered: