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

Function InvalidValue

python/pyarrow/src/arrow/python/helpers.cc:433–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431PyObject* BorrowPandasDataOffsetType() { return pandas_DateOffset; }
432
433Status InvalidValue(PyObject* obj, const std::string& why) {
434 auto obj_as_str = PyObject_StdStringRepr(obj);
435 return Status::Invalid("Could not convert ", std::move(obj_as_str), " with type ",
436 Py_TYPE(obj)->tp_name, ": ", why);
437}
438
439Status InvalidType(PyObject* obj, const std::string& why) {
440 auto obj_as_str = PyObject_StdStringRepr(obj);

Callers 3

VisitMethod · 0.85
VisitArrowScalarMethod · 0.85
ConvertMethod · 0.85

Calls 2

PyObject_StdStringReprFunction · 0.85
InvalidFunction · 0.50

Tested by

no test coverage detected