| 269 | } |
| 270 | |
| 271 | void AddZeroCopyCast(Type::type in_type_id, InputType in_type, OutputType out_type, |
| 272 | CastFunction* func) { |
| 273 | auto sig = KernelSignature::Make({in_type}, out_type); |
| 274 | ScalarKernel kernel; |
| 275 | kernel.exec = ZeroCopyCastExec; |
| 276 | kernel.signature = sig; |
| 277 | kernel.null_handling = NullHandling::COMPUTED_NO_PREALLOCATE; |
| 278 | kernel.mem_allocation = MemAllocation::NO_PREALLOCATE; |
| 279 | DCHECK_OK(func->AddKernel(in_type_id, std::move(kernel))); |
| 280 | } |
| 281 | |
| 282 | static bool CanCastFromDictionary(Type::type type_id) { |
| 283 | /// TODO(GH-43010): add is_binary_view_like() here once array_take |
no test coverage detected