forked from ydb-platform/ydb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebase YQL CREATE (ydb-platform#8306)
- Loading branch information
1 parent
0628f08
commit ae312b3
Showing
20 changed files
with
362 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
ydb/docs/ru/core/yql/reference/yql-core/syntax/create_table/family.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Группы колонок | ||
|
||
{% if oss == true and backend_name == "YDB" %} | ||
|
||
{% include [not_allow_for_olap](../../../../_includes/not_allow_for_olap_note.md) %} | ||
|
||
{% endif %} | ||
|
||
Колонки одной таблицы можно объединять в группы, для того чтобы задать следующие параметры: | ||
|
||
* `DATA` — тип устройства хранения для данных колонок этой группы. Допустимые значения: ```"ssd"```, ```"rot"```. | ||
* `COMPRESSION` — кодек сжатия данных. Допустимые значения: ```"off"```, ```"lz4"```. | ||
|
||
По умолчанию все колонки находятся в одной группе с именем ```default```. При желании, параметры этой группы тоже можно переопределить. | ||
|
||
В примере ниже для создаваемой таблицы добавляется группа колонок ```family_large``` и устанавливается для колонки ```series_info```, а также переопределяются параметры для группы ```default```, которая по умолчанию установлена для всех остальных колонок. | ||
|
||
```sql | ||
CREATE TABLE series_with_families ( | ||
series_id Uint64, | ||
title Utf8, | ||
series_info Utf8 FAMILY family_large, | ||
release_date Uint64, | ||
PRIMARY KEY (series_id), | ||
FAMILY default ( | ||
DATA = "ssd", | ||
COMPRESSION = "off" | ||
), | ||
FAMILY family_large ( | ||
DATA = "rot", | ||
COMPRESSION = "lz4" | ||
) | ||
); | ||
``` | ||
|
||
{% note info %} | ||
|
||
Доступные типы устройств хранения зависят от конфигурации кластера {{ ydb-short-name }}. | ||
|
||
{% endnote %} |
Oops, something went wrong.