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

Function GetCastToExtension

cpp/src/arrow/compute/kernels/scalar_cast_extension.cc:57–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57std::shared_ptr<CastFunction> GetCastToExtension(std::string name) {
58 auto func = std::make_shared<CastFunction>(std::move(name), Type::EXTENSION);
59 for (Type::type in_ty : AllTypeIds()) {
60 DCHECK_OK(func->AddKernel(in_ty, {InputType(in_ty)}, kOutputTargetType,
61 CastToExtension, NullHandling::COMPUTED_NO_PREALLOCATE,
62 MemAllocation::NO_PREALLOCATE));
63 }
64 return func;
65}
66
67}; // namespace
68

Callers 1

GetExtensionCastsFunction · 0.85

Calls 3

AllTypeIdsFunction · 0.85
InputTypeFunction · 0.85
AddKernelMethod · 0.45

Tested by

no test coverage detected