ClickHouse/src/Interpreters/getColumnFromBlock.h
2022-02-16 17:18:03 +03:00

14 lines
389 B
C++

#pragma once
#include <Core/Block.h>
namespace DB
{
/// Helps in-memory storages to extract columns from block.
/// Properly handles cases, when column is a subcolumn and when it is compressed.
ColumnPtr getColumnFromBlock(const Block & block, const NameAndTypePair & requested_column);
ColumnPtr tryGetColumnFromBlock(const Block & block, const NameAndTypePair & requested_column);
}