MDEV-35369: Add is_deprecated column to system_variables table#4698
MDEV-35369: Add is_deprecated column to system_variables table#4698HNOONa-0 wants to merge 1 commit intoMariaDB:mainfrom
system_variables table#4698Conversation
e7b36d8 to
7552693
Compare
|
rebased on main and updated the failed test |
0dc5720 to
b7d9e01
Compare
There was a problem hiding this comment.
I assume system_variables is a virtual table that does not need any migration scripts but I could be wrong.
You are correct. No migration need.
The author explicitly stated on JIRA that is_deprecated should be boolean column, however, sql_i_s.h doesn't contain a definition for the boolean datatype, only STiny type is defined so that is what i used. I could add a separate definition and handler for the boolean type if that is desired.
STiny is ok. Per JIRA, I think the replacement variable would be more useful, however lets get the author to comment there before implementing.
I added the column at the end of the table so that no other changes are necessary inside of fill_sysvars or other areas of code.
Correct.
So in summary:
- good so far
- Lets see if JIRA issue author just wants the replacement variable
replace_regexshouldn't be there for the tests, most won't need to change- re-record tests or adjust the
SELECT *to include less fields. I think that just a re-recording of the test case and committing the result should be fine in all of these cases.
gkodinov
left a comment
There was a problem hiding this comment.
This is a preliminary review. Please keep working with Daniel on the full review.
The only extra remark I have is that you need to get your commit message to be according to CODING_STANDARDS.md
b691ce2 to
4a93681
Compare
|
Hi @grooverdan, I played with |
grooverdan
left a comment
There was a problem hiding this comment.
Code is good. Thanks for following and adapting to requested changes and JIRA discussion from @hartmut-mariadb.
Can I get you to amend and push a more verbose in the commit message. Explicitly:
[MDEV-35369 Add deprecation columns to i_s.system_variables
Adds columns:
* IS_DEPRECATED, as a boolean if the value is deprecated
* DEPRECATED_REPLACEMENT, as how the server replaces this variable
Note this may not be merged immediately, there's a QA/testing process to go through for new features. It will be used.
Many thanks for the contribution.
Adds columns: * IS_DEPRECATED, as a boolean if the value is deprecated * DEPRECATED_REPLACEMENT, as how the server replaces this variable
Description
I added a
tinyint(1)column to thesystem_variablestable.I assume
system_variablesis a virtual table that does not need any migration scripts but I could be wrong.The author explicitly stated on
JIRAthatis_deprecatedshould bebooleancolumn, however,sql_i_s.hdoesn't contain a definition for thebooleandatatype, onlySTinytype is defined so that is what i used. I could add a separate definition and handler for thebooleantype if that is desired.I added the column at the end of the table so that no other changes are necessary inside of
fill_sysvarsor other areas of code.here are a couple of queries with

is_deprecatedfilter:Release Notes
Exposed the
IS_DEPRECATEDcolumn inINFORMATION_SCHEMA.SYSTEM_VARIABLES, enabling automated checks for deprecated configuration settings.How can this PR be tested?
Basing the PR against the correct MariaDB version
mainbranch.PR quality check