GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — New dependency on `pyarrow` introduces heavyweight `numpy` sub-dependency · Issue #1196 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

New dependency on pyarrow introduces heavyweight numpy sub-dependency #1196

Copy link
Copy link
Closed
#1282
Closed
New dependency on pyarrow introduces heavyweight numpy sub-dependency#1196
#1282
Copy link
Assignees
steffnay
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@di
di
opened on Mar 31, 2022
Issue body actions

Is your feature request related to a problem? Please describe.
The new dependency on pyarrow, introduced in #1178, creates a new sub-dependency on numpy. Without fully understanding why these dependencies were introduced, a required dependency on numpy feels unnecessarily large for this library.

Describe the solution you'd like
Make the pyarrow and numpy dependencies optional (via extras).

Describe alternatives you've considered
Pin my usage of google-cloud-bigquery back to a version that does have these dependencies, or find a way to remove it entirely.

Additional context
The dependency on numpy in pyarrow: https://github.com/apache/arrow/blob/4a90e3994fc9fc10b968ab3439dec636385dec22/python/setup.py#L589-L591

(PS, thanks for your work on this library!)

Reacted by Ee Durbin, Gilles Major, Mateusz Stawiarski, Adam Sikora, Matěj Bartoš, Jakub Klauco, Vojtěch Kusý, Giles Richard Greenway, Louis Maddox, Greg Dungca and 11 more

Activity

  1. product-auto-label
    added
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    on Mar 31, 2022
  2. yoshi-automation
    added
    triage meI really want to be triaged.
    on Apr 1, 2022
  3. meredithslota
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    and removed
    triage meI really want to be triaged.
    on Apr 4, 2022
  4. tswast commented on Apr 5, 2022

    @tswast
    tswast
    on Apr 5, 2022
    Contributor
    More actions

    Possibly a duplicate of #1142

  5. tswast commented on Apr 5, 2022

    @tswast
    tswast
    on Apr 5, 2022
    Contributor
    More actions

    For some background, the reason we added pyarrow as a required dependency is that we kept getting issues from folks installing incompatible versions of pyarrow. Perhaps there's another way to address this, but at the moment, pip doesn't do anything to help with incompatible versions in "extras" unless those extras are explicitly installed.

  6. majorgilles commented on Apr 13, 2022

    @majorgilles
    majorgilles
    on Apr 13, 2022
    More actions

    Concur with the post, we were using this as a replacement over the now bloated google-api-python-client and will be forced to pin this to the latest non problematic version because we use this from an AWS lambda environment which have very specific restricions in terms of deployment size

    Reacted by Louis Maddox
  7. tswast commented on Apr 13, 2022

    @tswast
    tswast
    on Apr 13, 2022
    Contributor
    More actions

    If someone were to send a PR to do this, I'd be open to it, given the extra dependency does appear to block more use cases than I anticipated.

    We'd want to:

    • Restore optional checks for pyarrow and google-cloud-bigquery-storage, which were removed in deps!: BigQuery Storage and pyarrow are required dependencies #776
    • Restore guards against bad pyarrow versions: fix: guard imports against unsupported pyarrow versions #934
    • Add pyarrow and google-cloud-bigquery-storage checks to verify_pandas_imports

      python-bigquery/google/cloud/bigquery/_pandas_helpers.py

      Line 987 in 7897b55

      def verify_pandas_imports():
  8. tswast commented on Jun 22, 2022

    @tswast
    tswast
    on Jun 22, 2022
    Contributor
    More actions

    To implement this, we'd basically want to revert #776. I doubt a simple "revert" will be sufficient at this point as 2.x diverged a bit from 3.x.

  9. steffnay
    self-assigned this
    on Jun 23, 2022
  10. rogerhub commented on Sep 20, 2022

    @rogerhub
    rogerhub
    on Sep 20, 2022
    More actions

    I saw my binary size grow from 30-40MB to 234MB, and I found out it's because I upgraded google-cloud-bigquery and picked up a dependency on pyarrow and numpy. Any update on this bug?

    I don't think I use the parts of the bigquery package that require these dependencies, so the extra dependencies are just slowing down deployment and startup time (new binary is 5-6x bigger).

  11. hannes-ucsc commented on Oct 10, 2022

    @hannes-ucsc
    hannes-ucsc
    on Oct 10, 2022
    More actions

    For some background, the reason we added pyarrow as a required dependency is that we kept getting issues from folks installing incompatible versions of pyarrow.

    So now you'll be getting issues from people who's binary code size is exploding. Are you sure you landed on the right side of this trade-off? ;-) Can't you just add a dynamic version check after the import?

    Reacted by Søren Bjerregaard Vrist
  12. steffnay
    closed this as completedin #1282on Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @steffnay
    steffnay

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.