| 144 | } |
| 145 | |
| 146 | CastFunction::CastFunction(std::string name, Type::type out_type_id) |
| 147 | : ScalarFunction(std::move(name), Arity::Unary(), FunctionDoc::Empty()), |
| 148 | out_type_id_(out_type_id) {} |
| 149 | |
| 150 | Status CastFunction::AddKernel(Type::type in_type_id, ScalarKernel kernel) { |
| 151 | // We use the same KernelInit for every cast |