Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyarrow compatibility issue when instantiating a client #890

Closed
dpmcclurg opened this issue Aug 20, 2021 · 2 comments
Closed

pyarrow compatibility issue when instantiating a client #890

dpmcclurg opened this issue Aug 20, 2021 · 2 comments
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: question Request for information or clarification. Not an issue.

Comments

@dpmcclurg
Copy link

dpmcclurg commented Aug 20, 2021

Creating an SDK client using v2.24.1 in Databricks runtime v8.3 (Spark v3.1.1 and Python v3.8.8 and pyarrow v1.0.1) generates the following error: module 'pyarrow' has no attribute 'decimal256'.

pip version = 20.2.4

I tried:

  1. Upgraded to Databricks runtime v9.0 which brings Python down to v3.8.1 and pyarrow up to v4. Same error as above and below.
  2. Reverted back to Databricks runtime v8.3 (see specs above). Then, I downgraded BigQuery SDK to v2.24.0. This resolved the error.

bq error

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Aug 20, 2021
@plamut plamut added the type: question Request for information or clarification. Not an issue. label Aug 23, 2021
@plamut
Copy link
Contributor

plamut commented Aug 23, 2021

@dpmcclurg Which pyarrow version do you have installed? What's the output of the following?

import pyarrow; print(pyarrow.__version__)

As of BigQuery client version v2.24.1 released last week, pyarrow >= 3.0.0 is required.

Has the pyarrow dependency been upgraded? I would check that first, and upgrade if necessary.

@tswast
Copy link
Contributor

tswast commented Sep 1, 2021

This issue has also been reported in Beam and TFX.

Closing as a duplicate of #933

@tswast tswast closed this as completed Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

3 participants