| 35 | using internal::MapVector; |
| 36 | |
| 37 | ExecBatch ExecBatchFromJSON(const std::vector<TypeHolder>& types, std::string_view json) { |
| 38 | auto fields = ::arrow::internal::MapVector( |
| 39 | [](const TypeHolder& th) { return field("", th.GetSharedPtr()); }, types); |
| 40 | |
| 41 | ExecBatch batch{*RecordBatchFromJSON(schema(std::move(fields)), json)}; |
| 42 | |
| 43 | return batch; |
| 44 | } |
| 45 | |
| 46 | ExecBatch ExecBatchFromJSON(const std::vector<TypeHolder>& types, |
| 47 | const std::vector<ArgShape>& shapes, std::string_view json) { |
no test coverage detected