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

pkg/parser: use clearer structures for RESOURCE GROUP ASTs #54881

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

JmPotato
Copy link
Member

What problem does this PR solve?

Issue Number: ref #54434.

What changed and how does it work?

Before this PR, many RESOURCE GROUP and QUERY WATCH ASTs used ambiguous union struct fields to parse different options. This PR makes them use clearer structures to improve readability and extensibility.

Check List

Tests

  • Unit test
  • Integration test

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/XL Denotes a PR that changes 500-999 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 24, 2024
Copy link

codecov bot commented Jul 24, 2024

Codecov Report

Attention: Patch coverage is 77.30061% with 37 lines in your changes missing coverage. Please review.

Project coverage is 56.0708%. Comparing base (8f98b4e) to head (c0dde7e).
Report is 3 commits behind head on master.

Additional details and impacted files
@@                Coverage Diff                @@
##             master     #54881         +/-   ##
=================================================
- Coverage   72.9336%   56.0708%   -16.8628%     
=================================================
  Files          1558       1680        +122     
  Lines        438456     614078     +175622     
=================================================
+ Hits         319782     344319      +24537     
- Misses        99064     246446     +147382     
- Partials      19610      23313       +3703     
Flag Coverage Δ
integration 37.6499% <0.0000%> (?)
unit 71.7352% <77.7777%> (-0.2153%) ⬇️

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

Components Coverage Δ
dumpling 52.9656% <ø> (ø)
parser ∅ <ø> (∅)
br 52.5924% <ø> (+6.7135%) ⬆️

JmPotato added 2 commits July 25, 2024 00:42
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato JmPotato force-pushed the refine_runaway_ast branch from f3fdd2a to 60d884d Compare July 24, 2024 16:43
@ti-chi-bot ti-chi-bot bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 24, 2024
@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jul 25, 2024
Copy link
Contributor

@D3Hunter D3Hunter left a comment

Choose a reason for hiding this comment

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

parser part rest lgtm

pkg/parser/ast/misc.go Outdated Show resolved Hide resolved
@easonn7
Copy link

easonn7 commented Jul 25, 2024

/approve

@ti-chi-bot ti-chi-bot bot added the approved label Jul 25, 2024
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Copy link

ti-chi-bot bot commented Jul 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: D3Hunter, easonn7, tangenta

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 lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jul 25, 2024
Copy link

ti-chi-bot bot commented Jul 25, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-07-25 02:25:36.816875396 +0000 UTC m=+1098358.807816859: ☑️ agreed by tangenta.
  • 2024-07-25 03:01:43.511670054 +0000 UTC m=+1100525.502611524: ☑️ agreed by D3Hunter.

@ti-chi-bot ti-chi-bot bot merged commit 98b7858 into pingcap:master Jul 25, 2024
23 checks passed
@JmPotato JmPotato deleted the refine_runaway_ast branch July 25, 2024 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants