MCPcopy Create free account
hub / github.com/apache/arrow / TableFromJSON

Function TableFromJSON

cpp/src/arrow/testing/gtest_util.cc:425–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425std::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
434std::shared_ptr<Tensor> TensorFromJSON(const std::shared_ptr<DataType>& type,
435 std::string_view data, std::string_view shape,

Callers 15

TESTFunction · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
EXPECT_OK_AND_ASSIGNFunction · 0.85
TESTFunction · 0.85
serde_test.ccFile · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 2

RecordBatchFromJSONFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected