MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getScale

Method getScale

src/common/types/types.cpp:109–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109uint32_t DecimalType::getScale(const LogicalType& type) {
110 DASSERT(type.getLogicalTypeID() == LogicalTypeID::DECIMAL);
111 auto decimalTypeInfo = type.extraTypeInfo->constPtrCast<DecimalTypeInfo>();
112 return decimalTypeInfo->getScale();
113}
114
115const LogicalType& ListType::getChildType(const lbug::common::LogicalType& type) {
116 DASSERT(type.getPhysicalType() == PhysicalTypeID::LIST ||

Callers 1

toStringMethod · 0.45

Calls 1

getLogicalTypeIDMethod · 0.80

Tested by

no test coverage detected