Enterprise only
A job is not a catalog object (it has no schema and is not
namespaced), but it has its own SQL statements, grouped here the same way
the catalog objects are.
SHOW JOBS
list_jobs. FOR TABLE filters that listing by the current namespace’s table name. FOR JOB
lists the parent’s direct child jobs using the REST API’s child model.
Child rows expose their ID, kind, phase, row progress and attempt; unknown
values remain NULL. Children are read-only diagnostic identities.
FOR JOB defaults to 1,000 children and accepts LIMIT from 1 to 10,000,
following backend continuation pages up to that limit. Child history can be
available, not_yet_recorded, or unavailable after archival.
A job you completed weeks ago eventually stops appearing here — it was
archived, not deleted. Two deployment-scheduled jobs sweep the registry on a
per-database schedule:
job_registry_archive moves terminal jobs out of the
active registry into archival storage, and job_events_export separately
copies terminal jobs’ event histories into a curated system table for
metering, where the deployment enables it. A job’s events can survive in
that exported table after the job itself is archived.SHOW JOB EVENTS
kind and details expose the REST API’s
allowlisted diagnostics; raw parent payloads are excluded.
DESCRIBE JOB
DESCRIBE JOB returns one UTF-8 description column. TEXT is the default
and renders labeled metadata; JSON returns the same object as JSON text for
clients to parse. Both contain job_id, job_type, job_state, reported
progress, and the successful operation’s result, alongside any timing
profile. Both work while the job runs, when result is null. Compaction counters describe
committed work only in the result; progress counters describe observed
execution work. Data prewarm results identify the pinned table version and
reported executor work. Unavailable measurements remain absent or null.
SHOW ERRORS
Errors and limits
Without
FOR JOB this surveys recent failures and stops at 32 jobs. When the
listing stops at your LIMIT, the message says so. Narrow with FOR JOB
rather than raising the limit blindly.
SHOW JOBS, SHOW JOB EVENTS, DESCRIBE JOB and SHOW ERRORS require
system USAGE, as do the equivalent REST diagnostics. Explicit table
listings additionally use the table-list authorization policy.PAUSE JOB
RESUME JOB
CANCEL JOB
pausing while workers drain, and resume
may return still_pausing until drain finishes.
PAUSE JOB, RESUME JOB and CANCEL JOB require system OPERATE — a
broader privilege than the USAGE that reading job state needs, since
these change what a running job does.Cancellation is a request, matching the SDK’s
cancel(): it does not guarantee the job stops before
doing more work, and asking twice or cancelling a finished job does nothing.
CANCEL JOB itself can be unavailable on an Enterprise cluster with no job registry
configured, which is a deployment condition rather than something you can work
around from SQL.Compatibility
SHOW JOBS FOR <table> (without the TABLE keyword), SHOW JOB SUMMARY,
and SHOW JOB SPLITS retain their existing behavior as compatibility forms.
Prefer SHOW JOBS FOR TABLE/FOR JOB and DESCRIBE JOB going forward. See
SHOW JOBS FOR JOB for the per-split diagnostics
form — each split is a child job, listed with its own phase and progress.
See Watching a refresh for SHOW JOB SPLITS’s
full column reference and a DESCRIBE JOB example.
What to read next
Query and job
The handle these statements are the SQL view of.
Intelligent Auto-Maintenance
A job type the deployment schedules on its own, without a call.