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