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

Function getVersion

src/Statistics/VersionHelper.cpp:29–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29std::optional<DateTime64> getVersion(ContextPtr context, const StatsTableIdentifier & table)
30{
31 try
32 {
33 auto obj = getTableStatistics(context, table);
34 if (!obj)
35 return std::nullopt;
36 return obj->getTimestamp();
37 }
38 catch (...)
39 {
40 tryLogCurrentException(&Poco::Logger::get("Statistics::getVersion"));
41 return std::nullopt;
42 }
43}
44
45}

Callers 3

sendContinueMethod · 0.85
getPlanFromCacheMethod · 0.85
addPlanToCacheMethod · 0.85

Calls 4

getTableStatisticsFunction · 0.85
tryLogCurrentExceptionFunction · 0.85
getFunction · 0.50
getTimestampMethod · 0.45

Tested by

no test coverage detected