From 44a793b01a0bf8177776959dba21215f1f4d5b1b Mon Sep 17 00:00:00 2001 From: gyuton <40863448+gyuton@users.noreply.github.com> Date: Tue, 22 Jun 2021 12:17:22 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com> --- docs/en/operations/settings/settings.md | 7 +++++-- docs/ru/operations/settings/settings.md | 10 +++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/en/operations/settings/settings.md b/docs/en/operations/settings/settings.md index d66b78a3909..5482b6fc658 100644 --- a/docs/en/operations/settings/settings.md +++ b/docs/en/operations/settings/settings.md @@ -3080,9 +3080,12 @@ Default value: `1`. If the setting is set to `0`, it is possible to use an arbitrary level of nesting. -With the setting set to `1`: +**Examples** + +Query: ``` sql +SET flatten_nested = 1; CREATE TABLE t_nest (`n` Nested(a UInt32, b UInt32)) ENGINE = MergeTree ORDER BY tuple(); SHOW CREATE TABLE t_nest; @@ -3103,7 +3106,7 @@ SETTINGS index_granularity = 8192 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ``` -With the setting set to `0`: +Query: ``` sql SET flatten_nested = 0; diff --git a/docs/ru/operations/settings/settings.md b/docs/ru/operations/settings/settings.md index 94effe75887..99183e35eba 100644 --- a/docs/ru/operations/settings/settings.md +++ b/docs/ru/operations/settings/settings.md @@ -2969,11 +2969,15 @@ FROM fuse_tbl **Использование** -Если установлено значение `0`, возможно использовать любой уровень вложенности. +Если установлено значение `0`, можно использовать любой уровень вложенности. -С значением настройки `1`: +**Примеры** + +Запрос: ``` sql +SET flatten_nested = 1; + CREATE TABLE t_nest (`n` Nested(a UInt32, b UInt32)) ENGINE = MergeTree ORDER BY tuple(); SHOW CREATE TABLE t_nest; @@ -2994,7 +2998,7 @@ SETTINGS index_granularity = 8192 │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ``` -С значением настройки `0`: +Запрос: ``` sql SET flatten_nested = 0;