Skip to main content
The 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 run SHOW INSPECT ERRORS, the user must have:
  • The INSPECT system-level , which is required to run the .

Synopsis

show_inspect_errors syntax diagram

Parameters

ParameterSyntaxDescription
opt_for_table_clauseFOR TABLE {table_name}Optional. Show errors for the specified .
opt_for_job_clauseFOR 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_detailsWITH DETAILSOptional. 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.
FieldDescription
error_typeThe type of inconsistency detected. For more information, see Error types.
database_nameThe containing the schema object with an issue.
schema_nameThe containing the object with an issue.
table_nameThe with an issue.
primary_keyThe of the row involved in the issue, if applicable.
job_idThe ID of the job that detected the issue.
aostThe timestamp used by the validation (if any).
detailsThis column is present only if WITH DETAILS is specified. It contains structured metadata () describing the issue.

Error types

The INSPECT implementation reports the following error_type values:
Error typeMeaning
missing_secondary_index_entryA row in the is missing a corresponding entry in a . If you see this error, .
dangling_secondary_index_entryA entry exists, but the referenced row does not. If you see this error, .
internal_errorAn 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_mismatchThe 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_valueINSPECT 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 recent INSPECT job, issue the following statement:

Show errors for a specific inspection job

When you issue the , a NOTICE message is returned to the client showing the job ID, e.g.,
To show errors for a job, issue the following statement:
If returns an 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:
Note that if you issue a job ID for a nonexistent job, you will see the same output as for a job with no errors:

Show errors with details

See also