Skip to main content
The SHOW INSPECT ERRORS displays errors recorded by an job. SHOW INSPECT ERRORS shows results for a single INSPECT job at a time; it does not aggregate results across jobs. By default, it returns errors from the most recent completed, successful INSPECT job for the specified table. To view errors from a specific job, 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 job ID returned by the .
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
job\_idThe ID of the job that detected the issue.
error\_typeThe type of inconsistency detected. For more information, see Error types.
aostThe timestamp used by the validation (if any).
database\_nameThe containing the schema object with an issue.
schema\_nameThe containing the object with an issue.
object\_nameThe or with an issue.
primary\_keyThe of the row involved in the issue, if applicable.
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 .

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 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