| 471 | |
| 472 | template <typename ArrowType> |
| 473 | inline Status NumPyConverter::ConvertData(std::shared_ptr<Buffer>* data) { |
| 474 | RETURN_NOT_OK(PrepareInputData<ArrowType>(data)); |
| 475 | |
| 476 | ARROW_ASSIGN_OR_RAISE(auto input_type, NumPyDtypeToArrow(dtype_)); |
| 477 | |
| 478 | if (!input_type->Equals(*type_)) { |
| 479 | RETURN_NOT_OK(CastBuffer(input_type, *data, length_, null_bitmap_, null_count_, type_, |
| 480 | cast_options_, pool_, data)); |
| 481 | } |
| 482 | |
| 483 | return Status::OK(); |
| 484 | } |
| 485 | |
| 486 | template <> |
| 487 | inline Status NumPyConverter::ConvertData<Date32Type>(std::shared_ptr<Buffer>* data) { |
nothing calls this directly
no test coverage detected