herbherbherb opened a new pull request, #15764:
URL: https://github.com/apache/iceberg/pull/15764

   ### Summary
   
   Adds an `OutputFileFactoryProvider` plugin interface to `IcebergSink` that 
allows external implementations to customize how `OutputFileFactory` instances 
are created. This enables use cases like custom file naming, path rewriting, or 
alternative storage routing without subclassing internal writer factories.
   
   Resolves #15763.
   
   ### Changes
   
   - New: `OutputFileFactoryProvider.java` -- `@FunctionalInterface` with a 
single method: `OutputFileFactory create(Table, int taskId, int attemptId, 
FileFormat, PartitionSpec)`
   - Modified: `RowDataTaskWriterFactory` -- accepts optional provider, uses it 
in `initialize()` when present
   - Modified: `IcebergSink.Builder` -- new `outputFileFactoryProvider()` 
method, passed through to writer factory
   
   ### Compatibility
   
   - No behavioral change when the provider 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]

Reply via email to