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

chore: Add type check to alter parallelism statement. #14323

Merged
merged 2 commits into from
Jan 3, 2024
Merged

Conversation

shanicky
Copy link
Contributor

@shanicky shanicky commented Jan 3, 2024

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

What's changed and what's your intention?

Summary

This pull request introduces a new function handle_alter_parallelism and a new variant SetParallelism in the alter_index_operation enum to handle the ALTER_INDEX statement. The handle_alter_parallelism function is responsible for checking the validity of the parallelism value. Additionally, the handle function has been modified to handle the SetParallelism operation.

Changes Made

  • Added a new function handle_alter_parallelism to handle the ALTER_INDEX statement.
  • Implemented a new variant SetParallelism in the alter_index_operation enum.
  • Modified the handle function to accommodate the SetParallelism operation.

Reasons for Changes

The existing code did not support the ALTER_INDEX statement and did not provide any mechanism to check the validity of the parallelism value. Therefore, this pull request aims to introduce a new function and enum variant to handle the ALTER_INDEX statement and ensure the validity of the parallelism value.

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.

Signed-off-by: Shanicky Chen <[email protected]>
Copy link
Member

@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 LGTM.

src/frontend/src/handler/alter_parallelism.rs Outdated Show resolved Hide resolved
src/frontend/src/handler/alter_parallelism.rs Outdated Show resolved Hide resolved
Signed-off-by: Shanicky Chen <[email protected]>
@shanicky shanicky enabled auto-merge January 3, 2024 07:24
@shanicky shanicky disabled auto-merge January 3, 2024 07:25
@shanicky shanicky enabled auto-merge January 3, 2024 07:25
@shanicky shanicky added this pull request to the merge queue Jan 3, 2024
Merged via the queue into main with commit 0523b41 Jan 3, 2024
28 of 29 checks passed
@shanicky shanicky deleted the peng/alter-check branch January 3, 2024 08:11
github-actions bot pushed a commit that referenced this pull request Jan 3, 2024
xxhZs pushed a commit that referenced this pull request Jan 4, 2024
xxhZs added a commit that referenced this pull request Jan 4, 2024
fix

chore: fix typos linted by cSpell (#14306)

Signed-off-by: TennyZhuang <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

fix(over window): fix over window range cache shortcut return (#14311)

Signed-off-by: Richard Chien <[email protected]>

fix(stream): rowIdGen executor handle invisible delete record (#14237)

feat(storage): Improve task measurement on the compactor side with parallelism (#13812)

feat: introduce rw_streaming_parallelism system view (#14261)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

chore: Add type check to alter parallelism statement. (#14323)

Signed-off-by: Shanicky Chen <[email protected]>

refactor(error): add more context for jvm error (#14302)

chore: update help message for scale command (#14332)

Signed-off-by: Shanicky Chen <[email protected]>

fix: fix panic in `ctl meta source-split-info` (#14334)

Signed-off-by: Shanicky Chen <[email protected]>

test(streaming): add fuzz test for materialize handle conflict (#14166)

add mock coordination
yezizp2012 added a commit that referenced this pull request Jan 5, 2024
Signed-off-by: Shanicky Chen <[email protected]>
Co-authored-by: Shanicky Chen <[email protected]>
Co-authored-by: August <[email protected]>
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.

2 participants