python - 无法从 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
解决方案
推荐阅读
- excel - 为什么单击保存按钮时我的 vba 用户窗体会崩溃?
- java - Mapstruct - 忽略集合内的属性
- python - 使用 selenium 使用 python 获取当前日期的全尺寸屏幕截图
- javascript - Node.js/MongoDB 执行多关键字搜索
- kubernetes - 如何使用 terraform 从 S3 加载 kubeconfig 文件
- python - 使用 Flask-SQLAlchemy 将 Python zip() 列表加载到 SQLite DB
- php - 使用 Sanctum 的 Laravel 7 SPA API 身份验证
- java - JNA 将等效的 swift 指针从 Java Android 传递给 C
- swift - 从静态变量访问实例函数
- visual-studio-code - 如何防止为远程 ssh 连接启动新的 VS Code 窗口