Skip to content
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

The result is null when we execute command "show variables like 'tidb_enable_window_function'" and "show variables like 'tidb_enable_mutation_checker'"'; #34060

Closed
sylar8023baby opened this issue Apr 18, 2022 · 4 comments
Labels
severity/moderate type/bug This issue is a bug.

Comments

@sylar8023baby
Copy link

Bug Report

1. Minimal reproduce step (Required)

// when we execute command "show variables like ..." ,the result is "Empty set"

mysql> show variables like 'tidb_txn_assertion_level';
Empty set (0.01 sec)

mysql> show variables like '%tidb_enable_mutation_checker%';
Empty set (0.01 sec)

// when we execute command "select @@... , the result is seemd right.

mysql> select @@tidb_txn_assertion_level;
+----------------------------+
| @@tidb_txn_assertion_level |
+----------------------------+
| FAST |
+----------------------------+
1 row in set (0.00 sec)

mysql> select @@tidb_enable_mutation_checker;
+--------------------------------+
| @@tidb_enable_mutation_checker |
+--------------------------------+
| 1 |
+--------------------------------+
1 row in set (0.00 sec)

mysql>

2. What did you expect to see? (Required)

It should return system variables where we are selecting.

3. What did you see instead (Required)

It actully returns "Empty set ".

4. What is your TiDB version? (Required)

// tidb version

mysql> select tidb_version();
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------+
| tidb_version()
|
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------+
| Release Version: v6.0.0
Edition: Community
Git Commit Hash: 36a9810
Git Branch: heads/refs/tags/v6.0.0
UTC Build Time: 2022-03-31 10:33:28
GoVersion: go1.18
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------+

@sylar8023baby sylar8023baby added the type/bug This issue is a bug. label Apr 18, 2022
@Defined2014
Copy link
Contributor

I think it's by design. Because TiDBTxnAssertionLevel and TiDBEnableMutationChecker are hidden sysvars. cc @morgo

@morgo
Copy link
Contributor

morgo commented Apr 18, 2022

Yes that's right - it's currently by design. We do have plans to fix it in future though, and no longer hide sysvars. See: https://github.com/pingcap/tidb/blob/master/docs/design/2021-07-29-hidden-sysvars.md

@sylar8023baby
Copy link
Author

Thank you

@Defined2014
Copy link
Contributor

It fixed by #35740, so close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate type/bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

4 participants