| 1470 | } |
| 1471 | |
| 1472 | LogicalType 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 | |
| 1479 | LogicalType LogicalType::LIST(LogicalType childType) { |
| 1480 | return LogicalType(LogicalTypeID::LIST, std::make_unique<ListTypeInfo>(std::move(childType))); |
no test coverage detected