Repository navigation
Conversation
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a new secretManager parameter to several Iceberg-to-database templates (AlloyDB, MySQL, Oracle, PostgreSQL, and SQLServer) to support fetching database credentials securely. The changes span Java interface definitions, Python options configuration files, and the main pipeline YAML templates. The reviewer suggests a structural improvement: moving the secretManager parameter from the write-specific options to the common options block (e.g., alloydb_common_options) in the Python options YAML files. This avoids duplication, logically groups the parameter with the credentials it manages, and ensures automatic inheritance. Additionally, the reviewer notes that Java template files should be regenerated using the generation script after updating the source YAML files.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4656 +/- ##
============================================
+ Coverage 37.79% 37.99% +0.19%
- Complexity 521 533 +12
============================================
Files 197 197
Lines 12031 12055 +24
Branches 1238 1239 +1
============================================
+ Hits 4547 4580 +33
+ Misses 7110 7100 -10
- Partials 374 375 +1
🚀 New features to boost your workflow:
|
… template interfaces
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a new optional secretManager parameter across multiple database-to-BigQuery and database-to-Iceberg YAML templates, updating the Java interfaces, Python options, and YAML pipeline configurations. A high-severity issue was identified in IcebergToMySQL.yaml regarding a parameter name mismatch for the write statement, which could prevent user-specified write statements from being correctly passed to the pipeline.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a new optional parameter, secretManager, across multiple YAML templates (including Iceberg, Oracle, SQL Server, and BigQuery integrations). This parameter allows users to specify a secret manager (such as GoogleCloudSecretManager or GoogleCloudHsmGeneratedSecretManager) for fetching secret values. The changes include updating the Java interface template parameters, Python options configurations, and the corresponding YAML pipeline definitions to support this new property. I have no additional feedback to provide as the changes are consistent and complete.
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 updates the Oracle and SQL Server JDBC YAML templates to include support for the 'secretManager' parameter. This change aligns the templates with the current Apache Beam YAML Transform Index, ensuring consistency and resolving parameter drift. The updates were applied systematically across all relevant Oracle and SQL Server to BigQuery/Iceberg blueprints, with corresponding Java interface regenerations to maintain compatibility. 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 a new optional template parameter, secretManager, across several YAML-based templates (including Oracle and SQL Server integrations with BigQuery, Iceberg, and each other). This parameter allows users to specify a secret manager for fetching sensitive values. The changes span Java interface definitions, parameter ordering adjustments, Python options configuration, and pipeline YAML definitions. I have no additional feedback to provide as there are no review comments.
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:
generate_yaml_java_templates.py), Spotless, Checkstyle, and unit tests have been verifiedIf you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)
Summary
secret_managerparameter (secretManager) across all Oracle and SQL Server JDBC YAML blueprints (OracleToBigQuery,OracleToIceberg,IcebergToOracle,SQLServerToBigQuery,SQLServerToIceberg, andIcebergToSQLServer), definingsecretManagerin{oracle,sqlserver}_common_options.*Yaml.javatemplate parameter interfaces.Part of #4425 (#4425).
Testing
generate_yaml_java_templates.py), Spotless, Checkstyle,mvn compile -pl yaml -am, andgenerate_yaml_java_templates_test.py.secret_managerparameter drift rows are resolved across all 6 Oracle and SQL Server YAML blueprints.