Skip to content

[spannerchangestreamstobigquery] Spanner Change Stream to BigQuery UUID support#3698

Open
googledrew wants to merge 4 commits intoGoogleCloudPlatform:mainfrom
googledrew:2026-04-13-uuid-support
Open

[spannerchangestreamstobigquery] Spanner Change Stream to BigQuery UUID support#3698
googledrew wants to merge 4 commits intoGoogleCloudPlatform:mainfrom
googledrew:2026-04-13-uuid-support

Conversation

@googledrew
Copy link
Copy Markdown

@googledrew googledrew commented Apr 15, 2026

Fix for #3703

@googledrew googledrew requested a review from a team as a code owner April 15, 2026 16:53
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces support for the UUID data type within the Spanner Change Streams to BigQuery data pipeline. The changes ensure that UUID fields, including arrays of UUIDs, are correctly identified, processed, and mapped to compatible STRING types in BigQuery. Additionally, the integration tests were updated to include scenarios for UUID data, and minor configuration improvements were made to the test suite.

Highlights

  • UUID Support: Added support for UUID data types in Spanner Change Streams to BigQuery, ensuring proper mapping for both GoogleSQL and PostgreSQL dialects.
  • Schema Mapping: Updated schema utility classes to correctly handle UUID and ARRAY types, mapping them to STRING in BigQuery.
  • Integration Testing: Expanded test coverage with new unit and integration tests to validate UUID data ingestion and schema creation.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.51%. Comparing base (b8203be) to head (e4534fa).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3698      +/-   ##
============================================
- Coverage     52.52%   52.51%   -0.01%     
+ Complexity     6251     5847     -404     
============================================
  Files          1065     1065              
  Lines         64318    64329      +11     
  Branches       7119     7124       +5     
============================================
+ Hits          33781    33782       +1     
- Misses        28256    28265       +9     
- Partials       2281     2282       +1     
Components Coverage Δ
spanner-templates 72.11% <ø> (-0.05%) ⬇️
spanner-import-export 68.53% <ø> (-0.12%) ⬇️
spanner-live-forward-migration 80.86% <ø> (-0.02%) ⬇️
spanner-live-reverse-replication 77.57% <ø> (-0.02%) ⬇️
spanner-bulk-migration 89.38% <ø> (-0.01%) ⬇️
gcs-spanner-dv 85.73% <ø> (-0.02%) ⬇️
Files with missing lines Coverage Δ
...igquery/schemautils/SpannerChangeStreamsUtils.java 80.56% <ø> (ø)
...tobigquery/schemautils/SpannerToBigQueryUtils.java 68.02% <100.00%> (+2.37%) ⬆️
...hangestreamstobigquery/schemautils/TypesUtils.java 60.00% <100.00%> (+1.66%) ⬆️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@tianz101 tianz101 left a comment

Choose a reason for hiding this comment

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

Added a few comments.

@tianz101 tianz101 added bug Something isn't working bug-fix and removed bug Something isn't working labels Apr 16, 2026
@googledrew googledrew force-pushed the 2026-04-13-uuid-support branch from 56ff720 to 4113bb8 Compare April 17, 2026 21:48
@googledrew googledrew force-pushed the 2026-04-13-uuid-support branch from 4113bb8 to cfb303a Compare April 18, 2026 00:42
@googledrew googledrew force-pushed the 2026-04-13-uuid-support branch from cfb303a to e4534fa Compare April 18, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants