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

Method TestEmptyBatch

cpp/src/arrow/flight/test_definitions.cc:789–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787}
788
789void DoPutTest::TestEmptyBatch() {
790 // Sending and receiving a 0-sized batch shouldn't fail
791 auto descr = FlightDescriptor::Path({"ints"});
792 RecordBatchVector batches;
793 auto a1 = ArrayFromJSON(int32(), "[]");
794 auto schema = arrow::schema({field("f1", a1->type())});
795 batches.push_back(RecordBatch::Make(schema, a1->length(), {a1}));
796
797 CheckDoPut(descr, schema, batches);
798}
799
800void DoPutTest::TestDicts() {
801 auto descr = FlightDescriptor::Path({"dicts"});

Callers

nothing calls this directly

Calls 8

ArrayFromJSONFunction · 0.85
push_backMethod · 0.80
PathFunction · 0.70
schemaFunction · 0.50
fieldFunction · 0.50
MakeFunction · 0.50
typeMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected