MCPcopy Create free account
hub / github.com/apache/arrow / AddMappings

Method AddMappings

cpp/src/gandiva/cast_time.cc:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace gandiva {
31
32arrow::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

Callers 1

AddGlobalMappingsMethod · 0.45

Calls 3

typesMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected