Skip to main content
Version: 26.2 Preview

routine_load_jobs

routine_load_jobs provides information about routine load jobs.

routine_load_jobs shows a routine load job to users who hold at least one privilege on its target table, or the OPERATE privilege. Unless you hold the SELECT privilege on the target table, JOB_PROPERTIES, DATA_SOURCE_PROPERTIES, CUSTOM_PROPERTIES, ERROR_LOG_URLS, TRACKING_SQL, and OTHER_MSG are NULL, and REASONS_OF_STATE_CHANGED 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.

The following fields are provided in routine_load_jobs:

FieldDescription
IDID of the routine load job.
NAMEName of the routine load job.
CREATE_TIMECreation time of the routine load job.
PAUSE_TIMEPause time of the routine load job.
END_TIMEEnd time of the routine load job.
DB_NAMEName of the database to which the routine load job belongs.
TABLE_NAMEName of the table to which the data is loaded.
STATEState of the routine load job.
DATA_SOURCE_TYPEType of the data source.
CURRENT_TASK_NUMNumber of current tasks.
JOB_PROPERTIESProperties of the routine load job.
DATA_SOURCE_PROPERTIESProperties of the data source.
CUSTOM_PROPERTIESCustom properties of the routine load job.
STATISTICSStatistics of the routine load job.
PROGRESSProgress of the routine load job.
REASONS_OF_STATE_CHANGEDReasons for state changes.
ERROR_LOG_URLSURLs of error logs.
TRACKING_SQLSQL statement for tracking.
OTHER_MSGOther messages.
LATEST_SOURCE_POSITIONLatest source position in JSON format.
OFFSET_LAGOffset lag in JSON format.
TIMESTAMP_PROGRESSTimestamp progress in JSON format.