Skip to content

feat(yaml): Modernize PostgreSQL to BigQuery template with YAML - #4145

Merged
derrickaw merged 5 commits into
GoogleCloudPlatform:mainfrom
ihebimad:feature/postgres-to-bigquery-yaml
Aug 27, 2026
Merged

feat(yaml): Modernize PostgreSQL to BigQuery template with YAML#4145
derrickaw merged 5 commits into
GoogleCloudPlatform:mainfrom
ihebimad:feature/postgres-to-bigquery-yaml

Conversation

@ihebimad

Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

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 a new YAML-based Dataflow template designed to streamline the migration of data from PostgreSQL to BigQuery. By utilizing the YAML template format, this change simplifies pipeline configuration and deployment, while ensuring robust validation and testing through the inclusion of a dedicated integration test suite.

Highlights

  • New YAML Template: Added a new YAML-based Dataflow template for the PostgreSQL to BigQuery migration pipeline.
  • Configuration and Metadata: Implemented the Java interface and YAML configuration file to define template parameters and pipeline structure.
  • Integration Testing: Added a comprehensive integration test suite to verify the pipeline functionality using real PostgreSQL and BigQuery resources.
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 the 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 counterproductive. 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.

@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 introduces a new PostgreSQL to BigQuery batch pipeline template using YAML, including its documentation, Java parameter interface, YAML pipeline definition, and integration tests. The review feedback highlights several YAML syntax issues in PostgreSQLToBigQuery.yaml that need correction, such as formatting filesToCopy and requirements as standard YAML sequences rather than flow mappings, and enclosing Jinja placeholders in double quotes to avoid parsing errors. Additionally, there is a minor formatting issue with an unmatched backtick in the table parameter's help text within PostgreSQLToBigQueryYaml.java.

Comment thread yaml/src/main/yaml/PostgreSQLToBigQuery.yaml
Comment thread yaml/src/main/yaml/PostgreSQLToBigQuery.yaml
Comment thread yaml/src/main/yaml/PostgreSQLToBigQuery.yaml
Comment thread yaml/src/main/yaml/PostgreSQLToBigQuery.yaml
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.01%. Comparing base (eb4a54f) to head (1fcd7e3).
⚠️ Report is 37 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (eb4a54f) and HEAD (1fcd7e3). Click for more details.

HEAD has 33 uploads less than BASE
Flag BASE (eb4a54f) HEAD (1fcd7e3)
34 1
Additional details and impacted files
@@              Coverage Diff              @@
##               main    #4145       +/-   ##
=============================================
- Coverage     56.37%   38.01%   -18.36%     
+ Complexity     7401      511     -6890     
=============================================
  Files          1125      195      -930     
  Lines         68795    11761    -57034     
  Branches       7783     1181     -6602     
=============================================
- Hits          38782     4471    -34311     
+ Misses        27535     6924    -20611     
+ Partials       2478      366     -2112     
Components Coverage Δ
spanner-templates ∅ <ø> (∅)
spanner-import-export ∅ <ø> (∅)
spanner-live-forward-migration ∅ <ø> (∅)
spanner-live-reverse-replication ∅ <ø> (∅)
spanner-bulk-migration ∅ <ø> (∅)
gcs-spanner-dv ∅ <ø> (∅)
see 956 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.

@derrickaw derrickaw added the addition New feature or request label Aug 19, 2026
Comment thread yaml/README_Kafka_to_BigQuery_Yaml.md Outdated
@derrickaw
derrickaw merged commit 429be10 into GoogleCloudPlatform:main Aug 27, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition New feature or request size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants