ClickHouse/dbms/src/DataStreams/processConstants.h

24 lines
678 B
C++
Raw Normal View History

2018-10-19 12:02:31 +00:00
#pragma once
#include <Core/Block.h>
#include <Core/SortDescription.h>
namespace DB
{
2018-10-19 13:04:50 +00:00
/** Functions for manipulate constants for sorting.
2018-10-19 12:02:31 +00:00
* See MergeSortingBlocksBlockInputStream and FinishSortingBlockInputStream for details.
*/
/** Remove constant columns from block.
*/
void removeConstantsFromBlock(Block & block);
void removeConstantsFromSortDescription(const Block & header, SortDescription & description);
/** Add into block, whose constant columns was removed by previous function,
* constant columns from header (which must have structure as before removal of constants from block).
*/
void enrichBlockWithConstants(Block & block, const Block & header);
2018-10-19 13:04:50 +00:00
}