-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
expression, *: Eval param get type with context #53656
expression, *: Eval param get type with context #53656
Conversation
d3c5ab5
to
e60bc17
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #53656 +/- ##
================================================
+ Coverage 72.5198% 74.5390% +2.0191%
================================================
Files 1506 1506
Lines 431071 431252 +181
================================================
+ Hits 312612 321451 +8839
+ Misses 99070 89881 -9189
- Partials 19389 19920 +531
Flags with carried forward coverage won't be shown. Click here to find out more.
|
a4c6738
to
f576ad6
Compare
@@ -429,6 +429,8 @@ type partialResult4GroupConcatOrder struct { | |||
|
|||
type groupConcatOrder struct { | |||
baseGroupConcat4String | |||
ctors []collate.Collator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add these 2 new fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because in func (e *groupConcatOrder) AllocPartialResult()
, it'll use these fields to allocate partial result. Previously, it was generated in AllocPartialResult
. However, add an argument EvalContext
to AllocPartialResult
will lead to tons of changes, so I choose to calculate the ctors
and desc
when this struct is constructed.
[LGTM Timeline notifier]Timeline:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, lcwangchao, qw4990, 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 |
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
f576ad6
to
c216499
Compare
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
c216499
to
9057f3f
Compare
/retest |
/retest |
What problem does this PR solve?
Issue Number: close #53653
Problem Summary:
Ref #53533 and #53534. This PR splits the first commit of #53534 to make it easier to review.
The goal is to remove the
sessionctx.Session
inside theConstant
. Instead, we should pass the session context through argument, especially for functionString()
andGetType()
. This PR modifies theGetType()
part. To make sure this patch can work standalone, the internal session inConstant
is not removed yet. It'll be removed in #53534 (which is ready, but is too long to review).What changed and how does it work?
This PR adds an argument
EvalType
to the methodGetType
inExpression
, so that in the future, theCheck List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.