| 270 | }; |
| 271 | |
| 272 | static std::shared_ptr<DataType> OneFieldStruct(const std::string& name, |
| 273 | std::shared_ptr<DataType> type, |
| 274 | bool nullable = true) { |
| 275 | return struct_({field(name, type, nullable)}); |
| 276 | } |
| 277 | |
| 278 | static std::shared_ptr<DataType> List(std::shared_ptr<DataType> type, |
| 279 | bool nullable = true) { |