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

Method getFieldTypes

src/common/types/types.cpp:134–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134std::vector<const LogicalType*> StructType::getFieldTypes(const LogicalType& type) {
135 DASSERT(type.getPhysicalType() == PhysicalTypeID::STRUCT);
136 auto structTypeInfo = type.extraTypeInfo->constPtrCast<StructTypeInfo>();
137 return structTypeInfo->getChildrenTypes();
138}
139
140const LogicalType& StructType::getFieldType(const LogicalType& type, struct_field_idx_t idx) {
141 return StructType::getField(type, idx).getType();

Callers

nothing calls this directly

Calls 2

getChildrenTypesMethod · 0.80
getPhysicalTypeMethod · 0.45

Tested by

no test coverage detected