Try a simple do_get call with V4 metadata version.
()
| 1844 | |
| 1845 | |
| 1846 | def test_flight_do_get_metadata_v4(): |
| 1847 | """Try a simple do_get call with V4 metadata version.""" |
| 1848 | table = pa.Table.from_arrays( |
| 1849 | [pa.array([-10, -5, 0, 5, 10])], names=['a']) |
| 1850 | options = pa.ipc.IpcWriteOptions( |
| 1851 | metadata_version=pa.ipc.MetadataVersion.V4) |
| 1852 | with MetadataFlightServer(options=options) as server, \ |
| 1853 | FlightClient(('localhost', server.port)) as client: |
| 1854 | reader = client.do_get(flight.Ticket(b'')) |
| 1855 | data = reader.read_all() |
| 1856 | assert data.equals(table) |
| 1857 | |
| 1858 | |
| 1859 | def test_flight_do_put_metadata(): |
nothing calls this directly
no test coverage detected