MCPcopy Create free account
hub / github.com/alibaba/zvec / global_init

Function global_init

src/db/sqlengine/sqlengine_impl.cc:36–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace zvec::sqlengine {
35
36void global_init() {
37 static std::once_flag once;
38 // run once
39 std::call_once(once, []() {
40 auto status = arrow::compute::Initialize();
41 if (!status.ok()) {
42 LOG_ERROR("arrow compute init failed: [%s]", status.ToString().c_str());
43 abort();
44 }
45 status = OpRegister::register_ops();
46 if (!status.ok()) {
47 LOG_ERROR("arrow compute register op failed: [%s]",
48 status.ToString().c_str());
49 abort();
50 }
51 });
52}
53
54SQLEngine::~SQLEngine() = default;
55

Callers 1

search_by_query_infoMethod · 0.70

Calls 2

c_strMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected