Skip to content

feat: Row readers using storage API acceleration can leverage full precision avro values#7525

Merged
gcf-merge-on-green[bot] merged 2 commits intomainfrom
nodejs-storage-avro-changes
Mar 5, 2026
Merged

feat: Row readers using storage API acceleration can leverage full precision avro values#7525
gcf-merge-on-green[bot] merged 2 commits intomainfrom
nodejs-storage-avro-changes

Conversation

@danieljbruce
Copy link
Contributor

Description

Copied from googleapis/nodejs-bigquery-storage#658

This PR allows users to fetch high precision timestamps for read calls with avro readers. Previous to this PR there was no way users could fetch such timestamps.

Impact

With a custom Avro reader, now users can fetch and consume data from the server that preserves high precision timestamps on the backend while providing information about the avro reader in the request.

Testing

A system test is added that proves the timestamp fetched from the server is high precision.

Additional Information

The source code changes are pretty much exactly in the same place as those from googleapis/nodejs-bigquery-storage#656. The main difference is data coming back from the server for arrow readers is very different from data coming back from avro readers. That means instead of using arrow reader transforms from the source code we need to leverage the avsc library to parse server results in the same way that the quickstart guide demonstrates. This allows the test to produce a high precision timestamp.

@danieljbruce danieljbruce requested a review from a team as a code owner March 5, 2026 22:21
@danieljbruce danieljbruce requested a review from alvarowolfx March 5, 2026 22:23
@danieljbruce danieljbruce added the automerge Merge the pull request once unit tests and other checks pass. label Mar 5, 2026
@gcf-merge-on-green gcf-merge-on-green bot merged commit 47deed9 into main Mar 5, 2026
28 of 29 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Mar 5, 2026
@gcf-merge-on-green gcf-merge-on-green bot deleted the nodejs-storage-avro-changes branch March 5, 2026 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants