Skip to content

DOCAPI-7062: MySQL database engine and MergeTree TTL docs. EN review, RU translation#6407

Merged
BayoNet merged 23 commits intoClickHouse:masterfrom
BayoNet:l10n/DOCAPI-7062-MySQL-database-engine
Aug 14, 2019
Merged

DOCAPI-7062: MySQL database engine and MergeTree TTL docs. EN review, RU translation#6407
BayoNet merged 23 commits intoClickHouse:masterfrom
BayoNet:l10n/DOCAPI-7062-MySQL-database-engine

Conversation

@BayoNet
Copy link
Copy Markdown
Contributor

@BayoNet BayoNet commented Aug 8, 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 (docs, examples, READMEs). pr-documentation Documentation PRs for the specific code PR labels Aug 8, 2019
For descriptions of request parameters, see the [request description](../../query_language/create.md).

**Query clauses**
**Query Clauses**
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why these are not real headers?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't see any practical sence to express this elements as headers, and I don't see it now :-), but I'll do.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's just never use this header-like bold and make them small enough ###.
If it'll be too noisy in ToC or look weird, we'll just fix that.


Секция `TTL` может быть установлена для всей таблицы и для каждого отдельного столбца. Если `TTL` установлен на таблицу, то индивидуальный `TTL` для столбцов игнорируются.

Таблица должна иметь столбец типа [Date](../../data_types/date.md) или [DateTime](../../data_types/datetime.md). Столбец с датой следует использовать в поле `TTL`. Вы можете установить время жизни данных только как интервал от значения столбца даты.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Вы можете установить время жизни данных только как интервал от значения столбца даты.

Во-первых не понятно что такое «интервал от значения», а во-вторых где-то в другом месте писали, что это может быть любое выражение от колонки с датой, а про интервал — просто типовой пример.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Может быть что-то поменялось с тех пор, как я разговаривал с Антоном, но мы с ним выяснили, что время можно задать только как интервал.

Copy link
Copy Markdown
Contributor

@blinkov blinkov Aug 14, 2019

Choose a reason for hiding this comment

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

@BayoNet значит надо перепроверить и если и правда так, то надо убедиться, что в других местах не написано иначе

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Другое место - это здесь же :-). Я как раз таки ходил и переписывал этот раздел, выяснял как оно на самом деле.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

На самом деле можно использовать любое выражение от столбца с датой. Например, можно задать одним столбцом TTL date. Просто оказалось, что кроме кейса TTL date + INTERVAL ... сложно придумать что-то еще. У нас немного функций для даты с временем.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Спасибо. Сейчас поправлю текст.

@BayoNet BayoNet merged commit 5a9f31e into ClickHouse:master Aug 14, 2019
@BayoNet BayoNet deleted the l10n/DOCAPI-7062-MySQL-database-engine branch August 14, 2019 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-documentation Documentation (docs, examples, READMEs). pr-documentation Documentation PRs for the specific code PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants