Skip to content

Commit 8ac3093

Browse files
committed
tabulate type and default
1 parent a4a7e8e commit 8ac3093

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/settings/mergetree-settings.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ WITH
22
merge_tree_settings AS
33
(
44
SELECT format(
5-
'## {} {} \n{}\nType: \`{}\`\n\nDefault: \`{}\`\n{}',
5+
'## {} {} \n{}\n{}{}',
66
name,
77
'{#'||name||'}',
88
multiIf(tier == 'Experimental', '\n<ExperimentalBadge/>\n', tier == 'Beta', '\n<BetaBadge/>\n', ''),
9-
type,
10-
default,
9+
if(type != '' AND default != '', format('|Type|Default|\n|---|---|\n|`{}`|`{}`|\n\n',type, default), ''),
1110
replaceRegexpAll(description, '(?m)(^[ \t]+|[ \t]+$)', '')
1211
)
1312
FROM system.merge_tree_settings ORDER BY name

0 commit comments

Comments
 (0)