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

planner: avoid to use ScalarFunction.GetCtx in some planner codes #48794

Merged
merged 3 commits into from
Nov 24, 2023

Conversation

lcwangchao
Copy link
Collaborator

@lcwangchao lcwangchao commented Nov 22, 2023

What problem does this PR solve?

Issue Number: close #48793

Problem Summary:

ScalarFunction.GetCtx is deprecated because we are going to remove inner context in function. We should remove some call of ScalarFunction.GetCtx in planner package

What is changed and how it works?

avoid to use ScalarFunction.GetCtx in some planner codes

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 do-not-merge/needs-tests-checked release-note-none Denotes a PR that doesn't merit a release note. labels Nov 22, 2023
@lcwangchao lcwangchao requested a review from qw4990 November 22, 2023 08:28
@ti-chi-bot ti-chi-bot bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 22, 2023
@lcwangchao lcwangchao requested a review from YangKeao November 22, 2023 08:28
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Merging #48794 (f5bec2b) into master (522cd03) will increase coverage by 1.6979%.
Report is 4 commits behind head on master.
The diff coverage is 94.3548%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #48794        +/-   ##
================================================
+ Coverage   71.0271%   72.7250%   +1.6979%     
================================================
  Files          1367       1392        +25     
  Lines        404903     411865      +6962     
================================================
+ Hits         287591     299529     +11938     
+ Misses        97306      93461      -3845     
+ Partials      20006      18875      -1131     
Flag Coverage Δ
integration 43.5945% <92.7419%> (?)
unit 71.0968% <85.4838%> (+0.0697%) ⬆️

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

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

@lcwangchao
Copy link
Collaborator Author

/retest

@ti-chi-bot ti-chi-bot bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 22, 2023
Copy link
Member

@YangKeao YangKeao left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Nov 23, 2023
@lcwangchao
Copy link
Collaborator Author

/retest

1 similar comment
@lcwangchao
Copy link
Collaborator Author

/retest

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Nov 24, 2023
Copy link

ti-chi-bot bot commented Nov 24, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-11-23 09:19:25.090236558 +0000 UTC m=+482393.755462752: ☑️ agreed by YangKeao.
  • 2023-11-24 03:10:31.607703153 +0000 UTC m=+546660.272929348: ☑️ agreed by qw4990.

Copy link

ti-chi-bot bot commented Nov 24, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qw4990, XuHuaiyu, YangKeao

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 24, 2023
@ti-chi-bot ti-chi-bot bot merged commit 8243680 into pingcap:master Nov 24, 2023
@lcwangchao lcwangchao deleted the planner_getctx branch November 24, 2023 05:49
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid to use ScalarFunction.GetCtx in some planner codes
4 participants