Syntax
alter_option depends on the operation you want to perform on the connection. For all supported clauses, see the sections below.
Clause
CONNECTOR WITH
Added in v2.8.0.
Permissions
You must have privilege to alter the connection (the same privilege checks as otherALTER operations on catalog objects).
Behavior
When you runALTER CONNECTION ... CONNECTOR WITH (...):
- Catalog update (atomic): The meta service updates the connection’s stored properties and secret references, and then updates the stored connector options of dependent sources and sinks in the same transaction. For connector-backed tables that use the connection, this updates the underlying source.
- Validation: The meta service validates that the altered keys are allowed to be changed online, validates the updated connection, and validates each updated dependent source and sink.
- Runtime propagation: The meta service broadcasts a barrier mutation carrying the complete properties for each dependent object. Compute nodes rebuild source readers or sink configurations when they receive the mutation. Running jobs typically pick up the new configuration on the next barrier.
Limitations
- Only the Kafka connection properties listed above can be altered online. Attempting to change any other property returns an error.
- To change
properties.bootstrap.server, alter the referenced secret first, and then runALTER CONNECTION ... CONNECTOR WITH (...)to propagate the updated configuration online. ALTER CONNECTION ... CONNECTOR WITH (...)does not support nestedCONNECTIONreferences inside theWITH (...)options.
Example
This example shows how to rotate a Kafka broker stored in a secret and update SASL credentials online:t_conn continues ingesting with the updated connection configuration without being dropped and recreated.