Skip to content

Commit a05ddf2

Browse files
committed
add experimental and beta settings
1 parent 240f87f commit a05ddf2

File tree

3 files changed

+64
-20
lines changed

3 files changed

+64
-20
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ docs/cloud/manage/api/privateEndpointConfig-api-reference.md
5050
docs/cloud/manage/api/prometheus-api-reference.md
5151
docs/cloud/manage/api/usageCost-api-reference.md
5252
docs/whats-new/changelog/index.md
53+
docs/settings/beta-and-experimental-features.md
54+
5355
.vscode
5456
.aspell.en.prepl
5557
*.md.bak

scripts/settings/beta-settings.sql

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
-- First write the header
2+
SELECT '\n\n## Beta settings {#beta-settings}\n\n| Name | Default |\n|------|--------|'
3+
INTO OUTFILE 'beta-settings.md' TRUNCATE
4+
FORMAT TSVRaw;
5+
6+
-- Then append the table content
7+
WITH
8+
experimental_session_settings AS
9+
(
10+
SELECT
11+
format('[{}](/operations/settings/settings#{})', name, name) AS Name,
12+
format('`{}`', ifNull(default, ' ')) AS Default
13+
FROM system.settings
14+
WHERE tier = 'Beta' AND alias_for=''
15+
),
16+
experimental_mergetree_settings AS
17+
(
18+
SELECT
19+
format('[{}](/operations/settings/merge-tree-settings#{})', name, name) AS Name,
20+
format('`{}`', default) AS Default
21+
FROM system.merge_tree_settings
22+
WHERE tier = 'Beta'
23+
),
24+
combined AS
25+
(
26+
SELECT *
27+
FROM experimental_session_settings
28+
UNION ALL
29+
SELECT *
30+
FROM experimental_mergetree_settings
31+
ORDER BY Name ASC
32+
)
33+
SELECT concat('| ', Name, ' | ', Default, ' |')
34+
FROM combined
35+
INTO OUTFILE 'beta-settings.md' APPEND
36+
FORMAT TSVRaw;
Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,36 @@
1+
-- First write the header
2+
SELECT '\n\n## Experimental settings {#experimental-settings}\n\n| Name | Default |\n|------|--------|'
3+
INTO OUTFILE 'experimental-settings.md' TRUNCATE
4+
FORMAT TSVRaw;
5+
6+
-- Then append the table content
17
WITH
28
experimental_session_settings AS
39
(
410
SELECT
511
format('[{}](/operations/settings/settings#{})', name, name) AS Name,
612
format('`{}`', default) AS Default
7-
FROM system.settings
8-
WHERE tier = 'Experimental'
9-
),
13+
FROM system.settings
14+
WHERE tier = 'Experimental' AND alias_for=''
15+
),
1016
experimental_mergetree_settings AS
11-
(
12-
SELECT
13-
format('[{}](/operations/settings/merge-tree-settings#{})', name, name) AS Name,
14-
format('`{}`', default) AS Default
15-
FROM system.merge_tree_settings
16-
WHERE tier = 'Experimental'
17-
),
17+
(
18+
SELECT
19+
format('[{}](/operations/settings/merge-tree-settings#{})', name, name) AS Name,
20+
format('`{}`', default) AS Default
21+
FROM system.merge_tree_settings
22+
WHERE tier = 'Experimental'
23+
),
1824
combined AS
19-
(
20-
SELECT *
21-
FROM experimental_session_settings
22-
UNION ALL
23-
SELECT *
24-
FROM experimental_mergetree_settings
25-
)
25+
(
2626
SELECT *
27-
FROM combined
27+
FROM experimental_session_settings
28+
UNION ALL
29+
SELECT *
30+
FROM experimental_mergetree_settings
2831
ORDER BY Name ASC
29-
INTO OUTFILE 'experimental-settings.md' TRUNCATE
30-
FORMAT markdown
32+
)
33+
SELECT concat('| ', Name, ' | ', Default, ' |')
34+
FROM combined
35+
INTO OUTFILE 'experimental-settings.md' APPEND
36+
FORMAT TSVRaw;

0 commit comments

Comments
 (0)