| 80 | } |
| 81 | |
| 82 | Result<std::shared_ptr<::arrow::DataType>> MakeArrowList( |
| 83 | std::shared_ptr<Field> field, const ArrowReaderProperties& props) { |
| 84 | switch (props.list_type()) { |
| 85 | case ::arrow::Type::LIST: |
| 86 | return ::arrow::list(std::move(field)); |
| 87 | case ::arrow::Type::LARGE_LIST: |
| 88 | return ::arrow::large_list(std::move(field)); |
| 89 | default: |
| 90 | return Status::TypeError("Invalid list_type: " + |
| 91 | ::arrow::internal::ToString(props.list_type())); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | Status FieldToNode(const std::string& name, const std::shared_ptr<Field>& field, |
| 96 | const WriterProperties& properties, |
nothing calls this directly
no test coverage detected