Apply suggestions from code review

Co-authored-by: olgarev <56617294+olgarev@users.noreply.github.com>
This commit is contained in:
gyuton 2021-06-22 12:17:22 +03:00 committed by GitHub
parent eaa0f35811
commit 44a793b01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 5 deletions

View File

@ -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;

View File

@ -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;