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(stream): Dynamic filter watermark cache #11221

Closed
wants to merge 12 commits into from

Conversation

kwannoel
Copy link
Contributor

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

What's changed and what's your intention?

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • 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 contains user-facing changes.
Click here for Documentation

Types of user-facing changes

Please keep the types that apply to your changes, and remove the others.

  • Installation and deployment
  • Connector (sources & sinks)
  • SQL commands, functions, and operators
  • RisingWave cluster configuration changes
  • Other (please specify in the release note below)

Release note

Comment on lines +65 to +77
/// On receiving new RHS watermark:
/// 1. If empty, unused clean hint -> None.
/// 1. If watermark < lowest value
/// We don't need to issue delete range,
/// because are no values lower than lowest value.
/// Therefore, no values before watermark, and no values to clean.
/// We can set `unused_clean_hint` to None.
/// 2. Else watermark => lowest value
/// Need to issue delete range.
/// We can just issue delete range for (`lowest_value`, watermark].
/// Set `unused_clean_hint` to `watermark`.
/// TODO(kwannoel): Optimization: If we move this to state table, we can set the delete range
/// lower bound.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to update this section. Does not seem really accurate. It should be last cleaned watermark, rather than new watermark.
New watermark is not cleaned yet.

@kwannoel kwannoel closed this Aug 10, 2023
@kwannoel kwannoel deleted the kwannoel/dynamic-filter-watermark-cache branch August 10, 2023 02:59
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.

None yet

1 participant