【问题标题】:Python bigquery lib error 'pyarrow' has no attribute 'decimal256'Python bigquery lib 错误“pyarrow”没有属性“decimal256”
【发布时间】:2021-10-22 04:11:58
【问题描述】:

AttributeError: 模块 'pyarrow' 没有属性 'decimal256' 好像是bigquery python包的错误,应该怎么处理?

整个栈是:

  File "/opt/conda/default/lib/python3.7/site-packages/google/cloud/bigquery/__init__.py", line 35, in <module>
    from google.cloud.bigquery.client import Client
  File "/opt/conda/default/lib/python3.7/site-packages/google/cloud/bigquery/client.py", line 70, in <module>
    from google.cloud.bigquery import _pandas_helpers
  File "/opt/conda/default/lib/python3.7/site-packages/google/cloud/bigquery/_pandas_helpers.py", line 151, in <module>
    pyarrow.decimal256(76, scale=38).id: "BIGNUMERIC",
AttributeError: module 'pyarrow' has no attribute 'decimal256'

【问题讨论】:

    标签: python pyspark google-bigquery pyarrow


    【解决方案1】:

    上周我遇到了这个问题。我今天解决了这个问题。 问题不在谷歌 API 中。问题出在pyarrow中。 我只是把pyarrow包的版本改成5.0.0版本(pyarrow==5.0.0),问题就解决了。

    【讨论】:

      猜你喜欢
      • 2019-07-25
      • 2020-09-13
      • 2020-01-27
      • 2014-05-14
      • 1970-01-01
      • 2014-04-11
      • 2014-07-08
      • 2019-11-05
      • 2018-07-31
      相关资源
      最近更新 更多