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

Function ExecBatchFromJSON

cpp/src/arrow/compute/test_util_internal.cc:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35using internal::MapVector;
36
37ExecBatch ExecBatchFromJSON(const std::vector<TypeHolder>& types, std::string_view json) {
38 auto fields = ::arrow::internal::MapVector(
39 [](const TypeHolder& th) { return field("", th.GetSharedPtr()); }, types);
40
41 ExecBatch batch{*RecordBatchFromJSON(schema(std::move(fields)), json)};
42
43 return batch;
44}
45
46ExecBatch ExecBatchFromJSON(const std::vector<TypeHolder>& types,
47 const std::vector<ArgShape>& shapes, std::string_view json) {

Callers 15

TESTFunction · 0.85
TESTFunction · 0.85
MakeGroupableBatchesFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85
MakeBasicBatchesFunction · 0.85
MakeNestedBatchesFunction · 0.85
MakeBatchesFromStringFunction · 0.85

Calls 11

MapVectorFunction · 0.85
RecordBatchFromJSONFunction · 0.85
MakeNullScalarFunction · 0.85
ValueOrDieMethod · 0.80
make_arrayMethod · 0.80
fieldFunction · 0.50
schemaFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
typeMethod · 0.45
GetScalarMethod · 0.45

Tested by

no test coverage detected