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

Function MakeExtensionBatch

cpp/src/arrow/ipc/generate_fuzz_corpus.cc:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44using ::arrow::json::ArrayFromJSONString;
45
46Result<std::shared_ptr<RecordBatch>> MakeExtensionBatch() {
47 auto array = ExampleUuid();
48 auto md = key_value_metadata({"key1", "key2"}, {"value1", ""});
49 auto schema = ::arrow::schema({field("f0", array->type())}, md);
50 return RecordBatch::Make(schema, array->length(), {array});
51}
52
53Result<std::shared_ptr<RecordBatch>> MakeMapBatch() {
54 std::shared_ptr<Array> array;

Callers 1

BatchesFunction · 0.85

Calls 7

ExampleUuidFunction · 0.85
key_value_metadataFunction · 0.85
schemaFunction · 0.70
fieldFunction · 0.50
MakeFunction · 0.50
typeMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected