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:1884–1894  ·  view source on GitHub ↗

Try a simple do_get call with V4 metadata version.

()

Source from the content-addressed store, hash-verified

1882
1883
1884def 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
1897def 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