mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
Removed context from CheckConstraintsBlockOutputStream
This commit is contained in:
parent
773849a43d
commit
d1492fc05d
@ -19,13 +19,11 @@ public:
|
||||
CheckConstraintsBlockOutputStream(
|
||||
const BlockOutputStreamPtr & output_,
|
||||
const Block & header_,
|
||||
const ConstraintsDescription & constraints_,
|
||||
const Context & context_)
|
||||
const ConstraintsDescription & constraints_)
|
||||
: output(output_),
|
||||
header(header_),
|
||||
constraints(constraints_),
|
||||
expressions(constraints_.getExpressions(context_, header.getNamesAndTypesList())),
|
||||
context(context_)
|
||||
expressions(constraints_.getExpressions(context_, header.getNamesAndTypesList()))
|
||||
{ }
|
||||
|
||||
Block getHeader() const override { return header; }
|
||||
@ -43,6 +41,5 @@ private:
|
||||
Block header;
|
||||
const ConstraintsDescription constraints;
|
||||
const ConstraintsExpressions expressions;
|
||||
const Context & context;
|
||||
};
|
||||
}
|
||||
|
@ -118,8 +118,7 @@ BlockIO InterpreterInsertQuery::execute()
|
||||
out = std::make_shared<AddingDefaultBlockOutputStream>(
|
||||
out, query_sample_block, table->getSampleBlock(), table->getColumns().getDefaults(), context);
|
||||
|
||||
out = std::make_shared<CheckConstraintsBlockOutputStream>(
|
||||
out, query_sample_block, table->getConstraints(), context);
|
||||
out = std::make_shared<CheckConstraintsBlockOutputStream>(out, query_sample_block, table->getConstraints());
|
||||
|
||||
auto out_wrapper = std::make_shared<CountingBlockOutputStream>(out);
|
||||
out_wrapper->setProcessListElement(context.getProcessListElement());
|
||||
|
Loading…
Reference in New Issue
Block a user