| 423 | } |
| 424 | |
| 425 | std::shared_ptr<Table> TableFromJSON(const std::shared_ptr<Schema>& schema, |
| 426 | const std::vector<std::string>& json) { |
| 427 | std::vector<std::shared_ptr<RecordBatch>> batches; |
| 428 | for (const std::string& batch_json : json) { |
| 429 | batches.push_back(RecordBatchFromJSON(schema, batch_json)); |
| 430 | } |
| 431 | return *Table::FromRecordBatches(schema, std::move(batches)); |
| 432 | } |
| 433 | |
| 434 | std::shared_ptr<Tensor> TensorFromJSON(const std::shared_ptr<DataType>& type, |
| 435 | std::string_view data, std::string_view shape, |
no test coverage detected