Skip to content

add delta lake to iceberg blueprint and IT - #4103

Open
derrickaw wants to merge 20 commits into
GoogleCloudPlatform:mainfrom
derrickaw:20260803_addDeltaLake2LHIT
Open

add delta lake to iceberg blueprint and IT#4103
derrickaw wants to merge 20 commits into
GoogleCloudPlatform:mainfrom
derrickaw:20260803_addDeltaLake2LHIT

Conversation

@derrickaw

Copy link
Copy Markdown
Contributor

No description provided.

@derrickaw derrickaw changed the title add delta lake to iceberg IT add delta lake to iceberg blueprint and IT Aug 3, 2026
@derrickaw derrickaw added the addition New feature or request label Aug 3, 2026
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.01%. Comparing base (3515682) to head (3cfd16c).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #4103   +/-   ##
=========================================
  Coverage     38.01%   38.01%           
  Complexity      511      511           
=========================================
  Files           195      195           
  Lines         11761    11761           
  Branches       1181     1181           
=========================================
  Hits           4471     4471           
  Misses         6924     6924           
  Partials        366      366           
Components Coverage Δ
spanner-templates ∅ <ø> (∅)
spanner-import-export ∅ <ø> (∅)
spanner-live-forward-migration ∅ <ø> (∅)
spanner-live-reverse-replication ∅ <ø> (∅)
spanner-bulk-migration ∅ <ø> (∅)
gcs-spanner-dv ∅ <ø> (∅)
🚀 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 force-pushed the 20260803_addDeltaLake2LHIT branch from f0d7c7e to d642c4b Compare August 8, 2026 01:59
@derrickaw
derrickaw force-pushed the 20260803_addDeltaLake2LHIT branch from f6ff2b9 to 353123c Compare August 18, 2026 16:37
@derrickaw
derrickaw marked this pull request as ready for review August 18, 2026 17:47
@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 adds a new Dataflow template that enables data migration from Delta Lake tables to Apache Iceberg tables. It includes the necessary YAML definitions, Java interface files, and updates to the template generation tooling to support this new pipeline. Additionally, an integration test has been included to verify the pipeline's correctness.

Highlights

  • New Dataflow Template: Added a new Delta Lake to Iceberg batch pipeline template to the repository.
  • Template Configuration: Introduced new YAML configuration files and a Java interface for the Delta Lake to Iceberg template.
  • Build Tooling Updates: Updated the Python generation script to dynamically handle imports and default parameters for Java templates.
  • Integration Testing: Added a comprehensive integration test for the new template to ensure end-to-end functionality.
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 the Delta Lake to Iceberg batch pipeline template, including its YAML definition, Java metadata interface, documentation, and integration tests. It also updates the Python template generator to conditionally import the Beam SDK Default options. The feedback suggests improving the YAML syntax for requirements to use standard list notation and dynamically calculating the parquet file size in the integration test to avoid hardcoding.

Comment thread yaml/src/main/yaml/DeltaLakeToIceberg.yaml Outdated
@derrickaw
derrickaw force-pushed the 20260803_addDeltaLake2LHIT branch from e6ed587 to a9b0bcf Compare August 19, 2026 16:00
@derrickaw
derrickaw requested a review from chamikaramj August 21, 2026 17:08

@chamikaramj chamikaramj 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.

Thanks!

import org.apache.beam.sdk.options.Validation;

@Template(
name = "DeltaLake_To_Iceberg_Yaml",

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.

Similar to what we have in Job builder currently. Let's introduce a Lakehouse specific sink (that wraps Iceberg sink) and use that from this and other blueprints that write to Lakehouse. Also, pls update the naming (step names, documentation etc.) accordingly.


@TemplateParameter.Text(
order = 3,
name = "table",

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.

This is the Lakehouse table ? Lat's make this clear in the naming pls.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated


@TemplateParameter.Text(
order = 5,
name = "catalogProperties",

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.

Same for this and other configs. Let's make it clear if we are configuring Delta Lake or Lakehouse here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated all configs associated with iceberg and changed to lakehouse

"import com.google.cloud.teleport.metadata.TemplateCategory;",
"import com.google.cloud.teleport.metadata.TemplateParameter;",
]
if has_defaults:

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.

Can't we just add these to the list without the condition ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

there are a few templates/blueprints that don't have defaults so this is still needed for now

@@ -0,0 +1,75 @@
template:
name: "DeltaLake_To_Iceberg_Yaml"

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.

Ditto regarding naming with "Lakehouse".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

gcsClient.createArtifact(deltaTableDir + "/part-00000.parquet", parquetBytes);

// Create and upload Delta Lake transaction log
String commitContent =

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

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