-
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
executor: fix LEAD and LAG's default value can not adapt to field type #20747
executor: fix LEAD and LAG's default value can not adapt to field type #20747
Conversation
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
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
if err1 == nil { | ||
defaultExpr = &expression.Constant{Value: res, RetType: aggFuncDesc.RetTp} | ||
} |
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.
what if err1
is not nil?
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.
if err1 not null, the type conversion is failed, just do nothing and go to the normal process
@ichn-hu PTAL |
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
@blueseason Please resolve the conflict. |
/merge |
/run-all-tests |
@blueseason merge failed. |
/merge |
/run-all-tests |
/run-all-tests |
@blueseason merge failed. |
/run-all-tests |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
/run-cherry-picker |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #21665 |
What problem does this PR solve?
Issue Number: close #11755
Problem Summary: fix LEAD and LAG's default value can not adapt to field type
What is changed and how it works?
convert LEAD/LAG default value to field type
Check List
Tests
Release note