首页 > 解决方案 > 使用飞行写表时出现“OSError:无法将记录批处理写入流”

问题描述

我在使用航班发送数据时遇到了 OSError,但我没有得到任何有用的信息。

基本信息是:

python version 3.7.9
pyarrow version 0.17.1

代码是:

writer, reader = client.do_put(FlightDescriptor.for_path(*paths), schema)
writer.write_table(table)
result: Buffer = reader.read()
writer.close()

错误是:

Traceback (most recent call last):
  File "pyarrow/ipc.pxi", line 240, in pyarrow.lib._CRecordBatchWriter.write_table
  File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
OSError: Could not write record batch to stream: 

标签: pythonpyarrow

解决方案


推荐阅读