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

Function test_flight_do_get_metadata_v4

python/pyarrow/tests/test_flight.py:1846–1856  ·  view source on GitHub ↗

Try a simple do_get call with V4 metadata version.

()

Source from the content-addressed store, hash-verified

1844
1845
1846def 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
1859def test_flight_do_put_metadata():

Callers

nothing calls this directly

Calls 5

FlightClientClass · 0.90
equalsMethod · 0.80
arrayMethod · 0.45
do_getMethod · 0.45

Tested by

no test coverage detected