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

Function GetDecimalTypePrecision

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

Source from the content-addressed store, hash-verified

1105}
1106
1107int32_t GetDecimalTypePrecision(const std::shared_ptr<DataType>& decimal_type) {
1108 auto decimal128_type = std::dynamic_pointer_cast<Decimal128Type>(decimal_type);
1109 return decimal128_type->precision();
1110}
1111
1112std::optional<bool> AsBool(const std::string& value) {
1113 if (boost::iequals(value, "true") || boost::iequals(value, "1")) {

Callers 1

GetOctetLengthMethod · 0.85

Calls 1

precisionMethod · 0.45

Tested by

no test coverage detected