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

Function GetDecimalTypeScale

cpp/src/arrow/flight/sql/odbc/odbc_impl/util.cc:1102–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1100}
1101
1102int32_t GetDecimalTypeScale(const std::shared_ptr<DataType>& decimal_type) {
1103 auto decimal128_type = std::dynamic_pointer_cast<Decimal128Type>(decimal_type);
1104 return decimal128_type->scale();
1105}
1106
1107int32_t GetDecimalTypePrecision(const std::shared_ptr<DataType>& decimal_type) {
1108 auto decimal128_type = std::dynamic_pointer_cast<Decimal128Type>(decimal_type);

Callers

nothing calls this directly

Calls 1

scaleMethod · 0.45

Tested by

no test coverage detected