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

Method get_flight_info

python/pyarrow/tests/test_flight.py:288–305  ·  view source on GitHub ↗
(self, context, descriptor)

Source from the content-addressed store, hash-verified

286 """A Flight server that tests GetFlightInfo."""
287
288 def get_flight_info(self, context, descriptor):
289 return flight.FlightInfo(
290 pa.schema([('a', pa.int32())]),
291 descriptor,
292 [
293 flight.FlightEndpoint(b'', ['grpc://test']),
294 flight.FlightEndpoint(
295 b'',
296 [flight.Location.for_grpc_tcp('localhost', 5005)],
297 pa.scalar("2023-04-05T12:34:56.789012345").cast(pa.timestamp("ns")),
298 "endpoint app metadata"
299 ),
300 ],
301 1,
302 42,
303 True,
304 "info app metadata"
305 )
306
307 def get_schema(self, context, descriptor):
308 info = self.get_flight_info(context, descriptor)

Callers 5

get_schemaMethod · 0.95
GetFlightInfoMethod · 0.45
test_flight_get_infoFunction · 0.45
test_middleware_mappingFunction · 0.45
test_headers_trailersFunction · 0.45

Calls 3

schemaMethod · 0.45
castMethod · 0.45
scalarMethod · 0.45

Tested by

no test coverage detected