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

Function do_action

python/examples/flight/client.py:66–74  ·  view source on GitHub ↗
(args, client, connection_args={})

Source from the content-addressed store, hash-verified

64
65
66def do_action(args, client, connection_args={}):
67 try:
68 buf = pyarrow.allocate_buffer(0)
69 action = pyarrow.flight.Action(args.action_type, buf)
70 print('Running action', args.action_type)
71 for result in client.do_action(action):
72 print("Got result", result.body.to_pybytes())
73 except pyarrow.lib.ArrowIOError as e:
74 print("Error calling action:", e)
75
76
77def push_data(args, client, connection_args={}):

Callers

nothing calls this directly

Calls 1

do_actionMethod · 0.45

Tested by

no test coverage detected