| 174 | } |
| 175 | |
| 176 | [[nodiscard]] std::vector<ColumnDescriptor> buildSchemaColumns(const TypeTreeNode& root) { |
| 177 | std::vector<ColumnDescriptor> result; |
| 178 | FieldId next_id = 0; |
| 179 | if (root.kind == TypeKind::kStruct) { |
| 180 | for (const auto& child : root.children) { |
| 181 | flattenColumnsImpl(*child, "", next_id, result); |
| 182 | } |
| 183 | } else { |
| 184 | flattenColumnsImpl(root, "", next_id, result); |
| 185 | } |
| 186 | return result; |
| 187 | } |
| 188 | |
| 189 | [[nodiscard]] std::vector<ColumnDescriptor> effectiveColumns(const DataEngine& engine, const TopicStorage& storage) { |
| 190 | const auto& stored = storage.columnDescriptors(); |
no test coverage detected