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

Function GetResultValue

python/pyarrow/src/arrow/python/common.h:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63// default constructor.
64template <class T>
65T GetResultValue(Result<T> result) {
66 if (ARROW_PREDICT_TRUE(result.ok())) {
67 return *std::move(result);
68 } else {
69 int r = internal::check_status(result.status()); // takes the GIL
70 assert(r == -1); // should have errored out
71 ARROW_UNUSED(r);
72 return {};
73 }
74}
75
76/// \brief Wrap a Result and return the corresponding Python object.
77///

Callers

nothing calls this directly

Calls 3

check_statusFunction · 0.70
okMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected