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

Function ImportDecimalType

python/pyarrow/src/arrow/python/decimal.cc:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace internal {
31
32Status ImportDecimalType(OwnedRef* decimal_type) {
33 OwnedRef decimal_module;
34 RETURN_NOT_OK(ImportModule("decimal", &decimal_module));
35 RETURN_NOT_OK(ImportFromModule(decimal_module.obj(), "Decimal", decimal_type));
36 return Status::OK();
37}
38
39Status PythonDecimalToString(PyObject* python_decimal, std::string* out) {
40 // Call Python's str(decimal_object)

Callers 2

PyDecimal_CheckFunction · 0.85
TypeInferrerMethod · 0.85

Calls 3

ImportModuleFunction · 0.85
ImportFromModuleFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected