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

Function TableFromJSON

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

Source from the content-addressed store, hash-verified

431}
432
433std::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
442std::shared_ptr<Tensor> TensorFromJSON(const std::shared_ptr<DataType>& type,
443 std::string_view data, std::string_view shape,

Callers 15

TESTFunction · 0.85
table_test.ccFile · 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

Calls 2

RecordBatchFromJSONFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected