Try a simple do_get call with V4 metadata version.
()
| 1882 | |
| 1883 | |
| 1884 | def test_flight_do_get_metadata_v4(): |
| 1885 | """Try a simple do_get call with V4 metadata version.""" |
| 1886 | table = pa.Table.from_arrays( |
| 1887 | [pa.array([-10, -5, 0, 5, 10])], names=['a']) |
| 1888 | options = pa.ipc.IpcWriteOptions( |
| 1889 | metadata_version=pa.ipc.MetadataVersion.V4) |
| 1890 | with MetadataFlightServer(options=options) as server, \ |
| 1891 | FlightClient(('localhost', server.port)) as client: |
| 1892 | reader = client.do_get(flight.Ticket(b'')) |
| 1893 | data = reader.read_all() |
| 1894 | assert data.equals(table) |
| 1895 | |
| 1896 | |
| 1897 | def test_flight_do_put_metadata(): |
nothing calls this directly
no test coverage detected