Syntax
Parameters
Behavior and limitations
REPLACE SINKreplaces an existing sink as a cut-over operation. After replacement, the sink starts from the cut-over barrier and only forwards new incremental changes from the new upstream.- Explicit privileges granted on the existing sink are not migrated to the replacement sink. Re-grant these privileges after replacement.
- Use
REPLACE SINK, notCREATE OR REPLACE SINK. REPLACE SINKcurrently supportsFROMonly.REPLACE SINK ... AS SELECT ...is not supported.REPLACE SINKdoes not supportIF NOT EXISTS.- An existing exactly-once sink cannot be replaced.
- Sinks created with
CREATE SINK ... INTOcannot be replaced. - Sinks with automatic schema change enabled cannot be replaced, and the replacement definition cannot set
auto.schema.changetotrue. REPLACE SINKdoes not support thesince_timestampoption.
Example
See also
CREATE SINK
Create a sink
DROP SINK
Remove a sink
SHOW CREATE SINK
Show the SQL statement used to create a sink