Manipulating Sampling-Key Expressions
Syntax:
ALTER TABLE [db].name [ON CLUSTER cluster] MODIFY SAMPLE BY new_expression
The command changes the sampling key of the table to new_expression
(an expression or a tuple of expressions).
The command is lightweight in the sense that it only changes metadata. The primary key must contain the new sample key.
Note
It only works for tables in the MergeTree family (including
replicated tables).
当前内容版权归 ClickHouse 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ClickHouse .