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

statistics: move the previous auto-analyze selection into a func #49027

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

hi-rustin
Copy link
Member

What problem does this PR solve?

Issue Number: None

Problem Summary:

What changed and how does it work?

Before proceeding with the implementation of a new auto-analysis queue, we can first consolidate the existing logic into one function. This way, it will be easier to revert to the old method if necessary. We don't have to remove the old logic right away. Instead, we can use a deprecation and opt-in process to gradually introduce this change to users.

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

Signed-off-by: hi-rustin <rustin.liu@gmail.com>
@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue release-note-none size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 30, 2023
@hi-rustin hi-rustin added skip-issue-check and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 30, 2023
function

Signed-off-by: hi-rustin <rustin.liu@gmail.com>
@ti-chi-bot ti-chi-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 30, 2023
Copy link
Member Author

@hi-rustin hi-rustin left a comment

Choose a reason for hiding this comment

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

🔢 Self-check

Copy link

codecov bot commented Nov 30, 2023

Codecov Report

Merging #49027 (48d2c85) into master (94a7844) will increase coverage by 1.5096%.
Report is 2 commits behind head on master.
The diff coverage is 0.0000%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #49027        +/-   ##
================================================
+ Coverage   70.9896%   72.4993%   +1.5096%     
================================================
  Files          1368       1391        +23     
  Lines        404070     411347      +7277     
================================================
+ Hits         286848     298224     +11376     
+ Misses        97242      94305      -2937     
+ Partials      19980      18818      -1162     
Flag Coverage Δ
integration 43.6880% <0.0000%> (?)
unit 70.9895% <ø> (-0.0002%) ⬇️

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

Components Coverage Δ
dumpling 53.9663% <ø> (ø)
parser ∅ <ø> (∅)
br 48.3702% <ø> (-4.6121%) ⬇️

Copy link

ti-chi-bot bot commented Nov 30, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hawkingrei, qw4990

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

Copy link

ti-chi-bot bot commented Nov 30, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-11-30 04:15:29.593507146 +0000 UTC m=+1068958.258733338: ☑️ agreed by qw4990.
  • 2023-11-30 05:20:29.559165642 +0000 UTC m=+1072858.224391837: ☑️ agreed by hawkingrei.

@ti-chi-bot ti-chi-bot bot merged commit d60c8e4 into pingcap:master Nov 30, 2023
16 checks passed
@hi-rustin hi-rustin deleted the rustin-patch-auto-analyze-old branch November 30, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved component/statistics lgtm release-note-none sig/planner SIG: Planner size/S Denotes a PR that changes 10-29 lines, ignoring generated files. skip-issue-check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants