| 480 | |
| 481 | template <typename ArrowType> |
| 482 | inline Status NumPyConverter::ConvertData(std::shared_ptr<Buffer>* data) { |
| 483 | RETURN_NOT_OK(PrepareInputData<ArrowType>(data)); |
| 484 | |
| 485 | ARROW_ASSIGN_OR_RAISE(auto input_type, NumPyDtypeToArrow(dtype_)); |
| 486 | |
| 487 | if (!input_type->Equals(*type_)) { |
| 488 | RETURN_NOT_OK(CastBuffer(input_type, *data, length_, null_bitmap_, null_count_, type_, |
| 489 | cast_options_, pool_, data)); |
| 490 | } |
| 491 | |
| 492 | return Status::OK(); |
| 493 | } |
| 494 | |
| 495 | template <> |
| 496 | inline Status NumPyConverter::ConvertData<Date32Type>(std::shared_ptr<Buffer>* data) { |
nothing calls this directly
no test coverage detected