MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getStorageID

Method getStorageID

src/Interpreters/AsynchronousInsertQueue.cpp:222–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222StorageID AsynchronousInsertQueue::InsertQuery::getStorageID() const
223{
224 if (!query)
225 throw Exception(ErrorCodes::LOGICAL_ERROR, "InsertQuery AST is null");
226
227 auto * insert_query = query->as<ASTInsertQuery>();
228 if (!insert_query)
229 throw Exception(ErrorCodes::LOGICAL_ERROR, "AST is not type of ASTInsertQuery");
230
231 return insert_query->table_id;
232}
233
234AsynchronousInsertQueue::InsertData::Entry::Entry(
235 DataChunk && chunk_,

Calls 1

ExceptionClass · 0.70

Tested by

no test coverage detected