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

Method do_put

python/pyarrow/tests/test_flight.py:443–456  ·  view source on GitHub ↗
(self, context, descriptor, reader, writer)

Source from the content-addressed store, hash-verified

441 raise flight.FlightInternalError("foo")
442
443 def do_put(self, context, descriptor, reader, writer):
444 if descriptor.command == b"internal":
445 raise flight.FlightInternalError("foo")
446 elif descriptor.command == b"timedout":
447 raise flight.FlightTimedOutError("foo")
448 elif descriptor.command == b"cancel":
449 raise flight.FlightCancelledError("foo")
450 elif descriptor.command == b"unauthenticated":
451 raise flight.FlightUnauthenticatedError("foo")
452 elif descriptor.command == b"unauthorized":
453 raise flight.FlightUnauthorizedError("foo")
454 elif descriptor.command == b"protobuf":
455 err_msg = b'this is an error message'
456 raise flight.FlightUnauthorizedError("foo", err_msg)
457
458
459class ExchangeFlightServer(FlightServerBase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected