Skip to content

[722] Iceberg pluggable table format for Hudi: combined changes to build and try - #1055

Draft
yihua wants to merge 1 commit into
apache:mainfrom
yihua:ptf-iceberg-feature
Draft

yihua wants to merge 1 commit into
apache:mainfrom
yihua:ptf-iceberg-feature

Conversation

@yihua

@yihua yihua commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Important Read

  • Please ensure the GitHub issue is mentioned at the beginning of the PR

Issue: #722

What is the purpose of the pull request

The Iceberg table format plugin for Hudi's pluggable table format is under review as separate pull requests on the yihua/onetable fork and here. Until they land, this draft combines them on current main so the plugin can be built and tried from one branch, against the matching Hudi branch (apache/hudi#20913). It is not meant to be merged; it will be closed once the separate pull requests are in.

To build: install the Hudi branch (mvn install -DskipTests -Dspark3.5 -Dscala-2.12 -pl packaging/hudi-spark-bundle -am), then build this branch on Java 17 (./mvnw package -DskipTests -pl xtable-hudi-support/xtable-iceberg-pluggable-tf,xtable-hudi-support/xtable-hudi-support-extensions -am).

Brief change log

One commit with the combined changes:

Limitations a user will hit:

  • Hudi must be the only writer of the table; snapshots from other Iceberg writers stop Hudi reads and writes (never supported).
  • Restore, non-identity partitioning and Iceberg branches and tags are not supported (never supported). Merge-on-read is published at format version 3 only.

Verify this pull request

This change added tests and can be verified as follows:

  • Plugin unit tests and integration tests, the Hudi writer extension tests and the xtable-core Iceberg and Hudi tests, run against the matching Hudi branch (Java 17, Spark 3.5): plugin 43 unit and 139 integration tests pass (1 skipped), extension 14 pass, xtable-core TestIceberg*, TestHudi* and TestBaseFileUpdatesExtractor 285 pass.
  • End to end on Amazon EMR 7.14 (Spark 3.5, Iceberg 1.12.0) with the AWS Glue Data Catalog, against the matching Hudi branch: copy-on-write at format version 2 and 3 and merge-on-read with deletion vectors, insert through compaction, clustering, clean, archival and rollback. All 14 steps of each of the four tables read back through Spark match Hudi, and EMR's Trino reads of the format version 2 table match row by row. On EMR, iceberg-aws-bundle goes ahead of EMR's own AWS SDK on the Spark class path, since the Iceberg 1.12 AWS clients need its SDK. The same three Glue tables committed through the Glue Iceberg REST endpoint also pass all 14 steps. Trino 484 and DuckDB 2.0.1 read the Glue tables with the same rows as Spark, including the deletion vectors and _row_id of the format version 3 tables.

…ild and try

Combines the Iceberg table format plugin work that is under review as separate pull
requests, so it can be built from one branch against the matching Hudi build: the build
upgrade (Java 17, Spark 3.5, Iceberg 1.12, Hudi 1.3.0-SNAPSHOT), rollback and timeline
consistency, the Hudi metadata table, catalog publishing at format version 2 or 3,
merge-on-read deletion vectors, row lineage, Hudi meta columns out of the Iceberg schema,
the xtable-core partition, stats, timestamp and schema fixes, no empty placeholder schema
in tables the plugin creates, and Parquet field IDs in the Hudi writer extension.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant