1 | #pragma once |
2 | |
3 | #include <Core/Block.h> |
4 | #include <Core/SortDescription.h> |
5 | |
6 | |
7 | namespace 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 | */ |
15 | void removeConstantsFromBlock(Block & block); |
16 | |
17 | void removeConstantsFromSortDescription(const Block & , 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 | */ |
22 | void enrichBlockWithConstants(Block & block, const Block & ); |
23 | } |
24 | |