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

Function InternalDecimalFromPythonDecimal

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

Source from the content-addressed store, hash-verified

134
135template <typename ArrowDecimal>
136Status InternalDecimalFromPythonDecimal(PyObject* python_decimal,
137 const DecimalType& arrow_type,
138 ArrowDecimal* out) {
139 ARROW_DCHECK_NE(python_decimal, NULLPTR);
140 ARROW_DCHECK_NE(out, NULLPTR);
141
142 std::string string;
143 RETURN_NOT_OK(PythonDecimalToString(python_decimal, &string));
144 return DecimalFromStdString(string, arrow_type, out);
145}
146
147template <typename ArrowDecimal>
148Status InternalDecimalFromPyObject(PyObject* obj, const DecimalType& arrow_type,

Callers 1

DecimalFromPythonDecimalFunction · 0.85

Calls 2

PythonDecimalToStringFunction · 0.85
DecimalFromStdStringFunction · 0.85

Tested by

no test coverage detected