SHOW INSPECT ERRORS displays errors recorded by an job, including background INSPECT jobs triggered by row count validation.
SHOW INSPECT ERRORS shows results for a single INSPECT job at a time; it does not aggregate results across jobs. To view errors from a specific job, including an inspect_job_id returned by , use SHOW INSPECT ERRORS FOR JOB {job_id}.
Required privileges
To runSHOW INSPECT ERRORS, the user must have:
- The
INSPECTsystem-level , which is required to run the .
Synopsis
Parameters
| Parameter | Syntax | Description |
|---|---|---|
opt_for_table_clause | FOR TABLE {table_name} | Optional. Show errors for the specified . |
opt_for_job_clause | FOR JOB {job_id} | Optional. Show errors produced by the specified job ID, such as a job ID returned by the or the inspect_job_id returned by . |
opt_with_details | WITH DETAILS | Optional. Include structured error metadata from the details column () in the results. |
Response
SHOW INSPECT ERRORS returns the following columns, with one row per issue detected.
| Field | Description |
|---|---|
error_type | The type of inconsistency detected. For more information, see Error types. |
database_name | The containing the schema object with an issue. |
schema_name | The containing the object with an issue. |
table_name | The with an issue. |
primary_key | The of the row involved in the issue, if applicable. |
job_id | The ID of the job that detected the issue. |
aost | The timestamp used by the validation (if any). |
details | This column is present only if WITH DETAILS is specified. It contains structured metadata () describing the issue. |
Error types
TheINSPECT implementation reports the following error_type values:
| Error type | Meaning |
|---|---|
missing_secondary_index_entry | A row in the is missing a corresponding entry in a . If you see this error, . |
dangling_secondary_index_entry | A entry exists, but the referenced row does not. If you see this error, . |
internal_error | An error occurred while INSPECT was running its validation queries (for example, an ). The cause of this error type is usually not related to data validity. Investigate the underlying job error details and cluster logs to determine the cause before deciding whether to . |
row_count_mismatch | The row count observed by INSPECT did not match the expected row count. This can occur in the post-import validation job triggered by . Use WITH DETAILS to compare the expected and actual counts. |
duplicate_unique_value | INSPECT found a duplicate value in a supported uniqueness check. Use WITH DETAILS to see the index_name and remote_regions metadata for the duplicate. |
Examples
Show the latest errors for a table
To see the errors found by the most recentINSPECT job, issue the following statement:
Show errors for a specific inspection job
When you issue the , aNOTICE message is returned to the client showing the job ID, e.g.,
inspect_job_id value for its post-import validation job, you can use that value with SHOW INSPECT ERRORS FOR JOB {inspect_job_id} as well.
If there are no errors associated with that job ID, the output is:

