SHOW-STREAM-LOAD
SHOW-STREAM-LOADβ
Nameβ
SHOW STREAM LOAD
Descriptionβ
This statement is used to display the execution of the specified Stream Load task
grammar:
SHOW STREAM LOAD
[FROM db_name]
[
WHERE
[LABEL [ = "your_label" | LIKE "label_matcher"]]
[STATUS = ["SUCCESS"|"FAIL"]]
]
[ORDER BY...]
[LIMIT limit][OFFSET offset];
illustrate:
- By default, BE does not record Stream Load records. If you want to view records that need to be enabled on BE, the configuration parameter is:
enable_stream_load_record=true
. For details, please refer to BE Configuration Items - If db_name is not specified, the current default db is used
- If LABEL LIKE is used, it will match the tasks whose label of the Stream Load task contains label_matcher
- If LABEL = is used, it will match the specified label exactly
- If STATUS is specified, matches STREAM LOAD status
- You can use ORDER BY to sort on any combination of columns
- If LIMIT is specified, limit matching records are displayed. Otherwise show all
- If OFFSET is specified, the query results are displayed starting at offset offset. By default the offset is 0.
Exampleβ
-
Show all Stream Load tasks of the default db
SHOW STREAM LOAD;
-
Display the Stream Load task of the specified db, the label contains the string "2014_01_02", and display the oldest 10
SHOW STREAM LOAD FROM example_db WHERE LABEL LIKE "2014_01_02" LIMIT 10;
-
Display the Stream Load task of the specified db and specify the label as "load_example_db_20140102"
SHOW STREAM LOAD FROM example_db WHERE LABEL = "load_example_db_20140102";
-
Display the Stream Load task of the specified db, specify the status as "success", and sort by StartTime in descending order
SHOW STREAM LOAD FROM example_db WHERE STATUS = "success" ORDER BY StartTime DESC;
-
Display the import tasks of the specified db and sort them in descending order of StartTime, and display 10 query results starting from offset 5
SHOW STREAM LOAD FROM example_db ORDER BY StartTime DESC limit 5,10;
SHOW STREAM LOAD FROM example_db ORDER BY StartTime DESC limit 10 offset 5;
Keywordsβ
SHOW, STREAM, LOAD