This statement is used to display the running status of Routine Load jobs. You can view the status information of either a specific job or all jobs.
SHOW [ALL] ROUTINE LOAD [FOR <jobName>];
1. [ALL]
Optional parameter. If specified, all jobs (including stopped or cancelled jobs) will be displayed. Otherwise, only currently running jobs will be shown.
2. [FOR <jobName>]
Optional parameter. Specifies the job name to view. If not specified, all jobs under the current database will be displayed.
Supports the following formats:
<job_name>: Shows the job with the specified name in the current database<db_name>.<job_name>: Shows the job with the specified name in the specified database
| Field Name | Description |
|---|---|
| Id | Job ID |
| Name | Job name |
| CreateTime | Job creation time |
| PauseTime | Most recent job pause time |
| EndTime | Job end time |
| DbName | Corresponding database name |
| TableName | Corresponding table name (shows ‘multi-table’ for multiple tables) |
| IsMultiTbl | Whether it's a multi-table job |
| State | Job running status |
| DataSourceType | Data source type: KAFKA |
| CurrentTaskNum | Current number of subtasks |
| JobProperties | Job configuration details |
| DataSourceProperties | Data source configuration details |
| CustomProperties | Custom configurations |
| Statistic | Job running statistics |
| Progress | Job running progress |
| Lag | Job delay status |
| ReasonOfStateChanged | Reason for job state change |
| ErrorLogUrls | URLs to view filtered data that failed quality checks |
| OtherMsg | Other error messages |
Users executing this SQL command must have at least the following permission:
| Privilege | Object | Notes |
|---|---|---|
| LOAD_PRIV | Table | SHOW ROUTINE LOAD requires LOAD permission on the table |
State descriptions:
Progress description:
Lag description:
Show all routine load jobs (including stopped or cancelled ones) named test1
SHOW ALL ROUTINE LOAD FOR test1;
Show currently running routine load jobs named test1
SHOW ROUTINE LOAD FOR test1;
Show all routine load jobs (including stopped or cancelled ones) in example_db. Results can be one or multiple rows.
use example_db; SHOW ALL ROUTINE LOAD;
Show all currently running routine load jobs in example_db
use example_db; SHOW ROUTINE LOAD;
Show currently running routine load job named test1 in example_db
SHOW ROUTINE LOAD FOR example_db.test1;
Show all routine load jobs (including stopped or cancelled ones) named test1 in example_db. Results can be one or multiple rows.
SHOW ALL ROUTINE LOAD FOR example_db.test1;