Files
doris/docs/zh-CN/sql-manual/sql-reference/Data-Manipulation-Statements/Load/CANCEL-LOAD.md
Mingyu Chen 74a482ca7f [fix] fix docs build bug (#9293)
After this PR #9272, the `docs/build_help_zip.sh` will run failed.
This PR fix this issue.
But the help module still has some parse problem, I will fix it in next PR.

This CL mainly changes:
1. fix `docs/build_help_zip.sh` error
2. remove `sql-reference-v2` to `sql-reference`
3. modify build extension github action to run `docs/build_help_zip.sh`
2022-04-28 22:19:04 +08:00

1.8 KiB

title, language
title language
CANCEL-LOAD zh-CN

CANCEL-LOAD

Name

CANCEL LOAD

Description

该语句用于撤销指定 label 的导入作业。或者通过模糊匹配批量撤销导入作业

CANCEL LOAD
[FROM db_name]
WHERE [LABEL = "load_label" | LABEL like "label_pattern"];

Example

  1. 撤销数据库 example_db 上, label 为 example_db_test_load_label 的导入作业

    CANCEL LOAD
    FROM example_db
    WHERE LABEL = "example_db_test_load_label";
    
  2. 撤销数据库 exampledb 上, 所有包含 example 的导入作业。

    CANCEL LOAD
    FROM example_db
    WHERE LABEL like "example_";
    

Keywords

CANCEL, LOAD

Best Practice

  1. 只能取消处于 PENDING、ETL、LOADING 状态的未完成的导入作业。
  2. 当执行批量撤销时,Doris 不会保证所有对应的导入作业原子的撤销。即有可能仅有部分导入作业撤销成功。用户可以通过 SHOW LOAD 语句查看作业状态,并尝试重复执行 CANCEL LOAD 语句。