| 34 | namespace zvec::sqlengine { |
| 35 | |
| 36 | void 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 | |
| 54 | SQLEngine::~SQLEngine() = default; |
| 55 |
no test coverage detected