Skip to content

chore(bigquery): require bigquery-storage >= 6.3.0 for Arrow - #9675

Merged
ohmayr merged 1 commit into
mainfrom
chore/bigquery-arrow-storage-min-version
Oct 20, 2026
Merged

ohmayr merged 1 commit into
mainfrom
chore/bigquery-arrow-storage-min-version

Conversation

@ohmayr

@ohmayr ohmayr commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Context & Problem

createQueryArrowStream() requires @google-cloud/bigquery-storage >= 6.1.0, but 6.1.0 and 6.2.0 depend on @google-cloud/bigquery-storage-api ^0.3.0, whose ReadRowsRequest has no arrowSerializationOptions field. A TODO tracked raising the minimum once a release picked up bigquery-storage-api ^0.5.0. 6.3.0 is that release.

Summary of Changes

  • src/arrow.ts: checkArrowDependencies() requires @google-cloud/bigquery-storage >= 6.3.0, and the TODO is removed.
  • package.json: the optional peer dependency and the dev dependency are ^6.3.0.
  • src/bigquery.ts: the createQueryArrowStream() docs state the new minimum.
  • test/arrow.ts: the version-check tests accept 6.3.0 and reject 6.2.0, the last release on bigquery-storage-api ^0.3.0.
  • pnpm-lock.yaml: handwritten/bigquery resolves @google-cloud/bigquery-storage 6.3.0 and @google-cloud/bigquery-storage-api 0.5.0.

Verification

  • pnpm test in handwritten/bigquery: 550 passing, 4 pending.
  • checkArrowDependencies() accepts the installed @google-cloud/bigquery-storage 6.3.0.
  • GIT_DIFF_ARG=origin/main node ./bin/linter.mjs --strict: no errors.

@google-cloud/bigquery-storage 6.3.0 is the first release that depends
on @google-cloud/bigquery-storage-api ^0.5.0, whose ReadRowsRequest
carries arrowSerializationOptions. Raise the peer, dev, and runtime
minimums and drop the TODO that tracked this release.
@ohmayr
ohmayr requested review from a team as code owners October 20, 2026 17:21
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the BigQuery API. label Oct 20, 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 minimum required version of the optional @google-cloud/bigquery-storage dependency from 6.1.0 to 6.3.0 across package.json, source files, and test suites. The TODO comment regarding this version bump has also been removed. I have no feedback to provide.

@ohmayr
ohmayr merged commit c294d50 into main Oct 20, 2026
46 checks passed
@ohmayr
ohmayr deleted the chore/bigquery-arrow-storage-min-version branch October 20, 2026 20:57
ohmayr added a commit that referenced this pull request Oct 21, 2026
…Stream (#9603)

Callers need to choose the timestamp precision of Arrow results (for
example picoseconds for `TIMESTAMP(12)` columns), and the choice has to
be the same on every page. This adds `arrowSerializationOptions` to
`ArrowQuery` and exports the `ArrowSerializationOptions` type, both
marked beta.

- Defaults `picosTimestampPrecision` to `TIMESTAMP_PRECISION_MICROS` and
sends the same value on `jobs.query`, on `ReadRows` for
`streams/_default` (including resumed streams), and in `readOptions` on
`CreateReadSession`. It's kept out of `jobs.insert`.
- Rejects `LZ4_FRAME` and `ZSTD` `bufferCompression`, since
`apache-arrow` doesn't bundle those codecs.
- Requires `@google-cloud/bigquery-storage` >= 6.3.0 (already enforced
on `main` by #9675), whose `ReadRowsRequest` carries
`arrowSerializationOptions`, so no extra version check is needed.
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants