Skip to content

DOCAPI-7436: Enum type docs. EN review, RU translation.#6630

Merged
BayoNet merged 5 commits intoClickHouse:masterfrom
BayoNet:l10n/DOCAPI-7436-enum
Aug 26, 2019
Merged

DOCAPI-7436: Enum type docs. EN review, RU translation.#6630
BayoNet merged 5 commits intoClickHouse:masterfrom
BayoNet:l10n/DOCAPI-7436-enum

Conversation

@BayoNet
Copy link
Contributor

@BayoNet BayoNet commented Aug 23, 2019

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Category (leave one):

@BayoNet BayoNet added comp-documentation Documentation. pr-documentation Documentation PRs for the specific code PR labels Aug 23, 2019
@BayoNet BayoNet changed the title L10n/docapi 7436 enum DOCAPI-7436: Enum type docs. EN review, RU translation. Aug 23, 2019
# Enum

Enumerated type storing pairs of the `'string' = integer` format.
Enumerated type storing pairs in `'string' = integer` format.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sounds confusing since real data is stored only as integers, I'd suggest rewriting it without using "store"

- 16-bit `Enum`. It can contain up to 65536 values enumerated in the `[-32768, 32767]` range.

ClickHouse automatically chooses a type for `Enum` at data insertion. Also, you can use `Enum8` or `Enum16` types to be sure in size of storage.
ClickHouse automatically chooses the type of `Enum` when data is inserted. You can also use `Enum8` or `Enum16` types to lock in the storage size.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • second sentence does not make sense now
  • needs a link to LowCardinality(String) data type as an alternative more flexible approach

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LowCardinality is not described yet, but I added your comment to the task for the type description.

@BayoNet BayoNet merged commit a98b91c into ClickHouse:master Aug 26, 2019
@BayoNet BayoNet deleted the l10n/DOCAPI-7436-enum branch August 26, 2019 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-documentation Documentation. pr-documentation Documentation PRs for the specific code PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants