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

Method ConvertData

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

Source from the content-addressed store, hash-verified

471
472template <typename ArrowType>
473inline 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
486template <>
487inline 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