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

Function ValidateDecimalPrecision

cpp/src/arrow/type.cc:1486–1492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1484
1485template <typename D>
1486static Status ValidateDecimalPrecision(int32_t precision) {
1487 if (precision < D::kMinPrecision || precision > D::kMaxPrecision) {
1488 return Status::Invalid("Decimal precision out of range [", int32_t(D::kMinPrecision),
1489 ", ", int32_t(D::kMaxPrecision), "]: ", precision);
1490 }
1491 return Status::OK();
1492}
1493
1494// ----------------------------------------------------------------------
1495// Decimal32 type

Callers

nothing calls this directly

Calls 2

InvalidFunction · 0.70
OKFunction · 0.70

Tested by

no test coverage detected