def final(self):
if not isinstance(self._model_cls.engine, CollapsingMergeTree):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>qs = copy(self)<EOL>qs._final = True<EOL>return qs<EOL>
Adds a FINAL modifier to table, meaning data will be collapsed to final version.
Can be used with `CollapsingMergeTree` engine only.