Some formate errors in English doc. They are very straightforward and should not break any existing build.
2.7 KiB
2.7 KiB
title, language
| title | language |
|---|---|
| ALTER ROUTINE LOAD | en |
ALTER ROUTINE LOAD
description
This syntax is used to modify a routine import job that has been created.
Only jobs in the PAUSED state can be modified.
Syntax:
ALTER ROUTINE LOAD FOR [db.]job_name
[job_properties]
FROM data_source
[data_source_properties]
-
[db.]job_nameSpecify the name of the job to be modified.
-
job_propertiesSpecify the job parameters that need to be modified. Currently only supports the modification of the following parameters:
desired_concurrent_numbermax_error_numbermax_batch_intervalmax_batch_rowsmax_batch_sizejsonpathsjson_rootstrip_outer_arraystrict_modetimezonenum_as_stringfuzzy_parse
-
data_sourceThe type of data source. Currently supported:
KAFKA
-
data_source_propertiesThe relevant attributes of the data source. Currently only supports:
kafka_partitionskafka_offsets- Custom property, such as
property.group.id
Notice:
kafka_partitionsandkafka_offsetsare used to modify the offset of the kafka partition to be consumed, and can only modify the currently consumed partition. Cannot add partition.
example
-
Modify
desired_concurrent_numberto 1ALTER ROUTINE LOAD FOR db1.label1 PROPERTIES ( "desired_concurrent_number" = "1" ); -
Modify
desired_concurrent_numberto 10, modify partition offset, and modify 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" );
keyword
ALTER,ROUTINE,LOAD