-
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
session: fix show variable
result of tidb_enable_window_function
after upgrade
#13866
session: fix show variable
result of tidb_enable_window_function
after upgrade
#13866
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13866 +/- ##
================================================
+ Coverage 80.3896% 80.4014% +0.0118%
================================================
Files 475 474 -1
Lines 119223 118509 -714
================================================
- Hits 95843 95283 -560
+ Misses 15870 15803 -67
+ Partials 7510 7423 -87 |
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
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 |
@lysu merge failed. |
/merge |
/run-all-tests |
cherry pick to release-3.0 failed |
/run-cherry-picker |
/run-cherry-picker |
cherry pick to release-3.0 in PR #14131 |
…
What problem does this PR solve?
tidb_enable_window_function
will display as1
inshow variables
's result after upgrade from old version, but realtidb_enable_window_function
value will keep 0 due to keep syntax compatibility, on another hand, new cluster can safe use1
as default value.What is changed and how it works?
when upgrade from old version, insert a default 0 value if no exists record in
GLOBAL_VARIABLES
Check List
Tests
Code changes
Side effects
Related changes
Release note
show variable
result oftidb_enable_window_function
after upgradeThis change is