-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
Description
Current template
-- docs: https://ydb.tech/docs/en/yql/reference/syntax/create_changefeed
ADD CHANGEFEED $name WITH (
MODE = $mode, -- KEYS_ONLY, UPDATES, NEW_IMAGE, OLD_IMAGE, or NEW_AND_OLD_IMAGES
FORMAT = $format, -- JSON or DEBEZIUM_JSON
VIRTUAL_TIMESTAMPS = $virtualTimestamps, -- true or false
RETENTION_PERIOD = $retentionPeriod, -- Interval value, e.g., Interval('PT24H')
TOPIC_MIN_ACTIVE_PARTITIONS = $topicMinActivePartitions,
INITIAL_SCAN = $initialScan -- true or false
)
It doesn't work, because it is alter table operation
ALTER TABLE $table ADD CHANGEFEED $name WITH(...)