| 30 | namespace gandiva { |
| 31 | |
| 32 | arrow::Status ExportedTimeFunctions::AddMappings(Engine* engine) const { |
| 33 | std::vector<llvm::Type*> args; |
| 34 | auto types = engine->types(); |
| 35 | |
| 36 | // gdv_fn_time_with_zone |
| 37 | args = {types->ptr_type(types->i32_type()), // time fields |
| 38 | types->i8_ptr_type(), // const char* zone |
| 39 | types->i32_type(), // int data_len |
| 40 | types->i64_type()}; // timestamp *ret_time |
| 41 | |
| 42 | engine->AddGlobalMappingForFunc("gdv_fn_time_with_zone", |
| 43 | types->i32_type() /*return_type*/, args, |
| 44 | reinterpret_cast<void*>(gdv_fn_time_with_zone)); |
| 45 | return arrow::Status::OK(); |
| 46 | } |
| 47 | |
| 48 | } // namespace gandiva |
| 49 | #endif // !GANDIVA_UNIT_TEST |
no test coverage detected