| 84 | using PrimitiveConverter::PrimitiveConverter; |
| 85 | |
| 86 | Status Convert(const std::shared_ptr<Array>& in, std::shared_ptr<Array>* out) override { |
| 87 | if (in->type_id() != Type::NA) { |
| 88 | return GenericConversionError(*out_type_, " from ", *in->type()); |
| 89 | } |
| 90 | *out = in; |
| 91 | return Status::OK(); |
| 92 | } |
| 93 | }; |
| 94 | |
| 95 | class BooleanConverter : public PrimitiveConverter { |