Skip to content

Add Iceberg Quickstart page#37739

Open
ahmedabu98 wants to merge 5 commits intoapache:masterfrom
ahmedabu98:iceberg_sql_guide
Open

Add Iceberg Quickstart page#37739
ahmedabu98 wants to merge 5 commits intoapache:masterfrom
ahmedabu98:iceberg_sql_guide

Conversation

@ahmedabu98
Copy link
Contributor

@ahmedabu98 ahmedabu98 commented Mar 2, 2026

Adding an Iceberg quickstart page to the Beam website

Includes examples for Hadoop Catalog (easy local development) and BigLake (cloud-scale development)

Includes the following SDKs:

  • SQL
  • Java
  • Python
  • YAML

@gemini-code-assist
Copy link
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 Apache Iceberg quickstart page to the Beam website, significantly enhancing the documentation for data lake integration. It provides practical, multi-language code examples for common Iceberg operations, from catalog setup to data manipulation, ensuring users can quickly get started with Iceberg I/O in Beam. Additionally, the changes include necessary updates to the website's interactive components to better display and organize these new code snippets and structured content.

Highlights

  • New Apache Iceberg Quickstart Page: A comprehensive quickstart guide for Apache Iceberg I/O has been added to the Beam website, providing detailed instructions and examples for integration.
  • Java and Python Iceberg Examples: New code examples in both Java and Python demonstrate how to configure Iceberg catalogs (Hadoop and BigLake), create tables, insert data, and query data using Beam's managed I/O.
  • Website UI Enhancements: The website's language switcher now supports SQL, and new generic tab and section shortcodes have been introduced to improve content organization and presentation for multi-language examples.
  • Java SDK Dependency Update: The sdks:java:managed dependency was added to the Java examples build configuration to support the new managed I/O operations for Iceberg.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • examples/java/build.gradle
    • Added implementation project(":sdks:java:managed") dependency to support managed I/O.
  • examples/java/src/main/java/org/apache/beam/examples/snippets/transforms/io/iceberg/IcebergBeamSchemaAndRow.java
    • New file: Defined Beam schemas and rows for various data types to demonstrate Iceberg compatibility.
  • examples/java/src/main/java/org/apache/beam/examples/snippets/transforms/io/iceberg/Quickstart.java
    • New file: Provided Java quickstart examples for Iceberg, including Hadoop and BigLake catalog configurations, and managed write/read operations.
  • sdks/python/apache_beam/examples/snippets/snippets.py
    • Added model_managed_iceberg function with Hadoop and BigLake catalog configurations, and managed write/read examples.
    • Added model_managed_iceberg_data_types function demonstrating various data types for Iceberg.
  • website/www/site/assets/js/language-switch-v2.js
    • Added 'SQL' as a supported language for the valueToTabTitle function.
    • Initialized a new Switcher for generic tabs.
  • website/www/site/assets/scss/_syntax-highlighting.scss
    • Added styling for .tab-switcher by extending .runner-switcher.
  • website/www/site/content/en/documentation/io/built-in/iceberg.md
    • New file: The main Apache Iceberg I/O connector documentation page, including basics, quickstart guide (Hadoop and BigLake catalogs), and data type mappings across SQL, Java, Python, and YAML.
  • website/www/site/layouts/partials/section-menu/en/documentation.html
    • Added "Apache Iceberg" to the I/O connector guides list.
    • Simplified titles for other I/O connectors (e.g., "Apache Parquet I/O connector" to "Apache Parquet").
  • website/www/site/layouts/shortcodes/language-switcher.html
    • Added sql as a language option for the language switcher.
  • website/www/site/layouts/shortcodes/section.html
    • New file: Defined a Hugo shortcode for creating a section HTML element with a customizable class.
  • website/www/site/layouts/shortcodes/tab.html
    • New file: Defined a Hugo shortcode for creating a div element styled as a tab, used for content organization.
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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

Assigning reviewers:

R: @jrmccluskey for label python.
R: @Abacn for label java.
R: @shunping for label website.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@ahmedabu98
Copy link
Contributor Author

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.

1 participant