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

Function test_flight_do_get_dicts

python/pyarrow/tests/test_flight.py:1254–1269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1252
1253
1254def test_flight_do_get_dicts():
1255 table = simple_dicts_table()
1256
1257 with ConstantFlightServer() as server, \
1258 flight.connect(('localhost', server.port)) as client:
1259 reader = client.do_get(flight.Ticket(b'dicts'))
1260 assert reader.stats.num_messages == 1
1261 data = reader.read_all()
1262 assert data.equals(table)
1263 assert reader.stats == ReadStats(
1264 num_messages=6,
1265 num_record_batches=3,
1266 num_dictionary_batches=2,
1267 num_dictionary_deltas=0,
1268 num_replaced_dictionaries=1
1269 )
1270
1271
1272def test_flight_do_get_ticket():

Callers

nothing calls this directly

Calls 5

simple_dicts_tableFunction · 0.85
equalsMethod · 0.80
ReadStatsClass · 0.50
do_getMethod · 0.45

Tested by

no test coverage detected