To modify the SQL definition of a sink, please refer to Alter a streaming job.
Syntax
alter_option depends on the operation you want to perform on the sink. For all supported clauses, see the sections below.
Clause
OWNER TO
| Parameter or clause | Description |
|---|---|
| OWNER TO | This clause changes the owner of the sink. This will cascadingly change all related internal-objects as well. |
| new_user | The new owner you want to assign to the sink. |
SET SCHEMA
| Parameter or clause | Description |
|---|---|
| SET SCHEMA | This clause moves the sink to a different schema. |
| schema_name | The name of the schema to which the sink will be moved. |
SET PARALLELISM
| Parameter or clause | Description |
|---|---|
| SET PARALLELISM | This clause controls the degree of parallelism for the targeted streaming job. |
| parallelism_number | Can be ADAPTIVE or a fixed number (e.g., 1, 2, 3). Setting it to ADAPTIVE expands the job’s parallelism to all available units, while a fixed number locks it at that value. Setting it to 0 is equivalent to ADAPTIVE. The maximum allowed value is determined by the max_parallelism of the job. For more information, see Configuring maximum parallelism. |
SET SINK_RATE_LIMIT
SINK_RATE_LIMIT, refer to How to view runtime parameters.
Example
RENAME TO
| Parameter or clause | Description |
|---|---|
| RENAME TO | This clause changes the name of the sink. |
| new_name | The new name of the sink. |
SWAP WITH
| Parameter | Description |
|---|---|
| name | The current name of the sink to swap. |
| target_name | The target name of the sink you want to swap with. |
CONNECTOR WITH
Added in v2.5.0.
| Parameter | Description |
|---|---|
| CONNECTOR WITH | Allows you to update connector-specific properties for an existing sink without recreating it. |
| property_name | The properties vary by connector type:
|