Skip to main content
SHOW ROUTINE LOAD shows the execution information of Routine Load jobs.

You can manage Routine Load jobs that run on tables only as a user who has the INSERT privilege on those tables. If you do not have the INSERT privilege, follow the instructions provided in GRANT to grant the INSERT privilege to the user that you use to connect to your cluster. SHOW ROUTINE LOAD displays a Routine Load job if you hold at least one privilege on its target table, or the OPERATE privilege. Unless you hold the SELECT privilege on the target table, JobProperties, DataSourceProperties, CustomProperties, ErrorLogUrls, TrackingSQL, and OtherMsg are NULL, and ReasonOfStateChanged keeps only the error code. The root user can see all Routine Load jobs in full. A Routine Load job whose target table has been dropped is shown in full only to the root user, and with these fields hidden to users with the OPERATE privilege.

Syntax

Tip You can add the \G option to the statement (such as SHOW ROUTINE LOAD FOR <job_name>\G) to vertically display the return result rather than in the usual horizontal table format.

Parameters

Output

Examples

If a load job is successfully started and stays in the RUNNING state, the returned result might be as follows:
If a load job is in the PAUSED or CANCELLED state due to exceptions, you can troubleshoot based on the ReasonOfStateChanged, ErrorLogUrls, TrackingSQL, and OtherMsg fields in the return result.