SHOW-STREAM-LOAD
Name
SHOW STREAM LOAD
Description
This statement is used to display the execution of the specified Stream Load task
grammar:
1. SHOW STREAM LOAD
2. [FROM db_name]
3. [
4. WHERE
5. [LABEL [ = "your_label" | LIKE "label_matcher"]]
6. [STATUS = ["SUCCESS"|"FAIL"]]
7. ]
8. [ORDER BY...]
9. [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
1. SHOW STREAM LOAD;
2. Display the Stream Load task of the specified db, the label contains the string “2014_01_02”, and display the oldest 10
1. SHOW STREAM LOAD FROM example_db WHERE LABEL LIKE "2014_01_02" LIMIT 10;
3. Display the Stream Load task of the specified db and specify the label as “load_example_db_20140102”
1. SHOW STREAM LOAD FROM example_db WHERE LABEL = "load_example_db_20140102";
4. Display the Stream Load task of the specified db, specify the status as “success”, and sort by StartTime in descending order
1. SHOW STREAM LOAD FROM example_db WHERE STATUS = "success" ORDER BY StartTime DESC;
5. 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
1. SHOW STREAM LOAD FROM example_db ORDER BY StartTime DESC limit 5,10;
2. SHOW STREAM LOAD FROM example_db ORDER BY StartTime DESC limit 10 offset 5;
Keywords
1. SHOW, STREAM, LOAD
