Skip to content

chore(bigquery): bump pyarrow to 24.0.0 to fix dependabot alert#14392

Draft
XrossFox wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-pyarrow
Draft

chore(bigquery): bump pyarrow to 24.0.0 to fix dependabot alert#14392
XrossFox wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-pyarrow

Conversation

@XrossFox

@XrossFox XrossFox commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Description

  • Bumped pyarrow to 24.0.0 in bigquery/bqml, bigquery/pandas-gbq-migration, and bigquery_storage/to_dataframe to address a Dependabot vulnerability.
  • Simplified dependency entries by removing Python version constraints for pyarrow.

Fixes b/532266679

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • Please merge this PR for me once it is approved

 - Bumped `pyarrow` to 24.0.0 in `bigquery/bqml`, `bigquery/pandas-gbq-migration`, and `bigquery_storage/to_dataframe` to address a Dependabot vulnerability.
 - Simplified dependency entries by removing Python version constraints for `pyarrow`.
@product-auto-label product-auto-label Bot added api: bigquery Issues related to the BigQuery API. samples Issues that are directly related to samples. api: bigquerystorage Issues related to the BigQuery Storage API. labels Jul 7, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the pyarrow dependency to version 24.0.0 across multiple requirements.txt files, removing python-version-specific constraints. The feedback points out that in bigquery_storage/to_dataframe/requirements.txt, the arbitrary equality operator '===' was used instead of the standard '==', which could cause compatibility issues with package managers.

pyarrow===12.0.1; python_version == '3.7'
pyarrow===17.0.0; python_version == '3.8'
pyarrow==21.0.0; python_version >= '3.9'
pyarrow===24.0.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Use the standard == operator instead of the arbitrary equality operator === for pinning pyarrow. The === operator bypasses PEP 440 version parsing and can cause compatibility issues with some package managers or installers.

pyarrow==24.0.0

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 BigQuery API. api: bigquerystorage Issues related to the BigQuery Storage API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant