Reference documentation and code samples for the Google BigQuery v2 API enum BigQueryInsertStatus.
Specifies the status of an insert attempt depending on the validity of the rows.
Note that the validity of a row is determined by whether AllowUnknownFields
is set to true or not.
If AllowUnknownFields is set to true, then rows containing fields
that do not match any on the destination table will, otherwise, be considered valid rows.
All matching fields in these rows will be inserted, while unmatching fields will be silently skipped.
If AllowUnknownFields is not set to true, then rows containing fields
that do not match any on the destination table will be considered invalid and won't be inserted.
All rows were inserted successfully.
This only happens if all rows are valid rows.
NoRowsInserted
No rows were inserted. In that case the BigQueryInsertResults
returned by the insert operation will contain error information about the invalid rows.
This can happen when:
No rows are valid.
SkipInvalidRows is not set to true and at least
one row is invalid.
SomeRowsInserted
Some rows were inserted but not others. In that case the BigQueryInsertResults
returned by the insert operation will contain error information about the rows that were not inserted.
This happens only when SkipInvalidRows is set to true and some,
but not all of the rows, are invalid.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This document provides reference documentation for the `BigQueryInsertStatus` enum within the Google BigQuery v2 API, detailing the status of insert attempts based on row validity."],["The `BigQueryInsertStatus` enum includes three possible statuses: `AllRowsInserted`, `NoRowsInserted`, and `SomeRowsInserted`, which reflect the outcome of the insert operation."],["The validity of rows during insertion is influenced by the `AllowUnknownFields` setting; when set to true, unmatched fields are skipped, and when false, they invalidate the entire row."],["If `SkipInvalidRows` is set to true and some, but not all, rows are invalid, the status will be `SomeRowsInserted` with detailed error information available in `BigQueryInsertResults`."],["The document shows the latest version of the API is 3.11.0 and there is documentation available for versions 3.0.0 all the way up to 3.11.0, with documentation also available for some version 2 iterations such as 2.2.0, 2.3.0, and 2.4.0."]]],[]]