loads provides the results of load jobs. This view is supported from StarRocks v3.1 onwards.
loads shows a load job to users who hold at least one privilege on each table that the job loads data into, or the OPERATE privilege. Unless you hold the SELECT privilege on each of those tables, the fields that can reveal the loaded data are hidden: TRACKING_SQL, REJECTED_RECORD_PATH, and PROPERTIES are NULL, ERROR_MSG keeps only the failure type of a Broker Load or INSERT job (for example, type:ETL_QUALITY_UNSATISFIED) and is NULL for other jobs, and RUNTIME_DETAILS omits the load IDs, the backends, and the transaction error message. The root user can see all load jobs in full. A 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 loads:
Note
From v4.2 onwards,
CREATE_TIME, LOAD_START_TIME, LOAD_COMMIT_TIME, and LOAD_FINISH_TIME carry millisecond precision. The sub-second part is rendered as six fractional digits, of which the last three are always 0 (for example, 2023-07-24 14:58:58.123000). Predicates on these fields, such as LOAD_FINISH_TIME <= '2023-07-24 14:58:58', are also evaluated at millisecond precision. In earlier versions, these fields are second-precision (format yyyy-MM-dd HH:mm:ss).
RUNTIME_DETAILS
- Universal metrics:
- Specific metrics for Broker Load, INSERT INTO, and Spark Load:
- Specific metrics for Routine Load:
- Specific metrics for Stream Load:
PROPERTIES
- Specific properties for Broker Load, INSERT INTO, and Spark Load:
- Specific properties for Routine Load: