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

Method UNION

src/common/types/types.cpp:1472–1477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1470}
1471
1472LogicalType LogicalType::UNION(std::vector<StructField>&& fields) {
1473 // TODO(Ziy): Use UINT8 to represent tag value.
1474 fields.insert(fields.begin(),
1475 StructField(UnionType::TAG_FIELD_NAME, LogicalType(UnionType::TAG_FIELD_TYPE)));
1476 return LogicalType(LogicalTypeID::UNION, std::make_unique<StructTypeInfo>(std::move(fields)));
1477}
1478
1479LogicalType LogicalType::LIST(LogicalType childType) {
1480 return LogicalType(LogicalTypeID::LIST, std::make_unique<ListTypeInfo>(std::move(childType)));

Callers 1

transformUnionTypeMethod · 0.80

Calls 4

StructFieldClass · 0.85
LogicalTypeClass · 0.50
insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected