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`
2.7 KiB
2.7 KiB
title, language
| title | language |
|---|---|
| ALTER-ROUTINE-LOAD | zh-CN |
ALTER-ROUTINE-LOAD
Name
ALTER ROUTINE LOAD
Description
该语法用于修改已经创建的例行导入作业。
只能修改处于 PAUSED 状态的作业。
语法:
ALTER ROUTINE LOAD FOR [db.]job_name
[job_properties]
FROM data_source
[data_source_properties]
-
[db.]job_name指定要修改的作业名称。
-
tbl_name指定需要导入的表的名称。
-
job_properties指定需要修改的作业参数。目前仅支持如下参数的修改:
desired_concurrent_numbermax_error_numbermax_batch_intervalmax_batch_rowsmax_batch_sizejsonpathsjson_rootstrip_outer_arraystrict_modetimezonenum_as_stringfuzzy_parse
-
data_source数据源的类型。当前支持:
KAFKA
-
data_source_properties数据源的相关属性。目前仅支持:
kafka_partitionskafka_offsetskafka_broker_listkafka_topic- 自定义 property,如
property.group.id
注:
kafka_partitions和kafka_offsets用于修改待消费的 kafka partition 的offset,仅能修改当前已经消费的 partition。不能新增 partition。
Example
-
将
desired_concurrent_number修改为 1ALTER ROUTINE LOAD FOR db1.label1 PROPERTIES ( "desired_concurrent_number" = "1" ); -
将
desired_concurrent_number修改为 10,修改 partition 的offset,修改 group id。ALTER ROUTINE LOAD FOR db1.label1 PROPERTIES ( "desired_concurrent_number" = "10" ) FROM kafka ( "kafka_partitions" = "0, 1, 2", "kafka_offsets" = "100, 200, 100", "property.group.id" = "new_group" );
Keywords
ALTER, ROUTINE, LOAD