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

feat(meta): support create subscription #15371

Merged
merged 9 commits into from
Mar 4, 2024

Conversation

xxhZs
Copy link
Contributor

@xxhZs xxhZs commented Feb 29, 2024

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Changes in meta to support create subscription.

Follow-up PR: frontend changes in #14831

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added test labels as necessary. See details.
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

@xxhZs xxhZs marked this pull request as ready for review February 29, 2024 09:19
@xxhZs xxhZs requested review from hzxa21 and wenym1 February 29, 2024 09:19
Copy link
Contributor

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest generally LGTM, thx for the job. Since so many syntaxes are supported for subscription, we need enough e2e to cover them in later PRs. Cc @zwang28 do we need some extra works to support backup functions based on etcd?

proto/catalog.proto Outdated Show resolved Hide resolved
@@ -65,6 +65,7 @@ message GrantPrivilege {
uint32 all_tables_schema_id = 11;
uint32 all_sources_schema_id = 12;
uint32 all_dml_tables_schema_id = 13;
uint32 subscription_id = 14;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, non-related to this PR, we also have to define all available acls for subscription in https:/risingwavelabs/risingwave/blob/be30f20e2c14b5d12efd5b33a4ac9e537602fc37/src/common/src/acl/mod.rs and support privilege related syntax for subscription. We can support it in an separate PR after the functionality of subscription is ready.

src/meta/src/manager/catalog/utils.rs Outdated Show resolved Hide resolved
@yezizp2012 yezizp2012 requested a review from zwang28 March 1, 2024 08:22
@xxhZs
Copy link
Contributor Author

xxhZs commented Mar 1, 2024

Rest generally LGTM, thx for the job. Since so many syntaxes are supported for subscription, we need enough e2e to cover them in later PRs. Cc @zwang28 do we need some extra works to support backup functions based on etcd?

yesyes,I will add e2e in part2

@hzxa21 hzxa21 changed the title feat(meta): create subsciption frontend part1 feat(meta): support create subscription Mar 1, 2024
Copy link
Collaborator

@hzxa21 hzxa21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM. Please wait for @zwang28's review before merging.

proto/catalog.proto Outdated Show resolved Hide resolved
proto/catalog.proto Outdated Show resolved Hide resolved
proto/catalog.proto Outdated Show resolved Hide resolved
Copy link
Contributor

@zwang28 zwang28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Included subscription in meta backup. LGTM for this part.

@xxhZs xxhZs enabled auto-merge March 4, 2024 06:52
@xxhZs xxhZs added this pull request to the merge queue Mar 4, 2024
@yezizp2012 yezizp2012 removed this pull request from the merge queue due to a manual request Mar 4, 2024
Copy link
Contributor

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xxhZs xxhZs enabled auto-merge March 4, 2024 09:07
@xxhZs xxhZs added this pull request to the merge queue Mar 4, 2024
Merged via the queue into main with commit 44ccb7e Mar 4, 2024
27 of 29 checks passed
@xxhZs xxhZs deleted the xxh/create-subsciption-frontend-part1 branch March 4, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants