herbherbherb opened a new pull request, #15769: URL: https://github.com/apache/iceberg/pull/15769
### Summary Adds a `PostCommitHook` plugin interface to `IcebergSink` that is invoked after each successful Iceberg commit. This enables use cases like updating table properties with watermark metadata, triggering notifications, recording metrics, or synchronizing external metadata stores. Resolves #15768. ### Changes - New: `PostCommitHook.java` -- `@FunctionalInterface` with a single method: `void afterCommit(long snapshotId, Map<String, String> summary)` - Modified: `IcebergCommitter` -- accepts optional hook, invokes it after successful commit - Modified: `IcebergSink.Builder` -- new `postCommitHook()` method, passed through to committer ### Compatibility - No behavioral change when the hook is not set (null default) - No changes to public API signatures of existing methods - Fully backward compatible -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
