Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changefeedccl: unify initial_scan option syntax #79324

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

sherman-grewal
Copy link
Contributor

@sherman-grewal sherman-grewal commented Apr 4, 2022

Resolves #79324

Currently, we have explicit options for each possible
behaviour that a user would like to achieve for
initial scans on changefeeds. For instance, a user
could specify:

  • initial_scan
  • no_initial_scan
  • initial_scan_only

This seems a bit sprawling, and can inadvertently cause
contradictions in a changefeed statement. Hence, in this
PR we extend the option initial_scan to take on three
possible values: 'yes|no|only'. Once this change
is made we will remove the explicit options from the
docs, but we will keep these options for backwards
compatibility.

Release note (enterprise change): Unify the syntax that
allows users to define the behaviour they would like
for initial scans on changefeeds by extending the
initial_scan option to take on three possible values:
'yes|no|only'.

Release justification: Small, safe refactor that will
improve the user experience when creating changefeeds.

Jira issue: CRDB-14693

@sherman-grewal sherman-grewal requested a review from a team as a code owner April 4, 2022 13:17
@sherman-grewal sherman-grewal requested review from gh-casper and removed request for a team April 4, 2022 13:17
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@sherman-grewal sherman-grewal force-pushed the cdc/unify-initial-scan branch 3 times, most recently from fcf682e to 2753e83 Compare April 5, 2022 17:01
@sherman-grewal sherman-grewal requested a review from miretskiy April 5, 2022 17:01
@sherman-grewal sherman-grewal force-pushed the cdc/unify-initial-scan branch 2 times, most recently from b04a85a to f273a7c Compare April 5, 2022 17:16
pkg/ccl/changefeedccl/changefeedbase/options.go Outdated Show resolved Hide resolved
pkg/ccl/changefeedccl/changefeedbase/options.go Outdated Show resolved Hide resolved
pkg/ccl/changefeedccl/changefeed.go Show resolved Hide resolved
pkg/ccl/changefeedccl/changefeed.go Show resolved Hide resolved
pkg/ccl/changefeedccl/changefeed_stmt.go Outdated Show resolved Hide resolved
@sherman-grewal sherman-grewal force-pushed the cdc/unify-initial-scan branch from f273a7c to 7408edc Compare April 5, 2022 19:34
Currently, we have explicit options for each possible
behaviour that a user would like to achieve for
initial scans on changefeeds. For instance, a user
could specify:

- initial_scan
- no_initial_scan
- initial_scan_only

This seems a bit sprawling, and can inadvertently cause
contradictions in a changefeed statement. Hence, in this
PR we extend the option `initial_scan` to take on three
possible values: `'yes|no|only'`. Once this change
is made we will remove the explicit options from the
docs, but we will keep these options for backwards
compatibility.

Release note (enterprise change): Unify the syntax that
allows users to define the behaviour they would like
for initial scans on changefeeds by extending the
`initial_scan` option to take on three possible values:
`'yes|no|only'`.

Release justification: Small, safe refactor that will
improve the user experience when creating changefeeds.
@sherman-grewal sherman-grewal force-pushed the cdc/unify-initial-scan branch from 7408edc to 3f9344f Compare April 5, 2022 19:37
@sherman-grewal sherman-grewal requested a review from miretskiy April 5, 2022 19:37
@sherman-grewal
Copy link
Contributor Author

bors r+

@sherman-grewal
Copy link
Contributor Author

bors r-

@craig
Copy link
Contributor

craig bot commented Apr 5, 2022

Canceled.

@sherman-grewal
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Apr 5, 2022

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants