mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
update engines/table-engines/mergetree-family/mergetree.md
This commit is contained in:
parent
70ec444400
commit
a7edcb0de3
@ -76,7 +76,7 @@ For a description of parameters, see the [CREATE query description](../../../sql
|
||||
|
||||
- `SAMPLE BY` — An expression for sampling. Optional.
|
||||
|
||||
If a sampling expression is used, the primary key must contain it. Example: `SAMPLE BY intHash32(UserID) ORDER BY (CounterID, EventDate, intHash32(UserID))`.
|
||||
If a sampling expression is used, the primary key must contain it. The result of sampling expression must be unsigned integer. Example: `SAMPLE BY intHash32(UserID) ORDER BY (CounterID, EventDate, intHash32(UserID))`.
|
||||
|
||||
- `TTL` — A list of rules specifying storage duration of rows and defining logic of automatic parts movement [between disks and volumes](#table_engine-mergetree-multiple-volumes). Optional.
|
||||
|
||||
|
@ -280,14 +280,14 @@ Default value: `0`.
|
||||
|
||||
## check_sample_column_is_correct {#check_sample_column_is_correct}
|
||||
|
||||
Enables to check column or column by hash for sampling is correct at creation table.
|
||||
Enables to check column for sampling or sampling expression is correct at creation table.
|
||||
|
||||
Possible values:
|
||||
|
||||
- true — Check column for sampling is correct at creation table
|
||||
- false — Check column for sampling is correct at creation table will be ignored.
|
||||
- true — Check column or sampling expression is correct at creation table
|
||||
- false — Check column or sampling expression is at creation table will be ignored.
|
||||
|
||||
Default value: `true`.
|
||||
|
||||
By default, the ClickHouse server check sampling condition at creation table. If you already had tables with incorrect sampling condition, set value `false` to make ClickHouse server do not raise exception when ClickHouse server is starting.
|
||||
By default, the ClickHouse server check column for sampling or sampling expression at creation table. If you already had tables with incorrect sampling expression, set value `false` to make ClickHouse server do not raise exception when ClickHouse server is starting.
|
||||
[Original article](https://clickhouse.tech/docs/en/operations/settings/merge_tree_settings/) <!--hide-->
|
||||
|
Loading…
Reference in New Issue
Block a user