[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

parser: support admin alter ddl jobs grammar #57268

Merged
merged 5 commits into from
Nov 12, 2024

Conversation

fzzf678
Copy link
Contributor
@fzzf678 fzzf678 commented Nov 11, 2024

What problem does this PR solve?

Issue Number: ref #57229

Problem Summary:

What changed and how does it work?

ref #57229, we need a new grammer to dynamically adjust related parameters during the ddl operation, Similar to the existed admin cancel ... and admin pause ..., we use admin alter ... as an syntax entrance to implement the adjust logic.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Nov 11, 2024
Copy link
tiprow bot commented Nov 11, 2024

Hi @fzzf678. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

{
$$ = &ast.AdminStmt{
Tp: ast.AdminAlterDDLJob,
JobNumber: $5.(int64),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only one job_id is permitted

pkg/parser/parser.y Outdated Show resolved Hide resolved
Copy link
codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 73.8710%. Comparing base (cec48bb) to head (c75fe5c).
Report is 83 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #57268        +/-   ##
================================================
+ Coverage   72.9242%   73.8710%   +0.9467%     
================================================
  Files          1659       1668         +9     
  Lines        458547     465043      +6496     
================================================
+ Hits         334392     343532      +9140     
+ Misses       103613     101001      -2612     
+ Partials      20542      20510        -32     
Flag Coverage Δ
integration 43.9034% <ø> (?)
unit 72.6883% <40.0000%> (+0.4303%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.7673% <ø> (ø)
parser ∅ <ø> (∅)
br 45.4204% <ø> (+0.3660%) ⬆️
---- 🚨 Try these New Features:

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Nov 11, 2024
@tangenta tangenta changed the title parser: support admin alter ddl jobs 'job_id' xxx = xxx grammer parser: support admin alter ddl jobs grammar Nov 11, 2024
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 11, 2024
Copy link
ti-chi-bot bot commented Nov 11, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-11-11 05:42:29.963281537 +0000 UTC m=+248512.154150534: ☑️ agreed by tangenta.
  • 2024-11-11 07:20:47.363670322 +0000 UTC m=+254409.554539317: ☑️ agreed by CbcWestwolf.

@fzzf678
Copy link
Contributor Author
fzzf678 commented Nov 11, 2024

@benmeadowcroft @BornChanger @yudongusa please help take a look

Copy link
ti-chi-bot bot commented Nov 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CbcWestwolf, tangenta, yudongusa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the approved label Nov 12, 2024
@fzzf678
Copy link
Contributor Author
fzzf678 commented Nov 12, 2024

/retest

Copy link
tiprow bot commented Nov 12, 2024

@fzzf678: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot merged commit a5832b4 into pingcap:master Nov 12, 2024
23 checks passed
@fzzf678 fzzf678 added the needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. label Nov 19, 2024
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.5: #57512.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants