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

Method TestDoExchangeServerWriteOptions

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

Source from the content-addressed store, hash-verified

1175 ASSERT_OK(writer->Close());
1176}
1177void IpcOptionsTest::TestDoExchangeServerWriteOptions() {
1178 // Call DoExchange and write nested data, but with a very low nesting depth set to fail
1179 // the call. (The low nesting depth is set on the server side.)
1180 auto descr = FlightDescriptor::Command("");
1181 ASSERT_OK_AND_ASSIGN(auto do_exchange_result, client_->DoExchange(descr));
1182 std::unique_ptr<FlightStreamWriter> writer = std::move(do_exchange_result.writer);
1183 RecordBatchVector batches;
1184 ASSERT_OK(ExampleNestedBatches(&batches));
1185 ASSERT_OK(writer->Begin(batches[0]->schema()));
1186 FlightStreamChunk chunk;
1187 ASSERT_OK(writer->WriteRecordBatch(*batches[0]));
1188 ASSERT_OK(writer->DoneWriting());
1189 ASSERT_RAISES(Invalid, writer->Close());
1190}
1191
1192//------------------------------------------------------------
1193// Test CUDA memory in data plane methods

Callers

nothing calls this directly

Calls 7

ExampleNestedBatchesFunction · 0.85
DoneWritingMethod · 0.80
CommandFunction · 0.70
BeginMethod · 0.45
schemaMethod · 0.45
WriteRecordBatchMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected