mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
33 lines
756 B
C++
33 lines
756 B
C++
#pragma once
|
|
|
|
#include <DataStreams/IBlockInputStream.h>
|
|
#include <Storages/ColumnDefault.h>
|
|
#include <Interpreters/Context.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Adds defaults to columns using BlockDelayedDefaults bitmask attached to Block by child InputStream.
|
|
class AddingDefaultsBlockInputStream : public IBlockInputStream
|
|
{
|
|
public:
|
|
AddingDefaultsBlockInputStream(
|
|
const BlockInputStreamPtr & input,
|
|
const ColumnDefaults & column_defaults_,
|
|
const Context & context_);
|
|
|
|
String getName() const override { return "AddingDefaults"; }
|
|
Block getHeader() const override { return header; }
|
|
|
|
protected:
|
|
Block readImpl() override;
|
|
|
|
private:
|
|
Block header;
|
|
const ColumnDefaults column_defaults;
|
|
const Context & context;
|
|
};
|
|
|
|
}
|