ClickHouse/dbms/src/Interpreters/evaluateMissingDefaults.h

22 lines
390 B
C++
Raw Normal View History

#pragma once
2016-01-13 00:32:59 +00:00
#include <unordered_map>
#include <string>
2016-01-13 00:32:59 +00:00
namespace DB
{
2016-01-13 00:32:59 +00:00
class Block;
class Context;
class NamesAndTypesList;
2016-01-13 00:32:59 +00:00
struct ColumnDefault;
2018-12-04 14:09:47 +00:00
///
2016-01-13 00:32:59 +00:00
void evaluateMissingDefaults(Block & block,
const NamesAndTypesList & required_columns,
const std::unordered_map<std::string, ColumnDefault> & column_defaults,
2018-12-04 14:09:47 +00:00
const Context & context, bool save_unneded_columns = true);
}