2.6 KiB
title, language
| title | language |
|---|---|
| SHOW STREAM LOAD | en |
SHOW STREAM LOAD
Description
This statement is used to show the execution of the specified import task Grammar: SHOW STREAM LOAD [FROM both names] [ WHERE [LABEL [ = "your_label" | LIKE "label_matcher"]] [STATUS = ["SUCCESS"|"FAIL"|]] ] [ORDER BY ...] [LIMIT limit][OFFSET offset];
Explain:
- If db_name is not specified, use the current default DB
- If you use LABEL LIKE, the label that matches the task contains the STREAM LOAD task of label_matcher
- If LABEL = is used, the specified label is matched accurately.
- If STATUS is specified, the STREAM LOAD status is matched
- Arbitrary column combinations can be sorted using ORDER BY
- If LIMIT is specified, the limit bar matching record is displayed. Otherwise, all of them will be displayed.
- If OFFSET is specified, the query results are displayed from offset. By default, the offset is 0.
example
-
Show all STREAM LOAD tasks of default DB SHOW STREAM LOAD;
-
Show the STREAM LOAD task of the specified db. The label contains the string "2014_01_02", showing the oldest 10 SHOW STREAM LOAD FROM example_db WHERE LABEL LIKE "2014_01_02" LIMIT 10;
-
Show the STREAM LOAD task of the specified db, specify label as "load_example_db_20140102" SHOW STREAM LOAD FROM example_db WHERE LABEL = "load_example_db_20140102";
-
Show the STREAM LOAD task of the specified db, specify status as "success", and sort it in descending order by StartTime SHOW STREAM LOAD FROM example_db WHERE STATUS = "success" ORDER BY StartTime DESC;
-
Show the STREAM LOAD task of the specified dB and sort it in descending order by StartTime, and display 10 query results starting with 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;
keyword
SHOW,STREAM LOAD