mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
27 lines
665 B
C++
27 lines
665 B
C++
#pragma once
|
|
|
|
#include <unordered_map>
|
|
#include <string>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Block;
|
|
class Context;
|
|
class NamesAndTypesList;
|
|
struct ColumnDefault;
|
|
|
|
/// Adds missing defaults to block according to required_columns
|
|
/// using column_defaults map
|
|
void evaluateMissingDefaults(Block & block,
|
|
const NamesAndTypesList & required_columns,
|
|
const std::unordered_map<std::string, ColumnDefault> & column_defaults,
|
|
const Context & context, bool save_unneeded_columns = true);
|
|
|
|
/// Tries to convert columns in block to required_columns
|
|
void performRequiredConversions(Block & block,
|
|
const NamesAndTypesList & required_columns,
|
|
const Context & context);
|
|
}
|