| 322 | } |
| 323 | |
| 324 | Result<std::shared_ptr<DataType>> DeserializeType( |
| 325 | const Buffer& buf, const ExtensionSet& ext_set, |
| 326 | const ConversionOptions& conversion_options) { |
| 327 | ARROW_ASSIGN_OR_RAISE(auto type, ParseFromBuffer<substrait::Type>(buf)); |
| 328 | ARROW_ASSIGN_OR_RAISE(auto type_nullable, FromProto(type, ext_set, conversion_options)); |
| 329 | return std::move(type_nullable.first); |
| 330 | } |
| 331 | |
| 332 | Result<std::shared_ptr<Buffer>> SerializeType( |
| 333 | const DataType& type, ExtensionSet* ext_set, |
no outgoing calls