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

distsql, executor: remove pctx from trectx #52496

Merged
merged 2 commits into from Apr 15, 2024

Conversation

YangKeao
Copy link
Member

What problem does this PR solve?

Issue Number: close #52495

Problem Summary:

We have splited PlanContext into some tiny contexts (BuildPBContext and RangerContext). Now it's time to remove the pctx from tableReaderExecutorContext.

What changed and how does it work?

  1. Remove the pctx from tableReaderExecutorContext.
  2. Replace the any in distsql into MetaOnlyInfoSchema (I don't know why it's originally any. Maybe it's used to avoid cyclic dependency?)

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.

    Already be covered by existing tests.

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

None

Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
@ti-chi-bot ti-chi-bot bot added release-note-none size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 11, 2024
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
Copy link

ti-chi-bot bot commented Apr 15, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-04-11 08:19:37.224600641 +0000 UTC m=+1123238.752141185: ☑️ agreed by lcwangchao.
  • 2024-04-15 07:35:28.998308186 +0000 UTC m=+237148.109354634: ☑️ agreed by XuHuaiyu.

Copy link

ti-chi-bot bot commented Apr 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lcwangchao, XuHuaiyu, zimulala

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 Apr 15, 2024
@YangKeao
Copy link
Member Author

/retest

Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Merging #52496 (b330291) into master (1997ff7) will increase coverage by 2.9179%.
Report is 23 commits behind head on master.
The diff coverage is 77.7777%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #52496        +/-   ##
================================================
+ Coverage   72.2344%   75.1523%   +2.9179%     
================================================
  Files          1469       1470         +1     
  Lines        427098     434565      +7467     
================================================
+ Hits         308512     326586     +18074     
+ Misses        99447      88266     -11181     
- Partials      19139      19713       +574     
Flag Coverage Δ
integration 49.7306% <44.4444%> (?)
unit 71.9262% <77.7777%> (+0.8014%) ⬆️

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

Components Coverage Δ
dumpling 53.9957% <ø> (ø)
parser ∅ <ø> (∅)
br 49.7460% <ø> (+8.6560%) ⬆️

@ti-chi-bot ti-chi-bot bot merged commit 2493981 into pingcap:master Apr 15, 2024
23 checks passed
3AceShowHand pushed a commit to 3AceShowHand/tidb that referenced this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove pctx from tableReaderExecutorContext
4 participants