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