forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changefeedccl: allow users to alter changefeed options
with the ALTER CHANGEFEED statement Currently, with the ALTER CHANGEFEED statement users can only add or drop targets from an existing changefeed. In this PR, we would like to extend this functionality so that an user can edit and unset the options of an existing changefeed as well. The syntax of this addition is the following: ALTER CHANGEFEED <job_id> SET <options> UNSET <opt_list> Note that the <options> must follow the same syntax that is used when creating a changefeed with options. In particular, if you would like to set an option that requires a value, you must write SET opt = 'value' On the other hand, if you would like to set an option that requires no value, you must write SET opt Furthermore, this PR allows users to unset options. This can be achieved by writing UNSET <opt_list> Where <opt_list> is a list of options that you would like to unset. For example, if we would like to unset the diff and resolved options for changefeed 123, we would achieve this by writing ALTER CHANGEFEED 123 UNSET diff, resolved Release note (enterprise change): Added support to the ALTER CHANGEFEED statement so that users can edit and unset the options of an existing changefeed. The syntax of this addition is the following: ALTER CHANGEFEED <job_id> SET <options> UNSET <opt_list>
- Loading branch information
Showing
10 changed files
with
699 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.