Manipulating Sampling-Key Expressions 

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 a sense that it only changes metadata. The primary key must contain the new sample key.

replicated tables).

Rating: 4 - 1 votes

Was this content helpful?