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

Function checkNotOrdinaryDatabase

src/Interpreters/MergeTreeTransaction.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static void checkNotOrdinaryDatabase(const StoragePtr & storage)
35{
36 if (storage->getStorageID().uuid != UUIDHelpers::Nil)
37 return;
38
39 throw Exception(ErrorCodes::NOT_IMPLEMENTED, "Table {} belongs to database with Ordinary engine. "
40 "This engine is deprecated and is not supported in transactions.", storage->getStorageID().getNameForLogs());
41}
42
43MergeTreeTransaction::MergeTreeTransaction(CSN snapshot_, LocalTID local_tid_, UUID host_id, std::list<CSN>::iterator snapshot_it_)
44 : tid({snapshot_, local_tid_, host_id})

Callers 3

addNewPartMethod · 0.85
removeOldPartMethod · 0.85
addMutationMethod · 0.85

Calls 3

ExceptionClass · 0.70
getStorageIDMethod · 0.45
getNameForLogsMethod · 0.45

Tested by

no test coverage detected