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

Method Deserialize

python/pyarrow/src/arrow/python/extension_type.cc:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148Result<std::shared_ptr<DataType>> PyExtensionType::Deserialize(
149 std::shared_ptr<DataType> storage_type, const std::string& serialized_data) const {
150 PyAcquireGIL lock;
151
152 if (import_pyarrow()) {
153 return ConvertPyError();
154 }
155 OwnedRef res(DeserializeExtInstance(type_class_.obj(), storage_type, serialized_data));
156 if (!res) {
157 return ConvertPyError();
158 }
159 return unwrap_data_type(res.obj());
160}
161
162PyObject* PyExtensionType::GetInstance() const {
163 if (!type_instance_) {

Callers

nothing calls this directly

Calls 3

import_pyarrowFunction · 0.85
ConvertPyErrorFunction · 0.85
DeserializeExtInstanceFunction · 0.85

Tested by

no test coverage detected