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

Method TransferSingle

python/pyarrow/src/arrow/python/arrow_to_pandas.cc:1526–1532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1524 using TypedPandasWriter<NPY_BOOL>::TypedPandasWriter;
1525
1526 Status TransferSingle(std::shared_ptr<ChunkedArray> data, PyObject* py_ref) override {
1527 RETURN_NOT_OK(
1528 CheckNoZeroCopy("Zero copy conversions not possible with "
1529 "boolean types"));
1530 RETURN_NOT_OK(EnsureAllocated());
1531 return CopyInto(data, /*rel_placement=*/0);
1532 }
1533
1534 Status CopyInto(std::shared_ptr<ChunkedArray> data, int64_t rel_placement) override {
1535 RETURN_NOT_OK(this->CheckTypeExact(*data->type(), Type::BOOL));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected