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

bug: settings can't change back to default value after global set #14683

Closed
sundy-li opened this issue Feb 19, 2024 · 0 comments · Fixed by #14702
Closed

bug: settings can't change back to default value after global set #14683

sundy-li opened this issue Feb 19, 2024 · 0 comments · Fixed by #14702
Assignees

Comments

@sundy-li
Copy link
Member

Summary

🐳 :) set max_threads = 10;
0 row read in 0.018 sec. Processed 0 row, 0 B (0 row/s, 0 B/s)

🐳 :) show settings like '%max_threads%';
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│     name    │  value │ default │   range   │  level  │                        description                       │  type  │
│    String   │ String │  String │   String  │  String │                          String                          │ String │
├─────────────┼────────┼─────────┼───────────┼─────────┼──────────────────────────────────────────────────────────┼────────┤
│ max_threads │ 10     │ 16      │ [1, 1024] │ SESSION │ Sets the maximum number of threads to execute a request. │ UInt64 │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
1 row read in 0.030 sec. Processed 88 row, 15.00 KiB (2.93 thousand row/s, 498.56 KiB/s)

🐳 :) set max_threads = 16;
0 row read in 0.018 sec. Processed 0 row, 0 B (0 row/s, 0 B/s)

🐳 :) show settings like '%max_threads%';
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│     name    │  value │ default │   range   │  level │                        description                       │  type  │
│    String   │ String │  String │   String  │ String │                          String                          │ String │
├─────────────┼────────┼─────────┼───────────┼────────┼──────────────────────────────────────────────────────────┼────────┤
│ max_threads │ 100    │ 16      │ [1, 1024] │ GLOBAL │ Sets the maximum number of threads to execute a request. │ UInt64 │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
1 row read in 0.042 sec. Processed 88 row, 15.00 KiB (2.07 thousand row/s, 353.14 KiB/s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants