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

Function Subtract

cpp/src/gandiva/precompiled/decimal_ops.cc:233–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233BasicDecimal128 Subtract(const BasicDecimalScalar128& x, const BasicDecimalScalar128& y,
234 int32_t out_precision, int32_t out_scale) {
235 return Add(x, {-y.value(), y.precision(), y.scale()}, out_precision, out_scale);
236}
237
238// Multiply when the out_precision is 38, and there is no trimming of the scale i.e
239// the intermediate value is the same as the final value.

Callers 1

VerifyMethod · 0.70

Calls 4

AddFunction · 0.70
valueMethod · 0.45
precisionMethod · 0.45
scaleMethod · 0.45

Tested by 1

VerifyMethod · 0.56