MCPcopy Create free account
hub / github.com/ByConity/ByConity / allocate

Method allocate

src/QueryPlan/TableWriteStep.cpp:248–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void TableWriteStep::allocate(const ContextPtr & context)
249{
250 auto storage_id = target->getStorage()->prepareTableWrite(context);
251 if (auto * input_target = dynamic_cast<InsertTarget *>(target.get()))
252 target = std::make_shared<InsertTarget>(input_target->getStorage(), storage_id, input_target->getColumns(), input_target->getQuery());
253 else
254 throw Exception("unknown TableWrite::Target", ErrorCodes::LOGICAL_ERROR);
255}
256
257void TableWriteStep::Target::toProto(Protos::TableWriteStep::Target & proto) const
258{

Callers

nothing calls this directly

Calls 6

ExceptionClass · 0.50
prepareTableWriteMethod · 0.45
getStorageMethod · 0.45
getMethod · 0.45
getColumnsMethod · 0.45
getQueryMethod · 0.45

Tested by

no test coverage detected