MCPcopy Create free account
hub / github.com/apache/arrow / ConvertData

Method ConvertData

python/pyarrow/src/arrow/python/numpy_to_arrow.cc:482–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480
481template <typename ArrowType>
482inline 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
495template <>
496inline Status NumPyConverter::ConvertData<Date32Type>(std::shared_ptr<Buffer>* data) {

Callers

nothing calls this directly

Calls 3

CastBufferFunction · 0.85
OKFunction · 0.50
EqualsMethod · 0.45

Tested by

no test coverage detected