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

Function TableFromJSON

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

Source from the content-addressed store, hash-verified

427}
428
429std::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
438std::shared_ptr<Tensor> TensorFromJSON(const std::shared_ptr<DataType>& type,
439 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
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