首页 > 解决方案 > 无法从 oracle pandas datafrime 写入镶木地板

问题描述

我的 litle from-oracle-pipeline 必须将 pandas 数据帧写入镶木地板文件。我为此使用 pyarrow lib:

df2 = pyarrow.Table.from_pandas(df) 
pyarrow.parquet.write_table(df, 'file.parquet', compression = 'BROTLI')

但结果是:

'Could not convert {} with type cx_Oracle.LOB: did not identify Python value type when inferring an Arrow data type', 'Conversion failed for column MY_JSON_FIELD with type object') 。

如何解决问题?如何将大文本字段写入 paquet?o

标签: pythonpandasparquetpyarrow

解决方案


推荐阅读