yihua opened a new pull request, #1055: URL: https://github.com/apache/incubator-xtable/pull/1055
## *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#HUDI_PR). 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: - Build on Java 17, Spark 3.5, Iceberg 1.12 and Hudi 1.3.0-SNAPSHOT, with a Spark 4.1 profile (#1050; fork #8). - Rollbacks and the reconstructed timeline kept consistent, the Hudi metadata table served under the table format, catalog publishing at format version 2 or 3, merge-on-read tables with deletion vectors, row lineage across Hudi rewrites, Hudi meta columns left out of the Iceberg schema, a Hudi delete that changes no files published as a delete (#1039 to #1045; fork #9 to #14, #18). - xtable-core fixes for list column stats, DATE and TIMESTAMP partition values, dropped columns and Avro local timestamps (#1051 to #1054). - Plugin fixes: base files without rows left out, the row id of a moved merge-on-read row kept, a fully deleted data file removed, clustering and compaction published as `replace` (fork #4 to #7). - Tables the plugin creates no longer keep the empty placeholder schema, which DuckDB rejects and which makes the AWS Glue Iceberg REST endpoint drop the table's name mapping (the change is scoped to the plugin). - The Hudi writer extension sets Parquet field IDs without Iceberg's Parquet utilities, so it works next to an Iceberg runtime jar that relocates Parquet. 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: running; results added here when done. - End to end on Amazon EMR (Spark 3.5) with the AWS Glue Data Catalog and the Glue Iceberg REST endpoint: copy-on-write at format version 2 and 3 and merge-on-read with deletion vectors, insert through compaction, clustering, clean, archival and rollback, with Spark, Trino and DuckDB reads matching Hudi after every step: running; results added here when done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
