Skip to content

Commit

Permalink
feat: add range for show settings
Browse files Browse the repository at this point in the history
  • Loading branch information
guojidan committed Dec 18, 2023
1 parent 188426e commit 3589e06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/query/sql/src/planner/binder/show.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Binder {
) -> Result<Plan> {
let (show_limit, limit_str) = get_show_options(show_options, None);
let query = format!(
"SELECT name, value, default, level, description, type FROM system.settings {} ORDER BY name {}",
"SELECT name, value, default, `range`, level, description, type FROM system.settings {} ORDER BY name {}",
show_limit, limit_str,
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ SHOW SETTINGS LIKE 'enable%'
query TT
SHOW SETTINGS LIKE 'max%' LIMIT 1
----
max_block_size 65536 65536 SESSION Sets the maximum byte size of a single data block that can be read. UInt64
max_block_size 65536 65536 None SESSION Sets the maximum byte size of a single data block that can be read. UInt64

query TT
SHOW SETTINGS WHERE name='max_block_size' LIMIT 1
----
max_block_size 65536 65536 SESSION Sets the maximum byte size of a single data block that can be read. UInt64
max_block_size 65536 65536 None SESSION Sets the maximum byte size of a single data block that can be read. UInt64

statement error
SHOW SETTINGS ilike 'ff%' LIMIT 1
Expand Down

0 comments on commit 3589e06

Please sign in to comment.