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: support background DDL for MV on shared source #18919

Merged

Conversation

xxchan
Copy link
Member

@xxchan xxchan commented Oct 15, 2024

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

What's changed and what's your intention?

follow up of #18112, where we only implemented the track mechanism in meta, but it's banned in frontend

#18338

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.

Copy link
Member Author

xxchan commented Oct 15, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @xxchan and the rest of your teammates on Graphite Graphite

@xxchan xxchan marked this pull request as ready for review October 15, 2024 07:55
@xxchan xxchan requested a review from kwannoel October 15, 2024 07:59
@xxchan xxchan force-pushed the xxchan/share-source-config branch from 1ba3525 to 16e430d Compare October 15, 2024 08:52
@xxchan xxchan force-pushed the 10-15-feat_support_background_ddl_for_mv_on_shared_source branch from 651dd45 to 3bb6e7b Compare October 15, 2024 08:52
@xxchan xxchan force-pushed the xxchan/share-source-config branch from 16e430d to 5282fa9 Compare October 15, 2024 10:54
@xxchan xxchan force-pushed the 10-15-feat_support_background_ddl_for_mv_on_shared_source branch from 3bb6e7b to 4b11a81 Compare October 15, 2024 10:54
@xxchan xxchan force-pushed the xxchan/share-source-config branch from 5282fa9 to 6ed05a4 Compare October 15, 2024 12:09
@xxchan xxchan force-pushed the 10-15-feat_support_background_ddl_for_mv_on_shared_source branch from 4b11a81 to ec97955 Compare October 15, 2024 12:09
@xxchan xxchan force-pushed the xxchan/share-source-config branch from 6ed05a4 to 14e84ce Compare October 16, 2024 01:55
@xxchan xxchan force-pushed the 10-15-feat_support_background_ddl_for_mv_on_shared_source branch from ec97955 to 13e0d77 Compare October 16, 2024 01:55
@xxchan xxchan requested review from BugenZhao and chenzl25 October 16, 2024 01:56
@xxchan xxchan force-pushed the 10-15-feat_support_background_ddl_for_mv_on_shared_source branch from 13e0d77 to 30c3895 Compare October 16, 2024 02:10
@xxchan xxchan changed the base branch from xxchan/share-source-config to main October 16, 2024 02:10
@xxchan xxchan requested a review from fuyufjh October 16, 2024 03:36
@xxchan
Copy link
Member Author

xxchan commented Oct 17, 2024

kindly ping reviewers here

@kwannoel
Copy link
Contributor

Will have a look by today

Comment on lines +380 to +381
/// Some other leaf nodes like `StreamValues` do not support recovery, and they
/// cannot use background ddl.
Copy link
Member

Choose a reason for hiding this comment

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

Do we have an issue for this? Is it possible to address this by simply recording the state into a state table?

@xxchan xxchan added this pull request to the merge queue Oct 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2024
@xxchan xxchan added this pull request to the merge queue Oct 17, 2024
Merged via the queue into main with commit 73fa688 Oct 17, 2024
35 of 36 checks passed
@xxchan xxchan deleted the 10-15-feat_support_background_ddl_for_mv_on_shared_source branch October 17, 2024 06:34
xxchan added a commit that referenced this pull request Oct 17, 2024
pub(crate) fn plan_has_backfill_leaf_nodes(plan: &PlanRef) -> bool {
/// Some other leaf nodes like `StreamValues` do not support recovery, and they
/// cannot use background ddl.
pub(crate) fn plan_can_use_backgronud_ddl(plan: &PlanRef) -> bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

typo background

if plan.inputs().is_empty() {
if let Some(scan) = plan.as_stream_table_scan() {
if plan.as_stream_source_scan().is_some() {
Copy link
Contributor

Choose a reason for hiding this comment

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

For stream_source_scan it is only used by source backfill right? If so this LGTM.

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.

3 participants