Repository navigation
Conversation
aIbrahiim
commented
Nov 23, 2026
- Adds Iceberg CDC to Bigtable streaming YAML template
- ReadFromIcebergCDC with streaming, MapToFields + error handling, WriteToBigTable
- Drops UPDATE_BEFORE, windows before write, DLQ to GCS JSON
- IT covers INSERT / UPDATE / DELETE
Summary of ChangesHello, 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 adds a new Google-provided Dataflow YAML template that enables streaming data synchronization from an Iceberg table to Bigtable. The pipeline captures row-level changes, applies user-defined transformations, and handles errors by routing failed records to Cloud Storage. The implementation includes the necessary metadata, YAML configuration, and integration tests to ensure robust operation. Highlights
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
Code Review
This pull request introduces the Iceberg_Cdc_To_Bigtable_Yaml template, a streaming pipeline that reads row-level changes from an Iceberg table, processes them, and writes mutations to Bigtable, with errors routed to Cloud Storage. The changes include the template's Java interface, YAML definition, documentation, and integration tests. Feedback on the integration test suggests replacing exact equality checks (==) with greater-than-or-equal-to comparisons (>=) in the polling conditions to prevent potential test hangs if the row count exceeds the target.
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #4618 +/- ##
=============================================
- Coverage 59.74% 37.79% -21.96%
+ Complexity 8383 521 -7862
=============================================
Files 1123 197 -926
Lines 72705 12031 -60674
Branches 8842 1238 -7604
=============================================
- Hits 43441 4547 -38894
+ Misses 26363 7110 -19253
+ Partials 2901 374 -2527
🚀 New features to boost your workflow:
|
|
Hi @aIbrahiim, can you address the gemini review comments and the test failure? Thanks |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces the new Iceberg CDC to Bigtable (YAML) streaming template, including its metadata interface, YAML pipeline definition, documentation, and integration tests. The review feedback highlights syntax errors in the YAML template where Java-style array syntax was used instead of standard YAML sequences for filesToCopy and requirements. Additionally, it is recommended to add @Default annotations to the optional parameters startingStrategy and pollIntervalSeconds in the Java interface to match their documented default values.
| @TemplateParameter.Text( | ||
| order = 8, | ||
| name = "startingStrategy", | ||
| optional = true, | ||
| description = "The starting strategy of the changelog read.", | ||
| helpText = | ||
| "Where to start reading changes from. Valid values are 'earliest' and 'latest'. Defaults to 'latest' for streaming pipelines.", | ||
| example = "earliest") | ||
| String getStartingStrategy(); |
There was a problem hiding this comment.
Since startingStrategy is an optional parameter with a default value of 'latest' mentioned in the help text, it is highly recommended to add the @Default.String("latest") annotation. This ensures that the getter returns the default value instead of null when the parameter is omitted, preventing potential template compilation or execution issues.
| @TemplateParameter.Text( | |
| order = 8, | |
| name = "startingStrategy", | |
| optional = true, | |
| description = "The starting strategy of the changelog read.", | |
| helpText = | |
| "Where to start reading changes from. Valid values are 'earliest' and 'latest'. Defaults to 'latest' for streaming pipelines.", | |
| example = "earliest") | |
| String getStartingStrategy(); | |
| @TemplateParameter.Text( | |
| order = 8, | |
| name = "startingStrategy", | |
| optional = true, | |
| description = "The starting strategy of the changelog read.", | |
| helpText = | |
| "Where to start reading changes from. Valid values are 'earliest' and 'latest'. Defaults to 'latest' for streaming pipelines.", | |
| example = "earliest") | |
| @Default.String("latest") | |
| String getStartingStrategy(); |
| @TemplateParameter.Integer( | ||
| order = 9, | ||
| name = "pollIntervalSeconds", | ||
| optional = true, | ||
| description = "The interval in seconds at which to poll for new snapshots.", | ||
| helpText = | ||
| "The interval in seconds at which the source polls the table for new snapshots. Defaults to 60 seconds.", | ||
| example = "60") | ||
| Integer getPollIntervalSeconds(); |
There was a problem hiding this comment.
Since pollIntervalSeconds is an optional parameter with a default value of 60 mentioned in the help text, it is highly recommended to add the @Default.Integer(60) annotation. This ensures that the getter returns the default value instead of null when the parameter is omitted, preventing potential template compilation or execution issues.
| @TemplateParameter.Integer( | |
| order = 9, | |
| name = "pollIntervalSeconds", | |
| optional = true, | |
| description = "The interval in seconds at which to poll for new snapshots.", | |
| helpText = | |
| "The interval in seconds at which the source polls the table for new snapshots. Defaults to 60 seconds.", | |
| example = "60") | |
| Integer getPollIntervalSeconds(); | |
| @TemplateParameter.Integer( | |
| order = 9, | |
| name = "pollIntervalSeconds", | |
| optional = true, | |
| description = "The interval in seconds at which to poll for new snapshots.", | |
| helpText = | |
| "The interval in seconds at which the source polls the table for new snapshots. Defaults to 60 seconds.", | |
| example = "60") | |
| @Default.Integer(60) | |
| Integer getPollIntervalSeconds(); |