-
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
window function: function name of error message should be lowercase #11047
Conversation
@SunRunAway PTAL |
Codecov Report
@@ Coverage Diff @@
## master #11047 +/- ##
===========================================
Coverage 81.1351% 81.1351%
===========================================
Files 420 420
Lines 89802 89802
===========================================
Hits 72861 72861
Misses 11695 11695
Partials 5246 5246 |
@@ -3148,7 +3148,7 @@ func (b *PlanBuilder) buildWindowFunctions(p LogicalPlan, groupedFuncs map[*ast. | |||
return nil, nil, err | |||
} | |||
if desc == nil { | |||
return nil, nil, ErrWrongArguments.GenWithStackByArgs(windowFunc.F) | |||
return nil, nil, ErrWrongArguments.GenWithStackByArgs(strings.ToLower(windowFunc.F)) |
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.
Does ErrWindowInvalidWindowFuncUse
need to lower the function name?
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.
ErrWindowInvalidWindowFuncUse
is not mentioned in #11009.
I think it's another issue.
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.
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
/run-all-tests |
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
/run-common-test tidb-test=pr/849 |
/run-common-test tidb-test=pr/849 |
1 similar comment
/run-common-test tidb-test=pr/849 |
/run-common-test tidb-test=pr/849 |
/rebuild |
/run-common-test tidb-test=pr/849 |
It seems that, not for sure, we failed to cherry-pick this commit to release-3.0. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @lamxTyler PTAL. |
/run-cherry-picker |
cherry pick to release-3.0 failed |
cherry pick to release-3.1 failed |
What problem does this PR solve?
function name of error message should be lowercase
Closes #11009
What is changed and how it works?
wrap
windowFunc.F
withstrings.ToLower
Check List
Tests