Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
hi, when I implentend flight server to do_put data, and throw exceptions proactively, and client will get OSError when close writer, but I expect FlightError.
//代码占位符
def do_put(self, context, descriptor, reader, writer):
table = reader.read_all()
....
raise fl.FlightUnavailableError()
....
//代码占位符 df = ... table = pa.Table.from_pandas(df) client = fl.connect('...') writer, _ = client.do_put(descriptor, table.schema, options=options) writer.write_table(table) write.close()
also, when I throw exception before read_all, the write_table throw OSError.
and i guess, the FlightStreamWriter should add write_table and close method, and check_flight_status according to write_batch had checked.
thx.
Attachments
Attachments
Issue Links
- links to