Try downloading a flight of Table in a GeneratorStream.
()
| 1474 | |
| 1475 | |
| 1476 | def test_flight_generator_stream_of_table(): |
| 1477 | """Try downloading a flight of Table in a GeneratorStream.""" |
| 1478 | data = pa.Table.from_arrays([ |
| 1479 | pa.array(range(0, 10 * 1024)) |
| 1480 | ], names=['a']) |
| 1481 | |
| 1482 | with EchoTableStreamFlightServer() as server, \ |
| 1483 | FlightClient(('localhost', server.port)) as client: |
| 1484 | writer, _ = client.do_put(flight.FlightDescriptor.for_path('test'), |
| 1485 | data.schema) |
| 1486 | writer.write_table(data) |
| 1487 | writer.close() |
| 1488 | result = client.do_get(flight.Ticket(b'')).read_all() |
| 1489 | assert result.equals(data) |
| 1490 | |
| 1491 | |
| 1492 | def test_flight_generator_stream_of_table_with_dict(): |
nothing calls this directly
no test coverage detected