1#pragma once
2
3#include <Core/Block.h>
4#include <Core/SortDescription.h>
5
6
7namespace DB
8{
9/** Functions for manipulate constants for sorting.
10 * See MergeSortingBlocksBlockInputStream and FinishSortingBlockInputStream for details.
11*/
12
13/** Remove constant columns from block.
14 */
15void removeConstantsFromBlock(Block & block);
16
17void removeConstantsFromSortDescription(const Block & header, SortDescription & description);
18
19/** Add into block, whose constant columns was removed by previous function,
20 * constant columns from header (which must have structure as before removal of constants from block).
21 */
22void enrichBlockWithConstants(Block & block, const Block & header);
23}
24