yihua commented on PR #20883: URL: https://github.com/apache/hudi/pull/20883#issuecomment-7230687055
Thanks a lot for the design pass, @nsivabalan. The new commit addresses point 3 and the doc parts; the rest are follow-ups I'll take before the interface ships in a release (it is unreleased on 1.3.0-SNAPSHOT). 1. Agreed on a driver-side `prepare` that resolves every rewritten base file from one snapshot and hands a serializable context to `resolverFor`, with the commit-time check; I'll do it as a follow-up. The `resolverFor` Javadoc now states the contract: cheap, serializable, and it throws for a file the format has not recorded, which fails the rewrite. 2. Decision: an update that moves a row to another file group keeps its row ID, like an in-place update. The change is ready on top of #20167 and lands in a follow-up after both PRs merge, together with partition-path updates under a global index; until then whichever of #20167 and this PR merges second makes the update-as-delete-insert mode refuse a format that declares columns. The description now says this, and #20910 will be aligned with it. 3. Done: the test format's row ID column keeps `replacedValue` and the sequence number is null on update, the `valueOnUpdate` Javadoc says what a lineage format should return, and the Java and Spark row-lineage tests pin it through a copy-on-write upsert, merge-on-read compaction and clustering of a log update. 4. Follow-up: the per-handle processor (no-op for native tables), the reader decorator and computing the columns once per write. 5. Kept the inference for now and stated the invariant in the Javadoc of the reader's handler field in `HoodieFileGroupReader`; passing the `UpdateProcessor` decision is a follow-up. 6. The `getFormatMetaColumns` Javadoc now says a format that declares columns should verify them at commit; recording the carried-row count is a follow-up. 7. Follow-up: the event-time losing update, positional and key-based deletes in the middle of the base file under compaction, a custom merger, and rollback/restore re-adding a file. (The compaction test already deletes rows in the middle of the base file and runs with a partial-update mode.) 8. The names are now documented as reserved, the position-counting comment says the read must not push predicates down or skip row groups, and the Javadoc says the Flink writers refuse such tables; a check when the schema evolves is a follow-up. Column stats for all columns do not index them, since the columns to index come from the writer schema in the commit metadata (`HoodieTableMetadataUtil#getColumnsToIndex`), which does not have them; only an explicit column list naming one would, and excluding that is part of the same follow-up. The description no longer says "Stacked on #20877". Process: the alternatives considered (resolving by record key, and fixing up lineage at commit) go into the RFC-93 revision #20910. -- 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]
